1 #ifndef __SP_GUIDE_ATTACHMENT_H__
2 #define __SP_GUIDE_ATTACHMENT_H__
4 #include <forward.h>
6 class SPGuideAttachment {
7 public:
8 SPItem *item;
9 int snappoint_ix;
11 public:
12 SPGuideAttachment() :
13 item(static_cast<SPItem *>(0))
14 { }
16 SPGuideAttachment(SPItem *i, int s) :
17 item(i),
18 snappoint_ix(s)
19 { }
21 bool operator==(SPGuideAttachment const &o) const {
22 return ( ( item == o.item )
23 && ( snappoint_ix == o.snappoint_ix ) );
24 }
26 bool operator!=(SPGuideAttachment const &o) const {
27 return !(*this == o);
28 }
29 };
32 #endif /* !__SP_GUIDE_ATTACHMENT_H__ */
34 /*
35 Local Variables:
36 mode:c++
37 c-file-style:"stroustrup"
38 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
39 indent-tabs-mode:nil
40 fill-column:99
41 End:
42 */
43 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :