#include "ui_node_abstractscrollable.h"
Go to the source code of this file.
Data Structures | |
struct | panelExtraData_t |
extradata for the panel node More... | |
Defines | |
#define | UI_GET_VERTICAL_ALIGN(align) ((align >= LAYOUTALIGN_SPECIAL)?LAYOUTALIGN_NONE:(LAYOUTALIGN_V_MASK & align)) |
#define | UI_GET_HORIZONTAL_ALIGN(align) ((align >= LAYOUTALIGN_SPECIAL)?LAYOUTALIGN_NONE:(LAYOUTALIGN_H_MASK & align)) |
Enumerations | |
enum | panelLayout_t { LAYOUT_NONE, LAYOUT_TOP_DOWN_FLOW, LAYOUT_BORDER, LAYOUT_PACK, LAYOUT_STAR, LAYOUT_CLIENT, LAYOUT_COLUMN, LAYOUT_MAX, LAYOUT_ENSURE_32BIT = 0x7FFFFFFF } |
enum | layoutAlign_t { LAYOUTALIGN_NONE = 0, LAYOUTALIGN_H_MASK = 0x03, LAYOUTALIGN_H_LEFT = 0x01, LAYOUTALIGN_H_MIDDLE = 0x02, LAYOUTALIGN_H_RIGHT = 0x03, LAYOUTALIGN_V_MASK = 0x0C, LAYOUTALIGN_V_TOP = 0x04, LAYOUTALIGN_V_MIDDLE = 0x08, LAYOUTALIGN_V_BOTTOM = 0x0C, LAYOUTALIGN_TOPLEFT = LAYOUTALIGN_V_TOP | LAYOUTALIGN_H_LEFT, LAYOUTALIGN_TOP = LAYOUTALIGN_V_TOP | LAYOUTALIGN_H_MIDDLE, LAYOUTALIGN_TOPRIGHT = LAYOUTALIGN_V_TOP | LAYOUTALIGN_H_RIGHT, LAYOUTALIGN_LEFT = LAYOUTALIGN_V_MIDDLE | LAYOUTALIGN_H_LEFT, LAYOUTALIGN_MIDDLE = LAYOUTALIGN_V_MIDDLE | LAYOUTALIGN_H_MIDDLE, LAYOUTALIGN_RIGHT = LAYOUTALIGN_V_MIDDLE | LAYOUTALIGN_H_RIGHT, LAYOUTALIGN_BOTTOMLEFT = LAYOUTALIGN_V_BOTTOM | LAYOUTALIGN_H_LEFT, LAYOUTALIGN_BOTTOM = LAYOUTALIGN_V_BOTTOM | LAYOUTALIGN_H_MIDDLE, LAYOUTALIGN_BOTTOMRIGHT = LAYOUTALIGN_V_BOTTOM | LAYOUTALIGN_H_RIGHT, LAYOUTALIGN_SPECIAL = 0x10, LAYOUTALIGN_FILL, LAYOUTALIGN_MAX, LAYOUTALIGN_ENSURE_32BIT = 0x7FFFFFFF } |
Functions | |
void | UI_RegisterPanelNode (struct uiBehaviour_s *behaviour) |
void | UI_StarLayout (struct uiNode_s *node) |
Do a star layout with child according to there num. |
Definition in file ui_node_panel.h.
#define UI_GET_HORIZONTAL_ALIGN | ( | align | ) | ((align >= LAYOUTALIGN_SPECIAL)?LAYOUTALIGN_NONE:(LAYOUTALIGN_H_MASK & align)) |
align | a layoutAlign_t |
Definition at line 89 of file ui_node_panel.h.
Referenced by UI_NodeGetPoint().
#define UI_GET_VERTICAL_ALIGN | ( | align | ) | ((align >= LAYOUTALIGN_SPECIAL)?LAYOUTALIGN_NONE:(LAYOUTALIGN_V_MASK & align)) |
align | a layoutAlign_t |
Definition at line 84 of file ui_node_panel.h.
Referenced by UI_NodeGetPoint().
enum layoutAlign_t |
Definition at line 46 of file ui_node_panel.h.
enum panelLayout_t |
LAYOUT_NONE | |
LAYOUT_TOP_DOWN_FLOW | |
LAYOUT_BORDER | |
LAYOUT_PACK | |
LAYOUT_STAR | |
LAYOUT_CLIENT | |
LAYOUT_COLUMN | |
LAYOUT_MAX | |
LAYOUT_ENSURE_32BIT |
Definition at line 33 of file ui_node_panel.h.
void UI_RegisterPanelNode | ( | struct uiBehaviour_s * | behaviour | ) |
Definition at line 479 of file ui_node_panel.c.
References Com_RegisterConstInt(), uiBehaviour_s::doLayout, uiBehaviour_s::draw, uiBehaviour_s::extends, EXTRADATA_TYPE, uiBehaviour_s::extraDataSize, uiBehaviour_s::getClientPosition, LAYOUT_BORDER, LAYOUT_CLIENT, LAYOUT_COLUMN, LAYOUT_PACK, LAYOUT_STAR, LAYOUT_TOP_DOWN_FLOW, LAYOUTALIGN_BOTTOM, LAYOUTALIGN_BOTTOMLEFT, LAYOUTALIGN_BOTTOMRIGHT, LAYOUTALIGN_FILL, LAYOUTALIGN_LEFT, LAYOUTALIGN_MIDDLE, LAYOUTALIGN_RIGHT, LAYOUTALIGN_TOP, LAYOUTALIGN_TOPLEFT, LAYOUTALIGN_TOPRIGHT, uiBehaviour_s::loaded, uiBehaviour_s::name, uiBehaviour_s::properties, uiBehaviour_s::propertyChanged, UI_GetPropertyFromBehaviour(), UI_PanelNodeDoLayout(), UI_PanelNodeDraw(), UI_PanelNodeGetClientPosition(), UI_PanelNodeLoaded(), and UI_PanelPropertyChanged().
void UI_StarLayout | ( | uiNode_t * | node | ) |
Do a star layout with child according to there num.
Definition at line 258 of file ui_node_panel.c.
References uiNode_s::align, uiNode_s::behaviour, uiBehaviour_s::doLayout, uiNode_s::firstChild, LAYOUTALIGN_FILL, LAYOUTALIGN_NONE, LAYOUTALIGN_SPECIAL, uiNode_s::next, uiNode_s::pos, uiNode_s::size, UI_NodeGetPoint(), UI_NodeRelativeToAbsolutePoint(), and UI_NodeSetSize().
Referenced by UI_PanelNodeDoLayout(), and UI_WindowNodeDoLayout().