UFO: Alien Invasion
Loading...
Searching...
No Matches
uiTimer_t Struct Reference

#include <ui_timer.h>

Collaboration diagram for uiTimer_t:
Collaboration graph

Data Fields

struct uiTimer_s * next
struct uiTimer_s * prev
int nextTime
uiNode_towner
timerCallback_t callback
int calledTime
int delay
voiduserData
bool isRunning

Detailed Description

Todo
We can use void* for the owner type, and allow to use it outside nodes

Definition at line 36 of file ui_timer.h.

Field Documentation

◆ callback

timerCallback_t uiTimer_t::callback

function called every delay

Definition at line 42 of file ui_timer.h.

◆ calledTime

int uiTimer_t::calledTime

time we call the function. For the first call the value is 1

Definition at line 43 of file ui_timer.h.

◆ delay

int uiTimer_t::delay

delay in millisecond between each call of

Definition at line 45 of file ui_timer.h.

◆ isRunning

bool uiTimer_t::isRunning

true if the timer is running

Definition at line 47 of file ui_timer.h.

◆ next

struct uiTimer_s* uiTimer_t::next

next timer in the ordered list of active timers

Definition at line 37 of file ui_timer.h.

Referenced by TEST_F(), and UI_InsertTimerInActiveList().

◆ nextTime

int uiTimer_t::nextTime

next time we must call the callback function. Must node be edited, it used to sort linkedlist of timers

Definition at line 39 of file ui_timer.h.

Referenced by UI_InsertTimerInActiveList().

◆ owner

uiNode_t* uiTimer_t::owner

owner node of the timer

Definition at line 41 of file ui_timer.h.

Referenced by TEST_F().

◆ prev

struct uiTimer_s* uiTimer_t::prev

previous timer in the ordered list of active timers

Definition at line 38 of file ui_timer.h.

Referenced by UI_InsertTimerInActiveList().

◆ userData

void* uiTimer_t::userData

free to use data, not used by the core functions

Definition at line 46 of file ui_timer.h.


The documentation for this struct was generated from the following file: