PigeonWindowPlacement class
An implementation of WindowPlacementPlatform that talks to the native side
through the Pigeon-generated API in pigeons/messages.dart.
- Inheritance
-
- Object
- PlatformInterface
- WindowPlacementPlatform
- PigeonWindowPlacement
Constructors
- PigeonWindowPlacement({@visibleForTesting WindowPlacementHostApi? hostApi})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onPlacementChanged
→ Stream<
WindowPlacementInfo> -
Emits the current placement on listen and whenever it changes.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getBarRegion(
WindowEdge edge, double extent) → Future< Rect?> -
Where the system places a bar
extentthick alongedge, in window coordinates, or null where the platform has no such API. Defaults to null so implementations without it keep working.override -
getPlacement(
) → Future< WindowPlacementInfo> -
Returns the current placement of the app window on the display.
override
-
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
-
toInfo(
WindowGeometry g) → WindowPlacementInfo - Converts the native geometry into a classified WindowPlacementInfo.