![]() |
DrawCaml
|
#include <element.h>
Public Member Functions | |
void | setText (const char *text) |
void | setFont (const char *font) |
void | setColor (const char *col) |
virtual void | setSize (int sizeX, int sizeY) |
virtual void | draw (SWindow *win, int drawX, int drawY) |
Public Attributes | |
const char * | mText |
string | mFontStr |
XFontStruct * | mFontStruct |
const char * | mColorStr |
XColor | mColor |
![]() | |
int | mPosX |
int | mPosY |
int | mSizeX = 0 |
int | mSizeY = 0 |
SWindow * | mWin |
Graphical element that prints text. Code for Drawcaml.dLabel
void SLabel::setColor | ( | const char * | col | ) |
Set the color of the text.
void SLabel::setFont | ( | const char * | font | ) |
Set the font of the label.
void SLabel::setText | ( | const char * | text | ) |
Set the text of the Label.
const char* SLabel::mColorStr |
Color of the text.
string SLabel::mFontStr |
Font for the label, using X logical font format.
const char* SLabel::mText |
Text of the Label.