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.

@FunctionalInterface public static interface WidgetClass.OnMeasure
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onMeasure(CallbackHandler __self, 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 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` instance
      orientation - the orientation to measure
      for_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 size
      natural - location to store the natural size
      minimum_baseline - location to store the baseline position for the minimum size, or -1 to report no baseline
      natural_baseline - location to store the baseline position for the natural size, or -1 to report no baseline