Top | ![]() |
![]() |
![]() |
![]() |
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
.
source |
a GObject object. |
[transfer full] |
property |
a property of |
|
subProperty |
a property of the |
|
target |
a GObject object. |
[transfer full] |
destination |
a property of |
|
flags |
flags, see GBindingFlags. |
Since: 3.8
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.
source |
a GObject object. |
[transfer full] |
property |
a property of |
|
subProperty |
a property of the |
|
target |
a GObject object. |
[transfer full] |
destination |
a property of |
|
flags |
flags, see GBindingFlags. |
|
transform_to |
a GBindingTransformFunc func or |
[allow-none][scope notified] |
transform_from |
a GBindingTransformFunc func or |
[allow-none][scope notified] |
user_data |
some user data or |
|
notify |
a GDestroyNotify function. |
Since: 3.8