|
Wt examples
4.10.4
|
A widget which displays a decrementing number. More...
#include <CountDownWidget.h>
Public Member Functions | |
| CountDownWidget (int start, int stop, std::chrono::milliseconds msec) | |
| Create a new CountDownWidget. | |
| Signal & | done () |
| Signal emitted when the countdown reached stop. | |
| void | cancel () |
| Cancel the count down. | |
Private Member Functions | |
| void | timerTick () |
| Process one timer tick. | |
Private Attributes | |
| Signal | done_ |
| int | start_ |
| int | stop_ |
| int | current_ |
| std::unique_ptr< WTimer > | timer_ |
A widget which displays a decrementing number.
Definition at line 26 of file CountDownWidget.h.
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 | ( | ) |
|
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.