Code

another canvas repaint optimization: if the new rect and the rect aborted last time...
[inkscape.git] / src / grid-snapper.h
1 #ifndef SEEN_GRID_SNAPPER_H
2 #define SEEN_GRID_SNAPPER_H
4 /**
5  *  \file grid-snapper.h
6  *  \brief Snapping things to grids.
7  *
8  * Authors:
9  *   Lauris Kaplinski <lauris@kaplinski.com>
10  *   Frank Felfe <innerspace@iname.com>
11  *   Carl Hetherington <inkscape@carlh.net>
12  *
13  * Copyright (C) 1999-2002 Authors 
14  *
15  * Released under GNU GPL, read the file 'COPYING' for more information
16  */
18 #include "line-snapper.h"
20 namespace Inkscape
21 {
23 /// Snap to grid
24 class GridSnapper : public LineSnapper
25 {
26 public:
27     GridSnapper(SPNamedView const *nv, NR::Coord const d);
29 private:    
30     LineList _getSnapLines(NR::Point const &p) const;
31 };
33 }
35 #endif
37 /*
38   Local Variables:
39   mode:c++
40   c-file-style:"stroustrup"
41   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
42   indent-tabs-mode:nil
43   fill-column:99
44   End:
45 */
46 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :