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
typedef PapyrusPointer< Facepointer

Public Member Functions

virtual ~Face ()
virtual void draw (Cairo::RefPtr< Cairo::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)
 PAPYRUS_CLASS_NAME ("Face")
 PAPYRUS_CLONE_METHOD (Face)

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

typedef PapyrusPointer<Face> Papyrus::Face::pointer

Reimplemented from Papyrus::Drawable.


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.

Referenced by Papyrus::example_factory().

void Papyrus::Face::draw ( Cairo::RefPtr< Cairo::Context >  cairo  )  const [virtual]

Papyrus::Face::PAPYRUS_CLASS_NAME ( "Face"   ) 

Papyrus::Face::PAPYRUS_CLONE_METHOD ( 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 Wed Mar 18 12:34:59 2009 for papyrus by doxygen 1.5.7.1