Definition at line 5 of file progressbar.h.
Public Member Functions | |
void | AddValue (float pcnt) |
float | GetValue () |
glictProgressBar () | |
void | Paint () |
Renders the element. Should contain call to CPaint(). | |
void | SetValue (float newpcnt) |
~glictProgressBar () | |
Private Attributes | |
float | percent |
void glictProgressBar::Paint | ( | ) | [virtual] |
Renders the element. Should contain call to CPaint().
(This description applies for the glictContainer::Paint(). If you are reading it for some other class, then its documentation is not written yet for this function.)
In glictContainer class, Paint does nothing except calling SetScissor() and CPaint(). This is because as a widget the container class does not render anything; it serves as a point of divergence for other classes. Other widgets should define their own procedure with these two calls as a minimum.
When writing a widget, put SetScissor() on the beginning of this function, and CPaint() on the end.
Reimplemented from glictContainer.
Definition at line 12 of file progressbar.cpp.
References glictContainer::CPaint(), glictGlobalsClass::PaintRect(), glictContainer::SetScissor(), glictGlobalsClass::translation, glictPos::x, and glictPos::y.