ProgressBarView

class mono::ui::ProgressBarView

Inherits from mono::ui::View

Public Functions

ProgressBarView()

Create a ProgressBar with a zero view rect (0,0,0,0)

ProgressBarView(geo::Rect rect)

Create a ProgressBarView with values from 0 to 100.

Create a new ProgressBarView, with a defined view rect and default progress value span: 0 to 100, with a current value of 0.

Parameters
  • rect -

    The view rect where the ProgressBar is painted

void setValue(int newValue)

Set a new progress value.

Set a new current value for the progress bar. The value is truncated to the existing value span (min and max values).

Changes to the value will trigger the value changed callback and cause the view to schedule itself for repaint.

Parameters
  • newValue -

    The new value

void setMaximum(int max)

SETTERS.

template <typename Owner>
void mono::ui::ProgressBarView::setValueChangedCallback(Owner * cnxt, void(Owner::*)(void) memPtr)

Set a progress value change callback function.

Get notification callback everytime this progressbar changes its value

Parameters
  • cnxt -

    A pointer to the callback member context (the this pointer)

  • memPtr -

    A pointer to the callback member function

int Minimum() const

GETTERS.

int Maximum() const

GETTERS.

Protected Functions

void init()

convenience initializer

virtual void repaint()

MISC.