papyrus logo

Papyrus::Face Class Reference

Why is there a Face primitive in this library? For testing of course; like the teapot in OpenGL. More...

#include <face.h>

Inheritance diagram for Papyrus::Face:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Why is there a Face primitive in this library? For testing of course; like the teapot in OpenGL.

Author:
Rick L Vinyard Jr <rvinyard@cs.nmsu.edu>

Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
SMILEY 

Constructor & Destructor Documentation

Papyrus::Face::Face ( const Glib::ustring &  id,
double  size = 20.0,
TYPE  type = SMILEY 
) [protected]
Papyrus::Face::~Face (  )  [virtual]

Member Function Documentation

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]
Papyrus::Face::PAPYRUS_DRAWABLE ( Face   ) 
void Papyrus::Face::set_size ( double  size  ) 
void Papyrus::Face::set_size_type ( double  size,
TYPE  type 
)
void Papyrus::Face::set_type ( TYPE  type  ) 
double Papyrus::Face::size (  ) 

References m_size.

Face::TYPE Papyrus::Face::type (  ) 

References m_type.


Member Data Documentation

double Papyrus::Face::m_size [protected]

Referenced by draw(), set_size(), set_size_type(), and size().

Referenced by set_size_type(), set_type(), and type().


The documentation for this class was generated from the following files:

Generated on Fri Apr 16 12:41:10 2010 for papyrus by doxygen 1.6.1