ui_node_abstractoption.c File Reference

#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"
Include dependency graph for ui_node_abstractoption.c:

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_tUI_AbstractOptionGetFirstOption (uiNode_t *node)
 Return the first option of the node.
void UI_RegisterAbstractOptionNode (uiBehaviour_t *behaviour)

Variables

const uiBehaviour_tabstractOptionBehaviour
static const value_t properties []

Define Documentation

#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

Function Documentation

static void UI_AbstractOptionDoLayout ( uiNode_t node  )  [static]
const char* UI_AbstractOptionGetCurrentValue ( uiNode_t node  ) 
uiNode_t* UI_AbstractOptionGetFirstOption ( uiNode_t node  )  [read]
void UI_AbstractOptionSetCurrentValue ( uiNode_t node,
const char *  value 
)
void UI_OptionNodeSortOptions ( uiNode_t node  ) 

Sort options by alphabet.

update lastChild

Todo:
the sort option should do it itself

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  ) 

Variable Documentation

Definition at line 37 of file ui_node_abstractoption.c.

const value_t properties[] [static]
Initial value:
 {
    
    {"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.


Generated by  doxygen 1.6.2