| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.GObject.Objects.Binding
Description
GObject instance (or source) and another property on another GObject
instance (or target).
Whenever the source property changes, the same value is applied to the target property; for instance, the following binding:
c code
g_object_bind_property (object1, "property-a",
object2, "property-b",
G_BINDING_DEFAULT);will cause the property named "property-b" of object2 to be updated
every time GObject.GObject.set() or the specific accessor changes the value of
the property "property-a" of object1.
It is possible to create a bidirectional binding between two properties
of two GObject instances, so that if either property changes, the
other is updated as well, for instance:
c code
g_object_bind_property (object1, "property-a",
object2, "property-b",
G_BINDING_BIDIRECTIONAL);will keep the two properties in sync.
It is also possible to set a custom transformation function (in both directions, in case of a bidirectional binding) to apply a custom transformation from the source value to the target value before applying it; for instance, the following binding:
c code
g_object_bind_property_full (adjustment1, "value",
adjustment2, "value",
G_BINDING_BIDIRECTIONAL,
celsius_to_fahrenheit,
fahrenheit_to_celsius,
NULL, NULL);will keep the "value" property of the two adjustments in sync; the
celsiusToFahrenheit function will be called whenever the "value"
property of adjustment1 changes and will transform the current value
of the property before applying it to the "value" property of adjustment2.
Vice versa, the fahrenheitToCelsius function will be called whenever
the "value" property of adjustment2 changes, and will transform the
current value of the property before applying it to the "value" property
of adjustment1.
Note that Binding does not resolve cycles by itself; a cycle like
object1:propertyA -> object2:propertyB object2:propertyB -> object3:propertyC object3:propertyC -> object1:propertyA
might lead to an infinite loop. The loop, in this particular case,
can be avoided if the objects emit the GObject::notify signal only
if the value has effectively been changed. A binding is implemented
using the GObject::notify signal, so it is susceptible to all the
various ways of blocking a signal emission, like signalStopEmission
or signalHandlerBlock.
A binding will be severed, and the resources it allocates freed, whenever
either one of the GObject instances it refers to are finalized, or when
the Binding instance loses its last reference.
Bindings for languages with garbage collection can use
bindingUnbind to explicitly release a binding between the source
and target properties, instead of relying on the last reference on the
binding, source, and target instances to drop.
Since: 2.26
Synopsis
- newtype Binding = Binding (ManagedPtr Binding)
- class (GObject o, IsDescendantOf Binding o) => IsBinding o
- toBinding :: (MonadIO m, IsBinding o) => o -> m Binding
- type family ResolveBindingMethod (t :: Symbol) o where ...
- data BindingDupSourceMethodInfo
- bindingDupSource :: (HasCallStack, MonadIO m, IsBinding a) => a -> m (Maybe Object)
- data BindingDupTargetMethodInfo
- bindingDupTarget :: (HasCallStack, MonadIO m, IsBinding a) => a -> m (Maybe Object)
- data BindingGetFlagsMethodInfo
- bindingGetFlags :: (HasCallStack, MonadIO m, IsBinding a) => a -> m [BindingFlags]
- data BindingGetSourceMethodInfo
- bindingGetSource :: (HasCallStack, MonadIO m, IsBinding a) => a -> m (Maybe Object)
- data BindingGetSourcePropertyMethodInfo
- bindingGetSourceProperty :: (HasCallStack, MonadIO m, IsBinding a) => a -> m Text
- data BindingGetTargetMethodInfo
- bindingGetTarget :: (HasCallStack, MonadIO m, IsBinding a) => a -> m (Maybe Object)
- data BindingGetTargetPropertyMethodInfo
- bindingGetTargetProperty :: (HasCallStack, MonadIO m, IsBinding a) => a -> m Text
- data BindingUnbindMethodInfo
- bindingUnbind :: (HasCallStack, MonadIO m, IsBinding a) => a -> m ()
- data BindingFlagsPropertyInfo
- bindingFlags :: AttrLabelProxy "flags"
- constructBindingFlags :: (IsBinding o, MonadIO m) => [BindingFlags] -> m (GValueConstruct o)
- getBindingFlags :: (MonadIO m, IsBinding o) => o -> m [BindingFlags]
- data BindingSourcePropertyInfo
- bindingSource :: AttrLabelProxy "source"
- constructBindingSource :: (IsBinding o, MonadIO m, IsObject a) => a -> m (GValueConstruct o)
- getBindingSource :: (MonadIO m, IsBinding o) => o -> m (Maybe Object)
- data BindingSourcePropertyPropertyInfo
- bindingSourceProperty :: AttrLabelProxy "sourceProperty"
- constructBindingSourceProperty :: (IsBinding o, MonadIO m) => Text -> m (GValueConstruct o)
- getBindingSourceProperty :: (MonadIO m, IsBinding o) => o -> m Text
- data BindingTargetPropertyInfo
- bindingTarget :: AttrLabelProxy "target"
- constructBindingTarget :: (IsBinding o, MonadIO m, IsObject a) => a -> m (GValueConstruct o)
- getBindingTarget :: (MonadIO m, IsBinding o) => o -> m (Maybe Object)
- data BindingTargetPropertyPropertyInfo
- bindingTargetProperty :: AttrLabelProxy "targetProperty"
- constructBindingTargetProperty :: (IsBinding o, MonadIO m) => Text -> m (GValueConstruct o)
- getBindingTargetProperty :: (MonadIO m, IsBinding o) => o -> m Text
Exported types
Memory-managed wrapper type.
Constructors
| Binding (ManagedPtr Binding) |
Instances
class (GObject o, IsDescendantOf Binding o) => IsBinding o Source #
Instances
| (GObject o, IsDescendantOf Binding o) => IsBinding o Source # | |
Defined in GI.GObject.Objects.Binding | |
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, dupSource, dupTarget, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unbind, unref, watchClosure.
Getters
getData, getFlags, getProperty, getQdata, getSource, getSourceProperty, getTarget, getTargetProperty.
Setters
type family ResolveBindingMethod (t :: Symbol) o where ... Source #
Equations
dupSource
data BindingDupSourceMethodInfo Source #
Instances
| (signature ~ m (Maybe Object), MonadIO m, IsBinding a) => OverloadedMethod BindingDupSourceMethodInfo a signature Source # | |
Defined in GI.GObject.Objects.Binding Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo BindingDupSourceMethodInfo (a :: Type) Source # | |
Defined in GI.GObject.Objects.Binding Methods | |
dupTarget
data BindingDupTargetMethodInfo Source #
Instances
| (signature ~ m (Maybe Object), MonadIO m, IsBinding a) => OverloadedMethod BindingDupTargetMethodInfo a signature Source # | |
Defined in GI.GObject.Objects.Binding Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo BindingDupTargetMethodInfo (a :: Type) Source # | |
Defined in GI.GObject.Objects.Binding Methods | |
getFlags
data BindingGetFlagsMethodInfo Source #
Instances
| (signature ~ m [BindingFlags], MonadIO m, IsBinding a) => OverloadedMethod BindingGetFlagsMethodInfo a signature Source # | |
Defined in GI.GObject.Objects.Binding Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo BindingGetFlagsMethodInfo (a :: Type) Source # | |
Defined in GI.GObject.Objects.Binding Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsBinding a) | |
| => a |
|
| -> m [BindingFlags] | Returns: the |
Retrieves the flags passed when constructing the Binding.
Since: 2.26
getSource
data BindingGetSourceMethodInfo Source #
Instances
| (signature ~ m (Maybe Object), MonadIO m, IsBinding a) => OverloadedMethod BindingGetSourceMethodInfo a signature Source # | |
Defined in GI.GObject.Objects.Binding Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo BindingGetSourceMethodInfo (a :: Type) Source # | |
Defined in GI.GObject.Objects.Binding Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsBinding a) | |
| => a |
|
| -> m (Maybe Object) | Returns: the source |
Deprecated: (Since version 2.68)Use bindingDupSource for a safer version of thisfunction.
Retrieves the Object instance used as the source of the binding.
A Binding can outlive the source Object as the binding does not hold a
strong reference to the source. If the source is destroyed before the
binding then this function will return Nothing.
Use bindingDupSource if the source or binding are used from different
threads as otherwise the pointer returned from this function might become
invalid if the source is finalized from another thread in the meantime.
Since: 2.26
getSourceProperty
data BindingGetSourcePropertyMethodInfo Source #
Instances
| (signature ~ m Text, MonadIO m, IsBinding a) => OverloadedMethod BindingGetSourcePropertyMethodInfo a signature Source # | |
Defined in GI.GObject.Objects.Binding Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo BindingGetSourcePropertyMethodInfo (a :: Type) Source # | |
Defined in GI.GObject.Objects.Binding Methods | |
bindingGetSourceProperty Source #
Arguments
| :: (HasCallStack, MonadIO m, IsBinding a) | |
| => a |
|
| -> m Text | Returns: the name of the source property |
Retrieves the name of the property of Binding:source used as the source of the binding.
Since: 2.26
getTarget
data BindingGetTargetMethodInfo Source #
Instances
| (signature ~ m (Maybe Object), MonadIO m, IsBinding a) => OverloadedMethod BindingGetTargetMethodInfo a signature Source # | |
Defined in GI.GObject.Objects.Binding Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo BindingGetTargetMethodInfo (a :: Type) Source # | |
Defined in GI.GObject.Objects.Binding Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsBinding a) | |
| => a |
|
| -> m (Maybe Object) | Returns: the target |
Deprecated: (Since version 2.68)Use bindingDupTarget for a safer version of thisfunction.
Retrieves the Object instance used as the target of the binding.
A Binding can outlive the target Object as the binding does not hold a
strong reference to the target. If the target is destroyed before the
binding then this function will return Nothing.
Use bindingDupTarget if the target or binding are used from different
threads as otherwise the pointer returned from this function might become
invalid if the target is finalized from another thread in the meantime.
Since: 2.26
getTargetProperty
data BindingGetTargetPropertyMethodInfo Source #
Instances
| (signature ~ m Text, MonadIO m, IsBinding a) => OverloadedMethod BindingGetTargetPropertyMethodInfo a signature Source # | |
Defined in GI.GObject.Objects.Binding Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo BindingGetTargetPropertyMethodInfo (a :: Type) Source # | |
Defined in GI.GObject.Objects.Binding Methods | |
bindingGetTargetProperty Source #
Arguments
| :: (HasCallStack, MonadIO m, IsBinding a) | |
| => a |
|
| -> m Text | Returns: the name of the target property |
Retrieves the name of the property of Binding:target used as the target of the binding.
Since: 2.26
unbind
data BindingUnbindMethodInfo Source #
Instances
| (signature ~ m (), MonadIO m, IsBinding a) => OverloadedMethod BindingUnbindMethodInfo a signature Source # | |
Defined in GI.GObject.Objects.Binding Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo BindingUnbindMethodInfo (a :: Type) Source # | |
Defined in GI.GObject.Objects.Binding Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsBinding a) | |
| => a |
|
| -> m () |
Explicitly releases the binding between the source and the target
property expressed by binding.
This function will release the reference that is being held on
the binding instance if the binding is still bound; if you want to hold on
to the Binding instance after calling bindingUnbind, you will need
to hold a reference to it.
Note however that this function does not take ownership of binding, it
only unrefs the reference that was initially created by
objectBindProperty and is owned by the binding.
Since: 2.38
Properties
flags
Flags to be used to control the Binding
Since: 2.26
data BindingFlagsPropertyInfo Source #
Instances
bindingFlags :: AttrLabelProxy "flags" Source #
constructBindingFlags :: (IsBinding o, MonadIO m) => [BindingFlags] -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “flags” property. This is rarely needed directly, but it is used by new.
getBindingFlags :: (MonadIO m, IsBinding o) => o -> m [BindingFlags] Source #
Get the value of the “flags” property.
When overloading is enabled, this is equivalent to
get binding #flags
source
The Object that should be used as the source of the binding
Since: 2.26
data BindingSourcePropertyInfo Source #
Instances
| AttrInfo BindingSourcePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding Associated Types
Methods attrGet :: AttrBaseTypeConstraint BindingSourcePropertyInfo o => o -> IO (AttrGetType BindingSourcePropertyInfo) # attrSet :: (AttrBaseTypeConstraint BindingSourcePropertyInfo o, AttrSetTypeConstraint BindingSourcePropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint BindingSourcePropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint BindingSourcePropertyInfo o, AttrSetTypeConstraint BindingSourcePropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint BindingSourcePropertyInfo o, AttrTransferTypeConstraint BindingSourcePropertyInfo b) => Proxy o -> b -> IO (AttrTransferType BindingSourcePropertyInfo) # attrPut :: AttrBaseTypeConstraint BindingSourcePropertyInfo o => o -> AttrGetType BindingSourcePropertyInfo -> IO () # | |||||||||||||||||||||||||||||||||
| type AttrAllowedOps BindingSourcePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrBaseTypeConstraint BindingSourcePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrGetType BindingSourcePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrLabel BindingSourcePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrOrigin BindingSourcePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrSetTypeConstraint BindingSourcePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrTransferType BindingSourcePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrTransferTypeConstraint BindingSourcePropertyInfo Source # | |||||||||||||||||||||||||||||||||
bindingSource :: AttrLabelProxy "source" Source #
constructBindingSource :: (IsBinding o, MonadIO m, IsObject a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “source” property. This is rarely needed directly, but it is used by new.
getBindingSource :: (MonadIO m, IsBinding o) => o -> m (Maybe Object) Source #
Get the value of the “source” property.
When overloading is enabled, this is equivalent to
get binding #source
sourceProperty
The name of the property of Binding:source that should be used as the source of the binding.
This should be in [canonical form][classgObject.ParamSpecparameter-names] to get the
best performance.
Since: 2.26
data BindingSourcePropertyPropertyInfo Source #
Instances
| AttrInfo BindingSourcePropertyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding Associated Types
Methods attrGet :: AttrBaseTypeConstraint BindingSourcePropertyPropertyInfo o => o -> IO (AttrGetType BindingSourcePropertyPropertyInfo) # attrSet :: (AttrBaseTypeConstraint BindingSourcePropertyPropertyInfo o, AttrSetTypeConstraint BindingSourcePropertyPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint BindingSourcePropertyPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint BindingSourcePropertyPropertyInfo o, AttrSetTypeConstraint BindingSourcePropertyPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint BindingSourcePropertyPropertyInfo o, AttrTransferTypeConstraint BindingSourcePropertyPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType BindingSourcePropertyPropertyInfo) # attrPut :: AttrBaseTypeConstraint BindingSourcePropertyPropertyInfo o => o -> AttrGetType BindingSourcePropertyPropertyInfo -> IO () # | |||||||||||||||||||||||||||||||||
| type AttrAllowedOps BindingSourcePropertyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrBaseTypeConstraint BindingSourcePropertyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
| type AttrGetType BindingSourcePropertyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrLabel BindingSourcePropertyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrOrigin BindingSourcePropertyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrSetTypeConstraint BindingSourcePropertyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrTransferType BindingSourcePropertyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrTransferTypeConstraint BindingSourcePropertyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
bindingSourceProperty :: AttrLabelProxy "sourceProperty" Source #
constructBindingSourceProperty :: (IsBinding o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “source-property” property. This is rarely needed directly, but it is used by new.
getBindingSourceProperty :: (MonadIO m, IsBinding o) => o -> m Text Source #
Get the value of the “source-property” property.
When overloading is enabled, this is equivalent to
get binding #sourceProperty
target
The Object that should be used as the target of the binding
Since: 2.26
data BindingTargetPropertyInfo Source #
Instances
| AttrInfo BindingTargetPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding Associated Types
Methods attrGet :: AttrBaseTypeConstraint BindingTargetPropertyInfo o => o -> IO (AttrGetType BindingTargetPropertyInfo) # attrSet :: (AttrBaseTypeConstraint BindingTargetPropertyInfo o, AttrSetTypeConstraint BindingTargetPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint BindingTargetPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint BindingTargetPropertyInfo o, AttrSetTypeConstraint BindingTargetPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint BindingTargetPropertyInfo o, AttrTransferTypeConstraint BindingTargetPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType BindingTargetPropertyInfo) # attrPut :: AttrBaseTypeConstraint BindingTargetPropertyInfo o => o -> AttrGetType BindingTargetPropertyInfo -> IO () # | |||||||||||||||||||||||||||||||||
| type AttrAllowedOps BindingTargetPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrBaseTypeConstraint BindingTargetPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrGetType BindingTargetPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrLabel BindingTargetPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrOrigin BindingTargetPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrSetTypeConstraint BindingTargetPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrTransferType BindingTargetPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrTransferTypeConstraint BindingTargetPropertyInfo Source # | |||||||||||||||||||||||||||||||||
bindingTarget :: AttrLabelProxy "target" Source #
constructBindingTarget :: (IsBinding o, MonadIO m, IsObject a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “target” property. This is rarely needed directly, but it is used by new.
getBindingTarget :: (MonadIO m, IsBinding o) => o -> m (Maybe Object) Source #
Get the value of the “target” property.
When overloading is enabled, this is equivalent to
get binding #target
targetProperty
The name of the property of Binding:target that should be used as the target of the binding.
This should be in [canonical form][classgObject.ParamSpecparameter-names] to get the
best performance.
Since: 2.26
data BindingTargetPropertyPropertyInfo Source #
Instances
| AttrInfo BindingTargetPropertyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding Associated Types
Methods attrGet :: AttrBaseTypeConstraint BindingTargetPropertyPropertyInfo o => o -> IO (AttrGetType BindingTargetPropertyPropertyInfo) # attrSet :: (AttrBaseTypeConstraint BindingTargetPropertyPropertyInfo o, AttrSetTypeConstraint BindingTargetPropertyPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint BindingTargetPropertyPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint BindingTargetPropertyPropertyInfo o, AttrSetTypeConstraint BindingTargetPropertyPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint BindingTargetPropertyPropertyInfo o, AttrTransferTypeConstraint BindingTargetPropertyPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType BindingTargetPropertyPropertyInfo) # attrPut :: AttrBaseTypeConstraint BindingTargetPropertyPropertyInfo o => o -> AttrGetType BindingTargetPropertyPropertyInfo -> IO () # | |||||||||||||||||||||||||||||||||
| type AttrAllowedOps BindingTargetPropertyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrBaseTypeConstraint BindingTargetPropertyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
| type AttrGetType BindingTargetPropertyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrLabel BindingTargetPropertyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrOrigin BindingTargetPropertyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrSetTypeConstraint BindingTargetPropertyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrTransferType BindingTargetPropertyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.GObject.Objects.Binding | |||||||||||||||||||||||||||||||||
| type AttrTransferTypeConstraint BindingTargetPropertyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
bindingTargetProperty :: AttrLabelProxy "targetProperty" Source #
constructBindingTargetProperty :: (IsBinding o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “target-property” property. This is rarely needed directly, but it is used by new.
getBindingTargetProperty :: (MonadIO m, IsBinding o) => o -> m Text Source #
Get the value of the “target-property” property.
When overloading is enabled, this is equivalent to
get binding #targetProperty