Interface DrawingArea.OnResize

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.OnResize
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onResize(int width, int height)
    Emitted once when the widget is realized, and then each time the widget
    is changed while realized.
  • Method Details

    • 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.
      Parameters:
      width - the width of the viewport
      height - the height of the viewport