Schnittstelle DrawingArea.OnDrawingAreaDrawFunc

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

@FunctionalInterface public static interface DrawingArea.OnDrawingAreaDrawFunc
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    onDrawingAreaDrawFunc(CallbackHandler __self, DrawingArea drawing_area, Context cr, int width, int height, Pointer user_data)
    Whenever @drawing_area needs to redraw, this function will be called.
  • Methodendetails

    • 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.
      Parameter:
      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