#include <path_element.h>
Public Member Functions | |
PAPYRUS_RENDERABLE (PathElement) | |
~PathElement () | |
PathElementType | type () |
void | set_type (PathElementType type) |
double | x () |
double | y () |
void | set_x (double x) |
void | set_y (double y) |
void | set_xy (double x, double y) |
double | x1 () |
double | y1 () |
void | set_x1 (double x1) |
void | set_y1 (double y1) |
void | set_x1y1 (double x1, double y1) |
double | x2 () |
double | y2 () |
void | set_x2 (double x2) |
void | set_y2 (double y2) |
void | set_x2y2 (double x2, double y2) |
void | set_xyx1y1x2y2 (double x, double y, double x1, double y1, double x2, double y2) |
virtual void | render (Context &cairo) const |
virtual void | render (Context &cairo, pointer previous) const |
virtual Glib::ustring | svg (unsigned depth=0) |
Static Public Member Functions | |
static pointer | create (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) |
static pointer | create (const Glib::ustring &id, 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) |
Protected Member Functions | |
PathElement (const Glib::ustring &id, PathElementType type, double x, double y, double x1, double y1, double x2, double y2) | |
Protected Attributes | |
PathElementType | m_type |
weak_pointer | m_self |
double | m_x |
double | m_y |
double | m_x1 |
double | m_y1 |
double | m_x2 |
double | m_y2 |
Papyrus::PathElement::PathElement | ( | const Glib::ustring & | id, | |
PathElementType | type, | |||
double | x, | |||
double | y, | |||
double | x1, | |||
double | y1, | |||
double | x2, | |||
double | y2 | |||
) | [protected] |
Papyrus::PathElement::~PathElement | ( | ) |
PathElement::pointer Papyrus::PathElement::create | ( | const Glib::ustring & | id, | |
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 | |||
) | [static] |
References PAPYRUS_CREATE.
PathElement::pointer Papyrus::PathElement::create | ( | 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 | |||
) | [static] |
References PAPYRUS_CREATE.
Referenced by Papyrus::Path::insert(), Papyrus::Path::push_back(), Papyrus::Path::push_front(), and yyparse().
Papyrus::PathElement::PAPYRUS_RENDERABLE | ( | PathElement | ) |
References m_type, m_x, m_x1, m_x2, m_y, m_y1, m_y2, Papyrus::PATH_CLOSE, Papyrus::PATH_CURVETO, Papyrus::PATH_ELIPTICAL_ARC, Papyrus::PATH_HORIZONTAL_LINETO, Papyrus::PATH_LINETO, Papyrus::PATH_MOVETO, Papyrus::PATH_QUADRATIC_BEZIER_CURVETO, Papyrus::PATH_REL_CURVETO, Papyrus::PATH_REL_ELIPTICAL_ARC, Papyrus::PATH_REL_HORIZONTAL_LINETO, Papyrus::PATH_REL_LINETO, Papyrus::PATH_REL_MOVETO, Papyrus::PATH_REL_QUADRATIC_BEZIER_CURVETO, Papyrus::PATH_REL_SMOOTH_CURVETO, Papyrus::PATH_REL_SMOOTH_QUADRATIC_BEZIER_CURVETO, Papyrus::PATH_REL_VERTICAL_LINETO, Papyrus::PATH_SMOOTH_CURVETO, Papyrus::PATH_SMOOTH_QUADRATIC_BEZIER_CURVETO, Papyrus::PATH_UNDEFINED, and Papyrus::PATH_VERTICAL_LINETO.
void Papyrus::PathElement::render | ( | Context & | cairo | ) | const [virtual] |
Implements Papyrus::Renderable.
void Papyrus::PathElement::set_type | ( | PathElementType | type | ) |
References Papyrus::Object::m_signal_changed, and m_type.
void Papyrus::PathElement::set_x | ( | double | x | ) |
References m_x, and Papyrus::Object::signal_changed().
void Papyrus::PathElement::set_x1 | ( | double | x1 | ) |
References m_x1, and Papyrus::Object::signal_changed().
void Papyrus::PathElement::set_x1y1 | ( | double | x1, | |
double | y1 | |||
) |
References m_x1, m_y1, and Papyrus::Object::signal_changed().
void Papyrus::PathElement::set_x2 | ( | double | x2 | ) |
References m_x2, and Papyrus::Object::signal_changed().
void Papyrus::PathElement::set_x2y2 | ( | double | x2, | |
double | y2 | |||
) |
References m_x2, m_y2, and Papyrus::Object::signal_changed().
void Papyrus::PathElement::set_xy | ( | double | x, | |
double | y | |||
) |
References m_x, m_y, and Papyrus::Object::signal_changed().
void Papyrus::PathElement::set_xyx1y1x2y2 | ( | double | x, | |
double | y, | |||
double | x1, | |||
double | y1, | |||
double | x2, | |||
double | y2 | |||
) |
void Papyrus::PathElement::set_y | ( | double | y | ) |
References m_y, and Papyrus::Object::signal_changed().
void Papyrus::PathElement::set_y1 | ( | double | y1 | ) |
References m_y1, and Papyrus::Object::signal_changed().
void Papyrus::PathElement::set_y2 | ( | double | y2 | ) |
References m_y2, and Papyrus::Object::signal_changed().
Glib::ustring Papyrus::PathElement::svg | ( | unsigned | depth = 0 |
) | [virtual] |
Reimplemented from Papyrus::Renderable.
References m_type, m_x, m_x1, m_x2, m_y, m_y1, m_y2, Papyrus::PATH_CLOSE, Papyrus::PATH_CURVETO, Papyrus::PATH_ELIPTICAL_ARC, Papyrus::PATH_HORIZONTAL_LINETO, Papyrus::PATH_LINETO, Papyrus::PATH_MOVETO, Papyrus::PATH_QUADRATIC_BEZIER_CURVETO, Papyrus::PATH_REL_CURVETO, Papyrus::PATH_REL_ELIPTICAL_ARC, Papyrus::PATH_REL_HORIZONTAL_LINETO, Papyrus::PATH_REL_LINETO, Papyrus::PATH_REL_MOVETO, Papyrus::PATH_REL_QUADRATIC_BEZIER_CURVETO, Papyrus::PATH_REL_SMOOTH_CURVETO, Papyrus::PATH_REL_SMOOTH_QUADRATIC_BEZIER_CURVETO, Papyrus::PATH_REL_VERTICAL_LINETO, Papyrus::PATH_SMOOTH_CURVETO, Papyrus::PATH_SMOOTH_QUADRATIC_BEZIER_CURVETO, Papyrus::PATH_UNDEFINED, Papyrus::PATH_VERTICAL_LINETO, and Papyrus::Renderable::svg_spacing().
PathElementType Papyrus::PathElement::type | ( | ) |
References m_type.
double Papyrus::PathElement::x | ( | ) |
References m_x.
double Papyrus::PathElement::x1 | ( | ) |
References m_x1.
double Papyrus::PathElement::x2 | ( | ) |
References m_x2.
double Papyrus::PathElement::y | ( | ) |
References m_y.
double Papyrus::PathElement::y1 | ( | ) |
References m_y1.
double Papyrus::PathElement::y2 | ( | ) |
References m_y2.
weak_pointer Papyrus::PathElement::m_self [protected] |
PathElementType Papyrus::PathElement::m_type [protected] |
Referenced by render(), set_type(), svg(), and type().
double Papyrus::PathElement::m_x [protected] |
double Papyrus::PathElement::m_x1 [mutable, protected] |
Referenced by render(), set_x1(), set_x1y1(), set_xyx1y1x2y2(), svg(), and x1().
double Papyrus::PathElement::m_x2 [mutable, protected] |
Referenced by render(), set_x2(), set_x2y2(), set_xyx1y1x2y2(), svg(), and x2().
double Papyrus::PathElement::m_y [protected] |
double Papyrus::PathElement::m_y1 [mutable, protected] |
Referenced by render(), set_x1y1(), set_xyx1y1x2y2(), set_y1(), svg(), and y1().
double Papyrus::PathElement::m_y2 [mutable, protected] |
Referenced by render(), set_x2y2(), set_xyx1y1x2y2(), set_y2(), svg(), and y2().