52#define INDEXEDCHILD_HASH_SIZE 32
54typedef struct node_index_s {
void onWindowClosed(uiNode_t *node) override
Called when we close the node on the screen.
void deleteNode(uiNode_t *node) override
Actions to do on deleting the node.
void setFill(uiNode_t *node, bool value)
void onLoading(uiNode_t *node) override
Called at the begin of the load from script.
void clone(uiNode_t const *source, uiNode_t *clone) override
void onWindowOpened(uiNode_t *node, linkedList_t *params) override
Called when we init the node on the screen.
void onSizeChanged(uiNode_t *node) override
Callback stub.
void onWindowActivate(uiNode_t *node) override
Called when a windows gets active again after some other window was popped from the stack.
void onLoaded(uiNode_t *node) override
Called at the end of the load from script.
void initNode(uiNode_t *node) override
void doLayout(uiNode_t *node) override
Call to update the node layout. This common code revalidates the node tree.
void draw(uiNode_t *node) override
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
int LUA_EVENT
holds a reference to a lua event handler
struct node_index_s * next
struct node_index_s * hash_next
node behaviour, how a node work
Atomic structure used to define most of the UI.
void UI_RegisterWindowNode(uiBehaviour_t *behaviour)
bool UI_WindowIsModal(uiNode_t const *const node)
True if the window is a modal.
void UI_Window_SetBackgroundByName(uiNode_t *node, const char *name)
set background sprite
void UI_Window_FlagFullscreen(uiNode_t *node)
If the node size equals the full screen size, flag the node as isFullscreen, so it is displayed prope...
void UI_WindowNodeRegisterKeyBinding(uiNode_t *node, uiKeyBinding_t *binding)
Add a key binding to a window node. Window node store key bindings for his node child.
void UI_Window_SetCloseButton(uiNode_t *node, bool value)
Create/remove close button on window.
uiKeyBinding_t * UI_WindowNodeGetKeyBinding(uiNode_t const *const node, unsigned int key)
Search a a key binding from a window node. Window node store key bindings for his node child.
bool UI_WindowIsFullScreen(const uiNode_t *const node)
Check if a window is fullscreen or not.
bool UI_WindowIsDropDown(uiNode_t const *const node)
True if the window is a drop down.
vec_t * UI_WindowNodeGetNoticePosition(uiNode_t *node)
Get the noticePosition from a window node.
const uiKeyBinding_t * binding
bool UI_WindowNodeAddIndexedNode(uiNode_t *const node, uiNode_t *const child)
Add a node to the child index.
uiNode_t * UI_WindowNodeGetIndexedChild(uiNode_t *const node, const char *childName)
Get a node from child index.
void UI_Window_SetDragButton(uiNode_t *node, bool value)
Create/remove drag button.
bool UI_WindowNodeRemoveIndexedNode(uiNode_t *const node, uiNode_t *const child)
Remove a node from the child index.
#define INDEXEDCHILD_HASH_SIZE
void UI_WindowNode_SetFill(uiNode_t *node, bool value)