summaryrefslogtreecommitdiffstats
path: root/src/snapped-point.h
diff options
context:
space:
mode:
authorDiederik van Lierop <mailat-signdiedenrezidotnl>2010-01-19 20:16:06 +0000
committerDiederik van Lierop <mailat-signdiedenrezidotnl>2010-01-19 20:16:06 +0000
commitdb3380152e87e88c89691882ffb32bef78db07b0 (patch)
tree1434568dd36fb239fe900b327c5adb677fdff1c9 /src/snapped-point.h
parentscour extension update (v0.23) (diff)
downloadinkscape-db3380152e87e88c89691882ffb32bef78db07b0.tar.gz
inkscape-db3380152e87e88c89691882ffb32bef78db07b0.zip
When snapping to a bounding box, flash that bounding box together with the snap indicator
(bzr r8999)
Diffstat (limited to 'src/snapped-point.h')
-rw-r--r--src/snapped-point.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/snapped-point.h b/src/snapped-point.h
index 1497802c0..33230e212 100644
--- a/src/snapped-point.h
+++ b/src/snapped-point.h
@@ -29,7 +29,7 @@ public:
SnappedPoint();
SnappedPoint(Geom::Point const &p);
SnappedPoint(Geom::Point const &p, SnapSourceType const &source, long source_num, SnapTargetType const &target, Geom::Coord const &d, Geom::Coord const &t, bool const &a, bool const &at_intersection, bool const &fully_constrained, Geom::Coord const &d2, Geom::Coord const &t2, bool const &a2);
- SnappedPoint(Geom::Point const &p, SnapSourceType const &source, long source_num, SnapTargetType const &target, Geom::Coord const &d, Geom::Coord const &t, bool const &a, bool const &fully_constrained);
+ SnappedPoint(Geom::Point const &p, SnapSourceType const &source, long source_num, SnapTargetType const &target, Geom::Coord const &d, Geom::Coord const &t, bool const &a, bool const &fully_constrained, Geom::OptRect target_bbox = Geom::OptRect());
SnappedPoint(SnapCandidatePoint const &p, SnapTargetType const &target, Geom::Coord const &d, Geom::Coord const &t, bool const &a, bool const &fully_constrained);
~SnappedPoint();
@@ -65,8 +65,8 @@ public:
void setTransformation(Geom::Point const t) {_transformation = t;}
void setTarget(SnapTargetType const target) {_target = target;}
SnapTargetType getTarget() const {return _target;}
- void setTargetBBox(Geom::Rect const target) {_target_bbox = target;}
- Geom::Rect & getTargetBBox() {return _target_bbox;}
+ void setTargetBBox(Geom::OptRect const target) {_target_bbox = target;}
+ Geom::OptRect const getTargetBBox() const {return _target_bbox;}
void setSource(SnapSourceType const source) {_source = source;}
SnapSourceType getSource() const {return _source;}
long getSourceNum() const {return _source_num;}
@@ -118,7 +118,7 @@ protected:
/* The transformation (translation, scale, skew, or stretch) from the original point to the snapped point */
Geom::Point _transformation;
/* The bounding box we've snapped to (when applicable); will be used by the snapindicator */
- Geom::Rect _target_bbox;
+ Geom::OptRect _target_bbox;
/* Distance from the un-transformed point to the mouse pointer, measured at the point in time when dragging started */
Geom::Coord _pointer_distance;
};