gi-clutter-1.0.2: clutter GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Clutter.Objects.BindConstraint

Description

BindConstraint is an opaque structure whose members cannot be directly accessed

Since: 1.4

Synopsis

Exported types

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

Instances details
(GObject o, IsDescendantOf BindConstraint o) => IsBindConstraint o Source # 
Instance details

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

getCoordinate

bindConstraintGetCoordinate Source #

Arguments

:: (HasCallStack, MonadIO m, IsBindConstraint a) 
=> a

constraint: a BindConstraint

-> 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

constraint: a BindConstraint

-> 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

constraint: a BindConstraint

-> m Actor

Returns: a pointer to the source actor

Retrieves the Actor set using bindConstraintSetSource

Since: 1.4

new

bindConstraintNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsActor a) 
=> Maybe a

source: the Actor to use as the source of the binding, or Nothing

-> BindCoordinate

coordinate: the coordinate to bind

-> Float

offset: the offset to apply to the binding, in pixels

-> m BindConstraint

Returns: the newly created BindConstraint

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

constraint: a BindConstraint

-> BindCoordinate

coordinate: the coordinate to bind

-> m () 

Sets the coordinate to bind in the constraint

Since: 1.4

setOffset

bindConstraintSetOffset Source #

Arguments

:: (HasCallStack, MonadIO m, IsBindConstraint a) 
=> a

constraint: a BindConstraint

-> Float

offset: the offset to apply, in pixels

-> 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

constraint: a BindConstraint

-> Maybe b

source: a Actor, or Nothing to unset the source

-> 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

set bindConstraint [ #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

set bindConstraint [ #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

set bindConstraint [ #source := value ]