Clutter.SnapConstraint¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
The edge of the actor that should be snapped |
||
r/w/c |
The offset in pixels to apply to the constraint |
||
r/w/c |
The source of the constraint |
||
r/w/c |
The edge of the source that should be snapped |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Clutter.SnapConstraint(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Clutter.SnapConstraint
is an opaque structure whose members cannot be directly accessesNew in version 1.6.
- classmethod new(source, from_edge, to_edge, offset)¶
- Parameters:
source (
Clutter.Actor
orNone
) – theClutter.Actor
to use as the source of the constraint, orNone
from_edge (
Clutter.SnapEdge
) – the edge of the actor to use in the constraintto_edge (
Clutter.SnapEdge
) – the edge of source to use in the constraintoffset (
float
) – the offset to apply to the constraint, in pixels
- Returns:
the newly created
Clutter.SnapConstraint
- Return type:
Creates a new
Clutter.SnapConstraint
that will snap aClutter.Actor
to the edge of source, with the given offset.New in version 1.6.
- get_edges()¶
- Returns:
- Return type:
(from_edge:
Clutter.SnapEdge
, to_edge:Clutter.SnapEdge
)
Retrieves the edges used by the self
New in version 1.6.
- get_offset()¶
- Returns:
the offset, in pixels
- Return type:
Retrieves the offset set using
Clutter.SnapConstraint.set_offset
()New in version 1.6.
- get_source()¶
- Returns:
a pointer to the source actor
- Return type:
Retrieves the
Clutter.Actor
set usingClutter.SnapConstraint.set_source
()New in version 1.6.
- set_edges(from_edge, to_edge)¶
- Parameters:
from_edge (
Clutter.SnapEdge
) – the edge on the actorto_edge (
Clutter.SnapEdge
) – the edge on the source
Sets the edges to be used by the self
The from_edge is the edge on the
Clutter.Actor
to which self has been added. The to_edge is the edge of theClutter.Actor
inside theClutter.SnapConstraint
:source
property.New in version 1.6.
- 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.6.
- 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.6.
Property Details¶
- Clutter.SnapConstraint.props.from_edge¶
- Name:
from-edge
- Type:
- Default Value:
- Flags:
The edge of the
Clutter.Actor
that should be snappedNew in version 1.6.
- Clutter.SnapConstraint.props.offset¶
-
The offset, in pixels, between
Clutter.SnapConstraint
:from-edge
andClutter.SnapConstraint
:to-edge
New in version 1.6.
- Clutter.SnapConstraint.props.source¶
- Name:
source
- Type:
- Default Value:
- Flags:
The
Clutter.Actor
used as the source for the constraintNew in version 1.6.
- Clutter.SnapConstraint.props.to_edge¶
- Name:
to-edge
- Type:
- Default Value:
- Flags:
The edge of the
Clutter.SnapConstraint
:source
that should be snappedNew in version 1.6.