~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

Viewing changes to src/sp-guide.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Ted Gould, Kees Cook
  • Date: 2009-06-24 14:00:43 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090624140043-07stp20mry48hqup
Tags: 0.47~pre0-0ubuntu1
* New upstream release

[ Ted Gould ]
* debian/control: Adding libgsl0 and removing version specifics on boost

[ Kees Cook ]
* debian/watch: updated to run uupdate and mangle pre-release versions.
* Dropped patches that have been taken upstream:
  - 01_mips
  - 02-poppler-0.8.3
  - 03-chinese-inkscape
  - 05_fix_latex_patch
  - 06_gcc-4.4
  - 07_cdr2svg
  - 08_skip-bad-utf-on-pdf-import
  - 09_gtk-clist
  - 10_belarussian
  - 11_libpng
  - 12_desktop
  - 13_slider
  - 100_svg_import_improvements
  - 102_sp_pattern_painter_free
  - 103_bitmap_type_print

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#include <vector>
15
15
 
16
16
#include "display/display-forward.h"
17
 
#include "libnr/nr-point.h"
 
17
#include <2geom/point.h>
18
18
#include "sp-object.h"
19
19
#include "sp-guide-attachment.h"
20
20
 
26
26
 
27
27
/* Represents the constraint on p that dot(g.direction, p) == g.position. */
28
28
struct SPGuide : public SPObject {
29
 
    NR::Point normal_to_line;
 
29
    Geom::Point normal_to_line;
30
30
    Geom::Point point_on_line;
31
31
 
32
32
    guint32 color;
46
46
GType sp_guide_get_type();
47
47
 
48
48
SPGuide *sp_guide_create(SPDesktop *desktop, Geom::Point const &pt1, Geom::Point const &pt2);
49
 
void sp_guide_pt_pairs_to_guides(SPDocument *doc, std::list<std::pair<Geom::Point, Geom::Point> > &pts);
 
49
void sp_guide_pt_pairs_to_guides(SPDesktop *dt, std::list<std::pair<Geom::Point, Geom::Point> > &pts);
 
50
void sp_guide_create_guides_around_page(SPDesktop *dt);
50
51
 
51
52
void sp_guide_show(SPGuide *guide, SPCanvasGroup *group, GCallback handler);
52
53
void sp_guide_hide(SPGuide *guide, SPCanvas *canvas);
53
54
void sp_guide_sensitize(SPGuide *guide, SPCanvas *canvas, gboolean sensitive);
54
55
 
55
 
Geom::Point sp_guide_position_from_pt(SPGuide const *guide, NR::Point const &pt);
 
56
Geom::Point sp_guide_position_from_pt(SPGuide const *guide, Geom::Point const &pt);
56
57
double sp_guide_distance_from_pt(SPGuide const *guide, Geom::Point const &pt);
57
58
void sp_guide_moveto(SPGuide const &guide, Geom::Point const point_on_line, bool const commit);
58
59
void sp_guide_set_normal(SPGuide const &guide, Geom::Point const normal_to_line, bool const commit);