Interface GLArea.OnRender

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.

@FunctionalInterface public static interface GLArea.OnRender
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Emitted every time the contents of the `GtkGLArea` should be redrawn.
  • Method Details

    • onRender

      boolean onRender(@Nonnull GLContext context)
      Emitted every time the contents of the `GtkGLArea` should be redrawn.

      The @context is bound to the @area prior to emitting this function,
      and the buffers are painted to the window once the emission terminates.
      Parameters:
      context - the `GdkGLContext` used by @area
      Returns:
      %TRUE to stop other handlers from being invoked for the event. %FALSE to propagate the event further.