splivarot.h revision 6fc0952fcafd54a656fdc8257ebb44bad58af163
#ifndef __SP_LIVAROT_H__
#define __SP_LIVAROT_H__
/*
* boolops and outlines
*
* public domain
*/
struct SPItem;
// boolean operations
// work on the current selection
// selection has 2 contain exactly 2 items
void sp_selected_path_union ();
void sp_selected_path_union_skip_undo ();
void sp_selected_path_intersect ();
void sp_selected_path_diff ();
void sp_selected_path_diff_skip_undo ();
void sp_selected_path_symdiff ();
void sp_selected_path_cut ();
void sp_selected_path_slice ();
// takes the fill-rule in consideration
// offset amount is the stroke-width of the curve
void sp_selected_path_offset ();
void sp_selected_path_offset_screen (double pixels);
void sp_selected_path_inset ();
void sp_selected_path_inset_screen (double pixels);
void sp_selected_path_create_offset ();
void sp_selected_path_create_inset ();
// outline of a curve
// uses the stroke-width
void sp_selected_path_outline ();
// simplifies a path (removes small segments and the like)
void sp_selected_path_simplify ();
NArtBpath *bpath_for_curve(SPItem *item, SPCurve *curve, bool doTransformation, bool transformFull, NR::Matrix extraPreAffine, NR::Matrix extraPostAffine);
Geom::PathVector pathvector_for_curve(SPItem *item, SPCurve *curve, bool doTransformation, bool transformFull);
NR::Maybe<Path::cut_position> get_nearest_position_on_Path(Path *path, NR::Point p, unsigned seg = 0);
#endif
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :