Function
WPEPlatformEventpointer_button_new
Declaration [src]
WPEEvent*
wpe_event_pointer_button_new (
WPEEventType type,
WPEView* view,
WPEInputSource source,
guint32 time,
WPEModifiers modifiers,
guint button,
double x,
double y,
guint press_count
)
Parameters
type-
Type:
WPEEventTypeA
WPEEventType(WPE_EVENT_POINTER_DOWNorWPE_EVENT_POINTER_UP) 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. button-
Type:
guintThe button number.
x-
Type:
doubleThe x coordinate of the pointer.
y-
Type:
doubleThe y coordinate of the pointer.
press_count-
Type:
guintThe number of button presses.
Return value
Type: WPEEvent
A new allocated WPEEvent.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |