UFO: Alien Invasion
Loading...
Searching...
No Matches
ui_components.h File Reference
Include dependency graph for ui_components.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void UI_InsertComponent (uiNode_t *component)
 Add a new component to the list of all components.
uiNode_t * UI_GetComponent (const char *name)
 Searches all components for the specified one.

Function Documentation

◆ UI_GetComponent()

uiNode_t * UI_GetComponent ( const char * name)

Searches all components for the specified one.

Parameters
[in]nameName of the component we search
Returns
The component found, else nullptr
Note
Use dichotomic search

Definition at line 34 of file ui_components.cpp.

References uiGlobal_t::components, name, uiNode_t::name, uiGlobal_t::numComponents, UI_GetComponent(), and ui_global.

Referenced by UI_AbstractNodeCallCreateChild(), UI_CreateComponent(), UI_CreateControl(), UI_GetComponent(), UI_ParseComponent(), and UI_ParseNode().

◆ UI_InsertComponent()

void UI_InsertComponent ( uiNode_t * component)

Add a new component to the list of all components.

Note
Sort components by alphabet

Definition at line 61 of file ui_components.cpp.

References Com_Error(), uiGlobal_t::components, ERR_FATAL, i, uiNode_t::name, uiGlobal_t::numComponents, ui_global, UI_InsertComponent(), and UI_MAX_COMPONENTS.

Referenced by UI_CreateComponent(), UI_InsertComponent(), and UI_ParseComponent().