uiBehaviour_s Struct Reference

node behaviour, how a node work More...

#include <ui_nodes.h>

Collaboration diagram for uiBehaviour_s:
Collaboration graph
[legend]

Data Fields

const char * name
const char * extends
qboolean isVirtual
qboolean isFunction
qboolean isAbstract
qboolean isInitialized
qboolean focusEnabled
qboolean drawItselfChild
const value_tproperties
int propertyCount
intptr_t extraDataSize
struct uiBehaviour_ssuper
void(* draw )(uiNode_t *node)
void(* drawTooltip )(uiNode_t *node, int x, int y)
void(* drawOverWindow )(uiNode_t *node)
void(* leftClick )(uiNode_t *node, int x, int y)
void(* rightClick )(uiNode_t *node, int x, int y)
void(* middleClick )(uiNode_t *node, int x, int y)
void(* mouseWheel )(uiNode_t *node, qboolean down, int x, int y)
void(* mouseMove )(uiNode_t *node, int x, int y)
void(* mouseDown )(uiNode_t *node, int x, int y, int button)
void(* mouseUp )(uiNode_t *node, int x, int y, int button)
void(* capturedMouseMove )(uiNode_t *node, int x, int y)
void(* capturedMouseLost )(uiNode_t *node)
void(* loading )(uiNode_t *node)
void(* loaded )(uiNode_t *node)
void(* clone )(const uiNode_t *source, uiNode_t *clone)
void(* new )(uiNode_t *node)
void(* delete )(uiNode_t *node)
void(* init )(uiNode_t *node)
void(* close )(uiNode_t *node)
void(* doLayout )(uiNode_t *node)
void(* activate )(uiNode_t *node)
void(* propertyChanged )(uiNode_t *node, const value_t *property)
void(* sizeChanged )(uiNode_t *node)
void(* getClientPosition )(uiNode_t *node, vec2_t position)
qboolean(* dndEnter )(uiNode_t *node)
qboolean(* dndMove )(uiNode_t *node, int x, int y)
void(* dndLeave )(uiNode_t *node)
qboolean(* dndDrop )(uiNode_t *node, int x, int y)
qboolean(* dndFinished )(uiNode_t *node, qboolean isDroped)
void(* focusGained )(uiNode_t *node)
void(* focusLost )(uiNode_t *node)
qboolean(* keyPressed )(uiNode_t *node, unsigned int key, unsigned short unicode)

Detailed Description

node behaviour, how a node work

See also:
virtualFunctions

Definition at line 134 of file ui_nodes.h.


Field Documentation

Activate the node. Can be used without the mouse (ie. a button will execute onClick)

Referenced by UI_KeyPressedInWindow(), UI_RegisterAbstractNode(), UI_RegisterCheckBoxNode(), and UI_RegisterRadioButtonNode().

void(* uiBehaviour_s::capturedMouseMove)(uiNode_t *node, int x, int y)
void(* uiBehaviour_s::clone)(const uiNode_t *source, uiNode_t *clone)

call to delete a dynamic node

Referenced by UI_DeleteNode(), UI_RegisterAbstractValueNode(), and UI_RegisterModelNode().

qboolean(* uiBehaviour_s::dndDrop)(uiNode_t *node, int x, int y)

Send to the target to finalize the drop

Referenced by UI_DNDDrop(), and UI_RegisterAbstractNode().

Send to the target when we enter first, return true if we can drop the DND somewhere on the node

Referenced by UI_DNDMouseMove(), UI_RegisterAbstractNode(), UI_RegisterBaseInventoryNode(), and UI_RegisterContainerNode().

Sent to the source to finalize the drop

Referenced by UI_DNDAbort(), UI_DNDDrop(), UI_RegisterAbstractNode(), and UI_RegisterContainerNode().

qboolean(* uiBehaviour_s::dndMove)(uiNode_t *node, int x, int y)

Send to the target when we enter first, return true if we can drop the DND here

Referenced by UI_DNDMouseMove(), UI_RegisterAbstractNode(), UI_RegisterBaseInventoryNode(), and UI_RegisterContainerNode().

void(* uiBehaviour_s::draw)(uiNode_t *node)

if true, the node draw function must draw child, the core code will not do it

Definition at line 143 of file ui_nodes.h.

Referenced by UI_DrawNode(), UI_RegisterAbstractOptionNode(), UI_RegisterModelNode(), UI_RegisterOptionListNode(), UI_RegisterOptionTreeNode(), UI_RegisterSelectBoxNode(), and UI_RegisterTabNode().

void(* uiBehaviour_s::drawTooltip)(uiNode_t *node, int x, int y)

true if the node can win the focus (should be use when type TAB)

Definition at line 142 of file ui_nodes.h.

Return the position of the client zone into the node

