YaruWindow class

Provides access to the closest top-level window instance that encloses the given context.

Constructors

YaruWindow()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

close(BuildContext context) Future<void>
Closes the window.
drag(BuildContext context) Future<void>
Starts dragging the window.
ensureInitialized() Future<YaruWindowInstance>
Ensures that the window is initialized and returns the primary instance.
fullscreen(BuildContext context) Future<void>
Enters fullscreen mode.
hide(BuildContext context) Future<void>
Hides the window.
hideTitle(BuildContext context) Future<void>
Hides the title bar.
maximize(BuildContext context) Future<void>
Maximizes the window.
minimize(BuildContext context) Future<void>
Minimizes the window.
of(BuildContext context) YaruWindowInstance
Returns the closest top-level window instance that encloses the given context.
onClose(BuildContext context, FutureOr<bool> handler()) Future<void>
Installs a close handler for the window.
restore(BuildContext context) Future<void>
Restores the window to its normal state.
setBackground(BuildContext context, Color color) Future<void>
Sets the background color of the window.
setBrightness(BuildContext context, Brightness brightness) Future<void>
Sets the brightness of the window.
setClosable(BuildContext context, bool closable) Future<void>
Sets whether the window can be closed.
setMaximizable(BuildContext context, bool maximizable) Future<void>
Sets whether the window can be maximized.
setMinimizable(BuildContext context, bool minimizable) Future<void>
Sets whether the window can be minimized.
setTitle(BuildContext context, String title) Future<void>
Sets the title of the window.
show(BuildContext context) Future<void>
Shows the window.
showMenu(BuildContext context) Future<void>
Shows the window menu.
showTitle(BuildContext context) Future<void>
Shows the title bar.
state(BuildContext context) Future<YaruWindowState>
Returns the current state of the window.
states(BuildContext context) Stream<YaruWindowState>
Returns a stream of window state changes.