Interface Surface.OnLayout

Enclosing class:
Surface
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 Surface.OnLayout
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onLayout(int width, int height)
    Emitted when the size of @surface is changed, or when relayout should
    be performed.
  • Method Details

    • onLayout

      void onLayout(int width, int height)
      Emitted when the size of @surface is changed, or when relayout should
      be performed.

      Surface size is reported in ”application pixels”, not
      ”device pixels” (see gdk_surface_get_scale_factor()).
      Parameters:
      width - the current width
      height - the current height