#include <quadrille.h>
Public Member Functions | |
PAPYRUS_DRAWABLE (Quadrille) | |
virtual | ~Quadrille () |
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 | |
Quadrille (const Glib::ustring &id, unsigned rows, unsigned columns, double side_length) | |
virtual void | update_centroid_x () |
virtual void | update_centroid_y () |
virtual void | update_centroid () |
Papyrus::Quadrille::Quadrille | ( | 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::Quadrille::~Quadrille | ( | ) | [virtual] |
Quadrille::pointer Papyrus::Quadrille::create | ( | const Glib::ustring & | id, | |
unsigned | rows, | |||
unsigned | columns, | |||
double | side_length | |||
) | [static] |
References PAPYRUS_CREATE, and Quadrille().
Quadrille::pointer Papyrus::Quadrille::create | ( | unsigned | rows = 0 , |
|
unsigned | columns = 0 , |
|||
double | side_length = 1.0 | |||
) | [static] |
References PAPYRUS_CREATE, and Quadrille().
void Papyrus::Quadrille::draw | ( | Context & | cairo | ) | const [virtual] |
Implements Papyrus::Drawable.
References Papyrus::Context::fill(), 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().
Papyrus::Quadrille::PAPYRUS_DRAWABLE | ( | Quadrille | ) |
void Papyrus::Quadrille::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::Quadrille::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::Quadrille::update_centroid_y | ( | ) | [protected, virtual] |
Implements Papyrus::Tiling.
References Papyrus::Tiling::m_columns, Papyrus::Tiling::m_side_length, and Papyrus::Drawable::set_centroid_y().