![]() |
![]() |
![]() |
Clutter Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
ClutterBindConstraint; enum ClutterBindCoordinate; ClutterConstraint * clutter_bind_constraint_new (ClutterActor *source
,ClutterBindCoordinate coordinate
,gfloat offset
);
GObject +----GInitiallyUnowned +----ClutterActorMeta +----ClutterConstraint +----ClutterBindConstraint
"coordinate" ClutterBindCoordinate : Read / Write / Construct "offset" gfloat : Read / Write / Construct "source" ClutterActor* : Read / Write / Construct
ClutterBindConstraint is a ClutterConstraint that binds the position of the ClutterActor to which it is applied to the the position of another ClutterActor.
ClutterBindConstraint is available since Clutter 1.4
typedef struct _ClutterBindConstraint ClutterBindConstraint;
ClutterBindConstraint is an opaque structure whose members cannot be directly accessed
Since 1.4
typedef enum { /*< prefix=CLUTTER_BIND >*/ CLUTTER_BIND_X, CLUTTER_BIND_Y, CLUTTER_BIND_Z } ClutterBindCoordinate;
Specifies which coordinate should be used in a binding
Bind the X coordinate | |
Bind the Y coordinate | |
Bind the Z coordinate |
Since 1.4
ClutterConstraint * clutter_bind_constraint_new (ClutterActor *source
,ClutterBindCoordinate coordinate
,gfloat offset
);
Creates a new constraint, binding a ClutterActor's position to
the given coordinate
of the position of source
|
the ClutterActor to use as the source of the binding |
|
the coordinate to bind |
|
the offset to apply to the binding, in pixels |
Returns : |
the newly created ClutterBindConstraint |
Since 1.4
"coordinate"
property"coordinate" ClutterBindCoordinate : Read / Write / Construct
The coordinate to be bound
Default value: CLUTTER_BIND_X
Since 1.4
"offset"
property "offset" gfloat : Read / Write / Construct
The offset, in pixels, to be applied to the binding
Default value: 0
Since 1.4
"source"
property"source" ClutterActor* : Read / Write / Construct
The ClutterActor used as the source for the binding
Since 1.4