sp-guide.h revision 3ac9fcc1bea8f3984129207256aedee0c61f1b8f
#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(SPDesktop *dt, std::list<std::pair<Geom::Point, Geom::Point> > &pts);
#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 :