Class: Clutter::AlignConstraint

Inherits:
Constraint show all
Defined in:
(unknown)

Instance Method Summary collapse

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

Parameters:

  • source (Clutter::Actor)

    the Clutter::Actor to use as the source of the alignment, or nil

  • axis (Clutter::AlignAxis)

    the axis to be used to compute the alignment

  • factor (Clutter::gfloat)

    the alignment factor, between 0.0 and 1.0

Instance Method Details

#align_axisClutter::AlignAxis

The axis to be used to compute the alignment

Returns:

#align_axis=(align_axis) ⇒ Clutter::AlignAxis

The axis to be used to compute the alignment

Parameters:

Returns:

#factorClutter::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.

Returns:

  • (Clutter::gfloat)

    factor

#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.

Parameters:

  • factor (Clutter::gfloat)

Returns:

  • (Clutter::gfloat)

    factor

  • (Clutter::gfloat)

    factor

#sourceClutter::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.

Returns:

#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.

Parameters:

Returns: