The abstractvalue node is an abstract node (we can't instanciate it). It provide common properties to concrete nodes, to manage a value in a range. More...
#include "../ui_nodes.h"
#include "../ui_parse.h"
#include "../ui_internal.h"
#include "ui_node_abstractvalue.h"
Go to the source code of this file.
Defines | |
#define | EXTRADATA_TYPE abstractValueExtraData_t |
#define | EXTRADATA(node) UI_EXTRADATA(node, EXTRADATA_TYPE) |
#define | EXTRADATACONST(node) UI_EXTRADATACONST(node, EXTRADATA_TYPE) |
Functions | |
static void | UI_InitCvarOrFloat (float **adress, float defaultValue) |
static void | UI_AbstractValueLoaded (uiNode_t *node) |
static void | UI_AbstractValueNew (uiNode_t *node) |
static void | UI_AbstractValueDelete (uiNode_t *node) |
static void | UI_CloneCvarOrFloat (const uiNode_t *source, uiNode_t *clone, const float *const *sourceData, float **cloneData) |
static void | UI_AbstractValueClone (const uiNode_t *source, uiNode_t *clone) |
Call to update a cloned node. | |
void | UI_RegisterAbstractValueNode (uiBehaviour_t *behaviour) |
Variables | |
static const uiBehaviour_t const * | localBehaviour |
static const value_t | properties [] |
The abstractvalue node is an abstract node (we can't instanciate it). It provide common properties to concrete nodes, to manage a value in a range.
Definition in file ui_node_abstractvalue.c.
#define EXTRADATA | ( | node | ) | UI_EXTRADATA(node, EXTRADATA_TYPE) |
Definition at line 33 of file ui_node_abstractvalue.c.
#define EXTRADATA_TYPE abstractValueExtraData_t |
Definition at line 32 of file ui_node_abstractvalue.c.
#define EXTRADATACONST | ( | node | ) | UI_EXTRADATACONST(node, EXTRADATA_TYPE) |
Definition at line 34 of file ui_node_abstractvalue.c.
Referenced by UI_AbstractValueClone(), UI_BaseInventoryNodeGetItem(), UI_ContainerItemIteratorInit(), UI_ContainerNodeDNDFinished(), UI_ContainerNodeGetExistingItem(), UI_ContainerNodeGetItemAtPosition(), UI_IsScrollContainerNode(), UI_MessageDraw(), UI_TabNodeTabAtPosition(), UI_TextListNodeGetLine(), UI_TextNodeGetLine(), UI_WindowIsDropDown(), UI_WindowIsFullScreen(), UI_WindowIsModal(), UI_WindowNodeClone(), and UI_WindowNodeGetKeyBinding().
Call to update a cloned node.
Definition at line 94 of file ui_node_abstractvalue.c.
References uiBehaviour_s::clone, EXTRADATA, EXTRADATACONST, uiBehaviour_s::super, and UI_CloneCvarOrFloat().
Referenced by UI_RegisterAbstractValueNode().
static void UI_AbstractValueDelete | ( | uiNode_t * | node | ) | [static] |
Definition at line 62 of file ui_node_abstractvalue.c.
References EXTRADATA, and Mem_Free.
Referenced by UI_RegisterAbstractValueNode().
static void UI_AbstractValueLoaded | ( | uiNode_t * | node | ) | [static] |
Definition at line 46 of file ui_node_abstractvalue.c.
References EXTRADATA, and UI_InitCvarOrFloat().
Referenced by UI_RegisterAbstractValueNode().
static void UI_AbstractValueNew | ( | uiNode_t * | node | ) | [static] |
Definition at line 54 of file ui_node_abstractvalue.c.
References EXTRADATA, Mem_PoolAlloc, and ui_dynPool.
Referenced by UI_RegisterAbstractValueNode().
static void UI_CloneCvarOrFloat | ( | const uiNode_t * | source, | |
uiNode_t * | clone, | |||
const float *const * | sourceData, | |||
float ** | cloneData | |||
) | [static] |
Definition at line 74 of file ui_node_abstractvalue.c.
References uiNode_s::dynamic, Mem_Free, and UI_AllocStaticFloat().
Referenced by UI_AbstractValueClone().
static void UI_InitCvarOrFloat | ( | float ** | adress, | |
float | defaultValue | |||
) | [inline, static] |
Definition at line 38 of file ui_node_abstractvalue.c.
References UI_AllocStaticFloat().
Referenced by UI_AbstractValueLoaded().
void UI_RegisterAbstractValueNode | ( | uiBehaviour_t * | behaviour | ) |
Definition at line 120 of file ui_node_abstractvalue.c.
References uiBehaviour_s::clone, uiBehaviour_s::delete, EXTRADATA_TYPE, uiBehaviour_s::extraDataSize, uiBehaviour_s::isAbstract, uiBehaviour_s::loaded, uiBehaviour_s::name, uiBehaviour_s::new, uiBehaviour_s::properties, qtrue, UI_AbstractValueClone(), UI_AbstractValueDelete(), UI_AbstractValueLoaded(), and UI_AbstractValueNew().
const uiBehaviour_t const* localBehaviour [static] |
Definition at line 36 of file ui_node_abstractvalue.c.
const value_t properties[] [static] |
{ {"current", V_CVAR_OR_FLOAT, UI_EXTRADATA_OFFSETOF(abstractValueExtraData_t, value), 0}, {"delta", V_CVAR_OR_FLOAT, UI_EXTRADATA_OFFSETOF(abstractValueExtraData_t, delta), 0}, {"max", V_CVAR_OR_FLOAT, UI_EXTRADATA_OFFSETOF(abstractValueExtraData_t, max), 0}, {"min", V_CVAR_OR_FLOAT, UI_EXTRADATA_OFFSETOF(abstractValueExtraData_t, min), 0}, {"lastdiff", V_FLOAT, UI_EXTRADATA_OFFSETOF(abstractValueExtraData_t, lastdiff), MEMBER_SIZEOF(abstractValueExtraData_t, lastdiff)}, {NULL, V_NULL, 0, 0} }
Definition at line 103 of file ui_node_abstractvalue.c.