papyrus logo

Papyrus::Boxed Class Reference

#include <boxed.h>

Inheritance diagram for Papyrus::Boxed:

Inheritance graph
[legend]

List of all members.

Public Types

typedef PapyrusPointer< Boxedpointer

Public Member Functions

virtual ~Boxed ()
Rectangle::pointer box ()
OverUnder box_position () const
void set_box_position (OverUnder ou)
virtual void draw (Cairo::RefPtr< Cairo::Context > cairo) const
 PAPYRUS_CLASS_NAME ("Boxed")
 PAPYRUS_CLONE_METHOD (Boxed)

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

Member Typedef Documentation

typedef PapyrusPointer<Boxed> Papyrus::Boxed::pointer

Reimplemented from Papyrus::Drawable.

Reimplemented in Papyrus::Handlebox.


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(), and Papyrus::example_boxed().

void Papyrus::Boxed::draw ( Cairo::RefPtr< Cairo::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_CLASS_NAME ( "Boxed"   ) 

Papyrus::Boxed::PAPYRUS_CLONE_METHOD ( Boxed   ) 

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 Wed Mar 18 12:34:56 2009 for papyrus by doxygen 1.5.7.1