Package ch.bailu.gtk.gdk
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 widthheight
- the current height
-