Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

WinGestureInfoMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Windows MBS Win Plugin 16.2 No Yes No Yes, Windows only No
Function: Stores information about a gesture.
Notes:
Parameters for touches:
If kFlagBegin flag is set, save Location so you have first point. And save argument to check later.

For Zoom, get second point from this class. Than you can calculate center point and zoom factor is OldArgumentsLower/NewArgumentsLower.

For Pan, check difference between last point and new point to know how much moved.

For Rotate, please check difference between old RotateAngle and new RotateAngle.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Feedback, Comments & Corrections

Flags

Constant Value Description
kFlagBegin 1 A gesture is starting.
kFlagEnd 4 A gesture has finished.
kFlagInertia 2 A gesture has triggered inertia.

Gesture IDs

Constant Value Description
kGestureIDBegin 1 Begin of a gesture
kGestureIDEnd 2 End of a gesture
kGestureIDPan 4 Pan gesture
kGestureIDPressAndTap 7 Press and Tap gesture
kGestureIDRotate 5 Rotate gesture
kGestureIDTwoFingerTap 6 Two-Finger Tap
kGestureIDZoom 3 Zoom gesture

This class has no sub classes.

Some events for this class:

Some examples which use this class:


The items on this page are in the following plugins: MBS Win Plugin.


WinGestureConfigMBS   -   WinHIDMBS




Links
MBS Xojo Plugins