|
UFO: Alien Invasion
|


Go to the source code of this file.
Data Structures | |
| class | uiOptionNode |
| struct | optionExtraData_t |
| Option definition. More... | |
Macros | |
| #define | OPTIONEXTRADATA_TYPE optionExtraData_t |
| #define | OPTIONEXTRADATA(node) |
| #define | OPTIONEXTRADATACONST(node) |
Functions | |
| void | UI_RegisterOptionNode (uiBehaviour_t *behaviour) |
| int | UI_OptionUpdateCache (uiNode_t *option) |
| update option cache about child, according to collapse and visible status | |
| uiNode_t * | UI_AllocOptionNode (const char *name, const char *label, const char *value) |
| Initializes an option with a very little set of values. | |
| void | UI_Option_SetLabel (uiNode_t *node, const char *text) |
| void | UI_Option_SetValue (uiNode_t *node, const char *text) |
| void | UI_Option_SetIconByName (uiNode_t *node, const char *name) |
Variables | |
| const uiBehaviour_t * | ui_optionBehaviour |
| #define OPTIONEXTRADATA | ( | node | ) |
Definition at line 40 of file ui_node_option.h.
Referenced by CL_SetRatioFilter_f(), uiOptionListNode::draw(), uiOptionTreeNode::draw(), uiSelectBoxNode::draw(), uiTabNode::draw(), uiSelectBoxNode::drawOverWindow(), uiTabNode::drawTooltip(), MSO_Toggle_f(), uiSelectBoxNode::onCapturedMouseMove(), uiOptionListNode::onLeftClick(), uiOptionTreeNode::onLeftClick(), uiSelectBoxNode::onLeftClick(), uiTabNode::onLeftClick(), uiTabNode::onWindowOpened(), UI_FindOptionAtIndex(), UI_FindOptionByValue(), UI_InitOption(), UI_Option_SetIconByName(), UI_Option_SetLabel(), UI_Option_SetValue(), UI_OptionIteratorNextOption(), UI_OptionNodeRemoveHigherOption(), UI_OptionTree_SelectValue(), UI_OptionUpdateCache(), UI_TabNodeTabAtPosition(), and UP_GenerateSummary().
| #define OPTIONEXTRADATA_TYPE optionExtraData_t |
Definition at line 39 of file ui_node_option.h.
| #define OPTIONEXTRADATACONST | ( | node | ) |
| uiNode_t * UI_AllocOptionNode | ( | const char * | name, |
| const char * | label, | ||
| const char * | value ) |
Initializes an option with a very little set of values.
| [in] | name | The name of the new node |
| [in] | label | label displayed |
| [in] | value | value used when this option is selected |
Definition at line 126 of file ui_node_option.cpp.
References name, UI_AllocNode(), and UI_InitOption().
Referenced by UI_AddOption().
Definition at line 142 of file ui_node_option.cpp.
References name, OPTIONEXTRADATA, and UI_GetSpriteByName().
Referenced by uiOptionNode_t_set_icon().
Definition at line 134 of file ui_node_option.cpp.
References OPTIONEXTRADATA, and Q_strncpyz().
Referenced by uiOptionNode_t_set_label().
Definition at line 138 of file ui_node_option.cpp.
References OPTIONEXTRADATA, and Q_strncpyz().
Referenced by uiOptionNode_t_set_value().
update option cache about child, according to collapse and visible status
Definition at line 53 of file ui_node_option.cpp.
References uiNode_t::behaviour, count, uiNode_t::firstChild, uiNode_t::invis, uiNode_t::next, OPTIONEXTRADATA, ui_optionBehaviour, and UI_OptionUpdateCache().
Referenced by UI_OptionTreeNodeUpdateCache(), and UI_OptionUpdateCache().
| void UI_RegisterOptionNode | ( | uiBehaviour_t * | behaviour | ) |
Displayed text
Value of the option
If true, child are not displayed
Definition at line 147 of file ui_node_option.cpp.
References EXTRADATA_TYPE, uiBehaviour_t::extraDataSize, uiBehaviour_t::lua_SWIG_typeinfo, uiBehaviour_t::manager, uiBehaviour_t::name, propertyCollapsed, ui_optionBehaviour, UI_RegisterExtradataNodeProperty, UI_SWIG_TypeQuery(), V_BOOL, V_STRING, and V_UI_SPRITEREF.
|
extern |
Allow to check if a node is an option without string check
Definition at line 39 of file ui_node_option.cpp.
Referenced by uiAbstractOptionNode::doLayout(), uiOptionNode::doLayout(), uiTabNode::draw(), uiTabNode::onWindowOpened(), UI_AbstractOption_GetFirstOption(), UI_FindOptionAtIndex(), UI_FindOptionByValue(), UI_InitOption(), UI_InitOptionIteratorAtIndex(), UI_OptionTreeNodeGetFirstOption(), UI_OptionUpdateCache(), UI_RegisterOptionNode(), and UI_TabNodeTabAtPosition().