ui_node_abstractvalue.c File Reference

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"
Include dependency graph for ui_node_abstractvalue.c:

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 []

Detailed Description

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 Documentation

#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)

Function Documentation

static void UI_AbstractValueClone ( const uiNode_t source,
uiNode_t clone 
) [static]

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  ) 

Variable Documentation

const uiBehaviour_t const* localBehaviour [static]

Definition at line 36 of file ui_node_abstractvalue.c.

const value_t properties[] [static]

Generated by  doxygen 1.6.2