Why is there a Face primitive in this library? For testing of course; like the teapot in OpenGL. More...
#include <face.h>
Public Types | |
enum | TYPE { SMILEY } |
typedef enum Papyrus::Face::TYPE | TYPE |
Public Member Functions | |
PAPYRUS_DRAWABLE (Face) | |
virtual | ~Face () |
virtual void | draw (Context &cairo) const |
TYPE | type () |
void | set_type (TYPE type) |
double | size () |
void | set_size (double size) |
void | set_size_type (double size, TYPE type) |
Static Public Member Functions | |
static pointer | create (double size=20.0, TYPE type=SMILEY) |
static pointer | create (const Glib::ustring &id, double size=20.0, TYPE type=SMILEY) |
Protected Member Functions | |
Face (const Glib::ustring &id, double size=20.0, TYPE type=SMILEY) | |
Protected Attributes | |
TYPE | m_type |
double | m_size |
Why is there a Face primitive in this library? For testing of course; like the teapot in OpenGL.
typedef enum Papyrus::Face::TYPE Papyrus::Face::TYPE |
enum Papyrus::Face::TYPE |
Papyrus::Face::Face | ( | const Glib::ustring & | id, | |
double | size = 20.0 , |
|||
TYPE | type = SMILEY | |||
) | [protected] |
Papyrus::Face::~Face | ( | ) | [virtual] |
Face::pointer Papyrus::Face::create | ( | const Glib::ustring & | id, | |
double | size = 20.0 , |
|||
TYPE | type = SMILEY | |||
) | [static] |
References PAPYRUS_CREATE.
Face::pointer Papyrus::Face::create | ( | double | size = 20.0 , |
|
TYPE | type = SMILEY | |||
) | [static] |
References PAPYRUS_CREATE.
void Papyrus::Face::draw | ( | Context & | cairo | ) | const [virtual] |
Implements Papyrus::Drawable.
References Papyrus::Context::fill(), m_size, and Papyrus::Context::stroke().
Papyrus::Face::PAPYRUS_DRAWABLE | ( | Face | ) |
void Papyrus::Face::set_size | ( | double | size | ) |
References Papyrus::Drawable::invalidate_extents(), m_size, and Papyrus::Drawable::redraw().
void Papyrus::Face::set_size_type | ( | double | size, | |
TYPE | type | |||
) |
References Papyrus::Drawable::invalidate_extents(), m_size, m_type, and Papyrus::Drawable::redraw().
void Papyrus::Face::set_type | ( | TYPE | type | ) |
References m_type, and Papyrus::Drawable::redraw().
double Papyrus::Face::size | ( | ) |
References m_size.
Face::TYPE Papyrus::Face::type | ( | ) |
References m_type.
double Papyrus::Face::m_size [protected] |
Referenced by draw(), set_size(), set_size_type(), and size().
TYPE Papyrus::Face::m_type [protected] |
Referenced by set_size_type(), set_type(), and type().