ui_node_rows.c File Reference

#include "../ui_render.h"
#include "ui_node_rows.h"
#include "ui_node_abstractnode.h"
Include dependency graph for ui_node_rows.c:

Go to the source code of this file.

Defines

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

Functions

static void UI_RowsNodeDraw (uiNode_t *node)
 Handles Button draw.
static void UI_RowsNodeLoaded (uiNode_t *node)
void UI_RegisterRowsNode (uiBehaviour_t *behaviour)

Variables

static const value_t properties []

Define Documentation

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

Definition at line 31 of file ui_node_rows.c.

#define EXTRADATA_TYPE   rowsExtraData_t

Definition at line 30 of file ui_node_rows.c.

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

Definition at line 32 of file ui_node_rows.c.


Function Documentation

void UI_RegisterRowsNode ( uiBehaviour_t behaviour  ) 
static void UI_RowsNodeDraw ( uiNode_t node  )  [static]

Handles Button draw.

Definition at line 37 of file ui_node_rows.c.

References uiNode_s::color, uiIcon_s::color, EXTRADATA, i, pos, uiNode_s::selectedColor, uiNode_s::size, UI_DrawFill(), and UI_GetNodeAbsPos().

Referenced by UI_RegisterRowsNode().

static void UI_RowsNodeLoaded ( uiNode_t node  )  [static]

Definition at line 58 of file ui_node_rows.c.

References EXTRADATA.

Referenced by UI_RegisterRowsNode().


Variable Documentation

const value_t properties[] [static]
Initial value:
 {
    
    {"color1", V_COLOR, offsetof(uiNode_t, color), MEMBER_SIZEOF(uiNode_t, color)},
    
    {"color2", V_COLOR, offsetof(uiNode_t, selectedColor), MEMBER_SIZEOF(uiNode_t, selectedColor)},
    
    {"lineheight", V_INT, UI_EXTRADATA_OFFSETOF(rowsExtraData_t, lineHeight), MEMBER_SIZEOF(rowsExtraData_t, lineHeight)},
    
    {"current", V_INT, UI_EXTRADATA_OFFSETOF(rowsExtraData_t, current), MEMBER_SIZEOF(rowsExtraData_t, current)},
    {NULL, V_NULL, 0, 0}
}

Definition at line 66 of file ui_node_rows.c.


Generated by  doxygen 1.6.2