View

Undocumented in source.
final
class View : EventsListenerEmpty {}

Constructors

this
this(void* window, string themeName, CursorManager cursorManager, ViewResources resources)
Undocumented in source.
this
this(void* window, string themeName)
Undocumented in source.

Members

Functions

addWidget
void addWidget(Widget widget)

Add widget to root children.

applyScissor
Rect applyScissor()

Apply all scissors for clipping widgets in scissors areas.

deleteWidget
void deleteWidget(Widget widget)

Delete widget from root children.

deleteWidget
void deleteWidget(size_t id)

Delete widget by id from root children.

focusNext
void focusNext()

Focusing next widget after the current focused widget.

focusPrev
void focusPrev()

Focusing previous widget before the current focused widget.

freezeUI
void freezeUI(Widget widget, bool nestedFreeze)

Freez UI except widget. If nestedFreeze is true then will be frozen all children of widget.

getNextIndex
uint getNextIndex()
Undocumented in source. Be warned that the author may not have intended to support it.
hideCursor
void hideCursor()
Undocumented in source. Be warned that the author may not have intended to support it.
isWidgetFreezingSource
bool isWidgetFreezingSource(Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
isWidgetFrozen
bool isWidgetFrozen(Widget widget)

Returns true if the widget is frozen. If not isNestedFreeze then check if widget inside freezing source And if widget has source parent then this widget is not frozen.

moveWidgetToFront
void moveWidgetToFront(Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
onKeyPressed
void onKeyPressed(KeyPressedEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
onKeyReleased
void onKeyReleased(KeyReleasedEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseDown
void onMouseDown(MouseDownEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseMove
void onMouseMove(MouseMoveEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseUp
void onMouseUp(MouseUpEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseWheel
void onMouseWheel(MouseWheelEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
onProgress
void onProgress(ProgressEvent event)

Invokes all onProgress of all widgets and poll widgets.

onRender
void onRender()

Renders all widgets inside camera view.

onWindowResize
void onWindowResize(WindowResizeEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
popScissor
void popScissor()

Pop scissor from stack.

pushScissor
void pushScissor(Rect scissor)

Push scissor to stack.

queryRenderWidgetInFront
void queryRenderWidgetInFront(Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
setMousePositon
void setMousePositon(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
showCursor
void showCursor()
Undocumented in source. Be warned that the author may not have intended to support it.
unfreezeUI
void unfreezeUI(Widget widget)

Unfreeze UI where source of freezing is widget.

Properties

cameraView
inout(CameraView) cameraView [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isNestedFreeze
bool isNestedFreeze [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
shortcuts
Shortcuts shortcuts [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
widgetUnderMouse
Widget widgetUnderMouse [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

cameraView_
CameraView cameraView_;
Undocumented in source.
cursor
CursorIcon cursor;
Undocumented in source.
events
EventsObserver events;
Undocumented in source.
focusedWidget
Widget focusedWidget;
Undocumented in source.
freezeSources
SList!Widget freezeSources;
Undocumented in source.
frontWidgets
Array!Widget frontWidgets;
Undocumented in source.
frontWidgetsOrdering
Array!Widget frontWidgetsOrdering;
Undocumented in source.
frontWidgetsRenderQueries
Array!Widget frontWidgetsRenderQueries;
Undocumented in source.
isNestedFreezeStack
SList!bool isNestedFreezeStack;
Undocumented in source.
mouseClickPos
vec2i mouseClickPos;
Undocumented in source.
mousePos
vec2i mousePos;
Undocumented in source.
onProgressQueries
Array!Widget onProgressQueries;
Undocumented in source.
resources
ViewResources resources;
Undocumented in source.
rootWidget
Widget rootWidget;
Undocumented in source.
theme
Theme theme;
Undocumented in source.
unfocusedWidgets
Array!Widget unfocusedWidgets;
Undocumented in source.
widgetOrdering
Array!Widget widgetOrdering;
Undocumented in source.

Inherited Members

From EventsListenerEmpty

onKeyPressed
void onKeyPressed(KeyPressedEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
onKeyReleased
void onKeyReleased(KeyReleasedEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
onTextEntered
void onTextEntered(TextEnteredEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseDown
void onMouseDown(MouseDownEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseUp
void onMouseUp(MouseUpEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
onDblClick
void onDblClick(DblClickEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
onTripleClick
void onTripleClick(TripleClickEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseMove
void onMouseMove(MouseMoveEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseWheel
void onMouseWheel(MouseWheelEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
onWindowResize
void onWindowResize(WindowResizeEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
onWindowExposed
void onWindowExposed(WindowExposedEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta