{
class Timer;
}
-}
+} // namespace DALI_INTERNAL
/**
* @brief Mechanism to issue simple periodic or one-shot events.
*/
class DALI_ADAPTOR_API Timer : public BaseHandle
{
-public: // Signal typedefs
-
- typedef Signal< bool () > TimerSignalType; ///< Timer finished signal callback type @SINCE_1_0.0
+public: // Signal typedefs
+ typedef Signal<bool()> TimerSignalType; ///< Timer finished signal callback type @SINCE_1_0.0
public: // API
-
/**
* @brief Constructor, creates an uninitialized timer.
*
* @param[in] milliSec Interval in milliseconds
* @return A new timer
*/
- static Timer New( unsigned int milliSec );
+ static Timer New(unsigned int milliSec);
/**
* @brief Copy constructor.
* @SINCE_1_0.0
* @param[in] timer The handle to copy. The copied handle will point at the same implementation
*/
- Timer( const Timer& timer );
+ Timer(const Timer& timer);
/**
* @brief Assignment operator.
* as the copied handle
* @return Reference to this timer handle
*/
- Timer& operator=( const Timer& timer );
+ Timer& operator=(const Timer& timer);
/**
* @brief Move constructor.
* @SINCE_1_9.24
* @param[in] rhs A reference to the moved handle
*/
- Timer( Timer&& rhs );
+ Timer(Timer&& rhs);
/**
* @brief Move assignment operator.
* @param[in] rhs A reference to the moved handle
* @return A reference to this handle
*/
- Timer& operator=( Timer&& rhs );
+ Timer& operator=(Timer&& rhs);
/**
* @brief Destructor.
* @param[in] handle to An object
* @return handle to a Timer object or an uninitialized handle
*/
- static Timer DownCast( BaseHandle handle );
+ static Timer DownCast(BaseHandle handle);
/**
* @brief Starts timer.
* @SINCE_1_0.0
* @param[in] milliSec Interval in milliseconds
*/
- void SetInterval( unsigned int milliSec );
+ void SetInterval(unsigned int milliSec);
/**
* @brief Sets a new interval on the timer with option to restart the timer.
* @param[in] milliSec Interval in milliseconds
* @param[in] restart Flag to set enabled to restart or not.
*/
- void SetInterval( unsigned int milliSec, bool restart );
+ void SetInterval(unsigned int milliSec, bool restart);
/**
* @brief Gets the interval of timer.
bool IsRunning() const;
public: // Signals
-
/**
* @brief Signal emitted after specified time interval.
*