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") {}
118 float getDelay()
const;
126 float d_currentValue;
128 void addTimerProperties(
void);
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
void set(CEGUI::PropertyReceiver *receiver, const CEGUI::String &value)
Sets the value of the property.
Definition: Minesweeper_Timer.cpp:37
virtual void updateSelf(float elapsed)
Perform actual update processing for this Window.
Definition: Minesweeper_Timer.cpp:95
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
void start()
start the timer in order to generate alarm event
Definition: Minesweeper_Timer.cpp:73
Timer(const CEGUI::String &type, const CEGUI::String &name)
Constructor for Timer windows.
Definition: Minesweeper_Timer.cpp:61
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: cegui/include/CEGUI/Window.h:149
String d_type
String holding the type of object created by this factory.
Definition: cegui/include/CEGUI/WindowFactory.h:167
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
void stop()
stop generating alarm event
Definition: Minesweeper_Timer.cpp:77
bool isStarted() const
Check wether the timer is started or not.
Definition: Minesweeper_Timer.cpp:81
void setDelay(float delay)
Set the delay between to event generation in seconds.
Definition: Minesweeper_Timer.cpp:85
String class used within the GUI system.
Definition: cegui/include/CEGUI/String.h:62