Schnittstelle GLArea.OnCreateContext

Umschließende Klasse:
GLArea
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface GLArea.OnCreateContext
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    Emitted when the widget is being realized.
  • Methodendetails

    • 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.
      Gibt zurück:
      a newly created `GdkGLContext`; the `GtkGLArea` widget will take ownership of the returned value.