object-snapper.h revision 6b15695578f07a3f72c4c9475c1a261a3021472a
#ifndef SEEN_OBJECT_SNAPPER_H
#define SEEN_OBJECT_SNAPPER_H
/**
* \file object-snapper.h
* \brief Snapping things to objects.
*
* Authors:
* Carl Hetherington <inkscape@carlh.net>
*
* Copyright (C) 2005 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "snapper.h"
struct SPNamedView;
struct SPItem;
struct SPObject;
{
{
void setSnapToNodes(bool s) {
_snap_to_nodes = s;
}
bool getSnapToNodes() const {
return _snap_to_nodes;
}
void setSnapToPaths(bool s) {
_snap_to_paths = s;
}
bool getSnapToPaths() const {
return _snap_to_paths;
}
SPObject* r,
void _snapNodes(Inkscape::SnappedPoint &s, NR::Point const &p, std::list<SPItem*> const &cand) const;
void _snapPaths(Inkscape::SnappedPoint &s, NR::Point const &p, std::list<SPItem*> const &cand) const;
bool _snap_to_nodes;
bool _snap_to_paths;
};
}
#endif