#ifndef WXD_TIMER_H
#define WXD_TIMER_H
#include "../wxd_types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
WXD_TIMER_NOTIFY_DEFAULT = 0, WXD_TIMER_NOTIFY_ONESHOT = 1 } WXDTimerNotify;
typedef enum {
WXD_TIMER_STATUS_IDLE = 0, WXD_TIMER_STATUS_RUNNING = 1 } WXDTimerStatus;
WXD_EXPORTED wxd_Timer_t* wxd_Timer_Create(wxd_EvtHandler_t* owner);
WXD_EXPORTED void wxd_Timer_Destroy(wxd_Timer_t* self);
WXD_EXPORTED bool wxd_Timer_Start(wxd_Timer_t* self, int milliseconds, bool oneShot);
WXD_EXPORTED void wxd_Timer_Stop(wxd_Timer_t* self);
WXD_EXPORTED bool wxd_Timer_IsRunning(wxd_Timer_t* self);
WXD_EXPORTED int wxd_Timer_GetInterval(wxd_Timer_t* self);
WXD_EXPORTED void wxd_Timer_SetInterval(wxd_Timer_t* self, int milliseconds);
#ifdef __cplusplus
}
#endif
#endif