#include <deltille.h>
Public Member Functions | |
PAPYRUS_DRAWABLE (Deltille) | |
virtual | ~Deltille () |
virtual void | draw (Context &cairo) const |
Static Public Member Functions | |
static pointer | create (unsigned rows=0, unsigned columns=0, double side_length=1.0) |
static pointer | create (const Glib::ustring &id, unsigned rows, unsigned columns, double side_length) |
Protected Member Functions | |
Deltille (const Glib::ustring &id, unsigned rows, unsigned columns, double side_length) | |
void | draw_path (Context &cairo, unsigned col, unsigned row, double side, double half_side, double height) const |
virtual void | update_centroid_x () |
virtual void | update_centroid_y () |
virtual void | update_centroid () |
Papyrus::Deltille::Deltille | ( | const Glib::ustring & | id, | |
unsigned | rows, | |||
unsigned | columns, | |||
double | side_length | |||
) | [protected] |
References Papyrus::Tiling::m_columns, Papyrus::Tiling::m_rows, Papyrus::Tiling::m_side_length, and Papyrus::Drawable::set_centroid().
Referenced by create().
Papyrus::Deltille::~Deltille | ( | ) | [virtual] |
Deltille::pointer Papyrus::Deltille::create | ( | const Glib::ustring & | id, | |
unsigned | rows, | |||
unsigned | columns, | |||
double | side_length | |||
) | [static] |
References Deltille(), and PAPYRUS_CREATE.
Deltille::pointer Papyrus::Deltille::create | ( | unsigned | rows = 0 , |
|
unsigned | columns = 0 , |
|||
double | side_length = 1.0 | |||
) | [static] |
References Deltille(), and PAPYRUS_CREATE.
void Papyrus::Deltille::draw | ( | Context & | cairo | ) | const [virtual] |
Implements Papyrus::Drawable.
References draw_path(), Papyrus::Context::fill(), height, Papyrus::Tiling::m_columns, Papyrus::Tiling::m_default_fill, m_FILL, Papyrus::Drawable::m_parent, Papyrus::Tiling::m_rows, Papyrus::Tiling::m_side_length, Papyrus::Tiling::m_stroke, Papyrus::Drawable::render(), Papyrus::Context::stroke(), and Papyrus::Tiling::stroke().
void Papyrus::Deltille::draw_path | ( | Context & | cairo, | |
unsigned | col, | |||
unsigned | row, | |||
double | side, | |||
double | half_side, | |||
double | height | |||
) | const [protected] |
Referenced by draw().
Papyrus::Deltille::PAPYRUS_DRAWABLE | ( | Deltille | ) |
void Papyrus::Deltille::update_centroid | ( | ) | [protected, virtual] |
Implements Papyrus::Tiling.
References Papyrus::Tiling::m_columns, Papyrus::Tiling::m_rows, Papyrus::Tiling::m_side_length, and Papyrus::Drawable::set_centroid().
void Papyrus::Deltille::update_centroid_x | ( | ) | [protected, virtual] |
Implements Papyrus::Tiling.
References Papyrus::Tiling::m_rows, Papyrus::Tiling::m_side_length, and Papyrus::Drawable::set_centroid_x().
void Papyrus::Deltille::update_centroid_y | ( | ) | [protected, virtual] |
Implements Papyrus::Tiling.
References Papyrus::Tiling::m_columns, Papyrus::Tiling::m_side_length, and Papyrus::Drawable::set_centroid_y().