Clutter.BindConstraint

g Clutter.ActorMeta Clutter.ActorMeta Clutter.Constraint Clutter.Constraint Clutter.ActorMeta->Clutter.Constraint Clutter.BindConstraint Clutter.BindConstraint Clutter.Constraint->Clutter.BindConstraint GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Clutter.ActorMeta GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned

Subclasses:

None

Methods

Inherited:

Clutter.ActorMeta (5), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (source, coordinate, offset)

get_coordinate ()

get_offset ()

get_source ()

set_coordinate (coordinate)

set_offset (offset)

set_source (source)

Virtual Methods

Inherited:

Clutter.Constraint (2), Clutter.ActorMeta (1), GObject.Object (7)

Properties

Inherited:

Clutter.ActorMeta (3)

Name

Type

Flags

Short Description

coordinate

Clutter.BindCoordinate

r/w/c

The coordinate to bind

offset

float

r/w/c

The offset in pixels to apply to the binding

source

Clutter.Actor

r/w/c

The source of the binding

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Clutter.BindConstraint(**kwargs)
Bases:

Clutter.Constraint

Abstract:

No

Structure:

Clutter.BindConstraintClass

Clutter.BindConstraint is an opaque structure whose members cannot be directly accessed

New in version 1.4.

classmethod new(source, coordinate, offset)
Parameters:
Returns:

the newly created Clutter.BindConstraint

Return type:

Clutter.Constraint

Creates a new constraint, binding a Clutter.Actor's position to the given coordinate of the position of source

New in version 1.4.

get_coordinate()
Returns:

the bound coordinate

Return type:

Clutter.BindCoordinate

Retrieves the bound coordinate of the constraint

New in version 1.4.

get_offset()
Returns:

the offset, in pixels

Return type:

float

Retrieves the offset set using Clutter.BindConstraint.set_offset()

New in version 1.4.

get_source()
Returns:

a pointer to the source actor

Return type:

Clutter.Actor

Retrieves the Clutter.Actor set using Clutter.BindConstraint.set_source()

New in version 1.4.

set_coordinate(coordinate)
Parameters:

coordinate (Clutter.BindCoordinate) – the coordinate to bind

Sets the coordinate to bind in the constraint

New in version 1.4.

set_offset(offset)
Parameters:

offset (float) – the offset to apply, in pixels

Sets the offset to be applied to the constraint

New in version 1.4.

set_source(source)
Parameters:

source (Clutter.Actor or None) – a Clutter.Actor, or None to unset the source

Sets the source Clutter.Actor for the constraint

New in version 1.4.

Property Details

Clutter.BindConstraint.props.coordinate
Name:

coordinate

Type:

Clutter.BindCoordinate

Default Value:

Clutter.BindCoordinate.X

Flags:

READABLE, WRITABLE, CONSTRUCT

The coordinate to be bound

New in version 1.4.

Clutter.BindConstraint.props.offset
Name:

offset

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE, CONSTRUCT

The offset, in pixels, to be applied to the binding

New in version 1.4.

Clutter.BindConstraint.props.source
Name:

source

Type:

Clutter.Actor

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

The Clutter.Actor used as the source for the binding.

The Clutter.Actor must not be contained inside the actor associated to the constraint.

New in version 1.4.