Wt examples 3.3.12
CountDownWidget.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
3 *
4 * See the LICENSE file for terms of use.
5 */
6// This may look like C code, but it's really -*- C++ -*-
7#ifndef WCOUNTDOWNWIDGET_H_
8#define WCOUNTDOWNWIDGET_H_
9
10#include <Wt/WText>
11
12namespace Wt {
13 class WTimer;
14}
15
16using namespace Wt;
17
22
25class CountDownWidget : public WText
26{
27public:
33 CountDownWidget(int start, int stop, unsigned msec,
35
39
42 void cancel();
43
44private:
46 int start_;
47 int stop_;
48
50
52
55 void timerTick();
56};
57
60#endif // WCOUNTDOWNWIDGET_H_
A widget which displays a decrementing number.
void cancel()
Cancel the count down.
Wt::Signal< void > & done()
Signal emitted when the countdown reached stop.
void timerTick()
Process one timer tick.
Wt::Signal< void > done_
WWidget * parent() const

Generated on Fri May 17 2024 for the C++ Web Toolkit (Wt) by doxygen 1.9.8