|
UFO: Alien Invasion
|
#include "../ui_nodes.h"

Go to the source code of this file.
Data Structures | |
| class | uiLineChartNode |
| struct | lineChartExtraData_t |
| extradata for the linechart node More... | |
Functions | |
| void | UI_RegisterLineChartNode (uiBehaviour_t *behaviour) |
| Registers lineChart node. | |
| bool | UI_ClearLineChart (uiNode_t *node) |
| Clears all drawings froma lineChart. | |
| bool | UI_AddLineChartLine (uiNode_t *node, const char *id, bool visible, const vec4_t color, bool dots, int numPoints) |
| Add a line to the chart. | |
| bool | UI_AddLineChartCoord (uiNode_t *node, const char *id, int x, int y) |
| Add a data point to a line chart. | |
| bool | UI_ShowChartLine (uiNode_t *node, const char *id, bool visible) |
| Shows/hides a chart line. | |
| bool | UI_ShowChartDots (uiNode_t *node, const char *id, bool visible) |
| Shows/hides small dots at data points of a chart. | |
Add a data point to a line chart.
| [in,out] | node | Chart node to extend |
| [in] | id | Line ID to extend |
| [in] | x | Horizontal coordinate of the data point |
| [in] | y | Vertical coordinate of the data point |
Definition at line 176 of file ui_node_linechart.cpp.
References Com_Printf(), EXTRADATA, LIST_Foreach, MAX_VAR, Q_strneq, Q_strnull(), and UI_GetPath().
Referenced by uiLineChartNode_t_add_point().
| bool UI_AddLineChartLine | ( | uiNode_t * | node, |
| const char * | id, | ||
| bool | visible, | ||
| const vec4_t | color, | ||
| bool | dots, | ||
| int | numPoints ) |
Add a line to the chart.
| [in,out] | node | Chart node to extend |
| [in] | id | Name of the chart line to add |
| [in] | visible | Whether the chart line be rendered |
| [in] | color | RGBA Color of the chart line |
| [in] | dots | Whether to draw little squares to the datapoints |
| [in] | numPoints | Number of datapoints to allocate |
Definition at line 133 of file ui_node_linechart.cpp.
References Com_Printf(), line_t::dots, EXTRADATA, line_t::id, line_t::lineColor, LIST_Add(), LIST_Foreach, MAX_VAR, line_t::maxPoints, Mem_PoolAllocTypeN, line_t::numPoints, line_t::pointList, Q_streq, Q_strncpyz(), Q_strnull(), ui_dynPool, UI_GetPath(), Vector4Copy, and line_t::visible.
Referenced by uiLineChartNode_t_add_line().
| bool UI_ClearLineChart | ( | uiNode_t * | node | ) |
Clears all drawings froma lineChart.
| node | The node to clear |
Definition at line 109 of file ui_node_linechart.cpp.
References EXTRADATA, LIST_Delete(), LIST_Foreach, and Mem_Free.
Referenced by uiLineChartNode::deleteNode(), and uiLineChartNode_t_clear().
| void UI_RegisterLineChartNode | ( | uiBehaviour_t * | behaviour | ) |
Registers lineChart node.
| [out] | behaviour | UI node behaviour structure |
Definition at line 261 of file ui_node_linechart.cpp.
References EXTRADATA_TYPE, uiBehaviour_t::extraDataSize, uiBehaviour_t::lua_SWIG_typeinfo, uiBehaviour_t::manager, uiBehaviour_t::name, UI_RegisterExtradataNodeProperty, UI_SWIG_TypeQuery(), V_BOOL, and V_COLOR.
| bool UI_ShowChartDots | ( | uiNode_t * | node, |
| const char * | id, | ||
| bool | visible ) |
Shows/hides small dots at data points of a chart.
| [in,out] | node | Chart node in which the line is |
| [in] | id | Line ID to alter |
| [in] | visible | Boolean switch of the dot's visibility |
Definition at line 236 of file ui_node_linechart.cpp.
References Com_Printf(), EXTRADATA, LIST_Foreach, MAX_VAR, Q_strneq, Q_strnull(), and UI_GetPath().
| bool UI_ShowChartLine | ( | uiNode_t * | node, |
| const char * | id, | ||
| bool | visible ) |
Shows/hides a chart line.
| [in,out] | node | Chart node in which the line is |
| [in] | id | Line ID to show/hide |
| [in] | visible | Boolean switch of line's visibility (including dots) |
Definition at line 209 of file ui_node_linechart.cpp.
References Com_Printf(), EXTRADATA, LIST_Foreach, MAX_VAR, Q_strneq, Q_strnull(), and UI_GetPath().