BindingGroup

#DzlBindingGroup manages to simplify the process of binding many properties from a #GObject as a group. As such there is no API to unbind a property from the group.

In particular, this allows you to change the source instance for the bindings. This automatically causes the unbinding of the properties from the old instance and binding to the new instance.

This should not be confused with #GtkBindingGroup.

Constructors

this
this(DzlBindingGroup* dzlBindingGroup, bool ownedRef = false)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new #DzlBindingGroup.

Members

Functions

bind
void bind(string sourceProperty, ObjectG target, string targetProperty, GBindingFlags flags)

Creates a binding between @source_property on the source object and @target_property on @target. Whenever the @source_property is changed the @target_property is updated using the same value. The binding flags #G_BINDING_SYNC_CREATE is automatically specified.

bindFull
void bindFull(string sourceProperty, ObjectG target, string targetProperty, GBindingFlags flags, GBindingTransformFunc transformTo, GBindingTransformFunc transformFrom, void* userData, GDestroyNotify userDataDestroy)

Creates a binding between @source_property on the source object and @target_property on @target, allowing you to set the transformation functions to be used by the binding. The binding flags #G_BINDING_SYNC_CREATE is automatically specified.

bindWithClosures
void bindWithClosures(string sourceProperty, ObjectG target, string targetProperty, GBindingFlags flags, Closure transformTo, Closure transformFrom)

Creates a binding between @source_property on the source object and @target_property on @target, allowing you to set the transformation functions to be used by the binding. The binding flags #G_BINDING_SYNC_CREATE is automatically specified.

getBindingGroupStruct
DzlBindingGroup* getBindingGroupStruct(bool transferOwnership = false)

Get the main Gtk struct

getSource
ObjectG getSource()

Gets the source object used for binding properties.

getStruct
void* getStruct()

the main Gtk struct as a void*

setSource
void setSource(ObjectG source)

Sets @source as the source object used for creating property bindings. If there is already a source object all bindings from it will be removed.

Static functions

getType
GType getType()

Variables

dzlBindingGroup
DzlBindingGroup* dzlBindingGroup;

the main Gtk struct

Meta