Referenced by UI_DrawNode(), UI_GetNodeInTreeAtPosition(), and UI_RegisterPanelNode().

void(* uiBehaviour_s::init)(uiNode_t *node)

true, if the node is a function

Definition at line 139 of file ui_nodes.h.

Referenced by UI_ParseFunction(), UI_ParseNodeBody(), UI_RegisterConFuncNode(), UI_RegisterCvarFuncNode(), and UI_RegisterFuncNode().

cache if we already have initialized the node behaviour

Definition at line 141 of file ui_nodes.h.

Referenced by UI_InitializeNodeBehaviour().

qboolean(* uiBehaviour_s::keyPressed)(uiNode_t *node, unsigned int key, unsigned short unicode)
void(* uiBehaviour_s::leftClick)(uiNode_t *node, int x, int y)
void(* uiBehaviour_s::middleClick)(uiNode_t *node, int x, int y)

middle mouse button click event in the node

Referenced by UI_MiddleClick(), and UI_RegisterBaseMapNode().

void(* uiBehaviour_s::mouseDown)(uiNode_t *node, int x, int y, int button)
void(* uiBehaviour_s::mouseMove)(uiNode_t *node, int x, int y)
void(* uiBehaviour_s::mouseUp)(uiNode_t *node, int x, int y, int button)
void(* uiBehaviour_s::mouseWheel)(uiNode_t *node, qboolean down, int x, int y)
const char* uiBehaviour_s::name

name of the behaviour: string type of a node

Definition at line 136 of file ui_nodes.h.

Referenced by UI_CloneNode(), UI_DebugTree(), UI_EditorNodeExtractNode(), UI_GetStringFromExpression(), UI_InitializeNodeBehaviour(), UI_InitNodes(), UI_NodeInstanceOf(), UI_ParseNode(), UI_RegisterAbstractBaseNode(), UI_RegisterAbstractNode(), UI_RegisterAbstractOptionNode(), UI_RegisterAbstractScrollableNode(), UI_RegisterAbstractScrollbarNode(), UI_RegisterAbstractValueNode(), UI_RegisterBarNode(), UI_RegisterBaseInventoryNode(), UI_RegisterBaseLayoutNode(), UI_RegisterBaseMapNode(), UI_RegisterButtonNode(), UI_RegisterCheckBoxNode(), UI_RegisterConFuncNode(), UI_RegisterContainerNode(), UI_RegisterControlsNode(), UI_RegisterCustomButtonNode(), UI_RegisterCvarFuncNode(), UI_RegisterEditorNode(), UI_RegisterEKGNode(), UI_RegisterFuncNode(), UI_RegisterImageNode(), UI_RegisterItemNode(), UI_RegisterKeyBindingNode(), UI_RegisterLineChartNode(), UI_RegisterMapNode(), UI_RegisterMaterialEditorNode(), UI_RegisterMessageListNode(), UI_RegisterModelNode(), UI_RegisterNullNode(), UI_RegisterOptionListNode(), UI_RegisterOptionNode(), UI_RegisterOptionTreeNode(), UI_RegisterPanelNode(), UI_RegisterRadarNode(), UI_RegisterRadioButtonNode(), UI_RegisterRowsNode(), UI_RegisterSelectBoxNode(), UI_RegisterSequenceNode(), UI_RegisterSpecialNode(), UI_RegisterSpinnerNode(), UI_RegisterStringNode(), UI_RegisterTabNode(), UI_RegisterTBarNode(), UI_RegisterText2Node(), UI_RegisterTextEntryNode(), UI_RegisterTextListNode(), UI_RegisterTextNode(), UI_RegisterTodoNode(), UI_RegisterVideoNode(), UI_RegisterVScrollbarNode(), UI_RegisterWindowNode(), and UI_RegisterZoneNode().

void(* uiBehaviour_s::new)(uiNode_t *node)

call to initialize a dynamic node

Referenced by UI_AllocNode(), UI_CloneNode(), UI_RegisterAbstractValueNode(), and UI_RegisterModelNode().

void(* uiBehaviour_s::propertyChanged)(uiNode_t *node, const value_t *property)

number of the properties into the propertiesList. Cache value to speedup search

Definition at line 145 of file ui_nodes.h.

Referenced by UI_InitializeNodeBehaviour().

void(* uiBehaviour_s::rightClick)(uiNode_t *node, int x, int y)

right mouse button click event in the node

Referenced by UI_RegisterBaseMapNode(), UI_RegisterText2Node(), UI_RegisterTextListNode(), UI_RegisterTextNode(), and UI_RightClick().

Called when the node size change

Referenced by UI_AbstractNodePropertyChanged(), UI_NodeSetSize(), and UI_RegisterAbstractNode().


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

Generated by  doxygen 1.6.2