Function
WPEPlatformEventtouch_new
Declaration [src]
WPEEvent*
wpe_event_touch_new (
WPEEventType type,
WPEView* view,
WPEInputSource source,
guint32 time,
WPEModifiers modifiers,
guint32 sequence_id,
double x,
double y
)
Parameters
type-
Type:
WPEEventTypeA
WPEEventType(WPE_EVENT_TOUCH_DOWN,WPE_EVENT_TOUCH_UP,WPE_EVENT_TOUCH_MOVERorWPE_EVENT_TOUCH_CANCEL) view-
Type:
WPEViewA
WPEView.The data is owned by the caller of the function. source-
Type:
WPEInputSourceA
WPEInputSource. time-
Type:
guint32The event timestamp.
modifiers-
Type:
WPEModifiersA
WPEModifiers. sequence_id-
Type:
guint32The sequence event identifier.
x-
Type:
doubleThe x coordinate of the touch.
y-
Type:
doubleThe y coordinate of the touch.
Return value
Type: WPEEvent
A new allocated WPEEvent.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |