class MASKING_DLL_DECLSPEC Progress
The progress bar widget.
Inheritance:
Public Methods
-
void SetOrientation(int o)
- Set the orientation of the progress bar.
-
void SetPosition(int pos)
- Sets the position of the progress bar.
-
void Setup(int x, int y, int w, int h, int key, int flags, int p, int o)
- A shortcut for Widget::Setup(), SetOrientation() and SetPosition()
-
void Increment()
- Advances the progress bar.
Protected Methods
-
void Draw(Bitmap &canvas)
- Draws either a horizontal or a vertical progress bar
-
void MsgInitSkin()
- Initializes the progress bar with the default progress bar bitmap
-
void UpdateSize()
- Automatically calculates the size of the progress bar depending on orientation
Documentation
The progress bar widget.
Displays either a horizontal or a vertical progress bar although it
works best as a horizontal one.
void Draw(Bitmap &canvas)
-
Draws either a horizontal or a vertical progress bar
void MsgInitSkin()
-
Initializes the progress bar with the default progress bar bitmap
void UpdateSize()
-
Automatically calculates the size of the progress bar depending on orientation
void SetOrientation(int o)
-
Set the orientation of the progress bar. Pass 0 for vertical and 1 for horizontal.
void SetPosition(int pos)
-
Sets the position of the progress bar. You should use this only to set the
initial position if it is different than 0 and use Increment() to advance the bar.
void Setup(int x, int y, int w, int h, int key, int flags, int p, int o)
-
A shortcut for Widget::Setup(), SetOrientation() and SetPosition()
void Increment()
-
Advances the progress bar. You should call this function every time the amount
of progress increases.
- Direct child classes:
- Slider
Alphabetic index Hierarchy of classes
Back to front page
|
page generated with DOC++