papyrus logo

Papyrus::Flasher Class Reference

#include <flasher.h>

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

List of all members.

Public Types

typedef std::set
< Drawable::pointer
Drawables
 Class level typedef to container for items to transform.
typedef PapyrusPointer< Flasherpointer
 Class level smart pointer typedef.

Public Member Functions

virtual ~Flasher ()
void add (Drawable::pointer d)
void remove (Drawable::pointer d)
const Drawablesdrawables ()

Static Public Member Functions

static pointer create (const Glib::ustring &id=Glib::ustring(), unsigned int interval_ms=1000)
static pointer create (unsigned int interval_ms)

Protected Member Functions

 Flasher (const Glib::ustring &id, unsigned int interval_ms)
virtual int animate (int n=1)

Protected Attributes

Drawables m_drawables
bool m_last_state

Detailed Description

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

Member Typedef Documentation

Class level typedef to container for items to transform.

typedef PapyrusPointer<Flasher> Papyrus::Flasher::pointer

Class level smart pointer typedef.

Reimplemented from Papyrus::Animator.


Constructor & Destructor Documentation

Papyrus::Flasher::Flasher ( const Glib::ustring &  id,
unsigned int  interval_ms 
) [protected]
Papyrus::Flasher::~Flasher (  )  [virtual]

Member Function Documentation

void Papyrus::Flasher::add ( Drawable::pointer  d  ) 

References m_drawables.

int Papyrus::Flasher::animate ( int  n = 1  )  [protected, virtual]

Implements Papyrus::Animator.

References m_drawables, and m_last_state.

Flasher::pointer Papyrus::Flasher::create ( unsigned int  interval_ms  )  [static]
Flasher::pointer Papyrus::Flasher::create ( const Glib::ustring &  id = Glib::ustring(),
unsigned int  interval_ms = 1000 
) [static]
const Flasher::Drawables & Papyrus::Flasher::drawables (  ) 

References m_drawables.

void Papyrus::Flasher::remove ( Drawable::pointer  d  ) 

References m_drawables.


Member Data Documentation

Referenced by add(), animate(), drawables(), and remove().

Referenced by animate().


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

Generated on Thu May 27 16:37:20 2010 for papyrus by doxygen 1.6.1