gstgl.glwindow
Module for [GLWindow] class
Types 3
classGLWindow : gst.object.ObjectWrap
GstGLWindow represents a window that elements can render into. A window can either be a user visible window (onscreen) or hidden (offscreen).
Methods
GLWindowGidBuilder builder() static nothrowGet builder for [gstgl.glwindow.GLWindow] Returns: New builder objectbool controlsViewport() nothrowChecks if window controls the GL viewport. Returns: true if window controls the GL viewport, otherwise falsegstgl.glcontext.GLContext getContext() nothrowsize_t getDisplay() nothrowvoid getSurfaceDimensions(out uint width, out uint height) nothrowsize_t getWindowHandle() nothrowvoid handleEvents(bool handleEvents) nothrowTell a window that it should handle events from the window system. These events are forwarded upstream as navigation events. In some window systems events are not propagated in the window hierarchy...bool hasOutputSurface() nothrowQuery whether window has output surface or not Returns: true if window has useable output surfacevoid sendKeyEvent(string eventType, string keyStr) nothrowvoid sendMessage(gstgl.types.GLWindowCB callback) nothrowInvoke callback with data on the window thread. callback is guaranteed to have executed when this function returns.void sendMessageAsync(gstgl.types.GLWindowCB callback) nothrowInvoke callback with data on the window thread. The callback may not have been executed when this function returns.void sendMouseEvent(string eventType, int button, double posx, double posy) nothrowvoid sendScrollEvent(double posx, double posy, double deltaX, double deltaY) nothrowNotify a window about a scroll event. A scroll signal holding the event coordinates will be emitted.void setCloseCallback(gstgl.types.GLWindowCB callback) nothrowSets the callback called when the window is about to close.void setDrawCallback(gstgl.types.GLWindowCB callback) nothrowSets the draw callback called every time [gstgl.glwindow.GLWindow.draw] is calledvoid setPreferredSize(int width, int height) nothrowSet the preferred width and height of the window. Implementations are free to ignore this information.bool setRenderRectangle(int x, int y, int width, int height) nothrowTell a window that it should render into a specific region of the window according to the #GstVideoOverlay interface.void setResizeCallback(gstgl.types.GLWindowResizeCB callback) nothrowSets the resize callback called every time a resize of the window occurs.void setWindowHandle(size_t handle) nothrowSets the window that this window should render into. Some implementations require this to be called with a valid handle before drawing can commence.gulong connectKeyEvent(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == string)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == string)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gstgl.glwindow.GLWindow)))
&& Parameters!T.length < 4) nothrowConnect to `KeyEvent` signal.gulong connectMouseEvent(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == string)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == int)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == double)))
&& (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] == double)))
&& (Parameters!T.length < 5 || (ParameterStorageClassTuple!T[4] == ParameterStorageClass.none && is(Parameters!T[4] : gstgl.glwindow.GLWindow)))
&& Parameters!T.length < 6) nothrowConnect to `MouseEvent` signal.gulong connectScrollEvent(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == double)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == double)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == double)))
&& (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] == double)))
&& (Parameters!T.length < 5 || (ParameterStorageClassTuple!T[4] == ParameterStorageClass.none && is(Parameters!T[4] : gstgl.glwindow.GLWindow)))
&& Parameters!T.length < 6) nothrowConnect to `ScrollEvent` signal.gulong connectWindowHandleChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gstgl.glwindow.GLWindow)))
&& Parameters!T.length < 2) nothrowConnect to `WindowHandleChanged` signal.Fluent builder implementation template for gstgl.glwindow.GLWindow
Fluent builder for gstgl.glwindow.GLWindow