30 #ifndef _CEGUIProgressBar_h_
31 #define _CEGUIProgressBar_h_
33 #include "../CEGUIBase.h"
34 #include "../CEGUIWindow.h"
35 #include "CEGUIProgressBarProperties.h"
39 # pragma warning(push)
40 # pragma warning(disable : 4251)
87 float getStep(
void)
const {
return d_step;}
103 void setProgress(
float progress);
129 void step(
void) {setProgress(d_progress + d_step);}
179 if (class_name==
"ProgressBar")
return true;
219 void addProgressBarProperties(
void);
224 #if defined(_MSC_VER)
225 # pragma warning(pop)
228 #endif // end of guard _CEGUIProgressBar_h_
static const String WidgetTypeName
Window factory name.
Definition: CEGUIProgressBar.h:55
float getProgress(void) const
return the current progress value
Definition: CEGUIProgressBar.h:81
virtual bool testClassName_impl(const String &class_name) const
Return whether this window was inherited from the given class name at some point in the inheritance h...
Definition: CEGUIWindow.h:3928
Base class for progress bars.
Definition: CEGUIProgressBar.h:51
void setStepSize(float step_val)
set the size of the 'step' in percentage points (default is 0.01f or 1%).
Definition: CEGUIProgressBar.h:116
float d_progress
current progress (from 0.0f to 1.0f)
Definition: CEGUIProgressBar.h:204
virtual bool testClassName_impl(const String &class_name) const
Return whether this window was inherited from the given class name at some point in the inheritance h...
Definition: CEGUIProgressBar.h:177
void adjustProgress(float delta)
Modify the progress level by a specified delta.
Definition: CEGUIProgressBar.h:143
float getStep(void) const
return the current step size
Definition: CEGUIProgressBar.h:87
void step(void)
cause the progress to step
Definition: CEGUIProgressBar.h:129
float d_step
amount to 'step' progress by on a call to step()
Definition: CEGUIProgressBar.h:205
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: CEGUIWindow.h:138
Property to access the current progress of the progress bar.
Definition: CEGUIProgressBarProperties.h:58
Property to access the step size setting for the progress bar.
Definition: CEGUIProgressBarProperties.h:83
static const String EventProgressDone
Definition: CEGUIProgressBar.h:71
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: CEGUIInputEvent.h:245
static const String EventProgressChanged
Definition: CEGUIProgressBar.h:65
String class used within the GUI system.
Definition: CEGUIString.h:57
static const String EventNamespace
Namespace for global events.
Definition: CEGUIProgressBar.h:54