ClutterBindConstraint

ClutterBindConstraint — A constraint binding the position of an actor

Synopsis

                    ClutterBindConstraint;
enum                ClutterBindCoordinate;
ClutterConstraint * clutter_bind_constraint_new         (ClutterActor *source,
                                                         ClutterBindCoordinate coordinate,
                                                         gfloat offset);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----ClutterActorMeta
               +----ClutterConstraint
                     +----ClutterBindConstraint

Properties

  "coordinate"               ClutterBindCoordinate  : Read / Write / Construct
  "offset"                   gfloat                : Read / Write / Construct
  "source"                   ClutterActor*         : Read / Write / Construct

Description

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

Details

ClutterBindConstraint

typedef struct _ClutterBindConstraint ClutterBindConstraint;

ClutterBindConstraint is an opaque structure whose members cannot be directly accessed

Since 1.4


enum ClutterBindCoordinate

typedef enum { /*< prefix=CLUTTER_BIND >*/
  CLUTTER_BIND_X,
  CLUTTER_BIND_Y,
  CLUTTER_BIND_Z
} ClutterBindCoordinate;

Specifies which coordinate should be used in a binding

CLUTTER_BIND_X

Bind the X coordinate

CLUTTER_BIND_Y

Bind the Y coordinate

CLUTTER_BIND_Z

Bind the Z coordinate

Since 1.4


clutter_bind_constraint_new ()

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

source :

the ClutterActor to use as the source of the binding

coordinate :

the coordinate to bind

offset :

the offset to apply to the binding, in pixels

Returns :

the newly created ClutterBindConstraint

Since 1.4

Property Details

The "coordinate" property

  "coordinate"               ClutterBindCoordinate  : Read / Write / Construct

The coordinate to be bound

Default value: CLUTTER_BIND_X

Since 1.4


The "offset" property

  "offset"                   gfloat                : Read / Write / Construct

The offset, in pixels, to be applied to the binding

Default value: 0

Since 1.4


The "source" property

  "source"                   ClutterActor*         : Read / Write / Construct

The ClutterActor used as the source for the binding

Since 1.4