UFO: Alien Invasion
Loading...
Searching...
No Matches
uiNode_t Struct Reference

Atomic structure used to define most of the UI. More...

#include <ui_nodes.h>

Collaboration diagram for uiNode_t:
Collaboration graph

Data Fields

char name [MAX_VAR]
uiBehaviour_tbehaviour
uiNode_t const * super
bool dynamic
bool indexed
uiNode_tfirstChild
uiNode_tlastChild
uiNode_tnext
uiNode_tparent
uiNode_troot
uiBox_t box
char * tooltip
struct uiKeyBinding_s * key
bool invis
bool disabled
vec4_t disabledColor
bool invalidated
bool ghost
bool state
bool flash
float flashSpeed
int padding
int align
int num
struct uiAction_s * visibilityCondition
int deleteTime
uiExcludeRect_tfirstExcludeRect
int contentAlign
char * text
char * font
char * image
int border
vec4_t bgcolor
vec4_t bordercolor
vec4_t color
vec4_t selectedColor
vec4_t flashColor
hashTable_snodeMethods
struct uiAction_s * onClick
struct uiAction_s * onRightClick
struct uiAction_s * onMiddleClick
struct uiAction_s * onWheel
struct uiAction_s * onMouseEnter
struct uiAction_s * onMouseLeave
struct uiAction_s * onWheelUp
struct uiAction_s * onWheelDown
struct uiAction_s * onChange
LUA_EVENT lua_onClick
LUA_EVENT lua_onRightClick
LUA_EVENT lua_onMiddleClick
LUA_EVENT lua_onWheelUp
LUA_EVENT lua_onWheelDown
LUA_EVENT lua_onWheel
LUA_EVENT lua_onFocusGained
LUA_EVENT lua_onFocusLost
LUA_EVENT lua_onKeyPressed
LUA_EVENT lua_onKeyReleased
LUA_EVENT lua_onLoaded
LUA_EVENT lua_onActivate
LUA_EVENT lua_onMouseEnter
LUA_EVENT lua_onMouseLeave
LUA_EVENT lua_onChange
LUA_EVENT lua_onVisibleWhen
bool dragdrop
LUA_EVENT lua_onDragDropEnter
LUA_EVENT lua_onDragDropLeave
LUA_EVENT lua_onDragDropMove
LUA_EVENT lua_onDragDropDrop
LUA_EVENT lua_onDragDropFinished

Detailed Description

Atomic structure used to define most of the UI.

Definition at line 80 of file ui_nodes.h.

Field Documentation

◆ align

int uiNode_t::align

used to identify node position into a parent using a layout manager. Else it do nothing.

Definition at line 110 of file ui_nodes.h.

Referenced by UI_BorderLayout(), UI_StarLayout(), uiNode_t_layoutalign(), and uiNode_t_set_layoutalign().

◆ behaviour

uiBehaviour_t* uiNode_t::behaviour

Definition at line 83 of file ui_nodes.h.

