1 #ifndef INKSCAPE_DISPLAY_SNAP_INDICATOR_H
2 #define INKSCAPE_DISPLAY_SNAP_INDICATOR_H
4 /** \file
5 * Provides a class that shows a temporary indicator on the canvas of where the snap was, and what kind of snap
6 *
7 * Authors:
8 * Johan Engelen
9 * Diederik van Lierop
10 *
11 * Copyright (C) Johan Engelen 2008 <j.b.c.engelen@utwente.nl>
12 * Copyright (C) Diederik van Lierop 2008 <mail@diedenrezi.nl>
13 *
14 * Released under GNU GPL, read the file 'COPYING' for more information
15 */
17 #include "forward.h"
18 #include "display/display-forward.h"
19 #include "snapped-point.h"
21 namespace Inkscape {
22 namespace Display {
24 class SnapIndicator {
25 public:
26 SnapIndicator(SPDesktop *desktop);
27 virtual ~SnapIndicator();
29 void set_new_snappoint(Inkscape::SnappedPoint const p);
30 void remove_snappoint();
32 protected:
33 TemporaryItem *_tempitem;
34 SPDesktop *_desktop;
36 private:
37 SnapIndicator(const SnapIndicator&);
38 SnapIndicator& operator=(const SnapIndicator&);
39 };
41 } //namespace Display
42 } //namespace Inkscape
44 #endif
46 /*
47 Local Variables:
48 mode:c++
49 c-file-style:"stroustrup"
50 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
51 indent-tabs-mode:nil
52 fill-column:99
53 End:
54 */
55 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :