#include <boxed.h>
Public Member Functions | |
PAPYRUS_DRAWABLE (Boxed) | |
virtual | ~Boxed () |
Rectangle::pointer | box () |
OverUnder | box_position () const |
void | set_box_position (OverUnder ou) |
virtual void | draw (Context &cairo) const |
Static Public Member Functions | |
static pointer | create (const Glib::ustring &id=Glib::ustring(), Fill::pointer fill=Fill::create(RGBA(1.0, 0.85, 1.0, 0.9)), Stroke::pointer stroke=Stroke::create(RGBA(1.0, 0.0, 1.0, 0.9))) |
Static Public Attributes | |
static const int | DEFAULT_LEVEL = INT_MIN |
Protected Member Functions | |
Boxed (const Glib::ustring &id, Fill::pointer fill=Fill::create(RGBA(1.0, 0.85, 1.0, 0.9)), Stroke::pointer stroke=Stroke::create(RGBA(1.0, 0.0, 1.0, 0.9))) | |
void | on_child_added (Drawable::pointer added) |
void | on_child_removed (Drawable::pointer removed) |
void | on_cleared () |
virtual void | on_child_changed (Drawable::pointer changed) |
virtual Region | calculate_extents (const Matrix &m=Matrix::Identity, ExtentsPerformance ep=EXTENTS_QUICK) const |
Reimplemented to calculate the group's size and set the box. | |
void | on_watched_event (Drawable::pointer watched) |
Protected Attributes | |
Rectangle::pointer | m_box |
OverUnder | m_box_position |
Papyrus::Boxed::Boxed | ( | const Glib::ustring & | id, | |
Fill::pointer | fill = Fill::create( RGBA(1.0, 0.85, 1.0, 0.9)) , |
|||
Stroke::pointer | stroke = Stroke::create( RGBA(1.0, 0.0, 1.0, 0.9) ) | |||
) | [protected] |
References create(), m_box, Papyrus::DrawableSingleContainer::m_signal_added, Papyrus::DrawableSingleContainer::m_signal_cleared, Papyrus::DrawableSingleContainer::m_signal_removed, Papyrus::DrawableWatcher::m_signal_watch_added, Papyrus::DrawableWatcher::m_signal_watch_removed, Papyrus::DrawableWatcher::m_signal_watched_changed, on_child_added(), on_child_removed(), on_cleared(), and on_watched_event().
Papyrus::Boxed::~Boxed | ( | ) | [virtual] |
Rectangle::pointer Papyrus::Boxed::box | ( | ) |
References m_box.
OverUnder Papyrus::Boxed::box_position | ( | ) | const |
References m_box_position.
Region Papyrus::Boxed::calculate_extents | ( | const Matrix & | m = Matrix::Identity , |
|
ExtentsPerformance | ep = EXTENTS_QUICK | |||
) | const [protected, virtual] |
Reimplemented to calculate the group's size and set the box.
Then returns the extents of the box.
Reimplemented from Papyrus::Drawable.
Reimplemented in Papyrus::Handlebox.
References Papyrus::Drawable::composed_matrix(), Papyrus::Region::include(), m_box, Papyrus::DrawableSingleContainer::m_child, and Papyrus::DrawableWatcher::m_watched.
Boxed::pointer Papyrus::Boxed::create | ( | const Glib::ustring & | id = Glib::ustring() , |
|
Fill::pointer | fill = Fill::create( RGBA(1.0, 0.85, 1.0, 0.9) ) , |
|||
Stroke::pointer | stroke = Stroke::create( RGBA(1.0, 0.0, 1.0, 0.9) ) | |||
) | [static] |
Referenced by Boxed().
void Papyrus::Boxed::draw | ( | Context & | cairo | ) | const [virtual] |
Implements Papyrus::Drawable.
References m_box, m_box_position, Papyrus::DrawableSingleContainer::m_child, Papyrus::OVER, and Papyrus::UNDER.
void Papyrus::Boxed::on_child_added | ( | Drawable::pointer | added | ) | [protected] |
Reimplemented in Papyrus::Handlebox.
References Papyrus::Drawable::invalidate_extents(), and Papyrus::Drawable::redraw().
Referenced by Boxed().
void Papyrus::Boxed::on_child_changed | ( | Drawable::pointer | changed | ) | [protected, virtual] |
Reimplemented from Papyrus::DrawableSingleContainer.
References Papyrus::Drawable::invalidate_extents(), and Papyrus::Drawable::redraw().
void Papyrus::Boxed::on_child_removed | ( | Drawable::pointer | removed | ) | [protected] |
Reimplemented in Papyrus::Handlebox.
References Papyrus::Drawable::invalidate_extents(), and Papyrus::Drawable::redraw().
Referenced by Boxed().
void Papyrus::Boxed::on_cleared | ( | ) | [protected] |
References Papyrus::Drawable::invalidate_extents(), and Papyrus::Drawable::redraw().
Referenced by Boxed().
void Papyrus::Boxed::on_watched_event | ( | Drawable::pointer | watched | ) | [protected] |
References Papyrus::Drawable::invalidate_extents(), and Papyrus::Drawable::redraw().
Referenced by Boxed().
Papyrus::Boxed::PAPYRUS_DRAWABLE | ( | Boxed | ) |
Reimplemented in Papyrus::Handlebox.
void Papyrus::Boxed::set_box_position | ( | OverUnder | ou | ) |
References m_box_position, and Papyrus::Drawable::redraw().
const int Papyrus::Boxed::DEFAULT_LEVEL = INT_MIN [static] |
Rectangle::pointer Papyrus::Boxed::m_box [protected] |
Referenced by box(), Boxed(), calculate_extents(), draw(), Papyrus::Handlebox::on_child_added(), and Papyrus::Handlebox::on_child_removed().
OverUnder Papyrus::Boxed::m_box_position [protected] |
Referenced by box_position(), draw(), and set_box_position().