~vaifrax/inkscape/bugfix170049

« back to all changes in this revision

Viewing changes to src/sp-guide-attachment.h

  • Committer: mental
  • Date: 2006-01-16 02:36:01 UTC
  • Revision ID: mental@users.sourceforge.net-20060116023601-wkr0h7edl5veyudq
moving trunk for module inkscape

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __SP_GUIDE_ATTACHMENT_H__
 
2
#define __SP_GUIDE_ATTACHMENT_H__
 
3
 
 
4
#include <forward.h>
 
5
 
 
6
class SPGuideAttachment {
 
7
public:
 
8
    SPItem *item;
 
9
    int snappoint_ix;
 
10
 
 
11
public:
 
12
    SPGuideAttachment() :
 
13
        item(static_cast<SPItem *>(0))
 
14
    { }
 
15
 
 
16
    SPGuideAttachment(SPItem *i, int s) :
 
17
        item(i),
 
18
        snappoint_ix(s)
 
19
    { }
 
20
 
 
21
    bool operator==(SPGuideAttachment const &o) const {
 
22
        return ( ( item == o.item )
 
23
                 && ( snappoint_ix == o.snappoint_ix ) );
 
24
    }
 
25
 
 
26
    bool operator!=(SPGuideAttachment const &o) const {
 
27
        return !(*this == o);
 
28
    }
 
29
};
 
30
 
 
31
 
 
32
#endif /* !__SP_GUIDE_ATTACHMENT_H__ */
 
33
 
 
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 :