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

Vector4

backgroundColor () const

float

from () const

Frame *

progress () const

Vector4

progressColor () const

void

setBackgroundColor (const Vector4 color)

void

setFrom (float value)

void

setProgress (Frame * frame)

void

setProgressColor (const Vector4 color)

void

setTo (float value)

void

setValue (float value)

float

to () const

float

value () const

Static Methods

None

Methods Description

Vector4 ProgressBar::backgroundColor () const

Returns the background color of the progress bar.

See also setBackgroundColor().


float ProgressBar::from () const

Returns the minimum value of the progress range.

See also setFrom().


:ref:`Frame<api_Frame>`* ProgressBar::progress () const

Returns the frame representing the progress bar.

See also setProgress().


Vector4 ProgressBar::progressColor () const

Returns the color of the progress indicator.

See also setProgressColor().


void ProgressBar::setBackgroundColor (Vector4 color)

Sets the background color of the progress bar.

See also backgroundColor().


void ProgressBar::setFrom (float value)

Sets the minimum value of the progress range.

See also from().


void ProgressBar::setProgress (Frame * frame)

Sets the frame representing the progress.

See also progress().


void ProgressBar::setProgressColor (Vector4 color)

Sets the color of the progress indicator.

See also progressColor().


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