Referenced by _wrap_create_component(), _wrap_create_control(), _wrap_get_window(), _wrap_new_uiNode(), _wrap_push_window(), _wrap_uiNode_child(), _wrap_uiNode_find(), _wrap_uiNode_first(), _wrap_uiNode_last(), _wrap_uiNode_next(), _wrap_uiNode_parent(), _wrap_uiNode_root(), uiAbstractOptionNode::doLayout(), uiModelNode::doLayout(), uiOptionNode::doLayout(), uiTabNode::draw(), uiFuncNode::onLoaded(), uiPanelNode::onPropertyChanged(), uiConFuncNode::onWindowClosed(), uiConFuncNode::onWindowOpened(), uiTabNode::onWindowOpened(), UFO_AnalyseTestWindow(), UI_AbstractOption_GetFirstOption(), UI_AbstractScrollableNodeMoveDown(), UI_AbstractScrollableNodeMoveEnd(), UI_AbstractScrollableNodeMoveHome(), UI_AbstractScrollableNodeMoveUp(), UI_AbstractScrollableNodePageDown(), UI_AbstractScrollableNodePageUp(), UI_AbstractValue_DecValue(), UI_AbstractValue_GetDelta(), UI_AbstractValue_GetLastDiff(), UI_AbstractValue_GetMax(), UI_AbstractValue_GetMin(), UI_AbstractValue_GetShiftIncreaseFactor(), UI_AbstractValue_GetValue(), UI_AbstractValue_IncValue(), UI_AbstractValue_SetDelta(), UI_AbstractValue_SetMax(), UI_AbstractValue_SetMin(), UI_AbstractValue_SetRange(), UI_AbstractValue_SetValue(), UI_AllocNodeWithoutNew(), UI_CheckBox_Toggle(), UI_CheckBox_ValueAsBoolean(), UI_CheckBox_ValueAsInteger(), UI_CreateComponent(), UI_CreateControl(), UI_DeleteNode(), UI_DrawModelNode(), UI_EditorNodeExtractNode(), UI_ExecuteLuaConFunc(), UI_ExecuteLuaEventScript(), UI_ExecuteLuaEventScript_DragDrop(), UI_ExecuteLuaEventScript_DragDrop_IsDropped(), UI_ExecuteLuaEventScript_DragDrop_XY(), UI_ExecuteLuaEventScript_DxDy(), UI_ExecuteLuaEventScript_Key(), UI_ExecuteLuaEventScript_ParamList(), UI_ExecuteLuaEventScript_ReturnBool(), UI_ExecuteLuaEventScript_XY(), UI_ExecuteLuaMethod(), UI_FindOptionAtIndex(), UI_FindOptionByValue(), UI_GenInjectedString(), UI_GeoscapeNodeZoomIn(), UI_GeoscapeNodeZoomOut(), UI_GetNodeAbsPos(), UI_GetNodeMethod(), UI_GetNodeScreenPos(), UI_GetPropertyOrLuaMethod(), UI_HasNodeMethod(), UI_InitOption(), UI_InitOptionIteratorAtIndex(), UI_Node_Activate(), UI_Node_CapturedMouseLost(), UI_Node_CapturedMouseMove(), UI_Node_Clone(), UI_Node_DeleteNode(), UI_Node_DndDrop(), UI_Node_DndEnter(), UI_Node_DndFinished(), UI_Node_DndLeave(), UI_Node_DndMove(), UI_Node_DoLayout(), UI_Node_Draw(), UI_Node_DrawOverWindow(), UI_Node_DrawTooltip(), UI_Node_FocusGained(), UI_Node_FocusLost(), UI_Node_GetCellHeight(), UI_Node_GetCellWidth(), UI_Node_GetClientPosition(), UI_Node_GetMemorySize(), UI_Node_GetWidgetName(), UI_Node_InitNode(), UI_Node_InitNodeDynamic(), UI_Node_IsAbstract(), UI_Node_IsBattleScape(), UI_Node_IsDrawable(), UI_Node_IsDrawItselfChild(), UI_Node_IsFunction(), UI_Node_IsOptionContainer(), UI_Node_IsScrollableContainer(), UI_Node_IsVirtual(), UI_Node_IsWindow(), UI_Node_KeyPressed(), UI_Node_KeyReleased(), UI_Node_LeftClick(), UI_Node_Loaded(), UI_Node_Loading(), UI_Node_MiddleClick(), UI_Node_MouseDown(), UI_Node_MouseEnter(), UI_Node_MouseLeave(), UI_Node_MouseLongPress(), UI_Node_MouseMove(), UI_Node_MouseUp(), UI_Node_PosChanged(), UI_Node_PropertyChanged(), UI_Node_RightClick(), UI_Node_Scroll(), UI_Node_SizeChanged(), UI_Node_StartDragging(), UI_Node_TypeOf(), UI_Node_WindowActivate(), UI_Node_WindowClosed(), UI_Node_WindowOpened(), UI_NodeAbsoluteToRelativePos(), UI_NodeInstanceOf(), UI_NodeInstanceOfPointer(), UI_OptionTreeNodeGetFirstOption(), UI_OptionUpdateCache(), UI_ParseNode(), UI_ParseNodeBody(), UI_ParseNodeProperties(), UI_RadioButton_SetValue(), UI_RadioButton_SetValue(), UI_Shutdown(), UI_SpinnerNodeRepeat(), UI_TextScrollEnd(), UI_Window_SetCloseButton(), uiAbstractScrollableNode_t_movedown(), uiAbstractScrollableNode_t_moveend(), uiAbstractScrollableNode_t_movehome(), uiAbstractScrollableNode_t_moveup(), uiAbstractScrollableNode_t_pagedown(), uiAbstractScrollableNode_t_pageup(), uiAbstractScrollableNode_t_set_fullsize(), uiAbstractScrollableNode_t_set_viewpos(), uiAbstractScrollableNode_t_set_viewsize(), uiGeoscapeNode_t_zoomin(), uiGeoscapeNode_t_zoomout(), uiNode_t_add_classmethod(), uiNode_t_type(), and uiWindowNode_t_set_fill().

