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