Code

A simple layout document as to what, why and how is cppification.
[inkscape.git] / src / sp-guide-attachment.h
1 #ifndef __SP_GUIDE_ATTACHMENT_H__
2 #define __SP_GUIDE_ATTACHMENT_H__
4 #include <forward.h>
5 #include "sp-item.h"
7 class SPGuideAttachment {
8 public:
9     SPItem *item;
10     int snappoint_ix;
12 public:
13     SPGuideAttachment() :
14         item(static_cast<SPItem *>(0))
15     { }
17     SPGuideAttachment(SPItem *i, int s) :
18         item(i),
19         snappoint_ix(s)
20     { }
22     bool operator==(SPGuideAttachment const &o) const {
23         return ( ( item == o.item )
24                  && ( snappoint_ix == o.snappoint_ix ) );
25     }
27     bool operator!=(SPGuideAttachment const &o) const {
28         return !(*this == o);
29     }
30 };
33 #endif /* !__SP_GUIDE_ATTACHMENT_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:encoding=utf-8:textwidth=99 :