Class: Clutter::BehaviourEllipse
Overview
The Clutter::BehaviourEllipseClass struct contains only private data
Instance Method Summary collapse
-
#angle_end ⇒ Float
The final angle to where the rotation should end.
-
#angle_end=(angle_end) ⇒ Float
The final angle to where the rotation should end.
-
#angle_start ⇒ Float
The initial angle from where the rotation should start.
-
#angle_start=(angle_start) ⇒ Float
The initial angle from where the rotation should start.
-
#angle_tilt_x ⇒ Float
The tilt angle for the rotation around center in X axis.
-
#angle_tilt_x=(angle_tilt_x) ⇒ Float
The tilt angle for the rotation around center in X axis.
-
#angle_tilt_y ⇒ Float
The tilt angle for the rotation around center in Y axis.
-
#angle_tilt_y=(angle_tilt_y) ⇒ Float
The tilt angle for the rotation around center in Y axis.
-
#angle_tilt_z ⇒ Float
The tilt angle for the rotation on the Z axis.
-
#angle_tilt_z=(angle_tilt_z) ⇒ Float
The tilt angle for the rotation on the Z axis.
-
#center ⇒ Clutter::Knot
The center of the ellipse.
-
#center=(center) ⇒ Clutter::Knot
The center of the ellipse.
-
#direction ⇒ Clutter::RotateDirection
The direction of the rotation.
-
#direction=(direction) ⇒ Clutter::RotateDirection
The direction of the rotation.
-
#get_angle_tilt(axis) ⇒ Float
Gets the tilt of the ellipse around the center in the given axis.
-
#get_center(x, y) ⇒ nil
Gets the center of the elliptical path path.
-
#get_tilt(angle_tilt_x, angle_tilt_y, angle_tilt_z) ⇒ nil
Gets the tilt of the ellipse around the center in Y axis.
-
#height ⇒ Integer
Height of the ellipse, in pixels.
-
#height=(height) ⇒ Integer
Height of the ellipse, in pixels.
-
#initialize(alpha, x, y, width, height, direction, start, end) ⇒ Clutter::Behaviour
constructor
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.
-
#set_angle_tilt(axis, angle_tilt) ⇒ nil
Sets the angle at which the ellipse should be tilted around it's center.
-
#set_center(x, y) ⇒ nil
Sets the center of the elliptical path to the point represented by knot.
-
#set_tilt(angle_tilt_x, angle_tilt_y, angle_tilt_z) ⇒ nil
Sets the angles at which the ellipse should be tilted around it's center.
-
#width ⇒ Integer
Width of the ellipse, in pixels.
-
#width=(width) ⇒ Integer
Width of the ellipse, in pixels.
Methods inherited from Behaviour
#actors, #actors_foreach, #alpha, #alpha=, #apply, #get_nth_actor, #is_applied, #n_actors, #remove, #remove_all
Constructor Details
#initialize(alpha, x, y, width, height, direction, start, end) ⇒ Clutter::Behaviour
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 nil, the Clutter::Behaviour will take ownership of the Clutter::Alpha instance. In the case when alpha is nil, it can be set later with clutter_behaviour_set_alpha().
Instance Method Details
#angle_end ⇒ Float
The final angle to where the rotation should end.
#angle_end=(angle_end) ⇒ Float
The final angle to where the rotation should end.
#angle_start ⇒ Float
The initial angle from where the rotation should start.
#angle_start=(angle_start) ⇒ Float
The initial angle from where the rotation should start.
#angle_tilt_x ⇒ Float
The tilt angle for the rotation around center in X axis
#angle_tilt_x=(angle_tilt_x) ⇒ Float
The tilt angle for the rotation around center in X axis
#angle_tilt_y ⇒ Float
The tilt angle for the rotation around center in Y axis
#angle_tilt_y=(angle_tilt_y) ⇒ Float
The tilt angle for the rotation around center in Y axis
#angle_tilt_z ⇒ Float
The tilt angle for the rotation on the Z axis
#angle_tilt_z=(angle_tilt_z) ⇒ Float
The tilt angle for the rotation on the Z axis
#center ⇒ Clutter::Knot
The center of the ellipse.
#center=(center) ⇒ Clutter::Knot
The center of the ellipse.
#direction ⇒ Clutter::RotateDirection
The direction of the rotation.
#direction=(direction) ⇒ Clutter::RotateDirection
The direction of the rotation.
#get_angle_tilt(axis) ⇒ Float
Gets the tilt of the ellipse around the center in the given axis.
#get_center(x, y) ⇒ nil
Gets the center of the elliptical path path.
#get_tilt(angle_tilt_x, angle_tilt_y, angle_tilt_z) ⇒ nil
Gets the tilt of the ellipse around the center in Y axis.
#height ⇒ Integer
Height of the ellipse, in pixels
#height=(height) ⇒ Integer
Height of the ellipse, in pixels
#set_angle_tilt(axis, angle_tilt) ⇒ nil
Sets the angle at which the ellipse should be tilted around it's center. degrees.
#set_center(x, y) ⇒ nil
Sets the center of the elliptical path to the point represented by knot.
#set_tilt(angle_tilt_x, angle_tilt_y, angle_tilt_z) ⇒ nil
Sets the angles at which the ellipse should be tilted around it's center.
#width ⇒ Integer
Width of the ellipse, in pixels
#width=(width) ⇒ Integer
Width of the ellipse, in pixels