ui_node_option.c File Reference

#include "../ui_main.h"
#include "../ui_parse.h"
#include "ui_node_abstractnode.h"
#include "ui_node_option.h"
#include "../../client.h"
Include dependency graph for ui_node_option.c:

Go to the source code of this file.

Defines

#define EXTRADATA_TYPE   optionExtraData_t
#define EXTRADATA(node)   UI_EXTRADATA(node, EXTRADATA_TYPE)
#define EXTRADATACONST(node)   UI_EXTRADATACONST(node, EXTRADATA_TYPE)

Functions

int UI_OptionUpdateCache (uiNode_t *option)
 update option cache about child, according to collapse and visible status
static void UI_OptionDoLayout (uiNode_t *node)
static void UI_OptionPropertyChanged (uiNode_t *node, const value_t *property)
void UI_RegisterOptionNode (uiBehaviour_t *behaviour)

Variables

const uiBehaviour_tui_optionBehaviour = NULL
static const value_tpropertyCollapsed
static const value_t properties []
 valid properties for options (used by selectbox, tab, optonlist and optiontree)

Detailed Description

Definition in file ui_node_option.c.


Define Documentation

#define EXTRADATA ( node   )     UI_EXTRADATA(node, EXTRADATA_TYPE)

Definition at line 38 of file ui_node_option.c.

#define EXTRADATA_TYPE   optionExtraData_t

Definition at line 37 of file ui_node_option.c.

#define EXTRADATACONST ( node   )     UI_EXTRADATACONST(node, EXTRADATA_TYPE)

Definition at line 39 of file ui_node_option.c.


Function Documentation

static void UI_OptionDoLayout ( uiNode_t node  )  [static]
static void UI_OptionPropertyChanged ( uiNode_t node,
const value_t property 
) [static]
int UI_OptionUpdateCache ( uiNode_t option  ) 

update option cache about child, according to collapse and visible status

Note:
can be a common function for all option node
Returns:
number of visible elements

Definition at line 49 of file ui_node_option.c.

References uiNode_s::behaviour, count, uiNode_s::firstChild, uiNode_s::invis, uiNode_s::next, OPTIONEXTRADATA, and UI_OptionUpdateCache().

Referenced by UI_OptionTreeNodeUpdateCache(), and UI_OptionUpdateCache().

void UI_RegisterOptionNode ( uiBehaviour_t behaviour  ) 

Variable Documentation

const value_t properties[] [static]
Initial value:

valid properties for options (used by selectbox, tab, optonlist and optiontree)

Definition at line 102 of file ui_node_option.c.

const value_t* propertyCollapsed [static]

Definition at line 41 of file ui_node_option.c.


Generated by  doxygen 1.6.2