ui_components.h File Reference

#include "../../common/common.h"
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 (struct uiNode_s *component)
 Add a new component to the list of all components.
struct uiNode_sUI_GetComponent (const char *name)
 Searches all components for the specified one.

Detailed Description

Definition in file ui_components.h.


Function Documentation

struct uiNode_s* UI_GetComponent ( const char *  name  )  [read]

Searches all components for the specified one.

Parameters:
[in] name Name of the component we search
Returns:
The component found, else NULL
Note:
Use dichotomic search

Definition at line 34 of file ui_components.c.

References uiGlobal_s::components, uiNode_s::name, uiGlobal_s::numComponents, and ui_global.

Referenced by UI_AbstractNodeCallCreateChild(), and UI_ParseNode().

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.c.

References Com_Error(), uiGlobal_s::components, ERR_FATAL, i, uiNode_s::name, uiGlobal_s::numComponents, pos, ui_global, and UI_MAX_COMPONENTS.

Referenced by UI_ParseComponent().


Generated by  doxygen 1.6.2