Class ProgressBar

Inheritance Relationships

Base Type

Class Documentation

class ProgressBar : public nanogui::Widget

Standard widget for visualizing progress.

Public Functions

ProgressBar(Widget *parent)
float value()
void setValue(float value)
virtual Vector2i preferredSize(NVGcontext *ctx) const

Compute the preferred size of the widget.

virtual void draw(NVGcontext *ctx)

Draw the widget (and all child widgets)

virtual void save(Serializer &s) const

Save the state of the widget into the given Serializer instance.

virtual bool load(Serializer &s)

Restore the state of the widget from the given Serializer instance.

Protected Attributes

float mValue