Package ch.bailu.gtk.gtk
Schnittstelle DrawingArea.OnResize
- Umschließende Klasse:
DrawingArea
- 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
onResize
(int width, int height) Emitted once when the widget is realized, and then each time the widget
is changed while realized.
-
Methodendetails
-
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.- Parameter:
width
- the width of the viewportheight
- the height of the viewport
-