summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3e1a82b)
raw | patch | inline | side by side (parent: 3e1a82b)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Wed, 18 Jun 2008 22:40:29 +0000 (22:40 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Wed, 18 Jun 2008 22:40:29 +0000 (22:40 +0000) |
src/2geom/path.h | patch | blob | history |
diff --git a/src/2geom/path.h b/src/2geom/path.h
index 719a66478f4105e4b83742bc2427b2221472fc3a..5f2c86b957dba17a155da2f9725d428dc1f7e766 100644 (file)
--- a/src/2geom/path.h
+++ b/src/2geom/path.h
*
* The only difference between a closed and an open path is whether end()
* returns end_closed() or end_open(). The idea behind this is to let
- * any path be stroked using [begin(), end()), and filled using
+ * any path be stroked using [begin(), end_default()), and filled using
* [begin(), end_closed()), without requiring a separate "filled" version
* of the path to use for filling.
*/
Curve const &front() const { return *curves_[0]; }
Curve const &back() const { return *curves_[curves_.size()-2]; }
+ Curve const &back_open() const { return *curves_[curves_.size()-2]; }
+ Curve const &back_closed() const { return *curves_[curves_.size()-1]; }
+ Curve const &back_default() const {
+ return ( closed_ ? back_closed() : back_open() );
+ }
const_iterator begin() const { return curves_.begin(); }
const_iterator end() const { return curves_.end()-1; }