41#define EXTRADATA_TYPE optionExtraData_t
42#define EXTRADATA(node) UI_EXTRADATA(node, EXTRADATA_TYPE)
43#define EXTRADATACONST(node) UI_EXTRADATACONST(node, EXTRADATA_TYPE)
60 option = option->
next;
65 option = option->
next;
72 count += 1 + localCount;
73 option = option->
next;
149 behaviour->
name =
"option";
virtual void onPropertyChanged(uiNode_t *node, const value_t *property)
void doLayout(uiNode_t *node) override
Call to update the node layout. This common code revalidates the node tree.
void onPropertyChanged(uiNode_t *node, const value_t *property) override
Primary header for client.
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Header for lua script functions.
void Q_strncpyz(char *dest, const char *src, size_t destsize)
Safe strncpy that ensures a trailing zero.
node behaviour, how a node work
Atomic structure used to define most of the UI.
uiBehaviour_t * behaviour
#define UI_RegisterExtradataNodeProperty(BEHAVIOUR, NAME, TYPE, EXTRADATATYPE, ATTRIBUTE)
Initialize a property from extradata of node.
void * UI_SWIG_TypeQuery(const char *name)
This function queries the SWIG type table for a type information structure. It is used in combination...
void UI_Validate(uiNode_t *node)
Validate a node tree.
void UI_Invalidate(uiNode_t *node)
Invalidate a node and all his parent to request a layout update.
SharedPtr< uiNode > UINodePtr
const uiBehaviour_t * ui_optionBehaviour
uiNode_t * UI_AllocOptionNode(const char *name, const char *label, const char *value)
Initializes an option with a very little set of values.
int UI_OptionUpdateCache(uiNode_t *option)
update option cache about child, according to collapse and visible status
void UI_Option_SetIconByName(uiNode_t *node, const char *name)
static void UI_InitOption(uiNode_t *option, 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_RegisterOptionNode(uiBehaviour_t *behaviour)
void UI_Option_SetValue(uiNode_t *node, const char *text)
static const value_t * propertyCollapsed
#define OPTIONEXTRADATA(node)
const uiBehaviour_t * ui_optionBehaviour
uiNode_t * UI_AllocNode(const char *name, const char *type, bool isDynamic)
Allocate a node into the UI memory.
uiSprite_t * UI_GetSpriteByName(const char *name)
Return an sprite by is name.