Package ch.bailu.gtk.gobject
Schnittstelle Object.OnBindingTransformFunc
- Umschließende Klasse:
Object
- Funktionsschnittstelle:
- Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
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.
-
Methodendetails
-
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.- Parameter:
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- Gibt zurück:
- %TRUE if the transformation was successful, and %FALSE otherwise
-