◆ bgcolor

vec4_t uiNode_t::bgcolor

◆ border

int uiNode_t::border

border for this node - thickness in pixel - default 0 - also see bgcolor

Definition at line 124 of file ui_nodes.h.

Referenced by UI_DrawNode(), uiNode_t_bordersize(), uiNode_t_set_bordersize(), and uiNode_t_set_borderthickness().

◆ bordercolor

vec4_t uiNode_t::bordercolor

rgba - see border and padding

Definition at line 126 of file ui_nodes.h.

Referenced by UI_DrawNode(), and uiNode_t_set_bordercolor().

◆ box

uiBox_t uiNode_t::box

Definition at line 96 of file ui_nodes.h.

Referenced by uiModelNode::doLayout(), uiTextNode::doLayout(), uiWindowNode::doLayout(), uiBarNode::draw(), uiBaseLayoutNode::draw(), uiBattleScapeNode::draw(), uiButtonNode::draw(), uiCheckBoxNode::draw(), uiGeoscapeNode::draw(), uiImageNode::draw(), uiItemNode::draw(), uiLineChartNode::draw(), uiMaterialEditorNode::draw(), uiMessageListNode::draw(), uiOptionListNode::draw(), uiOptionTreeNode::draw(), uiPanelNode::draw(), uiRadarNode::draw(), uiRadioButtonNode::draw(), uiRowsNode::draw(), uiSelectBoxNode::draw(), uiSequenceNode::draw(), uiSpinnerNode::draw(), uiStringNode::draw(), uiTabNode::draw(), uiTBarNode::draw(), uiTextEntryNode::draw(), uiTextureNode::draw(), uiVScrollbarNode::draw(), uiWindowNode::draw(), uiSelectBoxNode::drawOverWindow(), uiVideoNode::drawOverWindow(), uiText2Node::drawText(), uiTextListNode::drawText(), uiTextNode::drawText(), uiStringNode::drawTooltip(), uiSpinnerNode::isPositionIncrease(), uiAbstractScrollableNode::isSizeChange(), uiBarNode::onCapturedMouseMove(), uiControlNode::onCapturedMouseMove(), uiGeoscapeNode::onCapturedMouseMove(), uiRadarNode::onCapturedMouseMove(), uiSelectBoxNode::onCapturedMouseMove(), uiVScrollbarNode::onCapturedMouseMove(), uiTextEntryNode::onFocusGained(), uiSelectBoxNode::onLeftClick(), uiButtonNode::onLoaded(), uiContainerNode::onLoaded(), uiImageNode::onLoaded(), uiSelectBoxNode::onLoaded(), uiText2Node::onLoaded(), uiVScrollbarNode::onLoaded(), uiVScrollbarNode::onLoading(), uiWindowNode::onLoading(), uiControlNode::onMouseDown(), uiBattleScapeNode::onSizeChanged(), uiWindowNode::onSizeChanged(), uiBattleScapeNode::onWindowOpened(), UI_BaseInventoryNodeDraw2(), UI_BaseInventoryNodeDrawItems(), UI_BaseInventoryNodeGetItem(), UI_BorderLayout(), UI_ClientLayout(), UI_ColumnLayout(), UI_ContainerNodeDrawDropPreview(), UI_ContainerNodeDrawFreeSpace(), UI_ContainerNodeDrawSingle(), UI_DrawDisabled(), UI_DrawFree(), UI_DrawModelNode(), UI_DrawModelNodeWithUIModel(), UI_DrawNode(), UI_EditorNodeExtractNode(), UI_EditorNodeGetElementAtPosition(), UI_EditorNodeHighlightNode(), UI_GetNodeAbsPos(), UI_GetNodeInTreeAtPosition(), UI_GetNodeScreenPos(), UI_InitModelInfoView(), UI_InitRadar(), UI_LeftRightFlowLayout(), UI_MaterialEditorNodeGetImageAtPosition(), UI_NodeAbsoluteToRelativePos(), UI_NodeGetPoint(), UI_NodeRelativeToAbsolutePoint(), UI_NodeSetBox(), UI_NodeSetPos(), UI_NodeSetSize(), UI_OptionListNodeGetOptionAtPosition(), UI_OptionListNodeUpdateScroll(), UI_OptionTreeNodeUpdateScroll(), UI_PackLayout(), UI_PushDropDownWindow_f(), UI_SetNewWindowPos(), UI_StarLayout(), UI_TabNodeTabAtPosition(), UI_TopDownFlowLayout(), UI_VScrollbarNodeGetElementSize(), UI_Window_FlagFullscreen(), UI_Window_SetCloseButton(), UI_Window_SetDragButton(), uiNode_t_height(), uiNode_t_left(), uiNode_t_top(), uiNode_t_width(), and uiMaterialEditorNode::updateView().

