Function
WPEPlatformEventscroll_new
Declaration [src]
WPEEvent*
wpe_event_scroll_new (
WPEView* view,
WPEInputSource source,
guint32 time,
WPEModifiers modifiers,
double delta_x,
double delta_y,
gboolean precise_deltas,
gboolean is_stop,
double x,
double y
)
Parameters
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. delta_x-
Type:
doubleDelta on the X axis.
delta_y-
Type:
doubleDelta on the Y axis.
precise_deltas-
Type:
gbooleanWhether it has precise deltas.
is_stop-
Type:
gbooleanWhether it’s a stop event.
x-
Type:
doubleThe x coordinate of the pointer, or 0 if not a pointing device.
y-
Type:
doubleThe y coordinate of the pointer, or 0 if not a pointing device.
Return value
Type: WPEEvent
A new allocated WPEEvent.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |