Logo Search packages:      
Sourcecode: inkscape version File versions

Inkscape::GuideSnapper Class Reference

#include <guide-snapper.h>

Inheritance diagram for Inkscape::GuideSnapper:

Inkscape::Snapper

List of all members.


Detailed Description

Snap to guides.

Definition at line 28 of file guide-snapper.h.


Public Types

typedef int PointType
 Point types to snap.

Public Member Functions

void constrainedSnap (SnappedConstraints &sc, PointType const &t, NR::Point const &p, bool const &first_point, std::vector< NR::Point > &points_to_snap, ConstraintLine const &c, std::list< SPItem const * > const &it) const
void constrainedSnap (SnappedConstraints &sc, PointType const &t, NR::Point const &p, bool const &first_point, std::vector< NR::Point > &points_to_snap, ConstraintLine const &c, SPItem const *it) const
void freeSnap (SnappedConstraints &sc, PointType const &t, NR::Point const &p, bool const &first_point, std::vector< NR::Point > &points_to_snap, std::list< SPItem const * > const &it) const
void freeSnap (SnappedConstraints &sc, PointType const &t, NR::Point const &p, bool const &first_point, std::vector< NR::Point > &points_to_snap, SPItem const *it) const
bool getEnabled () const
bool getSnapFrom (PointType t) const
bool getSnapperAlwaysSnap () const
NR::Coord getSnapperTolerance () const
 GuideSnapper (SPNamedView const *nv, NR::Coord const d)
void setEnabled (bool s)
void setSnapFrom (PointType t, bool s)
void setSnapperTolerance (NR::Coord t)
bool ThisSnapperMightSnap () const

Static Public Attributes

static const PointType SNAPPOINT_BBOX = 0x1
static const PointType SNAPPOINT_GUIDE = 0x4
static const PointType SNAPPOINT_NODE = 0x2

Protected Types

typedef std::list< std::pair
< NR::Point, NR::Point > > 
LineList

Protected Attributes

SPNamedView const * _named_view
bool _snap_enabled
 true if this snapper is enabled, otherwise false
int _snap_from
 bitmap of point types that we will snap from

Private Member Functions

void _addSnappedLine (SnappedConstraints &sc, NR::Point const snapped_point, NR::Coord const snapped_distance, NR::Point const normal_to_line, NR::Point const point_on_line) const
LineList _getSnapLines (NR::Point const &p) const

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index