RemotePluginSlotInputRouter class final
Slot-scoped input adapter over a RemotePluginSurfaceInputRouter.
This lets hosts route input using slot-region-local coordinates instead of rebuilding surface hit testing or global coordinate translation by hand.
Constructors
-
RemotePluginSlotInputRouter({required RemotePluginSurfaceInputRouter router, required Iterable<
RemotePluginSlotEntry> entries, int originX = 0, int originY = 0})
Properties
-
entries
→ List<
RemotePluginSlotEntry> -
final
- focusedSurfaceId → String?
-
Surface currently considered focused by the underlying router.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- originX → int
-
Host-space x-origin for the slot region.
final
- originY → int
-
Host-space y-origin for the slot region.
final
- router → RemotePluginSurfaceInputRouter
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
focusEntry(
RemotePluginSlotEntry? entry) → Future< void> -
Focuses
entry, or clears focus whennull. -
focusTopmost(
) → Future< void> - Focuses the topmost entry in the slot region, if any.
-
hitTest(
int column, int row) → RemotePluginSlotHit? - Resolves the topmost slot entry at one slot-region-local coordinate.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendKey(
{required String key, String? code, bool ctrl = false, bool alt = false, bool shift = false, bool meta = false}) → Future< void> - Sends one key event to the router's currently focused surface.
-
sendMouse(
{required RemotePluginMouseAction action, required RemotePluginMouseButton button, required int column, required int row, bool ctrl = false, bool alt = false, bool shift = false, bool meta = false, bool focusOnPress = true}) → Future< RemotePluginSlotHit?> - Sends one mouse event using slot-region-local coordinates.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited