I

IInputMode

Interface implemented by input modes to handle user input in a CanvasComponent instance.
Inheritance Hierarchy

Remarks

Input modes capture user gestures (or any other kind of user interactions) and manipulate the contents of the canvas or the model behind it.

Implementations may request an input mutex from the ConcurrencyController that will be given to them in their install method. This allows them to exclusively modify the contents of the view. If another IInputMode successfully acquires the mutex, the ConcurrencyController will be deactivated.

See Also

Developer's Guide

API

InputModeBase

Members

No filters for this type

Properties

Methods

Will be called to unconditionally cancel all ongoing edits.
Installs this mode into the given context that is provided by the canvas.

In general a mode can only be installed into a single canvas at all times.

This method is called to initialize this instance. Implement this method to register the corresponding event handlers for the various input events this mode will listen to.

When this instance gets uninstalled from the context the same context instance will be passed to it.

Implementations may hold a reference to the context instance and use it while installed.

abstract

Parameters

context: IInputModeContext
The context that this instance shall be installed into. The same instance will be passed to this instance during uninstall. A reference to the context may be kept and queried while the mode is installed.
controller: ConcurrencyController
The ConcurrencyController for this mode.

See Also

API
uninstall
Will be called to request a stop of the current editing progress.
Uninstalls this mode from the given context.