ProgressBarΒΆ
Inherited: Frame
DescriptionΒΆ
The ProgressBar class is designed to provide a graphical representation of progress with customizable appearance and range. It supports features such as setting the minimum and maximum values, adjusting the progress value, and specifying visual elements for background and progress indicator.
Public MethodsΒΆ
float |
from () const |
int |
orientation () const |
progressColor () const |
|
Sprite * |
progressImage () const |
void |
setFrom (float value) |
void |
setOrientation (int orientation) |
void |
setProgressColor (const Vector4 color) |
void |
setProgressImage (Sprite * image) |
void |
setTo (float value) |
void |
setValue (float value) |
float |
to () const |
float |
value () const |
Static MethodsΒΆ
None
Methods DescriptionΒΆ
float ProgressBar::from () const
Returns the minimum value of the progress range.
See also setFrom().
int ProgressBar::orientation () const
Returns the orientation of the progress bar.
See also setOrientation().
Vector4 ProgressBar::progressColor () const
Returns the color of the progress indicator.
See also setProgressColor().
Sprite * ProgressBar::progressImage () const
Returns progress image.
See also setProgressImage().
void ProgressBar::setFrom (float value)
Sets the minimum value of the progress range.
See also from().
void ProgressBar::setOrientation (int orientation)
Sets the orientation of the progress bar.
See also orientation().
void ProgressBar::setProgressColor (Vector4 color)
Sets the color of the progress indicator.
See also progressColor().
void ProgressBar::setProgressImage (Sprite * image)
Sets progress image.
See also progressImage().
void ProgressBar::setTo (float value)
Sets the maximum value of the progress range.
See also to().
void ProgressBar::setValue (float value)
Sets the current progress value.
See also value().
float ProgressBar::to () const
Returns the maximum value of the progress range.
See also setTo().
float ProgressBar::value () const
Returns the current progress value.
See also setValue().