Schnittstelle Surface.OnLayout

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

@FunctionalInterface public static interface Surface.OnLayout
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    onLayout(int width, int height)
    Emitted when the size of @surface is changed, or when relayout should
    be performed.
  • Methodendetails

    • 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()).
      Parameter:
      width - the current width
      height - the current height