Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
Macros | |
#define | G_TYPE_BINDING_FLAGS (g_binding_flags_get_type ()) |
#define | G_TYPE_BINDING (g_binding_get_type ()) |
#define | G_BINDING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_BINDING, GBinding)) |
#define | G_IS_BINDING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_BINDING)) |
Typedefs | |
typedef struct _GBinding | GBinding |
typedef gboolean(* | GBindingTransformFunc) (GBinding *binding, const GValue *from_value, GValue *to_value, gpointer user_data) |
Enumerations | |
enum | GBindingFlags { G_BINDING_DEFAULT = 0 , G_BINDING_BIDIRECTIONAL = 1 << 0 , G_BINDING_SYNC_CREATE = 1 << 1 , G_BINDING_INVERT_BOOLEAN = 1 << 2 } |
#define G_BINDING | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_BINDING, GBinding)) |
Definition at line 38 of file gbinding.h.
#define G_IS_BINDING | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_BINDING)) |
Definition at line 39 of file gbinding.h.
#define G_TYPE_BINDING (g_binding_get_type ()) |
Definition at line 37 of file gbinding.h.
#define G_TYPE_BINDING_FLAGS (g_binding_flags_get_type ()) |
Definition at line 35 of file gbinding.h.
typedef struct _GBinding GBinding |
Definition at line 41 of file gbinding.h.
typedef gboolean(* GBindingTransformFunc) (GBinding *binding, const GValue *from_value, GValue *to_value, gpointer user_data) |
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
Definition at line 63 of file gbinding.h.
enum GBindingFlags |
GBindingFlags: @G_BINDING_DEFAULT: The default binding; if the source property changes, the target property is updated with its value. @G_BINDING_BIDIRECTIONAL: Bidirectional binding; if either the property of the source or the property of the target changes, the other is updated. @G_BINDING_SYNC_CREATE: Synchronize the values of the source and target properties when creating the binding; the direction of the synchronization is always from the source to the target. @G_BINDING_INVERT_BOOLEAN: If the two properties being bound are booleans, setting one to TRUE will result in the other being set to FALSE and vice versa. This flag will only work for boolean properties, and cannot be used when passing custom transformation functions to g_object_bind_property_full().
Flags to be passed to g_object_bind_property() or g_object_bind_property_full().
This enumeration can be extended at later date.
Since: 2.26
Enumerator | |
---|---|
G_BINDING_DEFAULT | |
G_BINDING_BIDIRECTIONAL | |
G_BINDING_SYNC_CREATE | |
G_BINDING_INVERT_BOOLEAN |
Definition at line 91 of file gbinding.h.
GOBJECT_AVAILABLE_IN_2_68 GObject * g_binding_dup_source | ( | GBinding * | binding | ) |
GOBJECT_AVAILABLE_IN_2_68 GObject * g_binding_dup_target | ( | GBinding * | binding | ) |
GOBJECT_AVAILABLE_IN_ALL GType g_binding_flags_get_type | ( | void | ) |
GOBJECT_AVAILABLE_IN_ALL GBindingFlags g_binding_get_flags | ( | GBinding * | binding | ) |
GOBJECT_AVAILABLE_IN_ALL const gchar * g_binding_get_source_property | ( | GBinding * | binding | ) |
GOBJECT_AVAILABLE_IN_ALL const gchar * g_binding_get_target_property | ( | GBinding * | binding | ) |
GOBJECT_AVAILABLE_IN_ALL GType g_binding_get_type | ( | void | ) |
GOBJECT_AVAILABLE_IN_2_38 void g_binding_unbind | ( | GBinding * | binding | ) |
GOBJECT_AVAILABLE_IN_ALL GBinding * g_object_bind_property | ( | gpointer | source, |
const gchar * | source_property, | ||
gpointer | target, | ||
const gchar * | target_property, | ||
GBindingFlags | flags ) |
GOBJECT_AVAILABLE_IN_ALL GBinding * g_object_bind_property_full | ( | gpointer | source, |
const gchar * | source_property, | ||
gpointer | target, | ||
const gchar * | target_property, | ||
GBindingFlags | flags, | ||
GBindingTransformFunc | transform_to, | ||
GBindingTransformFunc | transform_from, | ||
gpointer | user_data, | ||
GDestroyNotify | notify ) |
GOBJECT_AVAILABLE_IN_ALL GBinding * g_object_bind_property_with_closures | ( | gpointer | source, |
const gchar * | source_property, | ||
gpointer | target, | ||
const gchar * | target_property, | ||
GBindingFlags | flags, | ||
GClosure * | transform_to, | ||
GClosure * | transform_from ) |