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.

@FunctionalInterface public static interface LayoutManagerClass.OnMeasure
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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 @manager
      orientation - the orientation to measure
      for_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 known
      minimum - the minimum size for the given size and orientation
      natural - the natural, or preferred size for the given size and orientation
      minimum_baseline - the baseline position for the minimum size
      natural_baseline - the baseline position for the natural size