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