|
UFO: Alien Invasion
|
#include "../../shared/cxx.h"

Go to the source code of this file.
Data Structures | |
| struct | uiTimer_t |
Typedefs | |
| typedef void(* | timerCallback_t) (uiNode_t *node, struct uiTimer_s *timer) |
Functions | |
| uiTimer_t * | UI_AllocTimer (uiNode_t *node, int firstDelay, timerCallback_t callback) __attribute__((warn_unused_result)) |
| Allocate a new time for a node. | |
| void | UI_TimerStart (uiTimer_t *timer) |
| Restart a timer. | |
| void | UI_TimerStop (uiTimer_t *timer) |
| Stop a timer. | |
| void | UI_TimerRelease (uiTimer_t *timer) |
| Release the timer. It no more exists. | |
| void | UI_ResetTimers (void) |
| void | UI_HandleTimers (void) |
| Internal function to handle timers. | |
Definition at line 31 of file ui_timer.h.
| uiTimer_t * UI_AllocTimer | ( | uiNode_t * | node, |
| int | firstDelay, | ||
| timerCallback_t | callback ) |
Allocate a new time for a node.
| [in] | node | node parent of the timer |
| [in] | firstDelay | millisecond delay to wait the callback |
| [in] | callback | callback function to call every delay |
Definition at line 123 of file ui_timer.cpp.
References Com_Error(), ERR_FATAL, i, UI_TIMER_SLOT_NUMBER, and ui_timerSlots.
Referenced by CL_BattlescapeRadarGenerateAll_f(), uiSpinnerNode::onMouseDown(), uiZoneNode::onMouseDown(), TEST_F(), UI_InitDraw(), UI_MouseDown(), and UI_VScrollbarNodeAction().
Internal function to handle timers.
Definition at line 98 of file ui_timer.cpp.
References CL_Milliseconds(), ui_firstTimer, UI_InsertTimerInActiveList(), and UI_RemoveTimerFromActiveList().
Referenced by UI_Draw().
Definition at line 185 of file ui_timer.cpp.
References OBJZERO, ui_firstTimer, and ui_timerSlots.
Referenced by UI_Shutdown().
Release the timer. It no more exists.
Definition at line 176 of file ui_timer.cpp.
References UI_RemoveTimerFromActiveList().
Referenced by CL_BattlescapeRadarGenerateAllRelease_f(), uiSpinnerNode::onCapturedMouseLost(), uiVScrollbarNode::onCapturedMouseLost(), uiZoneNode::onCapturedMouseLost(), and TEST_F().
Restart a timer.
Definition at line 150 of file ui_timer.cpp.
References CL_Milliseconds(), ui_firstTimer, and UI_InsertTimerInActiveList().
Referenced by CL_BattlescapeRadarGenerateAll_f(), uiSpinnerNode::onMouseDown(), uiZoneNode::onMouseDown(), TEST_F(), UI_Draw(), UI_MouseDown(), and UI_VScrollbarNodeAction().
Stop a timer.
Definition at line 163 of file ui_timer.cpp.
References UI_RemoveTimerFromActiveList().
Referenced by TEST_F(), UI_CheckTooltipDelay(), UI_Draw(), UI_LongPressCallback(), UI_MouseDown(), UI_MouseMove(), and UI_MouseUp().