Package ch.bailu.gtk.gtk
Interface GLArea.OnCreateContext
- Enclosing class:
- GLArea
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionEmitted when the widget is being realized.
-
Method Details
-
onCreateContext
GLContext onCreateContext()Emitted when the widget is being realized.
This 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
[method@Gtk.GLArea.set_error] to register a more detailed error
of how the construction failed.- Returns:
- a newly created `GdkGLContext`; the `GtkGLArea` widget will take ownership of the returned value.
-