Otclient  14/8/2020
Fw Namespace Reference

Enumerations

enum  Key : unsigned char {
  KeyUnknown = 0, KeyEscape = 1, KeyTab = 2, KeyBackspace = 3,
  KeyEnter = 5, KeyInsert = 6, KeyDelete = 7, KeyPause = 8,
  KeyPrintScreen = 9, KeyHome = 10, KeyEnd = 11, KeyPageUp = 12,
  KeyPageDown = 13, KeyUp = 14, KeyDown = 15, KeyLeft = 16,
  KeyRight = 17, KeyNumLock = 18, KeyScrollLock = 19, KeyCapsLock = 20,
  KeyCtrl = 21, KeyShift = 22, KeyAlt = 23, KeyMeta = 25,
  KeyMenu = 26, KeySpace = 32, KeyExclamation = 33, KeyQuote = 34,
  KeyNumberSign = 35, KeyDollar = 36, KeyPercent = 37, KeyAmpersand = 38,
  KeyApostrophe = 39, KeyLeftParen = 40, KeyRightParen = 41, KeyAsterisk = 42,
  KeyPlus = 43, KeyComma = 44, KeyMinus = 45, KeyPeriod = 46,
  KeySlash = 47, Key0 = 48, Key1 = 49, Key2 = 50,
  Key3 = 51, Key4 = 52, Key5 = 53, Key6 = 54,
  Key7 = 55, Key8 = 56, Key9 = 57, KeyColon = 58,
  KeySemicolon = 59, KeyLess = 60, KeyEqual = 61, KeyGreater = 62,
  KeyQuestion = 63, KeyAtSign = 64, KeyA = 65, KeyB = 66,
  KeyC = 67, KeyD = 68, KeyE = 69, KeyF = 70,
  KeyG = 71, KeyH = 72, KeyI = 73, KeyJ = 74,
  KeyK = 75, KeyL = 76, KeyM = 77, KeyN = 78,
  KeyO = 79, KeyP = 80, KeyQ = 81, KeyR = 82,
  KeyS = 83, KeyT = 84, KeyU = 85, KeyV = 86,
  KeyW = 87, KeyX = 88, KeyY = 89, KeyZ = 90,
  KeyLeftBracket = 91, KeyBackslash = 92, KeyRightBracket = 93, KeyCaret = 94,
  KeyUnderscore = 95, KeyGrave = 96, KeyLeftCurly = 123, KeyBar = 124,
  KeyRightCurly = 125, KeyTilde = 126, KeyF1 = 128, KeyF2 = 129,
  KeyF3 = 130, KeyF4 = 131, KeyF5 = 132, KeyF6 = 134,
  KeyF7 = 135, KeyF8 = 136, KeyF9 = 137, KeyF10 = 138,
  KeyF11 = 139, KeyF12 = 140, KeyNumpad0 = 141, KeyNumpad1 = 142,
  KeyNumpad2 = 143, KeyNumpad3 = 144, KeyNumpad4 = 145, KeyNumpad5 = 146,
  KeyNumpad6 = 147, KeyNumpad7 = 148, KeyNumpad8 = 149, KeyNumpad9 = 150
}
 
enum  LogLevel {
  LogDebug = 0, LogInfo, LogWarning, LogError,
  LogFatal
}
 
enum  AspectRatioMode { IgnoreAspectRatio, KeepAspectRatio, KeepAspectRatioByExpanding }
 
enum  AlignmentFlag {
  AlignNone = 0, AlignLeft = 1, AlignRight = 2, AlignTop = 4,
  AlignBottom = 8, AlignHorizontalCenter = 16, AlignVerticalCenter = 32, AlignTopLeft = AlignTop | AlignLeft,
  AlignTopRight = AlignTop | AlignRight, AlignBottomLeft = AlignBottom | AlignLeft, AlignBottomRight = AlignBottom | AlignRight, AlignLeftCenter = AlignLeft | AlignVerticalCenter,
  AlignRightCenter = AlignRight | AlignVerticalCenter, AlignTopCenter = AlignTop | AlignHorizontalCenter, AlignBottomCenter = AlignBottom | AlignHorizontalCenter, AlignCenter = AlignVerticalCenter | AlignHorizontalCenter
}
 
enum  AnchorEdge {
  AnchorNone = 0, AnchorTop, AnchorBottom, AnchorLeft,
  AnchorRight, AnchorVerticalCenter, AnchorHorizontalCenter
}
 
enum  FocusReason { MouseFocusReason = 0, KeyboardFocusReason, ActiveFocusReason, OtherFocusReason }
 
enum  AutoFocusPolicy { AutoFocusNone = 0, AutoFocusFirst, AutoFocusLast }
 
enum  InputEventType {
  NoInputEvent = 0, KeyTextInputEvent, KeyDownInputEvent, KeyPressInputEvent,
  KeyUpInputEvent, MousePressInputEvent, MouseReleaseInputEvent, MouseMoveInputEvent,
  MouseWheelInputEvent
}
 
enum  MouseButton { MouseNoButton = 0, MouseLeftButton, MouseRightButton, MouseMidButton }
 
enum  MouseWheelDirection { MouseNoWheel = 0, MouseWheelUp, MouseWheelDown }
 
enum  KeyboardModifier { KeyboardNoModifier = 0, KeyboardCtrlModifier = 1, KeyboardAltModifier = 2, KeyboardShiftModifier = 4 }
 
enum  WidgetState {
  InvalidState = -1, DefaultState = 0, ActiveState = 1, FocusState = 2,
  HoverState = 4, PressedState = 8, DisabledState = 16, CheckedState = 32,
  OnState = 64, FirstState = 128, MiddleState = 256, LastState = 512,
  AlternateState = 1024, DraggingState = 2048, HiddenState = 4096, LastWidgetState = 8192
}
 
enum  DrawPane { ForegroundPane = 1, BackgroundPane = 2, BothPanes = 3 }
 

Functions

AlignmentFlag translateAlignment (std::string aligment)
 
AnchorEdge translateAnchorEdge (std::string anchorEdge)
 
WidgetState translateState (std::string state)
 
AutoFocusPolicy translateAutoFocusPolicy (std::string policy)
 

Enumeration Type Documentation

◆ AlignmentFlag

Enumerator
AlignNone 
AlignLeft 
AlignRight 
AlignTop 
AlignBottom 
AlignHorizontalCenter 
AlignVerticalCenter 
AlignTopLeft 
AlignTopRight 
AlignBottomLeft 
AlignBottomRight 
AlignLeftCenter 
AlignRightCenter 
AlignTopCenter 
AlignBottomCenter 
AlignCenter 

Definition at line 192 of file const.h.

◆ AnchorEdge

Enumerator
AnchorNone 
AnchorTop 
AnchorBottom 
AnchorLeft 
AnchorRight 
AnchorVerticalCenter 
AnchorHorizontalCenter 

Definition at line 211 of file const.h.

◆ AspectRatioMode

Enumerator
IgnoreAspectRatio 
KeepAspectRatio 
KeepAspectRatioByExpanding 

Definition at line 186 of file const.h.

◆ AutoFocusPolicy

Enumerator
AutoFocusNone 
AutoFocusFirst 
AutoFocusLast 

Definition at line 228 of file const.h.

◆ DrawPane

Enumerator
ForegroundPane 
BackgroundPane 
BothPanes 

Definition at line 285 of file const.h.

◆ FocusReason

Enumerator
MouseFocusReason 
KeyboardFocusReason 
ActiveFocusReason 
OtherFocusReason 

Definition at line 221 of file const.h.

◆ InputEventType

Enumerator
NoInputEvent 
KeyTextInputEvent 
KeyDownInputEvent 
KeyPressInputEvent 
KeyUpInputEvent 
MousePressInputEvent 
MouseReleaseInputEvent 
MouseMoveInputEvent 
MouseWheelInputEvent 

Definition at line 234 of file const.h.

◆ Key

enum Fw::Key : unsigned char
Enumerator
KeyUnknown 
KeyEscape 
KeyTab 
KeyBackspace 
KeyEnter 
KeyInsert 
KeyDelete 
KeyPause 
KeyPrintScreen 
KeyHome 
KeyEnd 
KeyPageUp 
KeyPageDown 
KeyUp 
KeyDown 
KeyLeft 
KeyRight 
KeyNumLock 
KeyScrollLock 
KeyCapsLock 
KeyCtrl 
KeyShift 
KeyAlt 
KeyMeta 
KeyMenu 
KeySpace 
KeyExclamation 
KeyQuote 
KeyNumberSign 
KeyDollar 
KeyPercent 
KeyAmpersand 
KeyApostrophe 
KeyLeftParen 
KeyRightParen 
KeyAsterisk 
KeyPlus 
KeyComma 
KeyMinus 
KeyPeriod 
KeySlash 
Key0 
Key1 
Key2 
Key3 
Key4 
Key5 
Key6 
Key7 
Key8 
Key9 
KeyColon 
KeySemicolon 
KeyLess 
KeyEqual 
KeyGreater 
KeyQuestion 
KeyAtSign 
KeyA 
KeyB 
KeyC 
KeyD 
KeyE 
KeyF 
KeyG 
KeyH 
KeyI 
KeyJ 
KeyK 
KeyL 
KeyM 
KeyN 
KeyO 
KeyP 
KeyQ 
KeyR 
KeyS 
KeyT 
KeyU 
KeyV 
KeyW 
KeyX 
KeyY 
KeyZ 
KeyLeftBracket 
KeyBackslash 
KeyRightBracket 
KeyCaret 
KeyUnderscore 
KeyGrave 
KeyLeftCurly 
KeyBar 
KeyRightCurly 
KeyTilde 
KeyF1 
KeyF2 
KeyF3 
KeyF4 
KeyF5 
KeyF6 
KeyF7 
KeyF8 
KeyF9 
KeyF10 
KeyF11 
KeyF12 
KeyNumpad0 
KeyNumpad1 
KeyNumpad2 
KeyNumpad3 
KeyNumpad4 
KeyNumpad5 
KeyNumpad6 
KeyNumpad7 
KeyNumpad8 
KeyNumpad9 

Definition at line 57 of file const.h.

◆ KeyboardModifier

Enumerator
KeyboardNoModifier 
KeyboardCtrlModifier 
KeyboardAltModifier 
KeyboardShiftModifier 

Definition at line 259 of file const.h.

◆ LogLevel

Enumerator
LogDebug 
LogInfo 
LogWarning 
LogError 
LogFatal 

Definition at line 178 of file const.h.

◆ MouseButton

Enumerator
MouseNoButton 
MouseLeftButton 
MouseRightButton 
MouseMidButton 

Definition at line 246 of file const.h.

◆ MouseWheelDirection

Enumerator
MouseNoWheel 
MouseWheelUp 
MouseWheelDown 

Definition at line 253 of file const.h.

◆ WidgetState

Enumerator
InvalidState 
DefaultState 
ActiveState 
FocusState 
HoverState 
PressedState 
DisabledState 
CheckedState 
OnState 
FirstState 
MiddleState 
LastState 
AlternateState 
DraggingState 
HiddenState 
LastWidgetState 

Definition at line 266 of file const.h.

Function Documentation

◆ translateAlignment()

Fw::AlignmentFlag Fw::translateAlignment ( std::string  aligment)

Definition at line 27 of file uitranslator.cpp.

◆ translateAnchorEdge()

Fw::AnchorEdge Fw::translateAnchorEdge ( std::string  anchorEdge)

Definition at line 52 of file uitranslator.cpp.

◆ translateAutoFocusPolicy()

Fw::AutoFocusPolicy Fw::translateAutoFocusPolicy ( std::string  policy)

Definition at line 104 of file uitranslator.cpp.

◆ translateState()

Fw::WidgetState Fw::translateState ( std::string  state)

Definition at line 71 of file uitranslator.cpp.