### Method

# Clutter Actor add_constraint_with_name

#### Declaration [src]

    void
    clutter_actor_add_constraint_with_name (
      ClutterActor* self,
      const gchar* name,
      ClutterConstraint* constraint
    )

#### Description [src]

A convenience function for setting the name of a `ClutterConstraint` while adding it to the list of constraints applied to `self`

This function is the logical equivalent of:

      clutter_actor_meta_set_name (CLUTTER_ACTOR_META (constraint), name);
      clutter_actor_add_constraint (self, constraint);

#### Parameters

`name`

  Type: `const gchar*`

  The name to set on the constraint.

  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

`constraint`

  Type: `ClutterConstraint`

  A `ClutterConstraint`.

  The data is owned by the caller of the function.