Package ch.bailu.gtk.gtk
Interface DrawingArea.OnDrawingAreaDrawFunc
- Enclosing class:
- DrawingArea
- 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
onDrawingAreaDrawFunc
(CallbackHandler __self, DrawingArea drawing_area, Context cr, int width, int height, Pointer user_data) Whenever @drawing_area needs to redraw, this function will be called.
-
Method Details
-
onDrawingAreaDrawFunc
void onDrawingAreaDrawFunc(CallbackHandler __self, @Nonnull DrawingArea drawing_area, @Nonnull Context cr, int width, int height, @Nullable Pointer user_data) Whenever @drawing_area needs to redraw, this function will be called.
This function should exclusively redraw the contents of the drawing area
and must not call any widget functions that cause changes.- Parameters:
drawing_area
- the `GtkDrawingArea` to redrawcr
- the context to draw towidth
- the actual width of the contents. This value will be at least as wide as GtkDrawingArea:width.height
- the actual height of the contents. This value will be at least as wide as GtkDrawingArea:height.user_data
- user data
-