Top | ![]() |
![]() |
![]() |
![]() |
GQuark | gst_gl_window_error_quark () |
void | (*GstGLWindowResizeCB) () |
#define | GST_GL_WINDOW_RESIZE_CB() |
void | (*GstGLWindowCB) () |
#define | GST_GL_WINDOW_CB() |
GstGLWindow * | gst_gl_window_new () |
void | gst_gl_window_draw () |
void | gst_gl_window_draw_unlocked () |
gboolean | gst_gl_window_is_running () |
void | gst_gl_window_quit () |
void | gst_gl_window_run () |
GstGLContext * | gst_gl_window_get_context () |
guintptr | gst_gl_window_get_display () |
void | gst_gl_window_send_message () |
void | gst_gl_window_send_message_async () |
void | gst_gl_window_set_close_callback () |
void | gst_gl_window_set_draw_callback () |
void | gst_gl_window_set_resize_callback () |
void | gst_gl_window_set_window_handle () |
guintptr | gst_gl_window_get_window_handle () |
GstGLWindow represents a window that elements can render into. A window can either be a user visible window (onscreen) or hidden (offscreen).
void gst_gl_window_draw (GstGLWindow *window
,guint width
,guint height
);
Redraw the window contents. Implementations should invoke the draw callback.
Since: 1.4
void gst_gl_window_draw_unlocked (GstGLWindow *window
,guint width
,guint height
);
Redraw the window contents. Implementations should invoke the draw callback.
Since: 1.4
gboolean
gst_gl_window_is_running (GstGLWindow *window
);
Whether the runloop is running
Since: 1.4
void
gst_gl_window_quit (GstGLWindow *window
);
Quit the runloop's execution.
Since: 1.4
void
gst_gl_window_run (GstGLWindow *window
);
Start the execution of the runloop.
Since: 1.4
GstGLContext *
gst_gl_window_get_context (GstGLWindow *window
);
Since: 1.4
void gst_gl_window_send_message (GstGLWindow *window
,GstGLWindowCB callback
,gpointer data
);
Invoke callback
with data on the window thread. callback
is guarenteed to
have executed when this function returns.
window |
||
callback |
function to invoke. |
[scope async] |
data |
data to invoke |
[closure] |
Since: 1.4
void gst_gl_window_send_message_async (GstGLWindow *window
,GstGLWindowCB callback
,gpointer data
,GDestroyNotify destroy
);
Invoke callback
with data
on the window thread. The callback may not
have been executed when this function returns.
window |
||
callback |
function to invoke. |
[scope async] |
data |
data to invoke |
[closure] |
destroy |
called when |
[destroy] |
Since: 1.4
void gst_gl_window_set_close_callback (GstGLWindow *window
,GstGLWindowCB callback
,gpointer data
,GDestroyNotify destroy_notify
);
Sets the callback called when the window is about to close.
window |
||
callback |
function to invoke. |
[scope notified] |
data |
data to invoke |
[closure] |
destroy_notify |
called when |
[destroy] |
Since: 1.4
void gst_gl_window_set_draw_callback (GstGLWindow *window
,GstGLWindowCB callback
,gpointer data
,GDestroyNotify destroy_notify
);
Sets the draw callback called everytime gst_gl_window_draw()
is called
window |
||
callback |
function to invoke. |
[scope notified] |
data |
data to invoke |
[closure] |
destroy_notify |
called when |
[destroy] |
Since: 1.4
void gst_gl_window_set_resize_callback (GstGLWindow *window
,GstGLWindowResizeCB callback
,gpointer data
,GDestroyNotify destroy_notify
);
Sets the resize callback called everytime a resize of the window occurs.
window |
||
callback |
function to invoke. |
[scope notified] |
data |
data to invoke |
[closure] |
destroy_notify |
called when |
[destroy] |
Since: 1.4
void gst_gl_window_set_window_handle (GstGLWindow *window
,guintptr handle
);
Sets the window that this window
should render into. Some implementations
require this to be called with a valid handle before drawing can commence.
Since: 1.4
guintptr
gst_gl_window_get_window_handle (GstGLWindow *window
);
Since: 1.4
typedef struct _GstGLWindow GstGLWindow;
GstGLWindow is an opaque struct and should only be accessed through the provided api.
typedef struct { GstObjectClass parent_class; guintptr (*get_display) (GstGLWindow *window); void (*set_window_handle) (GstGLWindow *window, guintptr id); guintptr (*get_window_handle) (GstGLWindow *window); void (*draw_unlocked) (GstGLWindow *window, guint width, guint height); void (*draw) (GstGLWindow *window, guint width, guint height); void (*run) (GstGLWindow *window); void (*quit) (GstGLWindow *window); void (*send_message) (GstGLWindow *window, GstGLWindowCB callback, gpointer data); void (*send_message_async) (GstGLWindow *window, GstGLWindowCB callback, gpointer data, GDestroyNotify destroy); gboolean (*open) (GstGLWindow *window, GError **error); void (*close) (GstGLWindow *window); } GstGLWindowClass;
Gets the current windowing system display connection |
||
Set a window to render into |
||
Gets the current window that this GstGLWindow is rendering into |
||
redraw the window with the specified dimensions |
||
redraw the window with the specified dimensions |
||
run the mainloop |
||
send a quit to the mainloop |
||
invoke a function on the window thread. Required to be reentrant. |
||
invoke a function on the window thread. |
||
open the connection to the display |
||
close the connection to the display |