◆ color

◆ contentAlign

◆ deleteTime

int uiNode_t::deleteTime

delayed delete time

Definition at line 113 of file ui_nodes.h.

Referenced by UI_AbstractNodeCallDeleteTimed(), and UI_DrawNode().

◆ disabled

◆ disabledColor

◆ dragdrop

bool uiNode_t::dragdrop

set to true to enable dragdrop on this node

Definition at line 165 of file ui_nodes.h.

Referenced by uiLocatedNode::onDndDrop(), uiLocatedNode::onDndEnter(), uiLocatedNode::onDndFinished(), uiLocatedNode::onDndLeave(), and uiLocatedNode::onDndMove().

◆ dynamic

◆ firstChild

◆ firstExcludeRect

uiExcludeRect_t* uiNode_t::firstExcludeRect

linked list of exclude rect, which exclude node zone for hover or click functions

Definition at line 116 of file ui_nodes.h.

Referenced by UI_GetNodeInTreeAtPosition(), and UI_ParseExcludeRect().

◆ flash

bool uiNode_t::flash

is node flashing

Definition at line 107 of file ui_nodes.h.

Referenced by uiButtonNode::draw(), UI_Node_IsFlashing(), and uiNode_t_set_flashing().

◆ flashColor

vec4_t uiNode_t::flashColor

rgbx The color of the flashing effect.

Definition at line 129 of file ui_nodes.h.

Referenced by uiButtonNode::draw(), uiButtonNode::onLoading(), and uiNode_t_set_flashcolor().

◆ flashSpeed

float uiNode_t::flashSpeed

speed of the flashing effect

Definition at line 108 of file ui_nodes.h.

Referenced by uiButtonNode::draw(), uiButtonNode::onLoading(), uiNode_t_flashspeed(), and uiNode_t_set_flashspeed().

◆ font

char* uiNode_t::font

Font to draw text

Definition at line 122 of file ui_nodes.h.

Referenced by uiWindowNode::onLoading(), UI_GetFontFromNode(), UI_Node_SetFont(), and uiNode_t_font().

◆ ghost

bool uiNode_t::ghost

true if the node is not tangible

Definition at line 105 of file ui_nodes.h.

Referenced by UI_GetNodeInTreeAtPosition(), UI_Node_IsGhost(), and uiNode_t_set_ghost().

◆ image

◆ indexed

bool uiNode_t::indexed

If true, it use dynamic memory

Definition at line 86 of file ui_nodes.h.

Referenced by UI_InsertNode(), and UI_RemoveNode().

