Code

0395d400081da696e96021034b26d43098d88714
[inkscape.git] / src / display / snap-indicator.h
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  *
10  * Copyright (C) Johan Engelen 2008 <j.b.c.engelen@utwente.nl>
11  *
12  * Released under GNU GPL, read the file 'COPYING' for more information
13  */
15 #include "forward.h"
16 #include "display/display-forward.h"
17 #include <2geom/point.h>
19 namespace Inkscape {
20 namespace Display {
22 class SnapIndicator  {
23 public:
24     SnapIndicator(SPDesktop *desktop);
25     virtual ~SnapIndicator();
27     void set_new_snappoint(Geom::Point p);
28     void remove_snappoint();
30 protected:
31     TemporaryItem * tempitem;
32     SPDesktop *desktop;
34 private:
35     SnapIndicator(const SnapIndicator&);
36     SnapIndicator& operator=(const SnapIndicator&);
37 };
39 } //namespace Display
40 } //namespace Inkscape
42 #endif
44 /*
45   Local Variables:
46   mode:c++
47   c-file-style:"stroustrup"
48   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
49   indent-tabs-mode:nil
50   fill-column:99
51   End:
52 */
53 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :