UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
uiNode_t Struct Reference

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

#include <ui_nodes.h>

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_skey
 
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_svisibilityCondition
 
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_sonClick
 
struct uiAction_sonRightClick
 
struct uiAction_sonMiddleClick
 
struct uiAction_sonWheel
 
struct uiAction_sonMouseEnter
 
struct uiAction_sonMouseLeave
 
struct uiAction_sonWheelUp
 
struct uiAction_sonWheelDown
 
struct uiAction_sonChange
 
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

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(), and UI_StarLayout().

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(), uiOptionNode::doLayout(), uiAbstractOptionNode::doLayout(), uiModelNode::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_Shutdown(), UI_SpinnerNodeRepeat(), UI_TextScrollEnd(), and UI_Window_SetCloseButton().

vec4_t uiNode_t::bgcolor

rgba

Definition at line 125 of file ui_nodes.h.

Referenced by uiBaseLayoutNode::draw(), uiBaseLayoutNode::onLoading(), and UI_DrawNode().

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().

vec4_t uiNode_t::bordercolor

rgba - see border and padding

Definition at line 126 of file ui_nodes.h.

Referenced by UI_DrawNode().

uiBox_t uiNode_t::box

Definition at line 96 of file ui_nodes.h.

Referenced by uiWindowNode::doLayout(), uiModelNode::doLayout(), uiTextNode::doLayout(), uiBattleScapeNode::draw(), uiStringNode::draw(), uiVScrollbarNode::draw(), uiBaseLayoutNode::draw(), uiMaterialEditorNode::draw(), uiBarNode::draw(), uiMessageListNode::draw(), uiTBarNode::draw(), uiTextureNode::draw(), uiOptionTreeNode::draw(), uiPanelNode::draw(), uiItemNode::draw(), uiLineChartNode::draw(), uiRowsNode::draw(), uiSelectBoxNode::draw(), uiTabNode::draw(), uiOptionListNode::draw(), uiButtonNode::draw(), uiRadarNode::draw(), uiCheckBoxNode::draw(), uiRadioButtonNode::draw(), uiSequenceNode::draw(), uiTextEntryNode::draw(), uiImageNode::draw(), uiWindowNode::draw(), uiGeoscapeNode::draw(), uiSpinnerNode::draw(), uiSelectBoxNode::drawOverWindow(), uiVideoNode::drawOverWindow(), uiTextListNode::drawText(), uiText2Node::drawText(), uiTextNode::drawText(), uiStringNode::drawTooltip(), uiSpinnerNode::isPositionIncrease(), uiAbstractScrollableNode::isSizeChange(), uiEditorNode::onCapturedMouseMove(), uiControlNode::onCapturedMouseMove(), uiSelectBoxNode::onCapturedMouseMove(), uiVScrollbarNode::onCapturedMouseMove(), uiBarNode::onCapturedMouseMove(), uiRadarNode::onCapturedMouseMove(), uiGeoscapeNode::onCapturedMouseMove(), uiTextEntryNode::onFocusGained(), uiSelectBoxNode::onLeftClick(), uiVScrollbarNode::onLoaded(), uiButtonNode::onLoaded(), uiImageNode::onLoaded(), uiSelectBoxNode::onLoaded(), uiText2Node::onLoaded(), uiContainerNode::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_DrawNotice(), 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(), and uiMaterialEditorNode::updateView().

int uiNode_t::deleteTime

delayed delete time

Definition at line 113 of file ui_nodes.h.

Referenced by UI_AbstractNodeCallDeleteTimed(), and UI_DrawNode().

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().

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().

bool uiNode_t::flash

is node flashing

Definition at line 107 of file ui_nodes.h.

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

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(), and uiButtonNode::onLoading().

float uiNode_t::flashSpeed

speed of the flashing effect

Definition at line 108 of file ui_nodes.h.

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

char* uiNode_t::font

Font to draw text

Definition at line 122 of file ui_nodes.h.

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

bool uiNode_t::ghost

true if the node is not tangible

Definition at line 105 of file ui_nodes.h.

Referenced by UI_GetNodeInTreeAtPosition(), and UI_Node_IsGhost().

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().

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().

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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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(), uiTextListNode::onRightClick(), and uiLocatedNode::onRightClick().

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_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_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_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().

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().

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(), uiMaterialEditorNode::onWindowOpened(), and UI_GetDataIDByName().

struct uiAction_s* uiNode_t::onMiddleClick

Definition at line 137 of file ui_nodes.h.

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

struct uiAction_s* uiNode_t::onMouseEnter

Definition at line 139 of file ui_nodes.h.

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

struct uiAction_s* uiNode_t::onMouseLeave
uiNode_t const* uiNode_t::super
char* uiNode_t::tooltip
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: