SnapConstraint
Description:
[ CCode ( has_construct_function = false , type = "ClutterConstraint*" ) ]
public SnapConstraint (Actor? source, SnapEdge from_edge, SnapEdge to_edge, float offset)
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
.
Parameters:
| 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 |
Returns:
|
the newly created SnapConstraint |