papyrus logo

Papyrus::Boxed Class Reference

#include <boxed.h>

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

List of all members.

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

Detailed Description

Author:
Rick L Vinyard Jr

Constructor & Destructor Documentation

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]
Papyrus::Boxed::~Boxed (  )  [virtual]

Member Function Documentation

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]
void Papyrus::Boxed::on_child_added ( Drawable::pointer  added  )  [protected]
void Papyrus::Boxed::on_child_changed ( Drawable::pointer  changed  )  [protected, virtual]
void Papyrus::Boxed::on_child_removed ( Drawable::pointer  removed  )  [protected]
void Papyrus::Boxed::on_cleared (  )  [protected]
void Papyrus::Boxed::on_watched_event ( Drawable::pointer  watched  )  [protected]
Papyrus::Boxed::PAPYRUS_DRAWABLE ( Boxed   ) 

Reimplemented in Papyrus::Handlebox.

void Papyrus::Boxed::set_box_position ( OverUnder  ou  ) 

Member Data Documentation

const int Papyrus::Boxed::DEFAULT_LEVEL = INT_MIN [static]

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

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