Interface DrawingArea.OnDrawingAreaDrawFunc

Enclosing class:
DrawingArea
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 DrawingArea.OnDrawingAreaDrawFunc
  • Method Details

    • onDrawingAreaDrawFunc

      void onDrawingAreaDrawFunc(CallbackHandler __self, @Nonnull DrawingArea drawing_area, @Nonnull Context cr, int width, int height, @Nullable Pointer user_data)
      Whenever @drawing_area needs to redraw, this function will be called.

      This function should exclusively redraw the contents of the drawing area
      and must not call any widget functions that cause changes.
      Parameters:
      drawing_area - the `GtkDrawingArea` to redraw
      cr - the context to draw to
      width - the actual width of the contents. This value will be at least as wide as GtkDrawingArea:width.
      height - the actual height of the contents. This value will be at least as wide as GtkDrawingArea:height.
      user_data - user data