Interface Range.OnChangeValue

Enclosing class:
Range
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 Range.OnChangeValue
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onChangeValue(int scroll, double value)
    Emitted when a scroll action is performed on a range.
  • Method Details

    • onChangeValue

      boolean onChangeValue(int scroll, double value)
      Emitted when a scroll action is performed on a range.

      It allows an application to determine the type of scroll event
      that occurred and the resultant new value. The application can
      handle the event itself and return %TRUE to prevent further
      processing. Or, by returning %FALSE, it can pass the event to
      other handlers until the default GTK handler is reached.

      The value parameter is unrounded. An application that overrides
      the ::change-value signal is responsible for clamping the value
      to the desired number of decimal digits; the default GTK
      handler clamps the value based on [property@Gtk.Range:round-digits].
      Parameters:
      scroll - the type of scroll action that was performed
      value - the new value resulting from the scroll action
      Returns:
      %TRUE to prevent other handlers from being invoked for the signal, %FALSE to propagate the signal further