Clutter.SnapConstraint.new
Description: Reference for Clutter.SnapConstraint.new

### Constructor

# Clutter SnapConstraintnew

#### Declaration [src]

    ClutterConstraint*
    clutter_snap_constraint_new (
      ClutterActor* source,
      ClutterSnapEdge from_edge,
      ClutterSnapEdge to_edge,
      gfloat offset
    )

#### Description [src]

Creates a new `ClutterSnapConstraint` that will snap a `ClutterActor` to the `edge` of `source`, with the given `offset`.

Available since: | 1.6

#### Parameters

`source` | `ClutterActor`
| The `ClutterActor` to use as the source of the constraint, or `NULL`.
| The argument can be `NULL`.
| The data is owned by the caller of the function.
`from_edge` | `ClutterSnapEdge`
| The edge of the actor to use in the constraint.
`to_edge` | `ClutterSnapEdge`
| The edge of `source` to use in the constraint.
`offset` | `gfloat`
| The offset to apply to the constraint, in pixels.

#### Return value

Returns: | `ClutterConstraint`
| The newly created `ClutterSnapConstraint`.
| The data is owned by the called function.