[ CCode ( has_construct_function = false , type = "ClutterConstraint*" ) ]
public SnapConstraint (Actor? source, SnapEdge from_edge, SnapEdge to_edge, float offset)
Creates a new SnapConstraint that will snap a
Actor to the edge
of source
, with the given offset
.
source |
the Actor to use as the source of the constraint, or |
from_edge |
the edge of the actor to use in the constraint |
to_edge |
the edge of |
offset |
the offset to apply to the constraint, in pixels |
the newly created SnapConstraint |