Clutter.BehaviourEllipse¶
- 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 |
Tilt of the ellipse around x axis |
||
r/w |
Tilt of the ellipse around y axis |
||
r/w |
Tilt of the ellipse around z axis |
||
r/w |
Center of ellipse |
||
r/w |
Direction of rotation |
||
r/w |
Height of ellipse |
||
r/w |
Width of the ellipse |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Clutter.BehaviourEllipse(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Clutter.BehaviourEllipsestruct contains only private data and should be accessed using the provided APIAdded in version 0.4.
Deprecated since version 1.6.
- classmethod new(alpha, x, y, width, height, direction, start, end)¶
- Parameters:
alpha (
Clutter.AlphaorNone) – aClutter.Alphainstance, orNonex (
int) – x coordinace of the centery (
int) – y coordiance of the centerwidth (
int) – width of the ellipseheight (
int) – height of the ellipsedirection (
Clutter.RotateDirection) –Clutter.RotateDirectionof rotationstart (
float) – angle in degrees at which movement starts, between 0 and 360end (
float) – angle in degrees at which movement ends, between 0 and 360
- Returns:
the newly created
Clutter.BehaviourEllipse- Return type:
Creates a behaviour that drives actors along an elliptical path with given center, width and height; the movement starts at start degrees (with 0 corresponding to 12 o’clock) and ends at end degrees. Angles greated than 360 degrees get clamped to the canonical interval <0, 360); if start is equal to end, the behaviour will rotate by exacly 360 degrees.
If alpha is not
None, theClutter.Behaviourwill take ownership of theClutter.Alphainstance. In the case when alpha isNone, it can be set later withClutter.Behaviour.set_alpha().Added in version 0.4.
- get_angle_end()¶
- Returns:
angle in degrees
- Return type:
Gets the at which movements ends.
Added in version 0.4.
- get_angle_start()¶
- Returns:
angle in degrees
- Return type:
Gets the angle at which movements starts.
Added in version 0.6.
- get_angle_tilt(axis)¶
- Parameters:
axis (
Clutter.RotateAxis) – aClutter.RotateAxis- Returns:
angle in degrees.
- Return type:
Gets the tilt of the ellipse around the center in the given axis.
Added in version 0.4.
- get_center()¶
- Returns:
- Return type:
Gets the center of the elliptical path path.
Added in version 0.4.
- get_direction()¶
- Returns:
the rotation direction
- Return type:
Retrieves the
Clutter.RotateDirectionused by the ellipse behaviour.Added in version 0.4.
- get_height()¶
- Returns:
the height of the path
- Return type:
Gets the height of the elliptical path.
Added in version 0.4.
- get_tilt()¶
-
Gets the tilt of the ellipse around the center in Y axis.
Added in version 0.4.
- get_width()¶
- Returns:
the width of the path
- Return type:
Gets the width of the elliptical path.
Added in version 0.4.
- set_angle_end(angle_end)¶
- Parameters:
angle_end (
float) – angle at which movement ends in degrees, between 0 and 360.
Sets the angle at which movement ends; angles >= 360 degress get clamped to the canonical interval <0, 360).
Added in version 0.4.
- set_angle_start(angle_start)¶
- Parameters:
angle_start (
float) – angle at which movement starts in degrees, between 0 and 360.
Sets the angle at which movement starts; angles >= 360 degress get clamped to the canonical interval <0, 360).
Added in version 0.6.
- set_angle_tilt(axis, angle_tilt)¶
- Parameters:
axis (
Clutter.RotateAxis) – aClutter.RotateAxisangle_tilt (
float) – tilt of the elipse around the center in the given axis in degrees.
Sets the angle at which the ellipse should be tilted around it’s center.
Added in version 0.4.
- set_center(x, y)¶
-
Sets the center of the elliptical path to the point represented by knot.
Added in version 0.4.
- set_direction(direction)¶
- Parameters:
direction (
Clutter.RotateDirection) – the rotation direction
Sets the rotation direction used by the ellipse behaviour.
Added in version 0.4.
- set_height(height)¶
- Parameters:
height (
int) – height of the ellipse
Sets the height of the elliptical path.
Added in version 0.4.
- set_tilt(angle_tilt_x, angle_tilt_y, angle_tilt_z)¶
- Parameters:
Sets the angles at which the ellipse should be tilted around it’s center.
Added in version 0.4.
Property Details¶
- Clutter.BehaviourEllipse.props.angle_end¶
-
The final angle to where the rotation should end.
Added in version 0.4.
- Clutter.BehaviourEllipse.props.angle_start¶
-
The initial angle from where the rotation should start.
Added in version 0.4.
- Clutter.BehaviourEllipse.props.angle_tilt_x¶
-
The tilt angle for the rotation around center in X axis
Added in version 0.4.
- Clutter.BehaviourEllipse.props.angle_tilt_y¶
-
The tilt angle for the rotation around center in Y axis
Added in version 0.4.
- Clutter.BehaviourEllipse.props.angle_tilt_z¶
-
The tilt angle for the rotation on the Z axis
Added in version 0.4.
- Clutter.BehaviourEllipse.props.center¶
- Name:
center- Type:
- Default Value:
- Flags:
The center of the ellipse.
Added in version 0.4.
- Clutter.BehaviourEllipse.props.direction¶
- Name:
direction- Type:
- Default Value:
- Flags:
The direction of the rotation.
Added in version 0.4.
- Clutter.BehaviourEllipse.props.height¶
-
Height of the ellipse, in pixels
Added in version 0.4.