◆ invalidated

◆ invis

◆ key

struct uiKeyBinding_s* uiNode_t::key

key bindings - used as tooltip

Definition at line 100 of file ui_nodes.h.

Referenced by UI_SetKeyBindingEx(), and UI_Tooltip().

◆ lastChild

uiNode_t* uiNode_t::lastChild

last element of linked list of child

Definition at line 90 of file ui_nodes.h.

Referenced by UI_AbstractOption_SortOptions(), UI_AppendNode(), UI_CloneNode(), UI_InsertNode(), UI_RemoveNode(), and uiNode_t_last().

◆ lua_onActivate

LUA_EVENT uiNode_t::lua_onActivate

references the event in lua: on_activate (node)

Definition at line 159 of file ui_nodes.h.

Referenced by uiNode::initNode(), and uiNode::onActivate().

◆ lua_onChange

◆ lua_onClick

◆ lua_onDragDropDrop

LUA_EVENT uiNode_t::lua_onDragDropDrop

Send to the target to finalize the drop references the event in lua: on_dragdropdrop (node, x, y)

Definition at line 173 of file ui_nodes.h.

Referenced by uiNode::initNode(), and uiLocatedNode::onDndDrop().

◆ lua_onDragDropEnter

LUA_EVENT uiNode_t::lua_onDragDropEnter

Send to the target when we enter first, return true if we can drop the DND somewhere on the node references the event in lua: on_dragdropenter (node)

Definition at line 167 of file ui_nodes.h.

Referenced by uiNode::initNode(), and uiLocatedNode::onDndEnter().

◆ lua_onDragDropFinished

LUA_EVENT uiNode_t::lua_onDragDropFinished

Sent to the source to finalize the drop references the event in lua: on_dragdropfinished (node, isdropped)

Definition at line 175 of file ui_nodes.h.

Referenced by uiNode::initNode(), and uiLocatedNode::onDndFinished().

◆ lua_onDragDropLeave

LUA_EVENT uiNode_t::lua_onDragDropLeave

Send to the target when the DND is canceled references the event in lua: on_dragdropleave (node)

Definition at line 169 of file ui_nodes.h.

Referenced by uiNode::initNode(), and uiLocatedNode::onDndLeave().

◆ lua_onDragDropMove

LUA_EVENT uiNode_t::lua_onDragDropMove

Send to the target when we enter first, return true if we can drop the DND here references the event in lua: on_dragdropmove (node, x, y)

Definition at line 171 of file ui_nodes.h.

Referenced by uiNode::initNode(), and uiLocatedNode::onDndMove().

◆ lua_onFocusGained

LUA_EVENT uiNode_t::lua_onFocusGained

references the event in lua: on_focusgained (node)

Definition at line 154 of file ui_nodes.h.

Referenced by uiNode::initNode(), and uiLocatedNode::onFocusGained().

◆ lua_onFocusLost

LUA_EVENT uiNode_t::lua_onFocusLost

references the event in lua: on_focuslost (node)

Definition at line 155 of file ui_nodes.h.

Referenced by uiNode::initNode(), and uiLocatedNode::onFocusLost().

◆ lua_onKeyPressed

LUA_EVENT uiNode_t::lua_onKeyPressed

references the event in lua: on_keypressed (node, key, unicode)

Definition at line 156 of file ui_nodes.h.

Referenced by uiNode::initNode(), and uiLocatedNode::onKeyPressed().

◆ lua_onKeyReleased

LUA_EVENT uiNode_t::lua_onKeyReleased

references the event in lua: on_keyreleased (node, key, unicode)

Definition at line 157 of file ui_nodes.h.

Referenced by uiNode::initNode(), and uiLocatedNode::onKeyReleased().

◆ lua_onLoaded

LUA_EVENT uiNode_t::lua_onLoaded

references the event in lua: on_loaded (node)

Definition at line 158 of file ui_nodes.h.

Referenced by uiNode::initNode(), and uiNode::onLoaded().

◆ lua_onMiddleClick

LUA_EVENT uiNode_t::lua_onMiddleClick

