UFO: Alien Invasion
|
Go to the source code of this file.
Data Structures | |
class | uiOptionNode |
struct | optionExtraData_s |
Option definition. More... | |
Macros | |
#define | OPTIONEXTRADATA_TYPE optionExtraData_t |
#define | OPTIONEXTRADATA(node) UI_EXTRADATA(node, OPTIONEXTRADATA_TYPE) |
#define | OPTIONEXTRADATACONST(node) UI_EXTRADATACONST(node, OPTIONEXTRADATA_TYPE) |
Typedefs | |
typedef struct optionExtraData_s | optionExtraData_t |
Option definition. More... | |
Functions | |
void | UI_RegisterOptionNode (uiBehaviour_t *behaviour) |
int | UI_OptionUpdateCache (uiNode_t *option) |
update option cache about child, according to collapse and visible status More... | |
uiNode_t * | UI_AllocOptionNode (const char *name, const char *label, const char *value) |
Initializes an option with a very little set of values. More... | |
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 | ) | UI_EXTRADATA(node, OPTIONEXTRADATA_TYPE) |
Definition at line 40 of file ui_node_option.h.
Referenced by CL_SetRatioFilter_f(), uiOptionTreeNode::draw(), uiSelectBoxNode::draw(), uiOptionListNode::draw(), uiTabNode::draw(), uiSelectBoxNode::drawOverWindow(), uiTabNode::drawTooltip(), MSO_Toggle_f(), uiSelectBoxNode::onCapturedMouseMove(), uiOptionTreeNode::onLeftClick(), uiSelectBoxNode::onLeftClick(), uiOptionListNode::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 | ) | UI_EXTRADATACONST(node, OPTIONEXTRADATA_TYPE) |
Definition at line 41 of file ui_node_option.h.
Referenced by MSO_UpdateVisibleButtons().
typedef struct optionExtraData_s optionExtraData_t |
Option definition.
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 UI_AllocNode(), and UI_InitOption().
Referenced by UI_AddOption().
Definition at line 142 of file ui_node_option.cpp.
References 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, 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, UI_RegisterExtradataNodeProperty, UI_SWIG_TypeQuery(), V_BOOL, V_STRING, and V_UI_SPRITEREF.
const uiBehaviour_t* ui_optionBehaviour |
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(), uiTabNode::draw(), uiTabNode::onWindowOpened(), UI_AbstractOption_GetFirstOption(), UI_FindOptionAtIndex(), UI_FindOptionByValue(), UI_InitOptionIteratorAtIndex(), UI_OptionTreeNodeGetFirstOption(), and UI_TabNodeTabAtPosition().