Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gbinding.h File Reference
#include <glib.h>
#include <gobject/gobject.h>

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 }
 

Functions

GOBJECT_AVAILABLE_IN_ALL GType g_binding_flags_get_type (void) G_GNUC_CONST
 
GOBJECT_AVAILABLE_IN_ALL GType g_binding_get_type (void) G_GNUC_CONST
 
GOBJECT_AVAILABLE_IN_ALL GBindingFlags g_binding_get_flags (GBinding *binding)
 
GObjectg_binding_get_source (GBinding *binding)
 
GOBJECT_AVAILABLE_IN_2_68 GObjectg_binding_dup_source (GBinding *binding)
 
GObjectg_binding_get_target (GBinding *binding)
 
GOBJECT_AVAILABLE_IN_2_68 GObjectg_binding_dup_target (GBinding *binding)
 
GOBJECT_AVAILABLE_IN_ALL const gcharg_binding_get_source_property (GBinding *binding)
 
GOBJECT_AVAILABLE_IN_ALL const gcharg_binding_get_target_property (GBinding *binding)
 
GOBJECT_AVAILABLE_IN_2_38 void g_binding_unbind (GBinding *binding)
 
GOBJECT_AVAILABLE_IN_ALL GBindingg_object_bind_property (gpointer source, const gchar *source_property, gpointer target, const gchar *target_property, GBindingFlags flags)
 
GOBJECT_AVAILABLE_IN_ALL GBindingg_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 GBindingg_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)
 

Macro Definition Documentation

◆ G_BINDING

#define G_BINDING ( obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_BINDING, GBinding))

Definition at line 38 of file gbinding.h.

◆ G_IS_BINDING

#define G_IS_BINDING ( obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_BINDING))

Definition at line 39 of file gbinding.h.

◆ G_TYPE_BINDING

#define G_TYPE_BINDING   (g_binding_get_type ())

Definition at line 37 of file gbinding.h.

◆ G_TYPE_BINDING_FLAGS

#define G_TYPE_BINDING_FLAGS   (g_binding_flags_get_type ())

Definition at line 35 of file gbinding.h.

Typedef Documentation

◆ GBinding

typedef struct _GBinding GBinding

Definition at line 41 of file gbinding.h.

◆ GBindingTransformFunc

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.

Enumeration Type Documentation

◆ 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.

91 { /*< prefix=G_BINDING >*/
93
95 G_BINDING_SYNC_CREATE = 1 << 1,
GBindingFlags
Definition gbinding.h:91
@ G_BINDING_BIDIRECTIONAL
Definition gbinding.h:94
@ G_BINDING_SYNC_CREATE
Definition gbinding.h:95
@ G_BINDING_INVERT_BOOLEAN
Definition gbinding.h:96
@ G_BINDING_DEFAULT
Definition gbinding.h:92

Function Documentation

◆ g_binding_dup_source()

GOBJECT_AVAILABLE_IN_2_68 GObject * g_binding_dup_source ( GBinding * binding)

◆ g_binding_dup_target()

GOBJECT_AVAILABLE_IN_2_68 GObject * g_binding_dup_target ( GBinding * binding)

◆ g_binding_flags_get_type()

GOBJECT_AVAILABLE_IN_ALL GType g_binding_flags_get_type ( void )

◆ g_binding_get_flags()

GOBJECT_AVAILABLE_IN_ALL GBindingFlags g_binding_get_flags ( GBinding * binding)

◆ g_binding_get_source()

GObject * g_binding_get_source ( GBinding * binding)

◆ g_binding_get_source_property()

GOBJECT_AVAILABLE_IN_ALL const gchar * g_binding_get_source_property ( GBinding * binding)

◆ g_binding_get_target()

GObject * g_binding_get_target ( GBinding * binding)

◆ g_binding_get_target_property()

GOBJECT_AVAILABLE_IN_ALL const gchar * g_binding_get_target_property ( GBinding * binding)

◆ g_binding_get_type()

GOBJECT_AVAILABLE_IN_ALL GType g_binding_get_type ( void )

◆ g_binding_unbind()

GOBJECT_AVAILABLE_IN_2_38 void g_binding_unbind ( GBinding * binding)

◆ g_object_bind_property()

GOBJECT_AVAILABLE_IN_ALL GBinding * g_object_bind_property ( gpointer source,
const gchar * source_property,
gpointer target,
const gchar * target_property,
GBindingFlags flags )

◆ g_object_bind_property_full()

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 )

◆ g_object_bind_property_with_closures()

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 )