#include "../../../shared/mathlib.h"
Go to the source code of this file.
Data Structures | |
struct | node_index_s |
struct | windowExtraData_t |
extradata for the window node More... | |
Defines | |
#define | INDEXEDCHILD_HASH_SIZE 32 |
Typedefs | |
typedef struct node_index_s | node_index_t |
Functions | |
void | UI_RegisterWindowNode (struct uiBehaviour_s *behaviour) |
qboolean | UI_WindowIsFullScreen (const struct uiNode_s *const window) |
qboolean | UI_WindowIsDropDown (const struct uiNode_s *const window) |
True if the window is a drop down. | |
qboolean | UI_WindowIsModal (const struct uiNode_s *const window) |
True if the window is a modal. | |
void | UI_WindowNodeRegisterKeyBinding (struct uiNode_s *window, struct uiKeyBinding_s *binding) |
Add a key binding to a window node. Window node store key bindings for his node child. | |
struct uiKeyBinding_s * | UI_WindowNodeGetKeyBinding (const struct uiNode_s *const node, unsigned int key) |
Search a a key binding from a window node. Window node store key bindings for his node child. | |
void | UI_WindowNodeSetRenderNode (struct uiNode_s *node, struct uiNode_s *renderNode) |
vec_t * | UI_WindowNodeGetNoticePosition (struct uiNode_s *node) |
Get the noticePosition from a window node. | |
struct uiNode_s * | UI_WindowNodeGetIndexedChild (struct uiNode_s *const node, const char *childName) |
Get a node from child index. | |
qboolean | UI_WindowNodeAddIndexedNode (struct uiNode_s *const node, struct uiNode_s *const child) |
Add a node to the child index. | |
qboolean | UI_WindowNodeRemoveIndexedNode (struct uiNode_s *const node, struct uiNode_s *const child) |
Remove a node from the child index. | |
Variables | |
struct uiBehaviour_s const * | ui_windowBehaviour |
Definition in file ui_node_window.h.
#define INDEXEDCHILD_HASH_SIZE 32 |
Definition at line 38 of file ui_node_window.h.
Referenced by UI_WindowNodeAddIndexedNode(), UI_WindowNodeClone(), and UI_WindowNodeGetIndexedChild().
typedef struct node_index_s node_index_t |
void UI_RegisterWindowNode | ( | struct uiBehaviour_s * | behaviour | ) |
Definition at line 468 of file ui_node_window.c.
References uiBehaviour_s::clone, uiBehaviour_s::close, uiBehaviour_s::doLayout, uiBehaviour_s::draw, EXTRADATA_TYPE, uiBehaviour_s::extraDataSize, uiBehaviour_s::init, uiBehaviour_s::loaded, uiBehaviour_s::loading, uiBehaviour_s::name, uiBehaviour_s::properties, UI_WindowNodeClone(), UI_WindowNodeClose(), UI_WindowNodeDoLayout(), UI_WindowNodeDraw(), UI_WindowNodeInit(), UI_WindowNodeLoaded(), and UI_WindowNodeLoading().
True if the window is a drop down.
node | A window node |
Definition at line 419 of file ui_node_window.c.
References EXTRADATACONST.
Referenced by UI_GetNodeAtPosition(), and UI_LeftClick().
True if the window is a modal.
node | A window node |
Definition at line 429 of file ui_node_window.c.
References EXTRADATACONST.
Referenced by UI_GetNodeAtPosition(), and UI_KeyPressed().
Add a node to the child index.
Definition at line 90 of file ui_node_window.c.
References Com_HashKey(), EXTRADATA, hash(), node_index_s::hash_next, INDEXEDCHILD_HASH_SIZE, Mem_PoolAlloc, uiNode_s::name, node_index_s::next, node_index_s::node, qfalse, and ui_sysPool.
Referenced by UI_InsertNode().
struct uiNode_s* UI_WindowNodeGetIndexedChild | ( | uiNode_t *const | node, | |
const char * | childName | |||
) | [read] |
Get a node from child index.
Definition at line 73 of file ui_node_window.c.
References Com_HashKey(), EXTRADATA, hash(), node_index_s::hash_next, INDEXEDCHILD_HASH_SIZE, uiNode_s::name, and node_index_s::node.
Referenced by UI_ReadNodePath().
struct uiKeyBinding_s* UI_WindowNodeGetKeyBinding | ( | const struct uiNode_s *const | node, | |
unsigned int | key | |||
) | [read] |
Search a a key binding from a window node. Window node store key bindings for his node child.
node | A window node | |
key | A key code, either K_ value or lowercase ascii |
Definition at line 456 of file ui_node_window.c.
References EXTRADATACONST, uiKeyBinding_s::key, uiKeyBinding_s::next, and UI_NodeInstanceOf().
Referenced by UI_KeyPressedInWindow().
Get the noticePosition from a window node.
node | A window node |
Definition at line 407 of file ui_node_window.c.
References EXTRADATA.
Referenced by UI_DrawNotice().
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.
node | A window node | |
binding | Key binding to link with the window (structure should not be already linked somewhere) |
Definition at line 441 of file ui_node_window.c.
References EXTRADATA, uiKeyBinding_s::next, and UI_NodeInstanceOf().
Referenced by UI_SetKeyBinding().
qboolean UI_WindowNodeRemoveIndexedNode | ( | struct uiNode_s *const | node, | |
struct uiNode_s *const | child | |||
) |
Remove a node from the child index.
FIXME implement it
Definition at line 117 of file ui_node_window.c.
References qfalse.
Referenced by UI_RemoveNode().
Definition at line 276 of file ui_node_window.c.
References Com_Printf(), EXTRADATA, UI_GetPath(), and UI_NodeInstanceOf().
Referenced by UI_ZoneNodeLoaded().
struct uiBehaviour_s const* ui_windowBehaviour |
Definition at line 54 of file ui_node_window.c.
Referenced by UI_ReadNodePath().