#include "../ui_nodes.h"
#include "../ui_parse.h"
#include "../ui_internal.h"
#include "../ui_render.h"
#include "ui_node_abstractnode.h"
#include "ui_node_linechart.h"
#include "../../renderer/r_draw.h"
Go to the source code of this file.
Defines | |
#define | EXTRADATA_TYPE lineChartExtraData_t |
#define | EXTRADATA(node) UI_EXTRADATA(node, EXTRADATA_TYPE) |
Functions | |
static void | UI_LineChartNodeDraw (uiNode_t *node) |
void | UI_RegisterLineChartNode (uiBehaviour_t *behaviour) |
Variables | |
static const value_t | properties [] |
Definition in file ui_node_linechart.c.
#define EXTRADATA | ( | node | ) | UI_EXTRADATA(node, EXTRADATA_TYPE) |
Definition at line 35 of file ui_node_linechart.c.
#define EXTRADATA_TYPE lineChartExtraData_t |
Definition at line 34 of file ui_node_linechart.c.
static void UI_LineChartNodeDraw | ( | uiNode_t * | node | ) | [static] |
Definition at line 37 of file ui_node_linechart.c.
References lineStrip_s::color, Com_Printf(), uiSharedData_s::data, EXTRADATA, int(), uiSharedData_s::lineStrip, lineStrip_s::next, lineStrip_s::numPoints, lineStrip_s::pointList, pos, R_Color(), R_DrawLineStrip(), uiGlobal_s::sharedData, uiNode_s::size, uiSharedData_s::type, UI_GetNodeAbsPos(), UI_GetPath(), ui_global, UI_SHARED_LINESTRIP, and UI_Transform().
Referenced by UI_RegisterLineChartNode().
void UI_RegisterLineChartNode | ( | uiBehaviour_t * | behaviour | ) |
Definition at line 94 of file ui_node_linechart.c.
References uiBehaviour_s::draw, EXTRADATA_TYPE, uiBehaviour_s::extraDataSize, uiBehaviour_s::name, uiBehaviour_s::properties, and UI_LineChartNodeDraw().
const value_t properties[] [static] |
{ {"dataid", V_UI_DATAID, UI_EXTRADATA_OFFSETOF(lineChartExtraData_t, dataId), MEMBER_SIZEOF(lineChartExtraData_t, dataId)}, {"displayaxes", V_BOOL, UI_EXTRADATA_OFFSETOF(lineChartExtraData_t, displayAxes), MEMBER_SIZEOF(lineChartExtraData_t, displayAxes)}, {"axescolor", V_COLOR, UI_EXTRADATA_OFFSETOF(lineChartExtraData_t, axesColor), MEMBER_SIZEOF(lineChartExtraData_t, axesColor)}, {NULL, V_NULL, 0, 0} }
Definition at line 84 of file ui_node_linechart.c.