summaryrefslogtreecommitdiff
path: root/gst-libs/gst/gl/gstglwindow.h
diff options
context:
space:
mode:
authorMatthew Waters <ystreet00@gmail.com>2013-11-23 22:57:49 +1100
committerMatthew Waters <ystreet00@gmail.com>2014-03-15 18:37:05 +0100
commit3049627b87fd8ee4951aede991a7b55c9b10e7bd (patch)
treec348b2117e2afa1395513cbd2b0de2988ec010ff /gst-libs/gst/gl/gstglwindow.h
parentaa573cf138117b1f497f875ec289edccf60cd2a5 (diff)
downloadgstreamer-plugins-bad-3049627b87fd8ee4951aede991a7b55c9b10e7bd.tar.gz
[859/906] window: provide some documetation
Diffstat (limited to 'gst-libs/gst/gl/gstglwindow.h')
-rw-r--r--gst-libs/gst/gl/gstglwindow.h27
1 files changed, 25 insertions, 2 deletions
diff --git a/gst-libs/gst/gl/gstglwindow.h b/gst-libs/gst/gl/gstglwindow.h
index 4a03fc829..fb8298b82 100644
--- a/gst-libs/gst/gl/gstglwindow.h
+++ b/gst-libs/gst/gl/gstglwindow.h
@@ -25,6 +25,8 @@
#include <gst/gst.h>
#include <gst/gl/gstgl_fwd.h>
+#include <gst/gl/gstglcontext.h>
+#include <gst/gl/gstgldisplay.h>
G_BEGIN_DECLS
@@ -64,11 +66,16 @@ typedef void (*GstGLWindowResizeCB) (gpointer data, guint width, guint height);
#define GST_GL_WINDOW_CB(f) ((GstGLWindowCB) (f))
#define GST_GL_WINDOW_RESIZE_CB(f) ((GstGLWindowResizeCB) (f))
+/**
+ * GstGLWindow:
+ *
+ * #GstGLWindow is an opaque struct and should only be accessed through the
+ * provided api.
+ */
struct _GstGLWindow {
/*< private >*/
GObject parent;
- /*< public >*/
GMutex lock;
gboolean need_lock;
@@ -94,8 +101,24 @@ struct _GstGLWindow {
GstGLWindowPrivate *priv;
};
+/**
+ * GstGLWindowClass:
+ * @parent_class: Parent class
+ * @get_display: Gets the current windowing system display connection
+ * @set_window_handle: Set a window to render into
+ * @get_window_handle: Gets the current window that this #GstGLWindow is
+ * rendering into
+ * @draw_unlocked: redraw the window with the specified dimensions
+ * @draw: redraw the window with the specified dimensions
+ * @run: run the mainloop
+ * @quit: send a quit to the mainloop
+ * @send_message: invoke a function on the window thread. Required to be reentrant.
+ * @send_message_async: invoke a function on the window thread. @run may or may
+ * not have been called. Required to be reentrant.
+ * @open: open the connection to the display
+ * @close: close the connection to the display
+ */
struct _GstGLWindowClass {
- /*< private >*/
GObjectClass parent_class;
guintptr (*get_display) (GstGLWindow *window);