TouchSourceAdapter class abstract
A TouchSource that has empty implementations for many of the less frequently needed methods.
All touches to components that can produce the WaterFX effect must be emitted from a TouchSource, via the touches stream.
Note: All touch sources must be TouchSources, but most touch sources will not need to use all of the methods in TouchSource. So to relieve touch sources from having to implement all of these methods, many of which will be empty implementations anyway (as they are not needed), this class (TouchSourceAdapter) is provided as a utility class. It already has empty implementations for many of the less frequently needed methods. It is an abstract base class, which means that it must be extended and not implemented. Extending classes must implement all of the non-implemented methods, but depending on the needs of the touch source, the empty implementations may or may not need to be overridden.
- Implemented types
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isActive → bool
-
Returns true if the TouchSource in active, false otherwise.
no setteroverride
- isDisposed → bool
-
Returns true if the TouchSource in disposed, false otherwise.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
touches
→ Stream<
Touch> -
The stream of Touches produced by this TouchSource.
no setteroverride
Methods
-
dispose(
) → void -
Disposes the TouchSource.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onPointerEnteredImage(
{required int pointX, required int pointY, required int imageWidth, required int imageHeight, required bool pointerIsDown}) → void -
Called by the
WaterMovementProcessor
when the pointer enters the image.override -
onPointerExitedImage(
{required int pointX, required int pointY, required int imageWidth, required int imageHeight, required bool pointerIsDown}) → void -
Called by the
WaterMovementProcessor
when the pointer exits the image.override -
onPointerOverImage(
{required int pointX, required int pointY, required int imageWidth, required int imageHeight, required bool pointerIsDown}) → void -
Called by the
WaterMovementProcessor
when the pointer is over the image and when either or both of the following are true:override -
onSourceImageSizeEstablished(
int sourceImageWidth, int sourceImageHeight) → void -
Called by the
WaterMovementProcessor
when the image size has been established.override -
pause(
) → void -
Pauses the TouchSource.
override
-
start(
) → void -
Starts the TouchSource, or restarts it if it was paused.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited