Win32Window

Undocumented in source.

Constructors

this
this(Win32Platform platform, string windowCaption, Window parent)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

getDrawBuf
Win32ColorDrawBuf getDrawBuf()
Undocumented in source. Be warned that the author may not have intended to support it.
invalidate
void invalidate()

request window redraw

onCreate
void onCreate()
Undocumented in source. Be warned that the author may not have intended to support it.
onDestroy
void onDestroy()
Undocumented in source. Be warned that the author may not have intended to support it.
onKey
bool onKey(KeyAction action, uint keyCode, int repeatCount, dchar character)
Undocumented in source. Be warned that the author may not have intended to support it.
onPaint
void onPaint()
Undocumented in source. Be warned that the author may not have intended to support it.
scheduleAnimation
void scheduleAnimation()

after drawing, call to schedule redraw if animation is active

show
void show()
Undocumented in source. Be warned that the author may not have intended to support it.
updateKeyFlags
void updateKeyFlags(KeyAction action, KeyFlag flag)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

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

Variables

_caption
string _caption;
Undocumented in source.
_drawbuf
Win32ColorDrawBuf _drawbuf;
Undocumented in source.
_hGLRC
HGLRC _hGLRC;
Undocumented in source.
_hPalette
HPALETTE _hPalette;
Undocumented in source.
_hwnd
HWND _hwnd;
Undocumented in source.
_keyFlags
uint _keyFlags;
Undocumented in source.
_lbutton
ButtonDetails _lbutton;
Undocumented in source.
_mbutton
ButtonDetails _mbutton;
Undocumented in source.
_platform
Win32Platform _platform;
Undocumented in source.
_rbutton
ButtonDetails _rbutton;
Undocumented in source.
useOpengl
bool useOpengl;
Undocumented in source.

Inherited Members

From Window

_dx
int _dx;
Undocumented in source.
_dy
int _dy;
Undocumented in source.
_backgroundColor
uint _backgroundColor;
Undocumented in source.
_mainWidget
Widget _mainWidget;
Undocumented in source.
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.
width
int width [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
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.
show
void show()
Undocumented in source.
windowCaption
string windowCaption [@property getter]
Undocumented in source.
windowCaption
string windowCaption [@property setter]
Undocumented in source.
measure
void measure()
Undocumented in source. Be warned that the author may not have intended to support it.
layout
void layout()
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.
_popups
PopupWidget[] _popups;
Undocumented in source.
showPopup
PopupWidget showPopup(Widget content, Widget anchor, uint alignment)

show new popup

removePopup
bool removePopup(PopupWidget popup)

remove popup

isChild
bool isChild(Widget w)

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

~this
~this()
Undocumented in source.
onDraw
void onDraw(DrawBuf buf)
Undocumented in source. Be warned that the author may not have intended to support it.
scheduleAnimation
void scheduleAnimation()

after drawing, call to schedule redraw if animation is active

setCaptureWidget
void setCaptureWidget(Widget w, MouseEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
_focusedWidget
Widget _focusedWidget;
Undocumented in source.
focusedWidget
Widget focusedWidget [@property getter]

returns current focused widget

setFocus
Widget setFocus(Widget newFocus)

change focus to widget

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.
_mouseTrackingWidgets
Widget[] _mouseTrackingWidgets;

widget which tracks Move events

_mouseCaptureWidget
Widget _mouseCaptureWidget;

widget which tracks all events after processed ButtonDown

_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

dispatchCancel
bool dispatchCancel(MouseEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
sendAndCheckOverride
bool sendAndCheckOverride(Widget widget, 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

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

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).

invalidate
void invalidate()

request window redraw

Meta