Clutter.BindConstraint¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
The coordinate to bind |
||
r/w/c |
The offset in pixels to apply to the binding |
||
r/w/c |
The source of the binding |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Clutter.BindConstraint(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Clutter.BindConstraint
is an opaque structure whose members cannot be directly accessedNew in version 1.4.
- classmethod new(source, coordinate, offset)¶
- Parameters:
source (
Clutter.Actor
orNone
) – theClutter.Actor
to use as the source of the binding, orNone
coordinate (
Clutter.BindCoordinate
) – the coordinate to bindoffset (
float
) – the offset to apply to the binding, in pixels
- Returns:
the newly created
Clutter.BindConstraint
- Return type:
Creates a new constraint, binding a
Clutter.Actor
's position to the given coordinate of the position of sourceNew in version 1.4.
- get_coordinate()¶
- Returns:
the bound coordinate
- Return type:
Retrieves the bound coordinate of the constraint
New in version 1.4.
- get_offset()¶
- Returns:
the offset, in pixels
- Return type:
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:
Retrieves the
Clutter.Actor
set usingClutter.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
orNone
) – aClutter.Actor
, orNone
to unset the source
Sets the source
Clutter.Actor
for the constraintNew in version 1.4.
Property Details¶
- Clutter.BindConstraint.props.coordinate¶
- Name:
coordinate
- Type:
- Default Value:
- Flags:
The coordinate to be bound
New in version 1.4.
- Clutter.BindConstraint.props.offset¶
-
The offset, in pixels, to be applied to the binding
New in version 1.4.
- Clutter.BindConstraint.props.source¶
- Name:
source
- Type:
- Default Value:
- Flags:
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.