~mc.../inkscape/inkscape

« back to all changes in this revision

Viewing changes to src/guide-snapper.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 SEEN_GUIDE_SNAPPER_H
 
2
#define SEEN_GUIDE_SNAPPER_H
 
3
 
 
4
/**
 
5
 *  \file guide-snapper.h
 
6
 *  \brief Snapping things to guides.
 
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
 */
 
17
 
 
18
#include "libnr/nr-forward.h"
 
19
#include "libnr/nr-coord.h"
 
20
#include "snapper.h"
 
21
 
 
22
struct SPNamedView;
 
23
 
 
24
namespace Inkscape
 
25
{
 
26
 
 
27
/// Snap to guides
 
28
class GuideSnapper : public LineSnapper
 
29
{
 
30
public:
 
31
    GuideSnapper(SPNamedView const *nv, NR::Coord const d);
 
32
 
 
33
private:
 
34
    LineList _getSnapLines(NR::Point const &p) const;
 
35
};
 
36
 
 
37
}
 
38
 
 
39
#endif
 
40
 
 
41
 
 
42
 
 
43
/*
 
44
  Local Variables:
 
45
  mode:c++
 
46
  c-file-style:"stroustrup"
 
47
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
48
  indent-tabs-mode:nil
 
49
  fill-column:99
 
50
  End:
 
51
*/
 
52
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :