{
/// <summary>
/// The GestureLayer is used to detect gestures.
- /// Inherits EvasObject
+ /// Inherits Widget
/// </summary>
- public class GestureLayer : EvasObject
+ public class GestureLayer : Widget
{
private readonly Interop.Elementary.GestureEventCallback _gestureCallback;
/// N fingers single taps
/// </summary>
Tap = 1,
+
/// <summary>
/// N fingers single long-taps
/// </summary>
LongTap,
+
/// <summary>
/// N fingers double-single taps
/// </summary>
DoubleTap,
+
/// <summary>
/// N fingers triple-single taps
/// </summary>
TripleTap,
+
/// <summary>
/// Reports momentum in the direction of move
/// </summary>
Momentum,
+
/// <summary>
/// N fingers line gesture
/// </summary>
Line,
+
/// <summary>
/// N fingers flick gesture
/// </summary>
Flick,
+
/// <summary>
/// Zoom
/// </summary>
Zoom,
+
/// <summary>
/// Rotate
/// </summary>
/// Gesture not started
/// </summary>
Undefined = -1,
+
/// <summary>
/// Gesture started
/// </summary>
Start,
+
/// <summary>
/// Gesture is ongoing
/// </summary>
Move,
+
/// <summary>
/// Gesture completed
/// </summary>
End,
+
/// <summary>
/// Ongoing gesture is aborted
/// </summary>
}
#region Properties
+
/// <summary>
/// Sets or gets the repeat-events setting.
/// </summary>
Interop.Elementary.elm_gesture_layer_zoom_wheel_factor_set(Handle, value);
}
}
+
#endregion Properties
/// <summary>
}
#region Typed callback setting methods
+
// Following methods have been added for convenience, so the user will not have to convert Info structures himself
/// <summary>
/// Set the tap callback.
{
SetCallback(GestureType.Rotate, state, action);
}
+
#endregion Typed callback setting methods
/// <summary>
case GestureType.TripleTap:
action(Marshal.PtrToStructure<TapData>(event_info));
break;
+
case GestureType.Momentum:
action(Marshal.PtrToStructure<MomentumData>(event_info));
break;
+
case GestureType.Line:
case GestureType.Flick:
action(Marshal.PtrToStructure<LineData>(event_info));
break;
+
case GestureType.Zoom:
action(Marshal.PtrToStructure<ZoomData>(event_info));
break;
+
case GestureType.Rotate:
action(Marshal.PtrToStructure<RotateData>(event_info));
break;
}
#region Info structures
+
/// <summary>
/// The struct of TapData
/// </summary>
public Int32 Y;
#pragma warning disable 3003
+
/// <summary>
/// The number of fingers tapped.
/// </summary>
/// The timestamp.
/// </summary>
public UInt32 Timestamp;
+
#pragma warning restore 3003
}
public Int32 Y2;
#pragma warning disable 3003
+
/// <summary>
/// Timestamp of start of final x-swipe.
/// </summary>
/// Number of fingers.
/// </summary>
public UInt32 FingersCount;
+
#pragma warning restore 3003
}
public Int32 Y2;
#pragma warning disable 3003
+
/// <summary>
/// Timestamp of start of final x-swipe.
/// </summary>
/// Number of fingers.
/// </summary>
public UInt32 FingersCount;
+
#pragma warning restore 3003
/// <summary>
}
#endregion Info structures
+
/// <summary>
/// Config is a static class, it provides gestureLayer's timeout information.
/// </summary>
}
}
}
-}
+}
\ No newline at end of file