Schnittstelle DrawingArea.OnResize

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.OnResize
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    onResize(int width, int height)
    Emitted once when the widget is realized, and then each time the widget
    is changed while realized.
  • Methodendetails

    • onResize

      void onResize(int width, int height)
      Emitted once when the widget is realized, and then each time the widget
      is changed while realized.

      This is useful in order to keep state up to date with the widget size,
      like for instance a backing surface.
      Parameter:
      width - the width of the viewport
      height - the height of the viewport