Window

The Window class is a class for managing windows.

Members

Constructor
Window
Methods
add ( Add management object )
bringToFront ( Move window to front )
close ( Close window )
getMouseVelocity ( Get mouse coordinate movement velocity (since 1.1.0) )
getTouchPoint ( Get touch coordinates )
getTouchVelocity ( Get touch coordinate movement velocity (since 1.1.0) )
hideMouseCursor ( Temporarily hide mouse cursor )
postInputEvent ( Generate input event )
registerMessageReceiver ( Register/unregister message receiver function )
remove ( Remove management object )
removeMaskRegion ( Remove window region )
resetMouseVelocity ( Reset mouse coordinate movement velocity measurement (since 1.1.0) )
setInnerSize ( Set client size )
setMaskRegion ( Set window region according to mask )
setMaxSize ( Set maximum window size )
setMinSize ( Set minimum window size )
setPos ( Set window position )
setSize ( Set window size )
setZoom ( Set layer zoom factor )
showModal ( Show window modally )
update ( Force redraw window content )
Properties
HWND ( Window handle )
borderStyle ( Window appearance )
caption ( Window caption )
displayOrientation ( Display orientation (since 1.1.0) )
displayRotate ( Display rotation angle (since 1.1.0) )
drawDevice ( Drawing device )
enableTouch ( Touch event enabled/disabled )
focusable ( Whether focus can be acquired )
focusedLayer ( Layer object that has focus )
fullScreen ( Whether it is full screen )
height ( Window height )
hintDelay ( Hint display delay time )
imeMode ( Default IME mode )
innerHeight ( Client area height )
innerWidth ( Client area width )
left ( Window left position )
mainWindow ( Main window )
maxHeight ( Maximum window height )
maxWidth ( Maximum window width )
minHeight ( Minimum window height )
minWidth ( Minimum window width )
mouseCursorState ( Mouse cursor display state )
primaryLayer ( Primary layer object )
stayOnTop ( Whether to always stay on top )
top ( Window top position )
touchPointCount ( Number of touch points )
touchRotateThreshold ( Multi-touch rotation threshold )
touchScaleThreshold ( Multi-touch scaling threshold )
trapKey ( Whether to trap key input )
useMouseKey ( Whether to use mouse keys )
visible ( Whether the window is visible )
waitVSync ( Wait for VSync )
width ( Window width )
zoomDenom ( Layer zoom factor (denominator) )
zoomNumer ( Layer zoom factor (numerator) )
Events
onActivate ( When the window becomes active )
onClick ( Window was clicked )
onCloseQuery ( Confirm closing the window )
onDeactivate ( When the window becomes inactive )
onDisplayRotate ( When the screen is rotated (since 1.1.0) )
onDoubleClick ( Window was double-clicked )
onFileDrop ( File was dropped )
onHintChanged ( When the hint state changes )
onKeyDown ( Key was pressed )
onKeyPress ( Character was input )
onKeyUp ( Key was released )
onMouseDown ( Mouse button was pressed )
onMouseEnter ( Mouse entered )
onMouseLeave ( Mouse left )
onMouseMove ( Mouse moved )<