references the event in lua: on_middleclick (node, x, y)

Definition at line 150 of file ui_nodes.h.

Referenced by uiNode::initNode(), and uiLocatedNode::onMiddleClick().

◆ lua_onMouseEnter

LUA_EVENT uiNode_t::lua_onMouseEnter

references the event in lua: on_mouseenter (node)

Definition at line 160 of file ui_nodes.h.

Referenced by uiNode::initNode(), and uiLocatedNode::onMouseEnter().

◆ lua_onMouseLeave

LUA_EVENT uiNode_t::lua_onMouseLeave

references the event in lua: on_mouseleave (node)

Definition at line 161 of file ui_nodes.h.

Referenced by uiNode::initNode(), and uiLocatedNode::onMouseLeave().

◆ lua_onRightClick

LUA_EVENT uiNode_t::lua_onRightClick

references the event in lua: on_rightclick (node, x, y)

Definition at line 149 of file ui_nodes.h.

Referenced by uiNode::initNode(), uiLocatedNode::onRightClick(), and uiTextListNode::onRightClick().

◆ lua_onVisibleWhen

LUA_EVENT uiNode_t::lua_onVisibleWhen

references the event in lua: on_visible (node)

Definition at line 163 of file ui_nodes.h.

Referenced by uiNode::initNode(), and UI_CheckVisibility().

◆ lua_onWheel

LUA_EVENT uiNode_t::lua_onWheel

references the event in lua: on_wheel (node, dx, dy)

Definition at line 153 of file ui_nodes.h.

Referenced by uiNode::initNode(), and uiLocatedNode::onScroll().

◆ lua_onWheelDown

LUA_EVENT uiNode_t::lua_onWheelDown

references the event in lua: on_wheeldown (node, dx, dy)

Definition at line 152 of file ui_nodes.h.

Referenced by uiNode::initNode(), and uiLocatedNode::onScroll().

◆ lua_onWheelUp

LUA_EVENT uiNode_t::lua_onWheelUp

references the event in lua: on_wheelup (node, dx, dy)

Definition at line 151 of file ui_nodes.h.

Referenced by uiNode::initNode(), and uiLocatedNode::onScroll().

◆ name

◆ next

◆ nodeMethods

hashTable_s* uiNode_t::nodeMethods

hash map for storing lua defined node functions

Definition at line 132 of file ui_nodes.h.

Referenced by uiNode::deleteNode(), UI_AddNodeMethod(), and UI_CloneNode().

◆ num

int uiNode_t::num

used to identify child into a parent; not sure it is need

Todo
delete it

Definition at line 111 of file ui_nodes.h.

Referenced by uiMaterialEditorNode::draw(), uiMaterialEditorNode::onMouseDown(), and uiMaterialEditorNode::onWindowOpened().

◆ onChange

◆ onClick

◆ onMiddleClick

struct uiAction_s* uiNode_t::onMiddleClick

Definition at line 137 of file ui_nodes.h.

Referenced by uiImageNode::onLoaded(), and uiLocatedNode::onMiddleClick().

◆ onMouseEnter

struct uiAction_s* uiNode_t::onMouseEnter

Definition at line 139 of file ui_nodes.h.

Referenced by uiImageNode::onLoaded(), and uiLocatedNode::onMouseEnter().

◆ onMouseLeave

struct uiAction_s* uiNode_t::onMouseLeave

Definition at line 140 of file ui_nodes.h.

Referenced by uiImageNode::onLoaded(), and uiLocatedNode::onMouseLeave().

◆ onRightClick

struct uiAction_s* uiNode_t::onRightClick

◆ onWheel

◆ onWheelDown

◆ onWheelUp

◆ padding

◆ parent

◆ root

◆ selectedColor

◆ state

◆ super

uiNode_t const* uiNode_t::super

◆ text

◆ tooltip

char* uiNode_t::tooltip

◆ visibilityCondition

struct uiAction_s* uiNode_t::visibilityCondition

cvar condition to display/hide the node

Definition at line 112 of file ui_nodes.h.

Referenced by UI_CheckVisibility().


The documentation for this struct was generated from the following file: