27 #include "../../common/common.h"
struct uiAction_s uiAction_t
Atomic element to store UI scripts The parser use this atom to translate script action into many tree...
struct uiAction_s::@14::@16 terminal
Stores a terminal action (a value, which must be a leaf in the tree)
QGL_EXTERN GLint GLenum type
union uiTerminalActionData_s uiTerminalActionData_t
Defines the data of a uiAction_t leaf. It allows different kind of data without cast.
This is a cvar definition. Cvars can be user modified and used in our menus e.g.
void UI_ExecuteConFuncActions(uiNode_t *source, const uiAction_t *firstAction)
allow to inject command param into cmd of confunc command
QGL_EXTERN GLint GLenum GLboolean GLsizei const GLvoid * pointer
void UI_InitActions(void)
struct uiAction_s * right
void UI_FreeStringProperty(void *pointer)
Free a string property if it is allocated into ui_dynStringPool.
union uiAction_s::@14 d
Stores data about the action.
uiAction_t * UI_AllocStaticCommandAction(const char *command)
Allocate and initialize a command action.
int UI_GetParamNumber(const uiCallContext_t *context)
uiTerminalActionData_t d2
struct uiAction_s::@14::@15 nonTerminal
Stores a none terminal action (a command or an operator)
uiActionType_s
Type for uiAction_t It also contain type about type (for example EA_BINARYOPERATOR) ...
void UI_ExecuteEventActionsEx(uiNode_t *source, const uiAction_t *firstAction, linkedList_t *params)
void UI_PoolAllocAction(uiAction_t **action, int type, const void *data)
Set a new action to a uiAction_t pointer.
void UI_AddListener(uiNode_t *node, const value_t *property, uiNode_t const *functionNode)
Add a callback of a function into a node event. There can be more than on listener.
int UI_GetActionTokenType(const char *token, int group)
return an action type from a token, and a group
void UI_RemoveListener(uiNode_t *node, const value_t *property, uiNode_t *functionNode)
Remove a function callback from a node event. There can be more than on listener. ...
Atomic structure used to define most of the UI.
uiValue_t * UI_GetVariable(const uiCallContext_t *context, int relativeVarId)
Return a variable from the context.
struct uiValue_s uiValue_t
Type for uiAction_t It also contain type about type (for example EA_BINARYOPERATOR) ...
Contain the context of the calling of a function.
short subType
Some operators/commands/values can use it to store info about the content.
uiTerminalActionData_t d1
const char * UI_GetParam(const uiCallContext_t *context, int paramID)
enum uiActionType_s uiActionType_t
Type for uiAction_t It also contain type about type (for example EA_BINARYOPERATOR) ...
union uiValue_s::@17 value
bool UI_IsInjectedString(const char *string)
Test if a string use an injection syntax.
const char * UI_GenInjectedString(const char *input, bool addNewLine, const uiCallContext_t *context)
Replace injection identifiers (e.g. ) by a value.
struct uiAction_s * next
Next element in the action list.
Type for uiAction_t It also contain type about type (for example EA_BINARYOPERATOR) ...
Defines the data of a uiAction_t leaf. It allows different kind of data without cast.
GLsizei const GLvoid * data
struct uiCallContext_s uiCallContext_t
Contain the context of the calling of a function.
short type
Define the type of the element, it can be a command, an operator, or a value.
Atomic element to store UI scripts The parser use this atom to translate script action into many tree...
void UI_ExecuteEventActions(uiNode_t *source, const uiAction_t *firstAction)