diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-04-22 08:01:43 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-04-22 08:01:43 -0600 |
commit | 11278c31a01b6fdfb09e2a3109a20d38ef793055 (patch) | |
tree | c0f670c168d61c819c5d888eb6726121068e6f27 /NxWidgets/libnxwidgets/include/cnxtimer.hxx | |
parent | 58d19e46e06d8b0f06c997f001b159682d76672f (diff) | |
download | nuttx-11278c31a01b6fdfb09e2a3109a20d38ef793055.tar.gz nuttx-11278c31a01b6fdfb09e2a3109a20d38ef793055.tar.bz2 nuttx-11278c31a01b6fdfb09e2a3109a20d38ef793055.zip |
Fixes to strchr, mkfats, and NxWidgets from Petteri Aimonen
Diffstat (limited to 'NxWidgets/libnxwidgets/include/cnxtimer.hxx')
-rw-r--r-- | NxWidgets/libnxwidgets/include/cnxtimer.hxx | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/NxWidgets/libnxwidgets/include/cnxtimer.hxx b/NxWidgets/libnxwidgets/include/cnxtimer.hxx index d4715b378..ab3727de3 100644 --- a/NxWidgets/libnxwidgets/include/cnxtimer.hxx +++ b/NxWidgets/libnxwidgets/include/cnxtimer.hxx @@ -73,7 +73,7 @@ /**************************************************************************** * Included Files ****************************************************************************/ - + #include <nuttx/config.h> #include <stdint.h> @@ -87,11 +87,11 @@ /**************************************************************************** * Pre-Processor Definitions ****************************************************************************/ - + /**************************************************************************** * Implementation Classes ****************************************************************************/ - + #if defined(__cplusplus) namespace NXWidgets @@ -102,7 +102,7 @@ namespace NXWidgets * Timer widget. It can drive time-based events, animations, etc. * * Using the timer is simple: - * - Create an instance of the CNxTimer and add it as a child to a widget. + * - Create an instance of the CNxTimer and add it as a child to a widget. * - Call the instance's "start()" method. * - Catch the timer's action event and call any code that should run. */ @@ -170,6 +170,12 @@ namespace NXWidgets void stop(void); /** + * Returns true if the timer is currently running. + */ + + inline bool isRunning() const { return m_isRunning; } + + /** * Set the timeout of this timer. This timeout value will not * take effect until start() or reset() is called. * @@ -181,7 +187,7 @@ namespace NXWidgets { m_timeout = timeout; } - + /** * Return the timeout of this timer. * |