Type Alias GBindingTransformFunc

Source
pub type GBindingTransformFunc = Option<unsafe extern "C" fn(binding: *mut GBinding, from_value: *const GValue, to_value: *mut GValue, user_data: gpointer) -> gboolean>;
Expand description

GBindingTransformFunc: @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

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.

Returns: %TRUE if the transformation was successful, and %FALSE otherwise

Since: 2.26

Aliased Type§

pub enum GBindingTransformFunc {
    None,
    Some(unsafe extern "C" fn(*mut _GBinding, *const _GValue, *mut _GValue, *mut c_void) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut _GBinding, *const _GValue, *mut _GValue, *mut c_void) -> i32)

Some value of type T.