Clutter.BehaviourRotate¶
- Subclasses:
None
Methods¶
- Inherited:
Clutter.Behaviour (10), GObject.Object (37), Clutter.Scriptable (4)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Final angle |
||
r/w |
Initial angle |
||
r/w |
Axis of rotation |
||
r/w |
X coordinate of the center of rotation |
||
r/w |
Y coordinate of the center of rotation |
||
r/w |
Z coordinate of the center of rotation |
||
r/w |
Direction of rotation |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Clutter.BehaviourRotate(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Clutter.BehaviourRotate
struct contains only private data and should be accessed using the provided APINew in version 0.4.
Deprecated since version 1.6: Use clutter_actor_animate() instead.
- classmethod new(alpha, axis, direction, angle_start, angle_end)¶
- Parameters:
alpha (
Clutter.Alpha
orNone
) – aClutter.Alpha
instance, orNone
axis (
Clutter.RotateAxis
) – the rotation axisdirection (
Clutter.RotateDirection
) – the rotation directionangle_start (
float
) – the starting angle in degrees, between 0 and 360.angle_end (
float
) – the final angle in degrees, between 0 and 360.
- Returns:
the newly created
Clutter.BehaviourRotate
.- Return type:
Creates a new
Clutter.BehaviourRotate
. This behaviour will rotate actors bound to it on axis, following direction, between angle_start and angle_end. Angles >= 360 degrees will be clamped to the canonical interval <0, 360), if angle_start == angle_end, the behaviour will carry out a single rotation of 360 degrees.If alpha is not
None
, theClutter.Behaviour
will take ownership of theClutter.Alpha
instance. In the case when alpha isNone
, it can be set later withClutter.Behaviour.set_alpha
().New in version 0.4.
- get_axis()¶
- Returns:
the rotation axis
- Return type:
Retrieves the
Clutter.RotateAxis
used by the rotate behaviour.New in version 0.4.
- get_bounds()¶
- Returns:
- angle_start:
return value for the initial angle
- angle_end:
return value for the final angle
- Return type:
Retrieves the rotation boundaries of the rotate behaviour.
New in version 0.4.
- get_center()¶
- Returns:
- x:
return location for the X center of rotation
- y:
return location for the Y center of rotation
- z:
return location for the Z center of rotation
- Return type:
Retrieves the center of rotation set using
Clutter.BehaviourRotate.set_center
().New in version 0.4.
- get_direction()¶
- Returns:
the rotation direction
- Return type:
Retrieves the
Clutter.RotateDirection
used by the rotate behaviour.New in version 0.4.
- set_axis(axis)¶
- Parameters:
axis (
Clutter.RotateAxis
) – aClutter.RotateAxis
Sets the axis used by the rotate behaviour.
New in version 0.4.
- set_bounds(angle_start, angle_end)¶
- Parameters:
Sets the initial and final angles of a rotation behaviour; angles >= 360 degrees get clamped to the canonical interval <0, 360).
New in version 0.4.
- set_center(x, y, z)¶
- Parameters:
Sets the center of rotation. The coordinates are relative to the plane normal to the rotation axis set with
Clutter.BehaviourRotate.set_axis
().New in version 0.4.
- set_direction(direction)¶
- Parameters:
direction (
Clutter.RotateDirection
) – the rotation direction
Sets the rotation direction used by the rotate behaviour.
New in version 0.4.
Property Details¶
- Clutter.BehaviourRotate.props.angle_end¶
-
The final angle to where the rotation should end.
New in version 0.4.
- Clutter.BehaviourRotate.props.angle_start¶
-
The initial angle from whence the rotation should start.
New in version 0.4.
- Clutter.BehaviourRotate.props.axis¶
- Name:
axis
- Type:
- Default Value:
- Flags:
The axis of rotation.
New in version 0.4.
- Clutter.BehaviourRotate.props.center_x¶
-
The x center of rotation.
New in version 0.4.
- Clutter.BehaviourRotate.props.center_y¶
-
The y center of rotation.
New in version 0.4.
- Clutter.BehaviourRotate.props.center_z¶
-
The z center of rotation.
New in version 0.4.
- Clutter.BehaviourRotate.props.direction¶
- Name:
direction
- Type:
- Default Value:
- Flags:
The direction of the rotation.
New in version 0.4.