#include "../ui_render.h"
#include "ui_node_rows.h"
#include "ui_node_abstractnode.h"
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 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.
void UI_RegisterRowsNode | ( | uiBehaviour_t * | behaviour | ) |
Definition at line 78 of file ui_node_rows.c.
References uiBehaviour_s::draw, EXTRADATA_TYPE, uiBehaviour_s::extraDataSize, uiBehaviour_s::loaded, uiBehaviour_s::name, uiBehaviour_s::properties, UI_RowsNodeDraw(), and UI_RowsNodeLoaded().
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().
const value_t properties[] [static] |
{ {"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.