#include <flasher.h>
Public Types | |
typedef std::set < Drawable::pointer > | Drawables |
Class level typedef to container for items to transform. | |
typedef PapyrusPointer< Flasher > | pointer |
Class level smart pointer typedef. | |
Public Member Functions | |
virtual | ~Flasher () |
void | add (Drawable::pointer d) |
void | remove (Drawable::pointer d) |
const Drawables & | drawables () |
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 |
typedef std::set<Drawable::pointer> Papyrus::Flasher::Drawables |
Class level typedef to container for items to transform.
typedef PapyrusPointer<Flasher> Papyrus::Flasher::pointer |
Class level smart pointer typedef.
Reimplemented from Papyrus::Animator.
Papyrus::Flasher::Flasher | ( | const Glib::ustring & | id, | |
unsigned int | interval_ms | |||
) | [protected] |
References Papyrus::Animator::set_interval().
Papyrus::Flasher::~Flasher | ( | ) | [virtual] |
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.
Drawables Papyrus::Flasher::m_drawables [protected] |
Referenced by add(), animate(), drawables(), and remove().
bool Papyrus::Flasher::m_last_state [protected] |
Referenced by animate().