Package ch.bailu.gtk.gobject
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.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onBindingTransformFunc
(CallbackHandler __self, Binding binding, Value from_value, Value to_value, Pointer user_data) A function to be called to transform @from_value to @to_value.
-
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 #GBindingfrom_value
- the #GValue containing the value to transformto_value
- the #GValue in which to store the transformed valueuser_data
- data passed to the transform function- Returns:
- %TRUE if the transformation was successful, and %FALSE otherwise
-