papyrus logo

Papyrus::DrawableContainer Class Reference

Provides a common base for all containers of drawables. More...

#include <drawablecontainer.h>

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

List of all members.

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

Detailed Description

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.

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

Constructor & Destructor Documentation

Papyrus::DrawableContainer::DrawableContainer (  )  [inline]
virtual Papyrus::DrawableContainer::~DrawableContainer (  )  [inline, virtual]

Member Function Documentation

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]
sigc::signal<void, Drawable::pointer> Papyrus::DrawableContainer::signal_drawable_removed (  )  [inline]
virtual size_t Papyrus::DrawableContainer::size (  )  const [pure virtual]

Implemented in Papyrus::DrawableSet.


Member Data Documentation

sigc::signal<void> Papyrus::DrawableContainer::m_signal_cleared [protected]

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

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