ui_expression.h File Reference

#include "../../common/common.h"
Include dependency graph for ui_expression.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct uiAction_sUI_AllocStaticStringCondition (const char *description) __attribute__((warn_unused_result))
 Allocate and initialize an expression according to a string.
struct uiAction_sUI_ParseExpression (const char **text) __attribute__((warn_unused_result))
qboolean UI_GetBooleanFromExpression (struct uiAction_s *expression, const struct uiCallContext_s *context) __attribute__((warn_unused_result))
float UI_GetFloatFromExpression (struct uiAction_s *expression, const struct uiCallContext_s *context) __attribute__((warn_unused_result))
const char * UI_GetStringFromExpression (struct uiAction_s *expression, const struct uiCallContext_s *context) __attribute__((warn_unused_result))
struct uiNode_sUI_GetNodeFromExpression (struct uiAction_s *expression, const struct uiCallContext_s *context, const struct value_s **property)

Detailed Description

Definition in file ui_expression.h.


Function Documentation

struct uiAction_s* UI_AllocStaticStringCondition ( const char *  description  )  [read]

Allocate and initialize an expression according to a string.

Parameters:
[in] description String describing a condition
Returns:
The condition if everything is ok, NULL otherwise

Definition at line 521 of file ui_expression.c.

References Com_Printf(), uiNode_s::text, UI_ParseExpression(), and va().

Referenced by UI_ParseProperty().

qboolean UI_GetBooleanFromExpression ( struct uiAction_s expression,
const struct uiCallContext_s context 
)
float UI_GetFloatFromExpression ( struct uiAction_s expression,
const struct uiCallContext_s context 
)
struct uiNode_s* UI_GetNodeFromExpression ( struct uiAction_s expression,
const struct uiCallContext_s context,
const struct value_s **  property 
) [read]
const char* UI_GetStringFromExpression ( struct uiAction_s expression,
const struct uiCallContext_s context 
)
struct uiAction_s* UI_ParseExpression ( const char **  text  )  [read]

Generated by  doxygen 1.6.2