ui_draw.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void UI_InitDraw (void)
void UI_Draw (void)
 Draws the window stack.
void UI_DisplayNotice (const char *text, int time, const char *windowName)
 Displays a message over all windows.
void UI_DrawCursor (void)
void UI_CaptureDrawOver (struct uiNode_s *node)
 Capture a node we will draw over all nodes (per window).

Detailed Description

Definition in file ui_draw.h.


Function Documentation

void UI_CaptureDrawOver ( uiNode_t node  ) 

Capture a node we will draw over all nodes (per window).

Note:
The node must be captured every frames
Todo:
it can be better to capture the draw over only one time (need new event like mouseEnter, mouseLeave)

Definition at line 62 of file ui_draw.c.

Referenced by UI_EditorNodeDraw(), UI_SelectBoxNodeDraw(), UI_TodoNodeDraw(), and UI_VideoNodeDraw().

void UI_DisplayNotice ( const char *  text,
int  time,
const char *  windowName 
)

Displays a message over all windows.

See also:
HUD_DisplayMessage
Parameters:
[in] time is a ms values
[in] text text is already translated here
[in] windowName Window name where we must display the notice; else NULL to use the current active window

Definition at line 411 of file ui_draw.c.

References CL_Milliseconds(), Com_Printf(), noticeText, noticeTime, Q_strncpyz(), UI_GetActiveWindow(), and UI_GetWindow().

Referenced by E_EmployeeDelete_f(), E_EmployeeHire_f(), HUD_DisplayMessage(), UI_CheckCvar(), and UI_KeyBindingNodeKeyPressed().

void UI_Draw ( void   ) 
void UI_DrawCursor ( void   ) 

Definition at line 399 of file ui_draw.c.

References mousePosX, mousePosY, and UI_DrawDragAndDrop().

Referenced by SCR_DrawCursor().

void UI_InitDraw ( void   ) 

Definition at line 427 of file ui_draw.c.

References CVAR_ARCHIVE, Cvar_Get(), TOOLTIP_DELAY, UI_AllocTimer(), and UI_CheckTooltipDelay().

Referenced by UI_Init().


Generated by  doxygen 1.6.2