|
Public Member Functions |
| CParamDisplay (const CRect &size, CBitmap *background=0, const long style=0) |
virtual | ~CParamDisplay () |
virtual void | setFont (CFont fontID) |
CFont | getFont () const |
virtual void | setFontColor (CColor color) |
CColor | getFontColor () const |
virtual void | setBackColor (CColor color) |
CColor | getBackColor () const |
virtual void | setFrameColor (CColor color) |
CColor | getFrameColor () const |
virtual void | setShadowColor (CColor color) |
CColor | getShadowColor () const |
virtual void | setHoriAlign (CHoriTxtAlign hAlign) |
virtual void | setStringConvert (void(*convert)(float value, char *string)) |
virtual void | setStringConvert (void(*convert)(float value, char *string, void *userDta), void *userData) |
virtual void | setString2FloatConvert (void(*convert)(char *string, float &output)) |
virtual void | setStyle (long val) |
long | getStyle () const |
virtual void | setTxtFace (CTxtFace val) |
CTxtFace | getTxtFace () const |
virtual void | draw (CDrawContext *pContext) |
| called if the view should draw itself
|
virtual void | setTextTransparency (bool val) |
bool | getTextTransparency () const |
Protected Member Functions |
void | drawText (CDrawContext *pContext, char *string, CBitmap *newBack=0) |
Protected Attributes |
void(* | stringConvert )(float value, char *string) |
void(* | stringConvert2 )(float value, char *string, void *userData) |
void(* | string2FloatConvert )(char *string, float &output) |
void * | userData |
CHoriTxtAlign | horiTxtAlign |
long | style |
CFont | fontID |
CTxtFace | txtFace |
CColor | fontColor |
CColor | backColor |
CColor | frameColor |
CColor | shadowColor |
bool | bTextTransparencyEnabled |
Define a rectangle view where a text-value can be displayed with a given font and color. The user can specify its convert function (from float to char) by default the string format is "%2.2f". The text-value is centered in the given rect.