| Evolution Shell Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
EBinding;
EMutualBinding;
gboolean (*EBindingTransform) (const GValue *src_value,
GValue *dst_value,
gpointer user_data);
EBinding * e_binding_new (gpointer src_object,
const gchar *src_property,
gpointer dst_object,
const gchar *dst_property);
EBinding * e_binding_new_full (gpointer src_object,
const gchar *src_property,
gpointer dst_object,
const gchar *dst_property,
EBindingTransform transform,
GDestroyNotify destroy_notify,
gpointer user_data);
EBinding * e_binding_new_with_negation (gpointer src_object,
const gchar *src_property,
gpointer dst_object,
const gchar *dst_property);
void e_binding_unbind (EBinding *binding);
EMutualBinding * e_mutual_binding_new (gpointer object1,
const gchar *property1,
gpointer object2,
const gchar *property2);
EMutualBinding * e_mutual_binding_new_full (gpointer object1,
const gchar *property1,
gpointer object2,
const gchar *property2,
EBindingTransform transform,
EBindingTransform reverse_transform,
GDestroyNotify destroy_notify,
gpointer user_data);
EMutualBinding * e_mutual_binding_new_with_negation (gpointer object1,
const gchar *property1,
gpointer object2,
const gchar *property2);
void e_mutual_binding_unbind (EMutualBinding *binding);
gboolean e_binding_transform_color_to_string (const GValue *src_value,
GValue *dst_value,
gpointer user_data);
gboolean e_binding_transform_string_to_color (const GValue *src_value,
GValue *dst_value,
gpointer user_data);
gboolean (*EBindingTransform) (const GValue *src_value,
GValue *dst_value,
gpointer user_data);
|
|
|
|
|
|
Returns : |
EBinding * e_binding_new (gpointer src_object, const gchar *src_property, gpointer dst_object, const gchar *dst_property);
One-way binds src_property in src_object to dst_property
in dst_object.
Before binding the value of dst_property is set to the
value of src_property.
|
The source GObject. |
|
The name of the property to bind from. |
|
The destination GObject. |
|
The name of the property to bind to. |
Returns : |
The descriptor of the binding. It is automatically removed if one of the objects is finalized. |
EBinding * e_binding_new_full (gpointer src_object, const gchar *src_property, gpointer dst_object, const gchar *dst_property, EBindingTransform transform, GDestroyNotify destroy_notify, gpointer user_data);
One-way binds src_property in src_object to dst_property
in dst_object.
Before binding the value of dst_property is set to the
value of src_property.
|
The source GObject. |
|
The name of the property to bind from. |
|
The destination GObject. |
|
The name of the property to bind to. |
|
Transformation function or NULL.
|
|
Callback function that is called on
disconnection with user_data or NULL.
|
|
User data associated with the binding. |
Returns : |
The descriptor of the binding. It is automatically removed if one of the objects is finalized. |
EBinding * e_binding_new_with_negation (gpointer src_object, const gchar *src_property, gpointer dst_object, const gchar *dst_property);
Convenience function for binding with boolean negation of value.
Return: The descriptor of the binding. It is automatically removed if one of the objects is finalized.
|
The source GObject. |
|
The name of the property to bind from. |
|
The destination GObject. |
|
The name of the property to bind to. |
Returns : |
void e_binding_unbind (EBinding *binding);
Disconnects the binding between two properties. Should be rarely used by applications.
This functions also calls the destroy_notify function that
was specified when binding was created.
|
An EBinding to unbind. |
EMutualBinding * e_mutual_binding_new (gpointer object1, const gchar *property1, gpointer object2, const gchar *property2);
Mutually binds values of two properties.
Before binding the value of property2 is set to the value
of property1.
|
The first GObject. |
|
The first property to bind. |
|
The second GObject. |
|
The second property to bind. |
Returns : |
The descriptor of the binding. It is automatically removed if one of the objects is finalized. |
EMutualBinding * e_mutual_binding_new_full (gpointer object1, const gchar *property1, gpointer object2, const gchar *property2, EBindingTransform transform, EBindingTransform reverse_transform, GDestroyNotify destroy_notify, gpointer user_data);
Mutually binds values of two properties.
Before binding the value of property2 is set to the value of
property1.
Both transform and reverse_transform should simultaneously be
NULL or non-NULL. If they are non-NULL, they should be reverse
in each other.
|
The first GObject. |
|
The first property to bind. |
|
The second GObject. |
|
The second property to bind. |
|
Transformation function or NULL.
|
|
The inverse transformation function or NULL.
|
|
Callback function called on disconnection with
user_data as argument or NULL.
|
|
User data associated with the binding. |
Returns : |
The descriptor of the binding. It is automatically removed if one of the objects is finalized. |
EMutualBinding * e_mutual_binding_new_with_negation (gpointer object1, const gchar *property1, gpointer object2, const gchar *property2);
Convenience function for binding with boolean negation of value.
|
The first GObject. |
|
The first property to bind. |
|
The second GObject. |
|
The second property to bind. |
Returns : |
The descriptor of the binding. It is automatically removed if one of the objects if finalized. |
void e_mutual_binding_unbind (EMutualBinding *binding);
Disconnects the binding between two properties. Should be rarely used by applications.
This functions also calls the destroy_notify function that
was specified when binding was created.
|
An EMutualBinding to unbind. |
gboolean e_binding_transform_color_to_string (const GValue *src_value,
GValue *dst_value,
gpointer user_data);
Transforms a GdkColor value to a color string specification.
|
a GValue of type GDK_TYPE_COLOR |
|
a GValue of type G_TYPE_STRING |
|
not used |
Returns : |
TRUE always
|
gboolean e_binding_transform_string_to_color (const GValue *src_value,
GValue *dst_value,
gpointer user_data);
Transforms a color string specification to a GdkColor.
|
a GValue of type G_TYPE_STRING |
|
a GValue of type GDK_TYPE_COLOR |
|
not used |
Returns : |
TRUE if color string specification was valid
|