Wt examples
3.3.6
|
A widget which displays a decrementing number. More...
#include <CountDownWidget.h>
Public Member Functions | |
CountDownWidget (int start, int stop, unsigned msec, WContainerWidget *parent=0) | |
Create a new CountDownWidget. More... | |
Wt::Signal< void > & | done () |
Signal emitted when the countdown reached stop. More... | |
void | cancel () |
Cancel the count down. More... | |
Private Member Functions | |
void | timerTick () |
Process one timer tick. More... | |
Private Attributes | |
Wt::Signal< void > | done_ |
int | start_ |
int | stop_ |
int | current_ |
WTimer * | timer_ |
A widget which displays a decrementing number.
Definition at line 25 of file CountDownWidget.h.
CountDownWidget::CountDownWidget | ( | int | start, |
int | stop, | ||
unsigned | msec, | ||
WContainerWidget * | parent = 0 |
||
) |
Create a new CountDownWidget.
The widget will count down from start to stop, decrementing the number every msec milliseconds.
Definition at line 12 of file CountDownWidget.C.
void CountDownWidget::cancel | ( | ) |
Cancel the count down.
Definition at line 30 of file CountDownWidget.C.
|
inline |
|
private |
|
private |
Definition at line 49 of file CountDownWidget.h.
|
private |
Definition at line 45 of file CountDownWidget.h.
|
private |
Definition at line 46 of file CountDownWidget.h.
|
private |
Definition at line 47 of file CountDownWidget.h.
|
private |
Definition at line 51 of file CountDownWidget.h.