Code

Fix change in revision 9947 to be consistent with rest of the codebase.
[inkscape.git] / src / sp-guide-constraint.h
1 #ifndef __SP_GUIDE_CONSTRAINT_H__
2 #define __SP_GUIDE_CONSTRAINT_H__
4 #include <forward.h>
6 class SPGuideConstraint {
7 public:
8     SPGuide *g;
9     int snappoint_ix;
11 public:
12     explicit SPGuideConstraint() :
13         g(static_cast<SPGuide *>(0))
14     { }
16     explicit SPGuideConstraint(SPGuide *g, int snappoint_ix) :
17         g(g),
18         snappoint_ix(snappoint_ix)
19     { }
21     bool operator==(SPGuideConstraint const &o) const {
22         return ( ( g == o.g )
23                  && ( snappoint_ix == o.snappoint_ix ) );
24     }
26     bool operator!=(SPGuideConstraint const &o) const {
27         return !( *this == o );
28     }
29 };
32 #endif /* !__SP_GUIDE_CONSTRAINT_H__ */
35 /*
36   Local Variables:
37   mode:c++
38   c-file-style:"stroustrup"
39   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
40   indent-tabs-mode:nil
41   fill-column:99
42   End:
43 */
44 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :