A widget which displays a decrementing number.
More...
#include <CountDownWidget.h>
A widget which displays a decrementing number.
Definition at line 26 of file CountDownWidget.h.
◆ CountDownWidget()
CountDownWidget::CountDownWidget |
( |
int |
start, |
|
|
int |
stop, |
|
|
std::chrono::milliseconds |
msec |
|
) |
| |
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.
21 timer_ = std::make_unique<WTimer>();
◆ cancel()
void CountDownWidget::cancel |
( |
| ) |
|
◆ done()
Signal & CountDownWidget::done |
( |
| ) |
|
|
inline |
Signal emitted when the countdown reached stop.
Definition at line 38 of file CountDownWidget.h.
◆ timerTick()
void CountDownWidget::timerTick |
( |
| ) |
|
|
private |
◆ current_
int CountDownWidget::current_ |
|
private |
◆ done_
Signal CountDownWidget::done_ |
|
private |
◆ start_
int CountDownWidget::start_ |
|
private |
◆ stop_
int CountDownWidget::stop_ |
|
private |
◆ timer_
std::unique_ptr<WTimer> CountDownWidget::timer_ |
|
private |
The documentation for this class was generated from the following files: