| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Clutter.Objects.BindConstraint
Description
BindConstraint is an opaque structure
whose members cannot be directly accessed
Since: 1.4
Synopsis
- newtype BindConstraint = BindConstraint (ManagedPtr BindConstraint)
- class (GObject o, IsDescendantOf BindConstraint o) => IsBindConstraint o
- toBindConstraint :: (MonadIO m, IsBindConstraint o) => o -> m BindConstraint
- bindConstraintGetCoordinate :: (HasCallStack, MonadIO m, IsBindConstraint a) => a -> m BindCoordinate
- bindConstraintGetOffset :: (HasCallStack, MonadIO m, IsBindConstraint a) => a -> m Float
- bindConstraintGetSource :: (HasCallStack, MonadIO m, IsBindConstraint a) => a -> m Actor
- bindConstraintNew :: (HasCallStack, MonadIO m, IsActor a) => Maybe a -> BindCoordinate -> Float -> m BindConstraint
- bindConstraintSetCoordinate :: (HasCallStack, MonadIO m, IsBindConstraint a) => a -> BindCoordinate -> m ()
- bindConstraintSetOffset :: (HasCallStack, MonadIO m, IsBindConstraint a) => a -> Float -> m ()
- bindConstraintSetSource :: (HasCallStack, MonadIO m, IsBindConstraint a, IsActor b) => a -> Maybe b -> m ()
- constructBindConstraintCoordinate :: (IsBindConstraint o, MonadIO m) => BindCoordinate -> m (GValueConstruct o)
- getBindConstraintCoordinate :: (MonadIO m, IsBindConstraint o) => o -> m BindCoordinate
- setBindConstraintCoordinate :: (MonadIO m, IsBindConstraint o) => o -> BindCoordinate -> m ()
- constructBindConstraintOffset :: (IsBindConstraint o, MonadIO m) => Float -> m (GValueConstruct o)
- getBindConstraintOffset :: (MonadIO m, IsBindConstraint o) => o -> m Float
- setBindConstraintOffset :: (MonadIO m, IsBindConstraint o) => o -> Float -> m ()
- clearBindConstraintSource :: (MonadIO m, IsBindConstraint o) => o -> m ()
- constructBindConstraintSource :: (IsBindConstraint o, MonadIO m, IsActor a) => a -> m (GValueConstruct o)
- getBindConstraintSource :: (MonadIO m, IsBindConstraint o) => o -> m Actor
- setBindConstraintSource :: (MonadIO m, IsBindConstraint o, IsActor a) => o -> a -> m ()
Exported types
newtype BindConstraint Source #
Memory-managed wrapper type.
Constructors
| BindConstraint (ManagedPtr BindConstraint) |
Instances
| Eq BindConstraint Source # | |
Defined in GI.Clutter.Objects.BindConstraint Methods (==) :: BindConstraint -> BindConstraint -> Bool # (/=) :: BindConstraint -> BindConstraint -> Bool # | |
| GObject BindConstraint Source # | |
Defined in GI.Clutter.Objects.BindConstraint | |
| ManagedPtrNewtype BindConstraint Source # | |
Defined in GI.Clutter.Objects.BindConstraint Methods toManagedPtr :: BindConstraint -> ManagedPtr BindConstraint | |
| TypedObject BindConstraint Source # | |
Defined in GI.Clutter.Objects.BindConstraint | |
| HasParentTypes BindConstraint Source # | |
Defined in GI.Clutter.Objects.BindConstraint | |
| IsGValue (Maybe BindConstraint) Source # | Convert |
Defined in GI.Clutter.Objects.BindConstraint Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe BindConstraint -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe BindConstraint) | |
| type ParentTypes BindConstraint Source # | |
Defined in GI.Clutter.Objects.BindConstraint | |
class (GObject o, IsDescendantOf BindConstraint o) => IsBindConstraint o Source #
Type class for types which can be safely cast to BindConstraint, for instance with toBindConstraint.
Instances
| (GObject o, IsDescendantOf BindConstraint o) => IsBindConstraint o Source # | |
Defined in GI.Clutter.Objects.BindConstraint | |
toBindConstraint :: (MonadIO m, IsBindConstraint o) => o -> m BindConstraint Source #
Cast to BindConstraint, for types for which this is known to be safe. For general casts, use castTo.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getActor, getCoordinate, getData, getEnabled, getName, getOffset, getProperty, getQdata, getSource.
Setters
setCoordinate, setData, setDataFull, setEnabled, setName, setOffset, setProperty, setSource.
getCoordinate
bindConstraintGetCoordinate Source #
Arguments
| :: (HasCallStack, MonadIO m, IsBindConstraint a) | |
| => a |
|
| -> m BindCoordinate | Returns: the bound coordinate |
Retrieves the bound coordinate of the constraint
Since: 1.4
getOffset
bindConstraintGetOffset Source #
Arguments
| :: (HasCallStack, MonadIO m, IsBindConstraint a) | |
| => a |
|
| -> m Float | Returns: the offset, in pixels |
Retrieves the offset set using bindConstraintSetOffset
Since: 1.4
getSource
bindConstraintGetSource Source #
Arguments
| :: (HasCallStack, MonadIO m, IsBindConstraint a) | |
| => a |
|
| -> m Actor | Returns: a pointer to the source actor |
Retrieves the Actor set using bindConstraintSetSource
Since: 1.4
new
Arguments
| :: (HasCallStack, MonadIO m, IsActor a) | |
| => Maybe a |
|
| -> BindCoordinate |
|
| -> Float |
|
| -> m BindConstraint | Returns: the newly created |
Creates a new constraint, binding a Actor's position to
the given coordinate of the position of source
Since: 1.4
setCoordinate
bindConstraintSetCoordinate Source #
Arguments
| :: (HasCallStack, MonadIO m, IsBindConstraint a) | |
| => a |
|
| -> BindCoordinate |
|
| -> m () |
Sets the coordinate to bind in the constraint
Since: 1.4
setOffset
bindConstraintSetOffset Source #
Arguments
| :: (HasCallStack, MonadIO m, IsBindConstraint a) | |
| => a |
|
| -> Float |
|
| -> m () |
Sets the offset to be applied to the constraint
Since: 1.4
setSource
bindConstraintSetSource Source #
Arguments
| :: (HasCallStack, MonadIO m, IsBindConstraint a, IsActor b) | |
| => a |
|
| -> Maybe b | |
| -> m () |
Sets the source Actor for the constraint
Since: 1.4
Properties
coordinate
The coordinate to be bound
Since: 1.4
constructBindConstraintCoordinate :: (IsBindConstraint o, MonadIO m) => BindCoordinate -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “coordinate” property. This is rarely needed directly, but it is used by new.
getBindConstraintCoordinate :: (MonadIO m, IsBindConstraint o) => o -> m BindCoordinate Source #
Get the value of the “coordinate” property.
When overloading is enabled, this is equivalent to
get bindConstraint #coordinate
setBindConstraintCoordinate :: (MonadIO m, IsBindConstraint o) => o -> BindCoordinate -> m () Source #
Set the value of the “coordinate” property.
When overloading is enabled, this is equivalent to
setbindConstraint [ #coordinate:=value ]
offset
The offset, in pixels, to be applied to the binding
Since: 1.4
constructBindConstraintOffset :: (IsBindConstraint o, MonadIO m) => Float -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “offset” property. This is rarely needed directly, but it is used by new.
getBindConstraintOffset :: (MonadIO m, IsBindConstraint o) => o -> m Float Source #
Get the value of the “offset” property.
When overloading is enabled, this is equivalent to
get bindConstraint #offset
setBindConstraintOffset :: (MonadIO m, IsBindConstraint o) => o -> Float -> m () Source #
Set the value of the “offset” property.
When overloading is enabled, this is equivalent to
setbindConstraint [ #offset:=value ]
source
The Actor used as the source for the binding.
The Actor must not be contained inside the actor associated
to the constraint.
Since: 1.4
clearBindConstraintSource :: (MonadIO m, IsBindConstraint o) => o -> m () Source #
Set the value of the “source” property to Nothing.
When overloading is enabled, this is equivalent to
clear #source
constructBindConstraintSource :: (IsBindConstraint o, MonadIO m, IsActor 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.
getBindConstraintSource :: (MonadIO m, IsBindConstraint o) => o -> m Actor Source #
Get the value of the “source” property.
When overloading is enabled, this is equivalent to
get bindConstraint #source
setBindConstraintSource :: (MonadIO m, IsBindConstraint o, IsActor a) => o -> a -> m () Source #
Set the value of the “source” property.
When overloading is enabled, this is equivalent to
setbindConstraint [ #source:=value ]