Dry
Classes | Enumerations | Functions
UIElement.h File Reference
#include "../Math/Vector2.h"
#include "../Input/InputConstants.h"
#include "../Resource/XMLFile.h"
#include "../Scene/Animatable.h"
#include "../UI/UIBatch.h"

Classes

class  Dry::UIElement
 Base class for UI elements. More...
 

Enumerations

enum  Dry::HorizontalAlignment { HA_LEFT = 0, HA_CENTER, HA_RIGHT, HA_CUSTOM }
 UI element horizontal alignment.
 
enum  Dry::VerticalAlignment { VA_TOP = 0, VA_CENTER, VA_BOTTOM, VA_CUSTOM }
 UI element vertical alignment.
 
enum  Dry::Corner {
  C_TOPLEFT = 0, C_TOPRIGHT, C_BOTTOMLEFT, C_BOTTOMRIGHT,
  MAX_UIELEMENT_CORNERS
}
 UI element corners.
 
enum  Dry::Orientation { O_HORIZONTAL = 0, O_VERTICAL }
 UI element orientation.
 
enum  Dry::FocusMode { Dry::FM_NOTFOCUSABLE = 0, Dry::FM_RESETFOCUS, Dry::FM_FOCUSABLE, Dry::FM_FOCUSABLE_DEFOCUSABLE }
 UI element focus mode. More...
 
enum  Dry::LayoutMode { Dry::LM_FREE = 0, Dry::LM_HORIZONTAL, Dry::LM_VERTICAL }
 Layout operation mode. More...
 
enum  Dry::TraversalMode { Dry::TM_BREADTH_FIRST = 0, Dry::TM_DEPTH_FIRST }
 Traversal mode for rendering. More...
 
enum  Dry::DragAndDropMode : unsigned { Dry::DD_DISABLED = 0x0, Dry::DD_SOURCE = 0x1, Dry::DD_TARGET = 0x2, Dry::DD_SOURCE_AND_TARGET = 0x3 }
 

Functions

 Dry::DRY_FLAGSET (DragAndDropMode, DragAndDropModeFlags)
 

Enumeration Type Documentation

◆ DragAndDropMode

enum Dry::DragAndDropMode : unsigned
Enumerator
DD_DISABLED 

Drag and drop disabled.

DD_SOURCE 

Drag and drop source flag.

DD_TARGET 

Drag and drop target flag.

DD_SOURCE_AND_TARGET 

Drag and drop source and target.

◆ FocusMode

UI element focus mode.

Enumerator
FM_NOTFOCUSABLE 

Is not focusable and does not affect existing focus.

FM_RESETFOCUS 

Resets focus when clicked.

FM_FOCUSABLE 

Is focusable.

FM_FOCUSABLE_DEFOCUSABLE 

Is focusable and also defocusable by pressing ESC.

◆ LayoutMode

Layout operation mode.

Enumerator
LM_FREE 

No layout operations will be performed.

LM_HORIZONTAL 

Layout child elements horizontally and resize them to fit. Resize element if necessary.

LM_VERTICAL 

Layout child elements vertically and resize them to fit. Resize element if necessary.

◆ TraversalMode

Traversal mode for rendering.

Enumerator
TM_BREADTH_FIRST 

Traverse through children having same priority first and recurse into their children before traversing children having higher priority.

TM_DEPTH_FIRST 

Traverse through each child and its children immediately after in sequence.