Top | ![]() |
![]() |
![]() |
![]() |
ClutterBehaviourEllipseClutterBehaviourEllipse — A behaviour interpolating position along an ellipse |
double | angle-end | Read / Write |
double | angle-start | Read / Write |
double | angle-tilt-x | Read / Write |
double | angle-tilt-y | Read / Write |
double | angle-tilt-z | Read / Write |
ClutterKnot * | center | Read / Write |
ClutterRotateDirection | direction | Read / Write |
int | height | Read / Write |
int | width | Read / Write |
ClutterBehaviourEllipse interpolates actors along a path defined by an ellipse.
When applying an ellipse behaviour to an actor, the behaviour will update the actor's position and depth and set them to what is dictated by the ellipses initial position.
ClutterBehaviour * clutter_behaviour_ellipse_new (ClutterAlpha *alpha
,gint x
,gint y
,gint width
,gint height
,ClutterRotateDirection direction
,gdouble start
,gdouble end
);
clutter_behaviour_ellipse_new
is deprecated and should not be used in newly-written code.
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 NULL
, the ClutterBehaviour will take ownership
of the ClutterAlpha instance. In the case when alpha
is NULL
,
it can be set later with clutter_behaviour_set_alpha()
.
alpha |
a ClutterAlpha instance, or |
[allow-none] |
x |
x coordinace of the center |
|
y |
y coordiance of the center |
|
width |
width of the ellipse |
|
height |
height of the ellipse |
|
direction |
ClutterRotateDirection of rotation |
|
start |
angle in degrees at which movement starts, between 0 and 360 |
|
end |
angle in degrees at which movement ends, between 0 and 360 |
Since: 0.4
void clutter_behaviour_ellipse_set_center (ClutterBehaviourEllipse *self
,gint x
,gint y
);
clutter_behaviour_ellipse_set_center
is deprecated and should not be used in newly-written code.
Sets the center of the elliptical path to the point represented by knot.
Since: 0.4
void clutter_behaviour_ellipse_get_center (ClutterBehaviourEllipse *self
,gint *x
,gint *y
);
clutter_behaviour_ellipse_get_center
is deprecated and should not be used in newly-written code.
Gets the center of the elliptical path path.
Since: 0.4
void clutter_behaviour_ellipse_set_angle_start (ClutterBehaviourEllipse *self
,gdouble angle_start
);
clutter_behaviour_ellipse_set_angle_start
is deprecated and should not be used in newly-written code.
Sets the angle at which movement starts; angles >= 360 degress get clamped to the canonical interval <0, 360).
Since: 0.6
gdouble
clutter_behaviour_ellipse_get_angle_start
(ClutterBehaviourEllipse *self
);
clutter_behaviour_ellipse_get_angle_start
is deprecated and should not be used in newly-written code.
Gets the angle at which movements starts.
Since: 0.6
void clutter_behaviour_ellipse_set_angle_end (ClutterBehaviourEllipse *self
,gdouble angle_end
);
clutter_behaviour_ellipse_set_angle_end
is deprecated and should not be used in newly-written code.
Sets the angle at which movement ends; angles >= 360 degress get clamped to the canonical interval <0, 360).
Since: 0.4
gdouble
clutter_behaviour_ellipse_get_angle_end
(ClutterBehaviourEllipse *self
);
clutter_behaviour_ellipse_get_angle_end
is deprecated and should not be used in newly-written code.
Gets the at which movements ends.
Since: 0.4
void clutter_behaviour_ellipse_set_angle_tilt (ClutterBehaviourEllipse *self
,ClutterRotateAxis axis
,gdouble angle_tilt
);
clutter_behaviour_ellipse_set_angle_tilt
is deprecated and should not be used in newly-written code.
Sets the angle at which the ellipse should be tilted around it's center.
Since: 0.4
gdouble clutter_behaviour_ellipse_get_angle_tilt (ClutterBehaviourEllipse *self
,ClutterRotateAxis axis
);
clutter_behaviour_ellipse_get_angle_tilt
is deprecated and should not be used in newly-written code.
Gets the tilt of the ellipse around the center in the given axis.
Since: 0.4
void clutter_behaviour_ellipse_set_height (ClutterBehaviourEllipse *self
,gint height
);
clutter_behaviour_ellipse_set_height
is deprecated and should not be used in newly-written code.
Sets the height of the elliptical path.
Since: 0.4
gint
clutter_behaviour_ellipse_get_height (ClutterBehaviourEllipse *self
);
clutter_behaviour_ellipse_get_height
is deprecated and should not be used in newly-written code.
Gets the height of the elliptical path.
Since: 0.4
void clutter_behaviour_ellipse_set_width (ClutterBehaviourEllipse *self
,gint width
);
clutter_behaviour_ellipse_set_width
is deprecated and should not be used in newly-written code.
Sets the width of the elliptical path.
Since: 0.4
gint
clutter_behaviour_ellipse_get_width (ClutterBehaviourEllipse *self
);
clutter_behaviour_ellipse_get_width
is deprecated and should not be used in newly-written code.
Gets the width of the elliptical path.
Since: 0.4
void clutter_behaviour_ellipse_set_tilt (ClutterBehaviourEllipse *self
,gdouble angle_tilt_x
,gdouble angle_tilt_y
,gdouble angle_tilt_z
);
clutter_behaviour_ellipse_set_tilt
is deprecated and should not be used in newly-written code.
Sets the angles at which the ellipse should be tilted around it's center.
self |
||
angle_tilt_x |
tilt of the elipse around the center in X axis in degrees. |
|
angle_tilt_y |
tilt of the elipse around the center in Y axis in degrees. |
|
angle_tilt_z |
tilt of the elipse around the center in Z axis in degrees. |
Since: 0.4
void clutter_behaviour_ellipse_get_tilt (ClutterBehaviourEllipse *self
,gdouble *angle_tilt_x
,gdouble *angle_tilt_y
,gdouble *angle_tilt_z
);
clutter_behaviour_ellipse_get_tilt
is deprecated and should not be used in newly-written code.
Gets the tilt of the ellipse around the center in Y axis.
Since: 0.4
void clutter_behaviour_ellipse_set_direction (ClutterBehaviourEllipse *self
,ClutterRotateDirection direction
);
clutter_behaviour_ellipse_set_direction
is deprecated and should not be used in newly-written code.
Sets the rotation direction used by the ellipse behaviour.
Since: 0.4
ClutterRotateDirection
clutter_behaviour_ellipse_get_direction
(ClutterBehaviourEllipse *self
);
clutter_behaviour_ellipse_get_direction
is deprecated and should not be used in newly-written code.
Retrieves the ClutterRotateDirection used by the ellipse behaviour.
Since: 0.4
struct ClutterBehaviourEllipse;
ClutterBehaviourEllipse
has been deprecated since version 1.6 and should not be used in newly-written code.
The ClutterBehaviourEllipse struct contains only private data and should be accessed using the provided API
Since: 0.4
struct ClutterBehaviourEllipseClass { };
ClutterBehaviourEllipseClass
has been deprecated since version 1.6 and should not be used in newly-written code.
The ClutterBehaviourEllipseClass struct contains only private data
Since: 0.4
“angle-end”
property “angle-end” double
The final angle to where the rotation should end.
Owner: ClutterBehaviourEllipse
Flags: Read / Write
Allowed values: [0,360]
Default value: 0
Since: 0.4
“angle-start”
property “angle-start” double
The initial angle from where the rotation should start.
Owner: ClutterBehaviourEllipse
Flags: Read / Write
Allowed values: [0,360]
Default value: 0
Since: 0.4
“angle-tilt-x”
property “angle-tilt-x” double
The tilt angle for the rotation around center in X axis
Owner: ClutterBehaviourEllipse
Flags: Read / Write
Allowed values: [0,360]
Default value: 360
Since: 0.4
“angle-tilt-y”
property “angle-tilt-y” double
The tilt angle for the rotation around center in Y axis
Owner: ClutterBehaviourEllipse
Flags: Read / Write
Allowed values: [0,360]
Default value: 360
Since: 0.4
“angle-tilt-z”
property “angle-tilt-z” double
The tilt angle for the rotation on the Z axis
Owner: ClutterBehaviourEllipse
Flags: Read / Write
Allowed values: [0,360]
Default value: 360
Since: 0.4
“center”
property“center” ClutterKnot *
The center of the ellipse.
Owner: ClutterBehaviourEllipse
Flags: Read / Write
Since: 0.4
“direction”
property“direction” ClutterRotateDirection
The direction of the rotation.
Owner: ClutterBehaviourEllipse
Flags: Read / Write
Default value: CLUTTER_ROTATE_CW
Since: 0.4
“height”
property “height” int
Height of the ellipse, in pixels
Owner: ClutterBehaviourEllipse
Flags: Read / Write
Allowed values: >= 0
Default value: 50
Since: 0.4
“width”
property “width” int
Width of the ellipse, in pixels
Owner: ClutterBehaviourEllipse
Flags: Read / Write
Allowed values: >= 0
Default value: 100
Since: 0.4