Window

Undocumented in source.
class Window {}

Constructors

this
this()
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

checkUpdateNeeded
void checkUpdateNeeded(Widget root, bool needDraw, bool needLayout, bool animationActive)

checks content widgets for necessary redraw and/or layout

checkUpdateNeeded
bool checkUpdateNeeded(bool needDraw, bool needLayout, bool animationActive)

checks content widgets for necessary redraw and/or layout

dispatchCancel
bool dispatchCancel(MouseEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
dispatchKeyEvent
bool dispatchKeyEvent(Widget root, KeyEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
dispatchKeyEvent
bool dispatchKeyEvent(KeyEvent event)

dispatch keyboard event

dispatchMouseEvent
bool dispatchMouseEvent(Widget root, MouseEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
dispatchMouseEvent
bool dispatchMouseEvent(MouseEvent event)

dispatch mouse event to window content widgets

invalidate
void invalidate()

request window redraw

isChild
bool isChild(Widget w)

returns true if widget is child of either main widget or one of popups

layout
void layout()
Undocumented in source. Be warned that the author may not have intended to support it.
measure
void measure()
Undocumented in source. Be warned that the author may not have intended to support it.
onDraw
void onDraw(DrawBuf buf)
Undocumented in source. Be warned that the author may not have intended to support it.
onResize
void onResize(int width, int height)
Undocumented in source. Be warned that the author may not have intended to support it.
removePopup
bool removePopup(PopupWidget popup)

remove popup

scheduleAnimation
void scheduleAnimation()

after drawing, call to schedule redraw if animation is active

sendAndCheckOverride
bool sendAndCheckOverride(Widget widget, MouseEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
setCaptureWidget
void setCaptureWidget(Widget w, MouseEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
setFocus
Widget setFocus(Widget newFocus)

change focus to widget

show
void show()
Undocumented in source.
showPopup
PopupWidget showPopup(Widget content, Widget anchor, uint alignment)

show new popup

update
void update(bool force)

requests update for window (unless force is true, update will be performed only if layout, redraw or animation is required).

Properties

backgroundColor
uint backgroundColor [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
backgroundColor
uint backgroundColor [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
focusedWidget
Widget focusedWidget [@property getter]

returns current focused widget

height
int height [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
mainWidget
Widget mainWidget [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
mainWidget
Widget mainWidget [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
width
int width [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
windowCaption
string windowCaption [@property getter]
Undocumented in source.
windowCaption
string windowCaption [@property setter]
Undocumented in source.

Variables

_backgroundColor
uint _backgroundColor;
Undocumented in source.
_dx
int _dx;
Undocumented in source.
_dy
int _dy;
Undocumented in source.
_focusedWidget
Widget _focusedWidget;
Undocumented in source.
_mainWidget
Widget _mainWidget;
Undocumented in source.
_mouseCaptureButtons
ushort _mouseCaptureButtons;
Undocumented in source.
_mouseCaptureFocusedOut
bool _mouseCaptureFocusedOut;
Undocumented in source.
_mouseCaptureFocusedOutTrackMovements
bool _mouseCaptureFocusedOutTrackMovements;

does current capture widget want to receive move events even if pointer left it

_mouseCaptureWidget
Widget _mouseCaptureWidget;

widget which tracks all events after processed ButtonDown

_mouseTrackingWidgets
Widget[] _mouseTrackingWidgets;

widget which tracks Move events

_popups
PopupWidget[] _popups;
Undocumented in source.

Meta