GuiState

Undocumented in source.

Members

Variables

canvasSize
ivec2 canvasSize;
Undocumented in source.
curPointerPos
ivec2 curPointerPos;
Undocumented in source.
cursorIcon
CursorIcon cursorIcon;

Icon is reset after widget leave event and before widget enter event. If widget wants to change icon, it must set cursorIcon in PointerEnterEvent handler.

draggedWidget
WidgetId draggedWidget;

Will receive onDrag events

draggedWidgetOffset
ivec2 draggedWidgetOffset;

filled with curPointerPos - draggedWidget.absPos at the moment of press

focusedWidget
WidgetId focusedWidget;

Will receive all key events if input is not grabbed by other widget

getClipboard
string delegate() getClipboard;
Undocumented in source.
hoveredWidget
WidgetId hoveredWidget;

Widget over which pointer is located

inputOwnerWidget
WidgetId inputOwnerWidget;

If set, this widget will receive all pointer movement events

lastClickedWidget
WidgetId lastClickedWidget;

Used for double-click checking. Is set before click event distribution

pointerPressPos
ivec2 pointerPressPos;
Undocumented in source.
pressedWidget
WidgetId pressedWidget;
Undocumented in source.
prevPointerPos
ivec2 prevPointerPos;
Undocumented in source.
setClipboard
void delegate(string) setClipboard;
Undocumented in source.

Meta