44typedef struct uiSharedData_s {
57#define MAX_DEPTH_OPTIONITERATORCACHE 8
QGL_EXTERN GLsizei const GLvoid * data
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Atomic structure used to define most of the UI.
uiNode_t * depthCache[MAX_DEPTH_OPTIONITERATORCACHE]
Cross-platform type definitions.
uiNode_t * UI_InitOptionIteratorAtIndex(int index, uiNode_t *option, uiOptionIterator_t *iterator)
Init an option iterator at an index.
void UI_RegisterOption(int dataId, uiNode_t *option)
void UI_InitData(void)
Initialize console command about UI shared data.
void UI_UpdateInvisOptions(uiNode_t *option, const linkedList_t *stringList)
Unhide those options that are stored in the linked list and hide the others.
void UI_ResetData(int dataId)
Reset a shared data. Type became NONE and value became nullptr.
int UI_GetDataIDByName(const char *name)
Return a dataId by name.
uiNode_t * UI_GetOption(int dataId)
void UI_SortOptions(uiNode_t **first)
Sort options by alphabet.
int UI_FindOptionPosition(uiOptionIterator_t *iterator, const uiNode_t *option)
Find an option position from an option iterator.
void UI_RegisterText(int dataId, const char *text)
share a text with a data id
void UI_RegisterLinkedListText(int dataId, linkedList_t *text)
share a linked list of text with a data id
const char * UI_GetText(int textId)
uiNode_t * UI_OptionIteratorNextOption(uiOptionIterator_t *iterator)
Find the next element from the iterator Iterator skipCollapsed and skipInvisible attribute can contro...
const char * UI_GetTextFromList(int textId, int line)
int UI_GetDataVersion(int textId)
uiNode_t * UI_AddOption(uiNode_t **tree, const char *name, const char *label, const char *value)
Append an option to an option list.
uiNode_t * UI_FindOptionByValue(uiOptionIterator_t *iterator, const char *value)
Find an option (and all his parents) by is value.
@ UI_SHARED_LINKEDLISTTEXT
#define MAX_DEPTH_OPTIONITERATORCACHE
uiNode_t * option
Holds a linked list for option (label, action, icon...).
const char * text
Holds static array of characters to display.
linkedList_t * linkedListText
Holds a linked list for displaying in the UI.