GObject.Object
GObject.InitiallyUnowned
Clutter.ActorMeta
Clutter.Constraint
Clutter.AlignConstraint
Import line: | Clutter = imports.gi.Clutter; |
GIR File: | Clutter-1.0.gir |
C documentation: | ClutterAlignConstraint |
Class : | AlignConstraint |
Extends: | Clutter.Constraint |
Properties | Defined By | |
---|---|---|
actor : Clutter.Actor
read only
The ClutterActor attached to the ClutterActorMeta instance
The ClutterActor attached to the ClutterActorMeta instance
|
Clutter.ActorMeta | |
align_axis : Clutter.AlignAxis
The axis to be used to compute the alignment
The axis to be used to compute the alignment
|
Clutter.AlignConstraint | |
enabled : gboolean
Whether or not the ClutterActorMeta is enabled
Whether or not the ClutterActorMeta is enabled
|
Clutter.ActorMeta | |
factor : gfloat
The alignment factor, as a normalized value between 0.0 and 1.0
The factor depends on the ClutterAlignConstraint: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. The alignment factor, as a normalized value between 0.0 and 1.0
The factor depends on the ClutterAlignConstraint: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. |
Clutter.AlignConstraint | |
g_type_instance : GObject.TypeInstance
|
GObject.InitiallyUnowned | |
name : String
The unique name to access the ClutterActorMeta
The unique name to access the ClutterActorMeta
|
Clutter.ActorMeta | |
parent_instance : Clutter.ActorMeta
read only
|
Clutter.Constraint | |
priv : Clutter.ActorMetaPrivate
read only
|
Clutter.ActorMeta | |
qdata : GLib.Data
read only
|
GObject.InitiallyUnowned | |
ref_count : guint32
read only
|
GObject.InitiallyUnowned | |
source : Clutter.Actor
The ClutterActor used as the source for the alignment
The ClutterActor used as the source for the alignment
|
Clutter.AlignConstraint |
Method / Constructor | Defined By | |
---|---|---|
new Clutter.AlignConstraint
(Object properties)
Create a new Clutter.AlignConstraint
Create a new Clutter.AlignConstraint
|
||
new Clutter.AlignConstraint.c_new
(Actor source, AlignAxis axis, gfloat factor)
:
Clutter.Constraint
Create a new Clutter.AlignConstraint
Create a new Clutter.AlignConstraint
|
||
get_actor
()
:
Clutter.Actor
Retrieves a pointer to the ClutterActor that owns meta
Retrieves a pointer to the ClutterActor that owns meta
|
Clutter.ActorMeta | |
get_align_axis
()
:
Clutter.AlignAxis
Retrieves the value set using clutter_align_constraint_set_align_axis()
Retrieves the value set using clutter_align_constraint_set_align_axis()
|
Clutter.AlignConstraint | |
get_enabled
()
:
gboolean
Retrieves whether meta is enabled
Retrieves whether meta is enabled
|
Clutter.ActorMeta | |
get_factor
()
:
gfloat
Retrieves the factor set using clutter_align_constraint_set_factor()
Retrieves the factor set using clutter_align_constraint_set_factor()
|
Clutter.AlignConstraint | |
get_name
()
:
String
Retrieves the name set using clutter_actor_meta_set_name()
instance, or NULL if none was set.
Retrieves the name set using clutter_actor_meta_set_name()
instance, or NULL if none was set. The returned string is owned by the ClutterActorMeta instance and it should not be modified or freed
|
Clutter.ActorMeta | |
get_source
()
:
Clutter.Actor
Retrieves the source of the alignment
of the alignment
Retrieves the source of the alignment
of the alignment
|
Clutter.AlignConstraint | |
set_align_axis
(AlignAxis axis)
:
none
Sets the axis to which the alignment refers to
Sets the axis to which the alignment refers to
|
Clutter.AlignConstraint | |
set_enabled
(gboolean is_enabled)
:
none
Sets whether meta should be enabled or not
Sets whether meta should be enabled or not
|
Clutter.ActorMeta | |
set_factor
(gfloat factor)
:
none
Sets the alignment factor of the constraint
The factor depends on the ClutterAlignConstraint:align-axis property and it is a value between 0.0 (meaning left, when ClutterAlignConstraint:align-axis is set to CLUTTER_ALIGN_X_AXIS; or meaning top, when ClutterAlignConstraint:align-axis is set to CLUTTER_ALIGN_Y_AXIS) and 1.0 (meaning right, when ClutterAlignConstraint:align-axis is set to CLUTTER_ALIGN_X_AXIS; or meaning bottom, when ClutterAlignConstraint:align-axis is set to CLUTTER_ALIGN_Y_AXIS).
Sets the alignment factor of the constraint
The factor depends on the ClutterAlignConstraint:align-axis property and it is a value between 0.0 (meaning left, when ClutterAlignConstraint:align-axis is set to CLUTTER_ALIGN_X_AXIS; or meaning top, when ClutterAlignConstraint:align-axis is set to CLUTTER_ALIGN_Y_AXIS) and 1.0 (meaning right, when ClutterAlignConstraint:align-axis is set to CLUTTER_ALIGN_X_AXIS; or meaning bottom, when ClutterAlignConstraint:align-axis is set to CLUTTER_ALIGN_Y_AXIS). A value of 0.5 aligns in the middle in either cases
|
Clutter.AlignConstraint | |
set_name
(String name)
:
none
Sets the name of meta
The name can be used to identify the ClutterActorMeta instance
Sets the name of meta
The name can be used to identify the ClutterActorMeta instance
|
Clutter.ActorMeta | |
set_source
(Actor source)
:
none
Sets the source of the alignment constraint
Sets the source of the alignment constraint
|
Clutter.AlignConstraint |
None |