Class: Clutter::AlignConstraint
- Inherits:
-
Constraint
- Object
- GObject::InitiallyUnowned
- ActorMeta
- Constraint
- Clutter::AlignConstraint
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#align_axis ⇒ Clutter::AlignAxis
The axis to be used to compute the alignment.
-
#align_axis=(align_axis) ⇒ Clutter::AlignAxis
The axis to be used to compute the alignment.
-
#factor ⇒ Clutter::gfloat
The alignment factor, as a normalized value between 0.0 and 1.0.
-
#factor=(factor) ⇒ Clutter::gfloat
The alignment factor, as a normalized value between 0.0 and 1.0.
-
#initialize(source, axis, factor) ⇒ Clutter::Constraint
constructor
Creates a new constraint, aligning a Clutter::Actor's position with regards of the size of the actor to source, with the given alignment factor.
-
#source ⇒ Clutter::Actor
The Clutter::Actor used as the source for the alignment.
-
#source=(source) ⇒ Clutter::Actor
The Clutter::Actor used as the source for the alignment.
Methods inherited from ActorMeta
#actor, #actor=, #enabled, #enabled=, #enabled?, #name, #name=
Constructor Details
#initialize(source, axis, factor) ⇒ Clutter::Constraint
Creates a new constraint, aligning a Clutter::Actor's position with regards of the size of the actor to source, with the given alignment factor
Instance Method Details
#align_axis ⇒ Clutter::AlignAxis
The axis to be used to compute the alignment
#align_axis=(align_axis) ⇒ Clutter::AlignAxis
The axis to be used to compute the alignment
#factor ⇒ Clutter::gfloat
The alignment factor, as a normalized value between 0.0 and 1.0
The factor depends on the Clutter::AlignConstraint:align-axis property: with an align-axis value of %CLUTTER_ALIGN_X_AXIS, 0.0 means left and 1.0 means right; with a value of %CLUTTER_ALIGN_Y_AXIS, 0.0 means top and 1.0 means bottom.
#factor=(factor) ⇒ Clutter::gfloat
The alignment factor, as a normalized value between 0.0 and 1.0
The factor depends on the Clutter::AlignConstraint:align-axis property: with an align-axis value of %CLUTTER_ALIGN_X_AXIS, 0.0 means left and 1.0 means right; with a value of %CLUTTER_ALIGN_Y_AXIS, 0.0 means top and 1.0 means bottom.
#source ⇒ Clutter::Actor
The Clutter::Actor used as the source for the alignment.
The Clutter::Actor must not be a child or a grandchild of the actor using the constraint.
#source=(source) ⇒ Clutter::Actor
The Clutter::Actor used as the source for the alignment.
The Clutter::Actor must not be a child or a grandchild of the actor using the constraint.