ToolSubBinding

ToolSubBinding — .

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── ToolSubBinding

Description

Functions

tool_sub_binding_new ()

ToolSubBinding *
tool_sub_binding_new (gpointer source,
                      const gchar *property,
                      const gchar *subProperty,
                      gpointer target,
                      const gchar *destination,
                      GBindingFlags flags);

Creates a binding between the property subProperty of an object retrieve as the property of source . If property is null, destination of target is set to the default value of property in property class. Contrary to g_object_bind_property(), the returned object owns a reference on source or target .

Parameters

source

a GObject object.

[transfer full]

property

a property of source .

 

subProperty

a property of the property of source .

 

target

a GObject object.

[transfer full]

destination

a property of target .

 

flags

flags, see GBindingFlags.

 

Returns

a newly allocated ToolSubBinding object.

[transfer full]

Since: 3.8


tool_sub_binding_new_full ()

ToolSubBinding *
tool_sub_binding_new_full (gpointer source,
                           const gchar *property,
                           const gchar *subProperty,
                           gpointer target,
                           const gchar *destination,
                           GBindingFlags flags,
                           GBindingTransformFunc transform_to,
                           GBindingTransformFunc transform_from,
                           gpointer user_data,
                           GDestroyNotify notify);

As tool_sub_binding_new() but with transformation functions.

Parameters

source

a GObject object.

[transfer full]

property

a property of source .

 

subProperty

a property of the property of source .

 

target

a GObject object.

[transfer full]

destination

a property of target .

 

flags

flags, see GBindingFlags.

 

transform_to

a GBindingTransformFunc func or NULL.

[allow-none][scope notified]

transform_from

a GBindingTransformFunc func or NULL.

[allow-none][scope notified]

user_data

some user data or NULL.

 

notify

a GDestroyNotify function.

 

Returns

a newly allocated ToolSubBinding object.

[transfer full]

Since: 3.8

Types and Values

struct ToolSubBinding

struct ToolSubBinding;

Common name to refer to a _ToolSubBinding.