
#include <path.h>

Public Types | |
| typedef std::list < PathElement::pointer > | Elements |
| typedef Elements::iterator | iterator |
| typedef Elements::const_iterator | const_iterator |
| typedef Elements::reverse_iterator | reverse_iterator |
| typedef Elements::const_reverse_iterator | const_reverse_iterator |
| typedef Elements::size_type | size_type |
| typedef Elements::reference | reference |
| typedef Elements::const_reference | const_reference |
Public Member Functions | |
| PAPYRUS_DRAWABLE (Path) | |
| ~Path () | |
| virtual void | draw_shape (Context &cairo) const |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| reverse_iterator | rbegin () |
| reverse_iterator | rend () |
| const_reverse_iterator | rbegin () const |
| const_reverse_iterator | rend () const |
| size_type | size () const |
| size_type | max_size () const |
| bool | empty () const |
| reference | front () |
| const_reference | front () const |
| reference | back () |
| const_reference | back () const |
| void | push_front (PathElement::pointer element) |
| void | push_front (PathElementType type, double x=0.0, double y=0.0, double x1=0.0, double y1=0.0, double x2=0.0, double y2=0.0) |
| void | push_back (PathElement::pointer element) |
| void | push_back (PathElementType type, double x=0.0, double y=0.0, double x1=0.0, double y1=0.0, double x2=0.0, double y2=0.0) |
| void | pop_front () |
| void | pop_back () |
| iterator | insert (iterator pos, PathElement::pointer element) |
| iterator | insert (iterator pos, PathElementType type, double x=0.0, double y=0.0, double x1=0.0, double y1=0.0, double x2=0.0, double y2=0.0) |
| iterator | erase (iterator pos) |
| iterator | erase (iterator first, iterator last) |
| void | set (const char *path) |
| Sets the path elements to the given SVG path string. | |
| void | set (const Glib::ustring &path) |
| Sets the path elements to the given SVG path string. | |
| virtual void | set (const AttributeValueMap &avmap) |
| void | clear () |
| void | remove (PathElement::pointer element) |
| void | reverse () |
| virtual Glib::ustring | svg (unsigned depth=0) |
Static Public Member Functions | |
| static pointer | create (const char *path=NULL, Fill::pointer fill=Fill::pointer(), Stroke::pointer stroke=Stroke::pointer()) |
| static pointer | create (const Glib::ustring &path, Fill::pointer fill=Fill::pointer(), Stroke::pointer stroke=Stroke::pointer()) |
| static pointer | create (const Glib::ustring &id, const char *path, Fill::pointer fill=Fill::pointer(), Stroke::pointer stroke=Stroke::pointer()) |
| static pointer | create (const Glib::ustring &id, const Glib::ustring &path, Fill::pointer fill=Fill::pointer(), Stroke::pointer stroke=Stroke::pointer()) |
| static pointer | create (const AttributeValueMap &avmap) |
Protected Member Functions | |
| Path (const Glib::ustring &id, const char *path, Fill::pointer fill, Stroke::pointer stroke) | |
| Path (const AttributeValueMap &avmap) | |
Protected Attributes | |
| Elements | m_elements |
| typedef Elements::const_iterator Papyrus::Path::const_iterator |
| typedef Elements::const_reference Papyrus::Path::const_reference |
| typedef Elements::const_reverse_iterator Papyrus::Path::const_reverse_iterator |
| typedef std::list<PathElement::pointer> Papyrus::Path::Elements |
| typedef Elements::iterator Papyrus::Path::iterator |
| typedef Elements::reference Papyrus::Path::reference |
| typedef Elements::reverse_iterator Papyrus::Path::reverse_iterator |
| typedef Elements::size_type Papyrus::Path::size_type |
| Papyrus::Path::Path | ( | const Glib::ustring & | id, | |
| const char * | path, | |||
| Fill::pointer | fill, | |||
| Stroke::pointer | stroke | |||
| ) | [protected] |
References m_elements, and Papyrus::path_data_parser().
Referenced by create().
| Papyrus::Path::Path | ( | const AttributeValueMap & | avmap | ) | [protected] |
| Papyrus::Path::~Path | ( | ) |
| Path::const_reference Papyrus::Path::back | ( | ) | const |
References m_elements.
| Path::reference Papyrus::Path::back | ( | ) |
References m_elements.
| Path::const_iterator Papyrus::Path::begin | ( | ) | const |
References m_elements.
| Path::iterator Papyrus::Path::begin | ( | ) |
References m_elements.
| void Papyrus::Path::clear | ( | ) |
References m_elements, and Papyrus::Shape::shape_changed().
| Path::pointer Papyrus::Path::create | ( | const AttributeValueMap & | avmap | ) | [static] |
References PAPYRUS_CREATE, and Path().
| Path::pointer Papyrus::Path::create | ( | const Glib::ustring & | id, | |
| const Glib::ustring & | path, | |||
| Fill::pointer | fill = Fill::pointer(), |
|||
| Stroke::pointer | stroke = Stroke::pointer() | |||
| ) | [static] |
References PAPYRUS_CREATE.
| Path::pointer Papyrus::Path::create | ( | const Glib::ustring & | id, | |
| const char * | path, | |||
| Fill::pointer | fill = Fill::pointer(), |
|||
| Stroke::pointer | stroke = Stroke::pointer() | |||
| ) | [static] |
References PAPYRUS_CREATE.
| Path::pointer Papyrus::Path::create | ( | const Glib::ustring & | path, | |
| Fill::pointer | fill = Fill::pointer(), |
|||
| Stroke::pointer | stroke = Stroke::pointer() | |||
| ) | [static] |
References PAPYRUS_CREATE.
| Path::pointer Papyrus::Path::create | ( | const char * | path = NULL, |
|
| Fill::pointer | fill = Fill::pointer(), |
|||
| Stroke::pointer | stroke = Stroke::pointer() | |||
| ) | [static] |
References PAPYRUS_CREATE.
Referenced by Papyrus::SVG::process_element().
| void Papyrus::Path::draw_shape | ( | Context & | cairo | ) | const [virtual] |
Implements Papyrus::Shape.
References m_elements.
| bool Papyrus::Path::empty | ( | ) | const |
References m_elements.
| Path::const_iterator Papyrus::Path::end | ( | ) | const |
References m_elements.
| Path::iterator Papyrus::Path::end | ( | ) |
References m_elements.
| Path::iterator Papyrus::Path::erase | ( | iterator | first, | |
| iterator | last | |||
| ) |
References m_elements, and Papyrus::Shape::shape_changed().
| Path::iterator Papyrus::Path::erase | ( | iterator | pos | ) |
References m_elements, and Papyrus::Shape::shape_changed().
| Path::const_reference Papyrus::Path::front | ( | ) | const |
References m_elements.
| Path::reference Papyrus::Path::front | ( | ) |
References m_elements.
| Path::iterator Papyrus::Path::insert | ( | iterator | pos, | |
| PathElementType | type, | |||
| double | x = 0.0, |
|||
| double | y = 0.0, |
|||
| double | x1 = 0.0, |
|||
| double | y1 = 0.0, |
|||
| double | x2 = 0.0, |
|||
| double | y2 = 0.0 | |||
| ) |
References Papyrus::PathElement::create(), and insert().
| Path::iterator Papyrus::Path::insert | ( | iterator | pos, | |
| PathElement::pointer | element | |||
| ) |
References m_elements, and Papyrus::Shape::shape_changed().
Referenced by insert().
| Path::size_type Papyrus::Path::max_size | ( | ) | const |
References m_elements.
| Papyrus::Path::PAPYRUS_DRAWABLE | ( | Path | ) |
| void Papyrus::Path::pop_back | ( | ) |
References m_elements, and Papyrus::Shape::shape_changed().
| void Papyrus::Path::pop_front | ( | ) |
References m_elements, and Papyrus::Shape::shape_changed().
| void Papyrus::Path::push_back | ( | PathElementType | type, | |
| double | x = 0.0, |
|||
| double | y = 0.0, |
|||
| double | x1 = 0.0, |
|||
| double | y1 = 0.0, |
|||
| double | x2 = 0.0, |
|||
| double | y2 = 0.0 | |||
| ) |
References Papyrus::PathElement::create(), and push_back().
| void Papyrus::Path::push_back | ( | PathElement::pointer | element | ) |
References m_elements, and Papyrus::Shape::shape_changed().
Referenced by push_back().
| void Papyrus::Path::push_front | ( | PathElementType | type, | |
| double | x = 0.0, |
|||
| double | y = 0.0, |
|||
| double | x1 = 0.0, |
|||
| double | y1 = 0.0, |
|||
| double | x2 = 0.0, |
|||
| double | y2 = 0.0 | |||
| ) |
References Papyrus::PathElement::create(), and push_front().
| void Papyrus::Path::push_front | ( | PathElement::pointer | element | ) |
References m_elements, and Papyrus::Shape::shape_changed().
Referenced by push_front().
| Path::const_reverse_iterator Papyrus::Path::rbegin | ( | ) | const |
References m_elements.
| Path::reverse_iterator Papyrus::Path::rbegin | ( | ) |
References m_elements.
| void Papyrus::Path::remove | ( | PathElement::pointer | element | ) |
References m_elements, and Papyrus::Shape::shape_changed().
| Path::const_reverse_iterator Papyrus::Path::rend | ( | ) | const |
References m_elements.
| Path::reverse_iterator Papyrus::Path::rend | ( | ) |
References m_elements.
| void Papyrus::Path::reverse | ( | ) |
References m_elements, and Papyrus::Shape::shape_changed().
| void Papyrus::Path::set | ( | const AttributeValueMap & | avmap | ) | [virtual] |
Reimplemented from Papyrus::Shape.
References m_elements, Papyrus::path_data_parser(), set(), Papyrus::Shape::shape_changed(), and Papyrus::strcaseeq().
| void Papyrus::Path::set | ( | const Glib::ustring & | path | ) |
Sets the path elements to the given SVG path string.
References m_elements, Papyrus::path_data_parser(), and Papyrus::Shape::shape_changed().
| void Papyrus::Path::set | ( | const char * | path | ) |
Sets the path elements to the given SVG path string.
References m_elements, Papyrus::path_data_parser(), and Papyrus::Shape::shape_changed().
Referenced by set().
| Path::size_type Papyrus::Path::size | ( | ) | const |
References m_elements.
| Glib::ustring Papyrus::Path::svg | ( | unsigned | depth = 0 |
) | [virtual] |
Reimplemented from Papyrus::Renderable.
References m_elements, Papyrus::Shape::svg_fill(), Papyrus::Renderable::svg_id(), Papyrus::Renderable::svg_spacing(), and Papyrus::Drawable::svg_transform().
Elements Papyrus::Path::m_elements [protected] |
Referenced by back(), begin(), clear(), draw_shape(), empty(), end(), erase(), front(), insert(), max_size(), Path(), pop_back(), pop_front(), push_back(), push_front(), rbegin(), remove(), rend(), reverse(), set(), size(), and svg().
1.6.1