sp-guide.h revision 6d0cbc6b5cf5f942c8ee7fa5c7eeb2a82eb617d5
#ifndef SEEN_SP_GUIDE_H
#define SEEN_SP_GUIDE_H
/*
* SPGuide
*
* A guideline
*
* Copyright (C) Lauris Kaplinski 2000
* Copyright (C) Johan Engelen 2007
* Abhishek Sharma
* Jon A. Cruz <jon@joncruz.org>
*
*/
#include <vector>
#include "sp-object.h"
#include "sp-guide-attachment.h"
struct SPCanvas;
struct SPCanvasGroup;
#define SP_TYPE_GUIDE (sp_guide_get_type())
/* Represents the constraint on p that dot(g.direction, p) == g.position. */
char* label;
inline double angle() const { return std::atan2( - normal_to_line[Geom::X], normal_to_line[Geom::Y] ); };
};
};
void sp_guide_pt_pairs_to_guides(SPDocument *doc, std::list<std::pair<Geom::Point, Geom::Point> > &pts);
void sp_guide_set_color(SPGuide &guide, const unsigned r, const unsigned g, const unsigned b, bool const commit);
#endif // SEEN_SP_GUIDE_H
/*
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:fileencoding=utf-8:textwidth=99 :