Top | ![]() |
![]() |
![]() |
![]() |
GwySelection * | gwy_selection_path_new () |
void | gwy_selection_path_set_slackness () |
gdouble | gwy_selection_path_get_slackness () |
void | gwy_selection_path_set_closed () |
gboolean | gwy_selection_path_get_closed () |
GwySelectionPath represents a free-form spline path. Unlike most other selections, the entire selection is one path. Individual objects are points on the path. Selection data consist of pairs of coordinates (x, y) of control points on path, in order from the beginning to end.
GwySelection *
gwy_selection_path_new (void
);
Creates a new path selection.
void gwy_selection_path_set_slackness (GwySelectionPath *selection
,gdouble slackness
);
Sets the curve slackness of a path selection.
Slackness of zero means the curve is tight and the segments connecting the points are straight. The default value of 1/√2 gives naturally looking curves. Slackness of 1 means quite slack curves, whereas larger values than 1 more or less means trying to stuff more curve between the points than natural.
gdouble
gwy_selection_path_get_slackness (GwySelectionPath *selection
);
Gets the curve slackness of a path selection.
See gwy_selection_path_set_slackness()
for more details.
void gwy_selection_path_set_closed (GwySelectionPath *selection
,gboolean closed
);
Changes whether a path selection is a closed curve.
gboolean
gwy_selection_path_get_closed (GwySelectionPath *selection
);
Reports whether a path selection is a closed curve.