33 uiSlider::uiSlider(
void)
35 sprintf(_strValueFormat,
"%%.1f");
38 uiSlider::~uiSlider(
void)
49 _uiBtn.setFraction( (_dCurrent-_dMin) / (_dMax-_dMin) );
62 fp->readText(_strValueFormat, M_FALSE);
72 _dCurrent = _uiBtn.getFraction()*(_dMax-_dMin) + _dMin;
81 laRenderer* r = ::laSystemIntegrator::getRenderer();
88 r->transTranslate(
_ptPos + getDecorationSize() );
93 sprintf(str, _strValueFormat, _dCurrent);
94 _uiValueLabel.setText(str);
101 void uiSlidingButton::init()
106 _t = _pSkin->parameter(
"TX_SLIDER_BTN").texture();
128 laRenderer* pr = ::laSystemIntegrator::getRenderer();
136 pr->styleSet( _pSkin->parameter(
"CL_SHADOW").color() );
142 pr->styleSet( _pSkin->parameter(
"CL_CONTAINER").color() );
laPoint3 _ptPos
Windos position (relative to parent)
virtual void vquadsDrawSingle(laPoint2 *ar_uv=NULL)=0
Draw a single VQ (Note this is slower than drawing an array of VQ and should be avoided) ...
virtual void move(laPoint3 ptNewPos, unsigned nHReference=M_AL, unsigned nVReference=M_AT)
Change window position.
void draw()
Display the window.
void vquadsMakeXYRect(unsigned nIndex, const laPoint3 &pos, const laPoint3 &sz, const laPoint2 &uv, const laPoint2 &uv_sz)
Makes a quad aligned to the XY plane; (handy for GUI rendering )
virtual void create(laPoint3 pos, laPoint3 size)
Create new empty window.
#define M_AM
Text align middle.
virtual void draw()
Display the window.
#define M_AL
Text align left.
virtual void create(laPoint3 pos, laPoint3 size)
Create new empty window.
laPoint3 _ptSize
Window size.
virtual void load(class laFileParser *fp)
Load a dialog layout form .cui file.
uiWindow * _pParent
Pointer to parent window, if any.
virtual void reply()
Handle input message.
void load(class laFileParser *fp)
Load a dialog layout form .cui file.
#define M_AC
Text align center.
virtual void draw()
Draw event.
Virtual interface for the Engine graphics renderer.
void toggleBorders(M_BOOL bEnable)
Toggle border visbility.
virtual void reply()
Handle input message.
void toggleMoveable(M_BOOL bEnable, unsigned nButton=0)
Toggle moveable flag.
virtual void reply()
Handle input message.