YaruTestWindow class
An implementation of YaruWindowPlatform
for testing.
- Inheritance
-
- Object
- PlatformInterface
- YaruTestWindow
Constructors
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
-
close(
int id) → Future< void> -
Closes the window with the given
id
. -
drag(
int id) → Future< void> -
Starts dragging the window with the given
id
. -
fullscreen(
int id) → Future< void> -
Enters fullscreen mode for the window with the given
id
. -
hide(
int id) → Future< void> -
Hides the window with the given
id
. -
hideTitle(
int id) → Future< void> -
Hides the title bar of the window with the given
id
. -
init(
int id) → Future< void> -
Initializes the window with the given
id
. -
maximize(
int id) → Future< void> -
Maximizes the window with the given
id
. -
minimize(
int id) → Future< void> -
Minimizes the window with the given
id
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onClose(
int id, FutureOr< bool> handler()) → Future<void> -
Installs a close handler for the window with the given
id
. -
restore(
int id) → Future< void> -
Restores the window with the given
id
. -
setBackground(
int id, Color color) → Future< void> -
Sets the background color of the window with the given
id
. -
setBrightness(
int id, Brightness brightness) → Future< void> -
Sets the brightness of the window with the given
id
.inherited -
setClosable(
int id, bool closable) → Future< void> -
Sets whether the window with the given
id
is closable. -
setMaximizable(
int id, bool maximizable) → Future< void> -
Sets whether the window with the given
id
is maximizable. -
setMinimizable(
int id, bool minimizable) → Future< void> -
Sets whether the window with the given
id
is minimizable. -
setTitle(
int id, String title) → Future< void> -
Sets the title of the window with the given
id
. -
show(
int id) → Future< void> -
Shows the window with the given
id
. -
showMenu(
int id) → Future< void> -
Shows the menu of the window with the given
id
. -
showTitle(
int id) → Future< void> -
Shows the title bar of the window with the given
id
. -
state(
int id) → Future< YaruWindowState> -
Returns the state of the window with the given
id
. -
states(
int id) → Stream< YaruWindowState> -
Returns a stream of states of the window with the given
id
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
ensureInitialized(
{YaruWindowState? state, Map< String, String> ? environment}) → Future<void> -
Initializes the window for testing. A specific
state
can be overridden and it is safe to close the window without actually closing it. -
waitForClosed(
) → Future< void> - Waits until the window was (pretended to be) closed.