#include "../ui_main.h"
#include "../ui_internal.h"
#include "../ui_parse.h"
#include "../ui_draw.h"
#include "../ui_data.h"
#include "ui_node_abstractoption.h"
#include "ui_node_abstractnode.h"
Go to the source code of this file.
Defines | |
#define | EXTRADATA_TYPE abstractOptionExtraData_t |
#define | EXTRADATA(node) UI_EXTRADATA(node, EXTRADATA_TYPE) |
Functions | |
void | UI_OptionNodeSortOptions (uiNode_t *node) |
Sort options by alphabet. | |
const char * | UI_AbstractOptionGetCurrentValue (uiNode_t *node) |
void | UI_AbstractOptionSetCurrentValue (uiNode_t *node, const char *value) |
static void | UI_AbstractOptionDoLayout (uiNode_t *node) |
uiNode_t * | UI_AbstractOptionGetFirstOption (uiNode_t *node) |
Return the first option of the node. | |
void | UI_RegisterAbstractOptionNode (uiBehaviour_t *behaviour) |
Variables | |
const uiBehaviour_t * | abstractOptionBehaviour |
static const value_t | properties [] |
#define EXTRADATA | ( | node | ) | UI_EXTRADATA(node, EXTRADATA_TYPE) |
Definition at line 35 of file ui_node_abstractoption.c.
Referenced by UI_AbstractBaseNodeLoaded(), UI_AbstractOptionDoLayout(), UI_AbstractOptionGetCurrentValue(), UI_AbstractOptionGetFirstOption(), UI_AbstractOptionSetCurrentValue(), UI_AbstractScrollableNodeIsSizeChange(), UI_AbstractScrollableNodeMoveDown(), UI_AbstractScrollableNodeMoveEnd(), UI_AbstractScrollableNodeMoveUp(), UI_AbstractScrollableNodePageDown(), UI_AbstractScrollableNodePageUp(), UI_AbstractScrollableNodeScrollY(), UI_AbstractScrollableNodeSetY(), UI_AbstractValueClone(), UI_AbstractValueDelete(), UI_AbstractValueLoaded(), UI_AbstractValueNew(), UI_BarNodeCapturedMouseMove(), UI_BarNodeDraw(), UI_BarNodeLoading(), UI_BarNodeMouseDown(), UI_BaseInventoryNodeDNDEnter(), UI_BaseInventoryNodeDraw(), UI_BaseInventoryNodeDraw2(), UI_BaseInventoryNodeDrawItems(), UI_BaseInventoryNodeLoaded(), UI_BaseInventoryNodeLoading(), UI_BaseInventoryNodeMouseDown(), UI_BaseInventoryNodeUpdateScroll(), UI_BaseInventoryNodeWheel(), UI_BaseLayoutNodeDraw(), UI_ButtonNodeDraw(), UI_CheckBoxNodeActivate(), UI_CheckBoxNodeDraw(), UI_ClientLayout(), UI_ColumnLayout(), UI_ContainerNodeAutoPlace(), UI_ContainerNodeDNDEnter(), UI_ContainerNodeDNDFinished(), UI_ContainerNodeDNDMove(), UI_ContainerNodeDraw(), UI_ContainerNodeDrawDropPreview(), UI_ContainerNodeDrawFreeSpace(), UI_ContainerNodeDrawGrid(), UI_ContainerNodeDrawSingle(), UI_ContainerNodeLoaded(), UI_ContainerNodeLoading(), UI_ContainerNodeMouseDown(), UI_ContainerNodeUpdateScroll(), UI_ContainerNodeWheel(), UI_CustomButtonNodeDraw(), UI_DrawModelNode(), UI_DrawModelNodeWithUIModel(), UI_EKGNodeDraw(), UI_EKGNodeLoading(), UI_ImageNodeDraw(), UI_ImageNodeLoaded(), UI_InitModelInfoView(), UI_ItemNodeDraw(), UI_KeyBindingNodeDraw(), UI_KeyBindingNodeKeyPressed(), UI_KeyBindingNodeLoading(), UI_LineChartNodeDraw(), UI_MaterialEditorNodeDraw(), UI_MaterialEditorNodeGetImageAtPosition(), UI_MessageListNodeDraw(), UI_ModelNodeCapturedMouseMove(), UI_ModelNodeClone(), UI_ModelNodeDelete(), UI_ModelNodeDraw(), UI_ModelNodeLoaded(), UI_ModelNodeLoading(), UI_ModelNodeMouseDown(), UI_ModelNodeNew(), UI_OptionDoLayout(), UI_OptionListNodeDraw(), UI_OptionListNodeGetOptionAtPosition(), UI_OptionListNodeLoading(), UI_OptionListNodeMouseWheel(), UI_OptionListNodeUpdateScroll(), UI_OptionTreeNodeDraw(), UI_OptionTreeNodeGetFirstOption(), UI_OptionTreeNodeGetOptionAtPosition(), UI_OptionTreeNodeLoading(), UI_OptionTreeNodeMouseWheel(), UI_OptionTreeNodeUpdateCache(), UI_OptionTreeNodeUpdateScroll(), UI_OptionTreeSetSelectedValue(), UI_PanelNodeDoLayout(), UI_PanelNodeGetClientPosition(), UI_PanelNodeLoaded(), UI_RadioButtonNodeActivate(), UI_RadioButtonNodeDraw(), UI_RowsNodeDraw(), UI_RowsNodeLoaded(), UI_SelectBoxNodeCapturedMouseMove(), UI_SelectBoxNodeClick(), UI_SelectBoxNodeDrawOverWindow(), UI_SpinnerNodeDraw(), UI_SpinnerNodeStep(), UI_StringNodeDraw(), UI_StringNodeDrawTooltip(), UI_StringNodeLoading(), UI_TabNodeDraw(), UI_TabNodeInit(), UI_TBarNodeDraw(), UI_TextEntryFocusLost(), UI_TextEntryNodeAbortEdition(), UI_TextEntryNodeDraw(), UI_TextLineNodeDrawText(), UI_TextListNodeClick(), UI_TextListNodeDraw(), UI_TextListNodeLoading(), UI_TextListNodeMouseMove(), UI_TextListNodeRightClick(), UI_TextNodeClick(), UI_TextNodeDraw(), UI_TextNodeDrawText(), UI_TextNodeGenerateLineSplit(), UI_TextNodeLoaded(), UI_TextNodeLoading(), UI_TextNodeMouseMove(), UI_TextNodeRightClick(), UI_TextNodeSelectLine(), UI_TextScrollEnd(), UI_TextUpdateCache(), UI_TextValidateCache(), UI_VideoNodeClose(), UI_VideoNodeDraw(), UI_VideoNodeDrawOverWindow(), UI_VideoNodeInit(), UI_VScrollbarNodeAction(), UI_VScrollbarNodeCapturedMouseMove(), UI_VScrollbarNodeDiff(), UI_VScrollbarNodeDraw(), UI_VScrollbarNodeGetElementSize(), UI_VScrollbarNodeMouseDown(), UI_VScrollbarNodeMouseUp(), UI_VScrollbarNodeSet(), UI_VScrollbarNodeWheel(), UI_WindowNodeAddIndexedNode(), UI_WindowNodeClone(), UI_WindowNodeClose(), UI_WindowNodeDoLayout(), UI_WindowNodeDraw(), UI_WindowNodeGetIndexedChild(), UI_WindowNodeGetNoticePosition(), UI_WindowNodeInit(), UI_WindowNodeLoaded(), UI_WindowNodeRegisterKeyBinding(), UI_WindowNodeSetRenderNode(), UI_ZoneNodeDown(), UI_ZoneNodeLoading(), and UI_ZoneNodeUp().
#define EXTRADATA_TYPE abstractOptionExtraData_t |
Definition at line 34 of file ui_node_abstractoption.c.
Referenced by UI_RegisterAbstractBaseNode(), UI_RegisterAbstractOptionNode(), UI_RegisterAbstractScrollableNode(), UI_RegisterAbstractScrollbarNode(), UI_RegisterAbstractValueNode(), UI_RegisterBarNode(), UI_RegisterButtonNode(), UI_RegisterContainerNode(), UI_RegisterCustomButtonNode(), UI_RegisterEKGNode(), UI_RegisterImageNode(), UI_RegisterKeyBindingNode(), UI_RegisterLineChartNode(), UI_RegisterMapNode(), UI_RegisterModelNode(), UI_RegisterOptionNode(), UI_RegisterPanelNode(), UI_RegisterRadioButtonNode(), UI_RegisterRowsNode(), UI_RegisterSequenceNode(), UI_RegisterStringNode(), UI_RegisterTBarNode(), UI_RegisterText2Node(), UI_RegisterTextEntryNode(), UI_RegisterTextNode(), UI_RegisterVideoNode(), UI_RegisterWindowNode(), and UI_RegisterZoneNode().
static void UI_AbstractOptionDoLayout | ( | uiNode_t * | node | ) | [static] |
Definition at line 104 of file ui_node_abstractoption.c.
References uiNode_s::behaviour, count, EXTRADATA, uiNode_s::firstChild, uiNode_s::invalidated, uiNode_s::invis, uiNode_s::next, qfalse, ui_optionBehaviour, and UI_Validate().
Referenced by UI_RegisterAbstractOptionNode().
const char* UI_AbstractOptionGetCurrentValue | ( | uiNode_t * | node | ) |
Definition at line 56 of file ui_node_abstractoption.c.
References Com_Printf(), EXTRADATA, UI_GetPath(), and UI_GetReferenceString().
Referenced by UI_OptionListNodeClick(), UI_OptionListNodeDraw(), UI_OptionTreeNodeClick(), UI_OptionTreeNodeDraw(), UI_SelectBoxNodeClick(), UI_SelectBoxNodeDraw(), UI_SelectBoxNodeDrawOverWindow(), UI_TabNodeClick(), and UI_TabNodeDraw().
Return the first option of the node.
Definition at line 126 of file ui_node_abstractoption.c.
References uiNode_s::behaviour, count, EXTRADATA, uiNode_s::firstChild, uiNode_s::invis, uiNode_s::next, qfalse, UI_GetDataVersion(), UI_GetOption(), and ui_optionBehaviour.
Referenced by UI_OptionListNodeDraw(), UI_OptionListNodeGetOptionAtPosition(), UI_SelectBoxNodeCapturedMouseMove(), UI_SelectBoxNodeClick(), UI_SelectBoxNodeDraw(), and UI_SelectBoxNodeDrawOverWindow().
void UI_AbstractOptionSetCurrentValue | ( | uiNode_t * | node, | |
const char * | value | |||
) |
Definition at line 71 of file ui_node_abstractoption.c.
References EXTRADATA, uiNode_s::onChange, UI_ExecuteEventActions(), and UI_SetCvar().
Referenced by UI_OptionListNodeClick(), UI_OptionTreeNodeClick(), UI_OptionTreeSetSelectedValue(), UI_SelectBoxNodeClick(), and UI_TabNodeClick().
void UI_OptionNodeSortOptions | ( | uiNode_t * | node | ) |
Sort options by alphabet.
update lastChild
Definition at line 42 of file ui_node_abstractoption.c.
References uiNode_s::firstChild, uiNode_s::lastChild, uiNode_s::next, UI_NodeInstanceOf(), and UI_SortOptions().
void UI_RegisterAbstractOptionNode | ( | uiBehaviour_t * | behaviour | ) |
Definition at line 147 of file ui_node_abstractoption.c.
References uiBehaviour_s::doLayout, uiBehaviour_s::drawItselfChild, EXTRADATA_TYPE, uiBehaviour_s::extraDataSize, uiBehaviour_s::isAbstract, uiBehaviour_s::name, uiBehaviour_s::properties, qtrue, and UI_AbstractOptionDoLayout().
Definition at line 37 of file ui_node_abstractoption.c.
const value_t properties[] [static] |
{ {"dataid", V_UI_DATAID, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, dataId), MEMBER_SIZEOF(EXTRADATA_TYPE, dataId)}, {"lineheight", V_INT, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, lineHeight), MEMBER_SIZEOF(EXTRADATA_TYPE, lineHeight)}, {"viewpos", V_INT, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, scrollY.viewPos), MEMBER_SIZEOF(EXTRADATA_TYPE, scrollY.viewPos)}, {"viewsize", V_INT, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, scrollY.viewSize), MEMBER_SIZEOF(EXTRADATA_TYPE, scrollY.viewSize)}, {"fullsize", V_INT, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, scrollY.fullSize), MEMBER_SIZEOF(EXTRADATA_TYPE, scrollY.fullSize)}, {"count", V_INT, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, count), MEMBER_SIZEOF(EXTRADATA_TYPE, count)}, {"cvar", V_UI_CVAR, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, cvar), 0}, {"onviewchange", V_UI_ACTION, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, onViewChange), MEMBER_SIZEOF(EXTRADATA_TYPE, onViewChange)}, {NULL, V_NULL, 0, 0} }
Definition at line 79 of file ui_node_abstractoption.c.