DesktopInteractionManager class
A manager class responsible for handling desktop interactions in the image editor.
The DesktopInteractionManager
class provides methods for responding to keyboard
and mouse events on desktop platforms. It enables users to perform actions such
as zooming, rotating, and navigating layers using keyboard shortcuts and mouse
scroll wheel movements.
Constructors
- DesktopInteractionManager({required BuildContext context, required Function? onUpdateUI, required Function setState, required ProImageEditorConfigs configs})
Properties
- configs → ProImageEditorConfigs
-
final
- context → BuildContext
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onUpdateUI → Function?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setState → Function
-
final
Methods
-
mouseScroll(
PointerSignalEvent event, {required Layer activeLayer, required int selectedLayerIndex}) → void - Handles mouse scroll events.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onKey(
KeyEvent event, {required Layer? activeLayer, required Function onEscape, required dynamic onUndoRedo(bool)}) → bool - Handles keyboard events.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited