This is an interface for an object that contains a single drawable. More...
#include <drawablesinglecontainer.h>
Public Member Functions | |
DrawableSingleContainer () | |
virtual | ~DrawableSingleContainer () |
virtual Drawable::pointer | child () |
virtual void | add (Drawable::pointer new_child=Drawable::pointer()) |
virtual void | clear () |
virtual bool | has (Drawable::pointer drawable) const |
virtual size_t | size () const |
virtual bool | empty () const |
sigc::signal< void, Drawable::pointer > | signal_added () |
sigc::signal< void, Drawable::pointer > | signal_removed () |
sigc::signal< void > | signal_cleared () |
Protected Member Functions | |
virtual void | on_child_changed (Drawable::pointer) |
Protected Attributes | |
Drawable::pointer | m_child |
sigc::signal< void, Drawable::pointer > | m_signal_added |
sigc::signal< void, Drawable::pointer > | m_signal_removed |
sigc::signal< void > | m_signal_cleared |
sigc::connection | m_child_changed_conn |
Private Member Functions | |
void | on_child_changed_proxy (Drawable::weak_pointer) |
This is an interface for an object that contains a single drawable.
Papyrus::DrawableSingleContainer::DrawableSingleContainer | ( | ) |
Papyrus::DrawableSingleContainer::~DrawableSingleContainer | ( | ) | [virtual] |
void Papyrus::DrawableSingleContainer::add | ( | Drawable::pointer | new_child = Drawable::pointer() |
) | [virtual] |
References m_child, m_child_changed_conn, m_signal_added, m_signal_removed, and on_child_changed_proxy().
Drawable::pointer Papyrus::DrawableSingleContainer::child | ( | ) | [virtual] |
References m_child.
void Papyrus::DrawableSingleContainer::clear | ( | ) | [virtual] |
References m_child, m_child_changed_conn, m_signal_cleared, and m_signal_removed.
bool Papyrus::DrawableSingleContainer::empty | ( | ) | const [virtual] |
References m_child.
bool Papyrus::DrawableSingleContainer::has | ( | Drawable::pointer | drawable | ) | const [virtual] |
References m_child.
void Papyrus::DrawableSingleContainer::on_child_changed | ( | Drawable::pointer | changed | ) | [protected, virtual] |
Reimplemented in Papyrus::Boxed.
Referenced by on_child_changed_proxy().
void Papyrus::DrawableSingleContainer::on_child_changed_proxy | ( | Drawable::weak_pointer | weak_changed | ) | [private] |
References on_child_changed().
Referenced by add().
sigc::signal< void, Drawable::pointer > Papyrus::DrawableSingleContainer::signal_added | ( | ) |
References m_signal_added.
sigc::signal< void > Papyrus::DrawableSingleContainer::signal_cleared | ( | ) |
References m_signal_cleared.
sigc::signal< void, Drawable::pointer > Papyrus::DrawableSingleContainer::signal_removed | ( | ) |
References m_signal_removed.
size_t Papyrus::DrawableSingleContainer::size | ( | ) | const [virtual] |
References m_child.
Referenced by Papyrus::Handlebox::activate_handle(), Papyrus::Handlebox::on_child_added(), and Papyrus::Handlebox::on_child_removed().
Referenced by add(), Papyrus::Boxed::calculate_extents(), child(), clear(), Papyrus::Boxed::draw(), empty(), has(), and size().
sigc::connection Papyrus::DrawableSingleContainer::m_child_changed_conn [protected] |
sigc::signal<void, Drawable::pointer> Papyrus::DrawableSingleContainer::m_signal_added [protected] |
Referenced by add(), Papyrus::Boxed::Boxed(), and signal_added().
sigc::signal<void> Papyrus::DrawableSingleContainer::m_signal_cleared [protected] |
Referenced by Papyrus::Boxed::Boxed(), clear(), and signal_cleared().
sigc::signal<void, Drawable::pointer> Papyrus::DrawableSingleContainer::m_signal_removed [protected] |
Referenced by add(), Papyrus::Boxed::Boxed(), clear(), and signal_removed().