GLArea.addOnCreateContext

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_gl_area_set_error() to register a more detailed error of how the construction failed.

class GLArea
gulong
addOnCreateContext
(
GLContext delegate dlg
,
ConnectFlags connectFlags = cast(ConnectFlags)0
)

Return Value

Type: gulong

a newly created gdk.GLContext; the gtk.GLArea widget will take ownership of the returned value.

Meta

Since

3.16