Interface Object.OnBindingTransformFunc

Enclosing class:
Object
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 Object.OnBindingTransformFunc
  • Method Details

    • onBindingTransformFunc

      boolean onBindingTransformFunc(CallbackHandler __self, @Nonnull Binding binding, @Nonnull Value from_value, @Nonnull Value to_value, @Nullable Pointer user_data)
      A function to be called to transform @from_value to @to_value.

      If this is the @transform_to function of a binding, then @from_value
      is the @source_property on the @source object, and @to_value is the
      @target_property on the @target object. If this is the
      @transform_from function of a %G_BINDING_BIDIRECTIONAL binding,
      then those roles are reversed.
      Parameters:
      binding - a #GBinding
      from_value - the #GValue containing the value to transform
      to_value - the #GValue in which to store the transformed value
      user_data - data passed to the transform function
      Returns:
      %TRUE if the transformation was successful, and %FALSE otherwise