Constructor
ClutterSnapConstraintnew
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 |
|
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 |
|
offset |
gfloat |
The offset to apply to the constraint, in pixels. |
Return value
Returns: | ClutterConstraint |
The newly created |
|
The data is owned by the called function. |