SnapConstraint


Description:

[ 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 .

Parameters:

source

the Actor to use as the source of the constraint, or null

from_edge

the edge of the actor to use in the constraint

to_edge

the edge of source to use in the constraint

offset

the offset to apply to the constraint, in pixels

Returns:

the newly created SnapConstraint