Class InputGesture
Definition
- Namespace:
- Tizen.NUI.WindowSystem
- Assembly:
- Tizen.NUI.WindowSystem.dll
Class for the Tizen Input Gesture.
public class InputGesture : IDisposable
- Inheritance
-
objectInputGesture
Constructors
View SourceInputGesture()
Creates a new InputGesture.
Declaration
public InputGesture()
Remarks
This module operates in a NUI application and requires instantiation and disposal on the main thread.
Methods
View SourceCreateEdgeDragData(int, GestureEdge)
Generates a edge drag gesture's grab info handle
Declaration
public IntPtr CreateEdgeDragData(int fingers, GestureEdge edge)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fingers | The number of fingers |
| GestureEdge | edge | The position of edge |
Returns
| Type | Description |
|---|---|
| IntPtr | The edge drag gesture data handle |
CreateEdgeSwipeData(int, GestureEdge)
Generates a edge swipe gesture's grab info handle
Declaration
public IntPtr CreateEdgeSwipeData(int fingers, GestureEdge edge)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fingers | The number of fingers |
| GestureEdge | edge | The position of edge |
Returns
| Type | Description |
|---|---|
| IntPtr | The edge swipe gesture data handle |
CreatePalmCoverData()
Generates a palm cover gesture's grab info handle
Declaration
public IntPtr CreatePalmCoverData()
Returns
| Type | Description |
|---|---|
| IntPtr | The palm cover gesture data handle |
CreateTapData(int, int)
Generates a tap gesture's grab info handle
Declaration
public IntPtr CreateTapData(int fingers, int repeats)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fingers | The number of fingers |
| int | repeats | The number of repeats |
Returns
| Type | Description |
|---|---|
| IntPtr | The tap gesture data handle |
Dispose()
Dispose.
Declaration
public void Dispose()
Dispose(DisposeTypes)
Declaration
protected virtual void Dispose(DisposeTypes type)
Parameters
| Type | Name | Description |
|---|---|---|
| DisposeTypes | type |
~InputGesture()
Destructor.
Declaration
protected ~InputGesture()
GrabGesture(IntPtr)
Grabs a global gesture
Declaration
public void GrabGesture(IntPtr data)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | data | gesture data to grab |
ReleaseEdgeDrageData(IntPtr)
Frees a memory of edge drag gesture's grab info handle
Declaration
public void ReleaseEdgeDrageData(IntPtr data)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | data | The edge drag gesture data handle |
ReleaseEdgeSwipeData(IntPtr)
Frees a memory of edge swipe gesture's grab info handle
Declaration
public void ReleaseEdgeSwipeData(IntPtr data)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | data | The edge swipe gesture data handle |
ReleasePalmCoverData(IntPtr)
Frees a memory of palm cover gesture's grab info handle
Declaration
public void ReleasePalmCoverData(IntPtr data)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | data | The palm cover gesture data handle |
ReleaseTapData(IntPtr)
Frees a memory of tap gesture's grab info handle
Declaration
public void ReleaseTapData(IntPtr data)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | data | The tap gesture data handle |
SetEdgeDragSize(IntPtr, GestureEdgeSize, int, int)
Sets a specific size of edge for edge drag gesture
Declaration
public void SetEdgeDragSize(IntPtr data, GestureEdgeSize edgeSize, int startPoint, int endPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | data | The edge drag gesture data handle |
| GestureEdgeSize | edgeSize | The enum of gesture edge size |
| int | startPoint | The start point of edge area |
| int | endPoint | The end point of edge area |
SetEdgeSwipeSize(IntPtr, GestureEdgeSize, int, int)
Sets a specific size of edge for edge swipe gesture
Declaration
public void SetEdgeSwipeSize(IntPtr data, GestureEdgeSize edgeSize, int startPoint, int endPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | data | The edge swipe gesture data handle |
| GestureEdgeSize | edgeSize | The enum of gesture edge size |
| int | startPoint | The start point of edge area |
| int | endPoint | The end point of edge area |
SetGestureGrabMode(IntPtr, GestureGrabMode)
Sets grab mode of global gesture
Declaration
public void SetGestureGrabMode(IntPtr data, GestureGrabMode mode)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | data | gesture data to grab |
| GestureGrabMode | mode | The mode of gesture grab |
UngrabGesture(IntPtr)
Ungrabs a global gesture.
Declaration
public void UngrabGesture(IntPtr data)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | data | gesture data to ungrab |
Events
View SourceEdgeDragEventHandler
Emits the event when the edge drag event comes
Declaration
public event EventHandler<EdgeDragEventArgs> EdgeDragEventHandler
Event Type
| Type | Description |
|---|---|
| EventHandler<><EdgeDragEventArgs> |
EdgeSwipeEventHandler
Emits the event when the edge swipe event comes
Declaration
public event EventHandler<EdgeSwipeEventArgs> EdgeSwipeEventHandler
Event Type
| Type | Description |
|---|---|
| EventHandler<><EdgeSwipeEventArgs> |
PalmCoverEventHandler
Emits the event when the palm cover event comes
Declaration
public event EventHandler<PalmCoverEventArgs> PalmCoverEventHandler
Event Type
| Type | Description |
|---|---|
| EventHandler<><PalmCoverEventArgs> |
TapEventHandler
Emits the event when the tap event comes
Declaration
public event EventHandler<TapEventArgs> TapEventHandler
Event Type
| Type | Description |
|---|---|
| EventHandler<><TapEventArgs> |