Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

snap.h File Reference


Detailed Description

Snapper, GridSnapper, GuideSnapper: snap distance calculation.

Definition in file snap.h.

#include <vector>
#include <map>
#include <forward.h>
#include <libnr/nr-coord.h>
#include <libnr/nr-dim2.h>
#include <libnr/nr-forward.h>

Go to the source code of this file.

Classes

class  GridSnapper
 Snap to grid. More...
class  GuideSnapper
 Snap to guides. More...
class  Snapper
 Parent for classes that can snap points to something. More...

Functions

NR::Coord namedview_dim_snap (SPNamedView const *nv, Snapper::PointType t, NR::Point &req, NR::Dim2 const dim)
NR::Coord namedview_dim_snap_all_types (SPNamedView const *nv, NR::Point &req, NR::Dim2 const dim)
std::pair< NR::Coord, bool > namedview_dim_snap_list (SPNamedView const *nv, Snapper::PointType t, const std::vector< NR::Point > &p, double const dx, NR::Dim2 const dim)
std::pair< double, bool > namedview_dim_snap_list_scale (SPNamedView const *nv, Snapper::PointType t, const std::vector< NR::Point > &p, NR::Point const &norm, double const sx, NR::Dim2 const dim)
NR::Coord namedview_dim_snap_list_skew (SPNamedView const *nv, Snapper::PointType t, const std::vector< NR::Point > &p, NR::Point const &norm, double const sx, NR::Dim2 const dim)
NR::Coord namedview_free_snap (SPNamedView const *nv, Snapper::PointType t, NR::Point &req)
NR::Coord namedview_free_snap_all_types (SPNamedView const *nv, NR::Point &req)
NR::Coord namedview_vector_snap (SPNamedView const *nv, Snapper::PointType t, NR::Point &req, NR::Point const &d)
NR::Coord namedview_vector_snap_all_types (SPNamedView const *nv, NR::Point &req, NR::Point const &d)
std::pair< double, bool > namedview_vector_snap_list (SPNamedView const *nv, Snapper::PointType t, const std::vector< NR::Point > &p, NR::Point const &norm, NR::scale const &s)


Generated by  Doxygen 1.6.0   Back to index