Crazy Eddie's GUI System
0.8.7
|
29 #ifndef _CEGUIProgressBar_h_
30 #define _CEGUIProgressBar_h_
33 #include "../Window.h"
37 # pragma warning(push)
38 # pragma warning(disable : 4251)
127 void step(
void) {setProgress(d_progress + d_step);}
190 void addProgressBarProperties(
void);
195 #if defined(_MSC_VER)
196 # pragma warning(pop)
199 #endif // end of guard _CEGUIProgressBar_h_
void setStepSize(float step_val)
set the size of the 'step' in percentage points (default is 0.01f or 1%).
Definition: widgets/ProgressBar.h:114
ProgressBar(const String &type, const String &name)
Constructor for ProgressBar class.
virtual void onProgressChanged(WindowEventArgs &e)
event triggered when progress changes
Base class for progress bars.
Definition: widgets/ProgressBar.h:50
void setProgress(float progress)
set the current progress.
static const String WidgetTypeName
Window factory name.
Definition: widgets/ProgressBar.h:53
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
float d_step
amount to 'step' progress by on a call to step()
Definition: widgets/ProgressBar.h:183
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: InputEvent.h:252
float d_progress
current progress (from 0.0f to 1.0f)
Definition: widgets/ProgressBar.h:182
static const String EventProgressDone
Definition: widgets/ProgressBar.h:69
static const String EventProgressChanged
Definition: widgets/ProgressBar.h:63
virtual ~ProgressBar(void)
Destructor for ProgressBar.
float getProgress(void) const
return the current progress value
Definition: widgets/ProgressBar.h:79
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:151
static const String EventNamespace
Namespace for global events.
Definition: widgets/ProgressBar.h:52
void adjustProgress(float delta)
Modify the progress level by a specified delta.
Definition: widgets/ProgressBar.h:141
float getStepSize(void) const
return the current step size
Definition: widgets/ProgressBar.h:85
virtual void onProgressDone(WindowEventArgs &e)
event triggered when progress reaches 100%
String class used within the GUI system.
Definition: String.h:64
void step(void)
cause the progress to step
Definition: widgets/ProgressBar.h:127