Class: Clutter::BehaviourRotate
Overview
The Clutter::BehaviourRotateClass 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 whence the rotation should start.
-
#angle_start=(angle_start) ⇒ Float
The initial angle from whence the rotation should start.
-
#axis ⇒ Clutter::RotateAxis
The axis of rotation.
-
#axis=(axis) ⇒ Clutter::RotateAxis
The axis of rotation.
-
#center_x ⇒ Integer
The x center of rotation.
-
#center_x=(center_x) ⇒ Integer
The x center of rotation.
-
#center_y ⇒ Integer
The y center of rotation.
-
#center_y=(center_y) ⇒ Integer
The y center of rotation.
-
#center_z ⇒ Integer
The z center of rotation.
-
#center_z=(center_z) ⇒ Integer
The z center of rotation.
-
#direction ⇒ Clutter::RotateDirection
The direction of the rotation.
-
#direction=(direction) ⇒ Clutter::RotateDirection
The direction of the rotation.
-
#get_bounds(angle_start, angle_end) ⇒ nil
Retrieves the rotation boundaries of the rotate behaviour.
-
#get_center(x, y, z) ⇒ nil
Retrieves the center of rotation set using clutter_behaviour_rotate_set_center().
-
#initialize(alpha, axis, direction, angle_start, angle_end) ⇒ Clutter::Behaviour
constructor
Creates a new Clutter::BehaviourRotate.
-
#set_bounds(angle_start, angle_end) ⇒ nil
Sets the initial and final angles of a rotation behaviour; angles >= 360 degrees get clamped to the canonical interval <0, 360).
-
#set_center(x, y, z) ⇒ nil
Sets the center of rotation.
Methods inherited from Behaviour
#actors, #actors_foreach, #alpha, #alpha=, #apply, #get_nth_actor, #is_applied, #n_actors, #remove, #remove_all
Constructor Details
#initialize(alpha, axis, direction, angle_start, angle_end) ⇒ Clutter::Behaviour
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 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 whence the rotation should start.
#angle_start=(angle_start) ⇒ Float
The initial angle from whence the rotation should start.
#axis ⇒ Clutter::RotateAxis
The axis of rotation.
#axis=(axis) ⇒ Clutter::RotateAxis
The axis of rotation.
#center_x ⇒ Integer
The x center of rotation.
#center_x=(center_x) ⇒ Integer
The x center of rotation.
#center_y ⇒ Integer
The y center of rotation.
#center_y=(center_y) ⇒ Integer
The y center of rotation.
#center_z ⇒ Integer
The z center of rotation.
#center_z=(center_z) ⇒ Integer
The z center of rotation.
#direction ⇒ Clutter::RotateDirection
The direction of the rotation.
#direction=(direction) ⇒ Clutter::RotateDirection
The direction of the rotation.
#get_bounds(angle_start, angle_end) ⇒ nil
Retrieves the rotation boundaries of the rotate behaviour.
#get_center(x, y, z) ⇒ nil
Retrieves the center of rotation set using clutter_behaviour_rotate_set_center().
#set_bounds(angle_start, angle_end) ⇒ nil
Sets the initial and final angles of a rotation behaviour; angles >= 360 degrees get clamped to the canonical interval <0, 360).
#set_center(x, y, z) ⇒ nil
Sets the center of rotation. The coordinates are relative to the plane normal to the rotation axis set with clutter_behaviour_rotate_set_axis().