WindowManager class

A desktop-like window manager to handle routing of mouse/keyboard events.

Constructors

WindowManager()

Properties

globalKeyListeners List<bool Function(KeyEvent event)>
A list of global key listeners. If a listener returns true, the event is consumed.
final
hashCode int
The hash code for this object.
no setterinherited
isDraggingOrResizing bool
Whether the window manager is currently dragging or resizing a window.
no setter
rootFocusNode FocusNode
The root focus node for the window manager.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
windows List<Window>
The list of currently managed windows.
final

Methods

addWindow(Window window) → void
Adds a window to the manager and registers its focus node.
bringToFront(Window win) → void
Brings the given window to the front of all windows.
findWindowAt(int gx, int gy) Window?
Returns the topmost window that contains the coordinates (gx, gy).
handleKeyEvent(KeyEvent event) bool
Routes a keyboard event to the currently focused window.
handleMouseEvent(MouseEvent event) bool
Routes a mouse event, performing coordinate translation and triggering click/drag handlers.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeWindow(Window window) → void
Removes a window from the manager and its focus node.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited