Helper struct to keep track of the time. More...
Public Member Functions | |
| ttime () | |
| void | set_current_time () |
| Sets the fields to the current time. | |
| bool | step (const unsigned milliseconds=30) |
| Moves the clock x milliseconds forward. | |
Public Attributes | |
| unsigned | hour |
| The number of hours. | |
| unsigned | minute |
| The number of minutes. | |
| unsigned | second |
| The number of seconds. | |
| unsigned | millisecond |
| The number of milliseconds. | |
Helper struct to keep track of the time.
Definition at line 79 of file debug_clock.hpp.
| gui2::tdebug_clock::ttime::ttime | ( | ) |
Definition at line 154 of file debug_clock.cpp.
References gui2::tcontrol::canvas(), gui2::tdebug_clock::clock_, gui2::twidget::set_dirty(), and gui2::tcanvas::set_variable().

| void gui2::tdebug_clock::ttime::set_current_time | ( | ) |
Sets the fields to the current time.
Definition at line 162 of file debug_clock.cpp.
| bool gui2::tdebug_clock::ttime::step | ( | const unsigned | milliseconds = 30 |
) |
Moves the clock x milliseconds forward.
milliseconds is the same as the interval for the drawing routine.milliseconds < 1000.| milliseconds | The number of milliseconds to move ahead. |
Definition at line 173 of file debug_clock.cpp.
References hour, millisecond, minute, and second.
| unsigned gui2::tdebug_clock::ttime::hour |
| unsigned gui2::tdebug_clock::ttime::minute |
| unsigned gui2::tdebug_clock::ttime::second |
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:21:12 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |