Package ch.bailu.gtk.gtk
Interface WidgetClass.OnMeasure
- Enclosing class:
- WidgetClass
- 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
-
Method Details
-
onMeasure
void onMeasure(CallbackHandler __self, @Nonnull Widget widget, int orientation, int for_size, @Nullable Int minimum, @Nullable Int natural, @Nullable Int minimum_baseline, @Nullable Int natural_baseline) - Parameters:
widget
- A `GtkWidget` instanceorientation
- the orientation to measurefor_size
- Size for the opposite of @orientation, i.e. if @orientation is %GTK_ORIENTATION_HORIZONTAL, this is the height the widget should be measured with. The %GTK_ORIENTATION_VERTICAL case is analogous. This way, both height-for-width and width-for-height requests can be implemented. If no size is known, -1 can be passed.minimum
- location to store the minimum sizenatural
- location to store the natural sizeminimum_baseline
- location to store the baseline position for the minimum size, or -1 to report no baselinenatural_baseline
- location to store the baseline position for the natural size, or -1 to report no baseline
-