Package ch.bailu.gtk.gdk
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.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
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 widthheight
- the current height
-