drawable Class Reference

#include <drawable.h>

Inheritance diagram for drawable:

Inheritance graph
[legend]
Collaboration diagram for drawable:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 drawable (const c_point &origin, const color &foreground=colors::WHITE)
virtual ~drawable ()
c_point origin () const
virtual void set_origin (const c_point &new_origin)
virtual void draw ()=0
virtual void erase ()=0
virtual c_rectangle dimensions () const=0
bool visible () const
color foreground () const
virtual void foreground (const color &new_foreground)
unsigned int layer () const
void layer (unsigned int new_layer)

Protected Member Functions

void set_visible ()
void set_invisible ()

Protected Attributes

color _foreground

Detailed Description

Definition at line 28 of file drawable.h.


Constructor & Destructor Documentation

drawable::drawable ( const c_point &  origin,
const color foreground = colors::WHITE 
)

Definition at line 24 of file drawable.cpp.

drawable::~drawable (  )  [virtual]

Definition at line 30 of file drawable.cpp.


Member Function Documentation

c_point drawable::origin (  )  const

Definition at line 32 of file drawable.cpp.

Referenced by picture::add(), text::dimensions(), bitmap::dimensions(), text::draw(), text::erase(), house::set_origin(), worker::set_origin(), visible_line::set_origin(), and box::set_origin().

void drawable::set_origin ( const c_point &  new_origin  )  [virtual]

Reimplemented in box, paintable, picture, visible_line, and worker.

Definition at line 34 of file drawable.cpp.

Referenced by picture::add(), visible_line::base(), text::goto_xy(), worker::set_origin(), visible_line::set_origin(), picture::set_origin(), paintable::set_origin(), and box::set_origin().

virtual void drawable::draw (  )  [pure virtual]

Implemented in list_box, menu, message_box, bitmap, manager, paintable, picture, text, and worker.

virtual void drawable::erase (  )  [pure virtual]

Implemented in bitmap, manager, paintable, picture, text, and worker.

virtual c_rectangle drawable::dimensions (  )  const [pure virtual]

Implements dimensionable.

Implemented in box, dot, manager, oval, paintable, picture, ring, visible_line, and worker.

Referenced by picture::dimensions().

bool drawable::visible (  )  const

Definition at line 36 of file drawable.cpp.

Referenced by worker::draw(), paintable::draw(), manager::draw(), message_box::draw(), worker::erase(), paintable::erase(), manager::erase(), visible_line::set_origin(), picture::set_origin(), paintable::set_origin(), and box::set_origin().

color drawable::foreground (  )  const

Reimplemented in manager, paintable, and worker.

Definition at line 42 of file drawable.cpp.

References _foreground.

Referenced by worker::foreground(), paintable::foreground(), and manager::foreground().

void drawable::foreground ( const color new_foreground  )  [virtual]

Reimplemented in manager, paintable, and worker.

Definition at line 48 of file drawable.cpp.

References _foreground.

unsigned int drawable::layer (  )  const

Definition at line 44 of file drawable.cpp.

Referenced by picture::add(), and picture::update().

void drawable::layer ( unsigned int  new_layer  ) 

Definition at line 46 of file drawable.cpp.

void drawable::set_visible (  )  [protected]

Definition at line 38 of file drawable.cpp.

Referenced by worker::draw(), paintable::draw(), and manager::draw().

void drawable::set_invisible (  )  [protected]

Definition at line 40 of file drawable.cpp.

Referenced by worker::erase(), paintable::erase(), and manager::erase().


Member Data Documentation

color drawable::_foreground [protected]

Definition at line 83 of file drawable.h.

Referenced by worker::draw(), paintable::draw(), and foreground().


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 04:30:45 2008 for HOOPLE Libraries by  doxygen 1.5.1