29 #ifndef _Minesweeper_Timer_h_ 30 #define _Minesweeper_Timer_h_ 32 #include "CEGUI/Window.h" 33 #include "CEGUI/WindowFactory.h" 34 #include "CEGUI/Property.h" 52 Delay() :
Property(
"Delay",
"Property to get/set the current delay used by the timer. Value is a float.",
"0.000000") {}
111 bool isStarted()
const;
116 void setDelay(
float delay);
118 float getDelay()
const;
121 virtual void updateSelf(
float elapsed);
126 float d_currentValue;
128 void addTimerProperties(
void);
136 {
return new Timer(d_type, name); }
143 #endif // end of guard _CEGUIGUISheet_h_ static const CEGUI::String EventNamespace
Store the event namespace related to the timer.
Definition: Minesweeper_Timer.h:81
virtual ~Timer(void)
Destructor for Timer windows.
Definition: Minesweeper_Timer.h:98
static const CEGUI::String EventTimerAlarm
The name of the event generated by this widget.
Definition: Minesweeper_Timer.h:82
Definition: Minesweeper_Timer.cpp:31
Definition: Minesweeper_Timer.h:131
Dummy base class to ensure correct casting of receivers.
Definition: cegui/include/CEGUI/Property.h:45
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: cegui/include/CEGUI/Window.h:149
void destroyWindow(CEGUI::Window *window)
Destroys the given Window object.
Definition: Minesweeper_Timer.h:137
CEGUI::Window * createWindow(const CEGUI::String &name)
Create a new Window object of whatever type this WindowFactory produces.
Definition: Minesweeper_Timer.h:135
An abstract class that defines the interface to access object properties by name. ...
Definition: cegui/include/CEGUI/Property.h:60
Property to access the delay between two alarm.
Definition: Minesweeper_Timer.h:49
Abstract class that defines the required interface for all WindowFactory objects. ...
Definition: cegui/include/CEGUI/WindowFactory.h:115
static const CEGUI::String WidgetTypeName
The unique typename of this widget.
Definition: Minesweeper_Timer.h:80
Property(const String &name, const String &help, const String &defaultValue="", bool writesXML=true, const String &dataType="Unknown", const String &origin="Unknown")
Creates a new Property object.
Definition: cegui/include/CEGUI/Property.h:91
Window class intended to be used as a timer.
Definition: Minesweeper_Timer.h:73
String class used within the GUI system.
Definition: cegui/include/CEGUI/String.h:62