Provides a common base for all containers of drawables. More...
#include <drawablecontainer.h>
Public Member Functions | |
DrawableContainer () | |
virtual | ~DrawableContainer () |
virtual void | add (Drawable::pointer drawable)=0 |
Use the same syntax as groups. | |
virtual void | remove (Drawable::pointer drawable)=0 |
virtual void | clear ()=0 |
virtual bool | has (Drawable::pointer drawable) const =0 |
virtual size_t | size () const =0 |
virtual bool | empty () const =0 |
sigc::signal< void, Drawable::pointer > | signal_drawable_added () |
sigc::signal< void, Drawable::pointer > | signal_drawable_removed () |
sigc::signal< void > | signal_cleared () |
Protected Attributes | |
sigc::signal< void, Drawable::pointer > | m_signal_drawable_added |
sigc::signal< void, Drawable::pointer > | m_signal_drawable_removed |
sigc::signal< void > | m_signal_cleared |
Provides a common base for all containers of drawables.
For now the only child of this class is DrawableSet. If that doesn't change the signals will probably be moved into DrawableSet and this class will go away.
Papyrus::DrawableContainer::DrawableContainer | ( | ) | [inline] |
virtual Papyrus::DrawableContainer::~DrawableContainer | ( | ) | [inline, virtual] |
virtual void Papyrus::DrawableContainer::add | ( | Drawable::pointer | drawable | ) | [pure virtual] |
Use the same syntax as groups.
Implemented in Papyrus::DrawableSet.
virtual void Papyrus::DrawableContainer::clear | ( | ) | [pure virtual] |
Implemented in Papyrus::DrawableSet.
virtual bool Papyrus::DrawableContainer::empty | ( | ) | const [pure virtual] |
Implemented in Papyrus::DrawableSet.
virtual bool Papyrus::DrawableContainer::has | ( | Drawable::pointer | drawable | ) | const [pure virtual] |
Implemented in Papyrus::DrawableSet.
virtual void Papyrus::DrawableContainer::remove | ( | Drawable::pointer | drawable | ) | [pure virtual] |
Implemented in Papyrus::DrawableSet.
sigc::signal<void> Papyrus::DrawableContainer::signal_cleared | ( | ) | [inline] |
References m_signal_cleared.
sigc::signal<void, Drawable::pointer> Papyrus::DrawableContainer::signal_drawable_added | ( | ) | [inline] |
References m_signal_drawable_added.
sigc::signal<void, Drawable::pointer> Papyrus::DrawableContainer::signal_drawable_removed | ( | ) | [inline] |
References m_signal_drawable_removed.
virtual size_t Papyrus::DrawableContainer::size | ( | ) | const [pure virtual] |
Implemented in Papyrus::DrawableSet.
sigc::signal<void> Papyrus::DrawableContainer::m_signal_cleared [protected] |
sigc::signal<void, Drawable::pointer> Papyrus::DrawableContainer::m_signal_drawable_added [protected] |
sigc::signal<void, Drawable::pointer> Papyrus::DrawableContainer::m_signal_drawable_removed [protected] |