UFO: Alien Invasion
Loading...
Searching...
No Matches
ui_internal.h File Reference

Internal data use by the UI package. More...

#include "node/ui_node_window.h"
#include "node/ui_node_model.h"
#include "ui_main.h"
#include "ui_actions.h"
#include "ui_behaviour.h"
#include "ui_nodes.h"
#include "ui_sprite.h"
#include "ui_input.h"
#include "ui_expression.h"
#include "ui_data.h"
Include dependency graph for ui_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  uiGlobal_t
 Global data shared into all UI code. More...

Macros

#define UI_MAX_WINDOWS   128
#define UI_MAX_COMPONENTS   128
#define UI_MAX_WINDOWSTACK   32
#define UI_MAX_ACTIONS   2*8192
#define UI_MAX_VARIABLESTACK   64
#define STRUCT_MEMORY_ALIGN   8

Functions

voidUI_AllocHunkMemory (size_t size, int align, bool reset)
void UI_FinishInit (void)
 Finish initialization after everything was loaded.
void UI_FinishWindowsInit (void)
 Finish windows initialization.

Variables

uiGlobal_t ui_global
memPool_tui_sysPool
memPool_tui_dynStringPool
memPool_tui_dynPool

Detailed Description

Internal data use by the UI package.

Note
It should not be include by a file outside the UI package

Definition in file ui_internal.h.

Macro Definition Documentation

◆ STRUCT_MEMORY_ALIGN

#define STRUCT_MEMORY_ALIGN   8

Alignment memory for structures

Todo
Remove it and use something from compiler

Definition at line 104 of file ui_internal.h.

Referenced by UI_AllocNodeWithoutNew(), UI_InitializeNodeBehaviour(), UI_ParseExcludeRect(), and UI_RegisterNodePropertyPosSize_().

◆ UI_MAX_ACTIONS

#define UI_MAX_ACTIONS   2*8192

Definition at line 32 of file ui_internal.h.

Referenced by UI_AllocStaticAction().

◆ UI_MAX_COMPONENTS

#define UI_MAX_COMPONENTS   128

Definition at line 30 of file ui_internal.h.

Referenced by UI_InsertComponent().

◆ UI_MAX_VARIABLESTACK

#define UI_MAX_VARIABLESTACK   64

Definition at line 33 of file ui_internal.h.

Referenced by UI_ExecuteAction().

◆ UI_MAX_WINDOWS

#define UI_MAX_WINDOWS   128

Definition at line 29 of file ui_internal.h.

Referenced by UI_CreateWindow(), UI_InsertWindow(), and UI_ParseWindow().

◆ UI_MAX_WINDOWSTACK

#define UI_MAX_WINDOWSTACK   32

Definition at line 31 of file ui_internal.h.

Referenced by UI_FocusNextActionNode(), and UI_PushWindow().

Function Documentation

◆ UI_AllocHunkMemory()

void * UI_AllocHunkMemory ( size_t size,
int align,
bool reset )

Allocate memory from hunk managed by the UI code This memory is allocated one time, and never released.

Parameters
sizeQuantity of memory expected
alignAlignement of the expected memory
resetIf true initilize the memory with 0
Returns
available memory, else nullptr

Definition at line 126 of file ui_main.cpp.

References ui_global.

Referenced by UI_AllocNodeWithoutNew(), UI_AllocStaticColor(), UI_AllocStaticFloat(), UI_AllocStaticString(), UI_InitializeNodeBehaviour(), UI_ParseExcludeRect(), and UI_RegisterNodePropertyPosSize_().

◆ UI_FinishInit()

void UI_FinishInit ( void )

Finish initialization after everything was loaded.

Note
private function

Definition at line 268 of file ui_main.cpp.

References UI_FinishWindowsInit().

Referenced by UI_InitStack().

◆ UI_FinishWindowsInit()

void UI_FinishWindowsInit ( void )

Finish windows initialization.

Note
private function

Definition at line 665 of file ui_windows.cpp.

References i, UI_ExecuteEventActions(), ui_global, and WINDOWEXTRADATA.

Referenced by UI_FinishInit().

Variable Documentation

◆ ui_dynPool

◆ ui_dynStringPool

memPool_t* ui_dynStringPool
extern

Definition at line 40 of file ui_main.cpp.

◆ ui_global

uiGlobal_t ui_global
extern

Definition at line 38 of file ui_main.cpp.

Referenced by uiText2Node::draw(), uiTextListNode::draw(), uiTextNode::draw(), uiWindowNode::draw(), UI_AllocHunkMemory(), UI_AllocNodeWithoutNew(), UI_AllocStaticAction(), UI_AllocStaticKeyBinding(), UI_AllocStaticSprite(), UI_CloseAllWindow(), UI_CloseWindowByRef(), UI_CompleteWithWindow(), UI_CreateWindow(), UI_DebugListWindows_f(), UI_DeleteWindowFromStack(), UI_Draw(), UI_ExecuteAction(), UI_FinishWindowsInit(), UI_FocusNextActionNode(), UI_FreeStringProperty(), UI_GetActiveWindow(), UI_GetComponent(), UI_GetDataVersion(), UI_GetKeyBindingByIndex(), UI_GetKeyBindingCount(), UI_GetLastFullScreenWindow(), UI_GetNodeAtPosition(), UI_GetOption(), UI_GetSpriteByName(), UI_GetText(), UI_GetTextFromList(), UI_GetUIModel(), UI_GetVariable(), UI_GetWindow(), UI_GetWindowPositionFromStackByName(), UI_Init(), UI_InitRawActionValue(), UI_InitStack(), UI_InsertComponent(), UI_InsertWindow(), UI_InsertWindowIntoStack(), UI_InvalidateStack(), UI_IsMouseOnWindow(), UI_KeyPressed(), UI_LeftClick(), UI_ListUIModels_f(), UI_MoveWindowOnTop(), UI_ParseNodeBody(), UI_ParseProperty(), UI_ParseUIModel(), UI_ParseWindow(), UI_PopWindow(), UI_PopWindowWithEscKey(), UI_PushWindow(), UI_RegisterLinkedListText(), UI_RegisterOption(), UI_RegisterText(), UI_RemoveWindow(), UI_RemoveWindowAtPositionFromStack(), UI_ResetData(), UI_Restart_f(), UI_SetKeyBindingEx(), UI_Shutdown(), UI_SpriteExists(), UI_TextNodeGenerateLineSplit(), uiText2Node::updateCache(), and uiTextNode::updateCache().

◆ ui_sysPool