Package ch.bailu.gtk.gtk
Interface LayoutManagerClass.OnMeasure
- Enclosing class:
- LayoutManagerClass
- 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
onMeasure
(CallbackHandler __self, LayoutManager manager, Widget widget, int orientation, int for_size, Int minimum, Int natural, Int minimum_baseline, Int natural_baseline)
-
Method Details
-
onMeasure
void onMeasure(CallbackHandler __self, @Nonnull LayoutManager manager, @Nonnull Widget widget, int orientation, int for_size, @Nullable Int minimum, @Nullable Int natural, @Nullable Int minimum_baseline, @Nullable Int natural_baseline) - Parameters:
manager
- a `GtkLayoutManager`widget
- the `GtkWidget` using @managerorientation
- the orientation to measurefor_size
- Size for the opposite of @orientation; for instance, if the @orientation is %GTK_ORIENTATION_HORIZONTAL, this is the height of the widget; if the @orientation is %GTK_ORIENTATION_VERTICAL, this is the width of the widget. This allows to measure the height for the given width, and the width for the given height. Use -1 if the size is not knownminimum
- the minimum size for the given size and orientationnatural
- the natural, or preferred size for the given size and orientationminimum_baseline
- the baseline position for the minimum sizenatural_baseline
- the baseline position for the natural size
-