Nana C++ Library  
An open-source C++ framework project
The Nana Programmer's Guide 
nana::gui::progress

Description

A progress indicator.

Model of

Widget Window 

Public base classes

class widget_object<widget_tag>: public widget

Members

progress() The default construction
progress(window wd, bool visible) Creates a progress indicator
progress(window wd, const rectangle& r = rectangle(), bool visible = true) Ditto.
unsigned value() const Returns the value of progress indicator
void value(unsigned val) Set the value of progress indicator
void inc() Increases the value by itself
unsigned amount() const Returns the amount value of progress indicator
unsigned amount(unsigned value) Set the amount value of progress indicator
void unknown(bool) Enables/disables the unknown progress mode.
bool unknown() const Returns true if the progress is unknown mode.

File

nana/gui/widgets/progress.hpp

Notes

1. The progressbar has tow modes, unknown and known. the known mode means the progressbar has a specific amount value. The progressbar in the unknown mode ignores the amount value and its always scroll the progress block when its value is changed.

See also

None.


Move to The Nana Programmer's Guide Main Page