48 uiLabel::~uiLabel(
void)
56 _pFont = _pSkin->parameter(
"FN_DEFAULT").font();
75 laRenderer* pr = ::laSystemIntegrator::getRenderer();
77 _pFont = _pSkin->parameter(
"FN_DEFAULT").font();
78 ASSERT(
_pFont,
"Invalid font");
84 _pFont->ctlAlignH(_nAlignH);
85 _pFont->ctlAlignV(_nAlignV);
90 offset[0] = getSize().x();
93 offset[0] = getSize().x()/2.0;
101 offset[1] = getSize().y();
104 offset[1] = getSize().y()/2.0;
107 offset = offset +
getPos();
110 pr->styleSet( _pSkin->parameter(
"CL_SHADOW_DARK").color() );
115 else pr->styleSet( _pSkin->parameter(
"CL_LABEL_TXT").color() );
124 laRenderer* r = ::laSystemIntegrator::getRenderer();
125 laColor cLine = _pSkin->parameter(
"CL_BUTTON").color();
126 laColor cShade = _pSkin->parameter(
"CL_SHADOW").color();
127 laPoint3 ptOffset(2,2);
virtual void modeTexture(M_BOOL bOn)=0
Enable/disable texturing.
void kill()
Discard window and all children.
laPoint3 _ptPos
Windos position (relative to parent)
#define M_AB
Text align bottom.
virtual void load(class laFileParser *fp)
Load a dialog layout form .cui file.
char _strText[256]
Text string.
virtual void create(laPoint3 pos, laPoint3 size)
Create new empty window.
#define M_AM
Text align middle.
#define M_AR
Text align right.
laPoint3 _ptSize
Window size.
M_BOOL _bCustomColor
Custom color, or use skin color if not set.
uiLabel(void)
Class Constructor.
virtual void create(laPoint3 pos, laPoint3 size)
Create new empty window.
#define M_AC
Text align center.
virtual void draw()
Draw event.
virtual void load(class laFileParser *fp)
Load from .cui file.
Virtual interface for the Engine graphics renderer.
virtual void draw()
Display the window.
laPoint3 getPos()
Get relative window position with regard to parent.
laFont * _pFont
Pointer to active font.
virtual void kill()
Discard window and all children.