GLArea.connectCreateContext
gulong connectCreateContext(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T : gdk.glcontext.GLContext)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.glarea.GLArea)))
&& Parameters!T.length < 2)Connect to CreateContext signal.
The ::create-context signal is emitted when the widget is being realized, and allows you to override how the GL context is created. This is useful when you want to reuse an existing GL context, or if you want to try creating different kinds of GL options.
If context creation fails then the signal handler can use [gtk.glarea.GLArea.setError] to register a more detailed error of how the construction failed.
Parameters
callback | signal callback delegate or function to connect gdk.glcontext.GLContext callback(gtk.glarea.GLArea gLArea) gLArea the instance the signal is connected to (optional) Returns a newly created #GdkGLContext; the #GtkGLArea widget will take ownership of the returned value. |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID