|
CFx SDK Documentation 2024 SP0
|
#include <FxUITimer.h>
Public Member Functions | |
| CFxUITimer () | |
| ~CFxUITimer () | |
| void | start (int msec) |
| void | stop () |
| bool | isActive () const |
| CFxUISignal< void(void)> & | timeout () |
Public Member Functions inherited from CFxUIObject | |
| CFxUIObject () | |
| virtual | ~CFxUIObject () |
| FxNativeHandle | getHandle () const |
| void | setHandle (FxNativeHandle handle) |
| void | setParent (CFxUIObject *parent) |
| CFxUIObject * | parent () |
| const CFxUIObject * | parent () const |
| void | setObjectName (const CFxUIString &objectName) |
| CFxUIString | objectName () const |
| bool | setProperty (const char *name, const CFxUIVariant &value) |
| CFxUIVariant | property (const char *name) |
| CFxUIList< CFxUIObject * > | children () const |
| template<typename T > | |
| CFxUIList< T > | findChildren (const CFxUIString &name=CFxUIString()) |
| void | blockSignals (bool block) |
| bool | signalsBlocked () const |
Static Public Member Functions | |
| static void | singleShot (int msec, std::function< void() > function) |
| static void | singleShot (int msec, CFxUIObject *view, std::function< void() > function) |
Additional Inherited Members | |
Protected Member Functions inherited from CFxUIObject | |
| CFxUIObject * | sender () |
Protected Attributes inherited from CFxUIObject | |
| CFxUIObjectImpl * | m_pImpl |
| CFxUIObjectData * | m_pData |
Class CFxUITimer provides repetitive and single-shot timers.
Definition at line 30 of file FxUITimer.h.
| CFxUITimer::CFxUITimer | ( | ) |
Constructor
| CFxUITimer::~CFxUITimer | ( | ) |
Destructor
| bool CFxUITimer::isActive | ( | ) | const |
Returns if timer is running.
| _bool_ | It returns true if the timer is running (pending); otherwise returns false. |
|
static |
Static function calls a slot after a given time interval.
| msec | |
| view | |
| function |
Static function calls a slot after a given time interval.
| msec | |
| function |
| void CFxUITimer::start | ( | int | msec | ) |
Starts or restarts the timer with a timeout of duration msec milliseconds.
If the timer is already running, it will be stopped and restarted.
| msec | Input |
| void CFxUITimer::stop | ( | ) |
Stops the timer.
| CFxUISignal< void(void)> & CFxUITimer::timeout | ( | ) |
Signal is emitted when the timer times out.