gst/gl: Add documentation for new scroll API
authorPhilippe Normand <philn@igalia.com>
Thu, 30 Apr 2020 16:59:24 +0000 (17:59 +0100)
committerPhilippe Normand <philn@igalia.com>
Thu, 30 Apr 2020 17:00:19 +0000 (18:00 +0100)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/647>

gst-libs/gst/gl/gstglwindow.c

index 9991f16..2348ff0 100644 (file)
@@ -935,6 +935,19 @@ gst_gl_window_send_mouse_event (GstGLWindow * window, const char *event_type,
       event_type, button, posx, posy);
 }
 
+/**
+ * gst_gl_window_send_scroll_event:
+ * @window: a #GstGLWindow
+ * @posx: x position of the mouse cursor
+ * @posy: y position of the mouse cursor
+ * @delta_x: the x offset of the scroll event
+ * @delta_y: the y offset of the scroll event
+ *
+ * Notify a @window about a scroll event. A scroll signal holding the event
+ * coordinates will be emitted.
+ *
+ * Since: 1.18
+ */
 void
 gst_gl_window_send_scroll_event (GstGLWindow * window,
     double posx, double posy, double delta_x, double delta_y)