class MASKING_DLL_DECLSPEC Progress

The progress bar widget.

Inheritance:

Progress - Separator - Widget - Rect

Progress - ScrollObject


Public Methods

[more]void SetOrientation(int o)
Set the orientation of the progress bar.
[more]void SetPosition(int pos)
Sets the position of the progress bar.
[more]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()
[more]void Increment()
Advances the progress bar.

Protected Methods

[more]void Draw(Bitmap &canvas)
Draws either a horizontal or a vertical progress bar
[more]void MsgInitSkin()
Initializes the progress bar with the default progress bar bitmap
[more]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.
ovoid Draw(Bitmap &canvas)
Draws either a horizontal or a vertical progress bar

ovoid MsgInitSkin()
Initializes the progress bar with the default progress bar bitmap

ovoid UpdateSize()
Automatically calculates the size of the progress bar depending on orientation

ovoid SetOrientation(int o)
Set the orientation of the progress bar. Pass 0 for vertical and 1 for horizontal.

ovoid 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.

ovoid 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()

ovoid 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++