worker Class Reference

#include <worker.h>

Inheritance diagram for worker:

Inheritance graph
[legend]
Collaboration diagram for worker:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 worker (manager &root, const c_rectangle &dimensions, window_handle self=NIL, const color &foreground=colors::WHITE, const color &background=colors::BLACK)
virtual ~worker ()
 IMPLEMENT_CLASS_NAME ("worker")
virtual void draw ()
virtual void erase ()
virtual c_rectangle dimensions () const
virtual void dimensions (const c_rectangle &new_location)
palettecolormap () const
managerroot () const
color foreground () const
virtual void foreground (const color &new_foreground)
color background () const
virtual void background (const color &new_background)
virtual void set_origin (const c_point &new_origin)

Detailed Description

Definition at line 34 of file worker.h.


Constructor & Destructor Documentation

worker::worker ( manager root,
const c_rectangle &  dimensions,
window_handle  self = NIL,
const color foreground = colors::WHITE,
const color background = colors::BLACK 
)

Definition at line 45 of file worker.cpp.

References background(), and foreground().

worker::~worker (  )  [virtual]

Definition at line 66 of file worker.cpp.

References erase().


Member Function Documentation

worker::IMPLEMENT_CLASS_NAME ( "worker"   ) 

void worker::draw (  )  [virtual]

Implements drawable.

Reimplemented in list_box, menu, and message_box.

Definition at line 96 of file worker.cpp.

References drawable::_foreground, background(), class_name, dimensions(), foreground(), non_continuable_error, drawable::set_visible(), and drawable::visible().

Referenced by message_box::draw(), menu::draw(), and list_box::draw().

void worker::erase (  )  [virtual]

Implements drawable.

Definition at line 115 of file worker.cpp.

References drawable::set_invisible(), and drawable::visible().

Referenced by ~worker().

c_rectangle worker::dimensions (  )  const [virtual]

Implements drawable.

Definition at line 94 of file worker.cpp.

Referenced by canvas::canvas(), canvas::device_to_world(), draw(), four_corner_canvas(), query_canvas(), set_origin(), and canvas::world_to_device().

void worker::dimensions ( const c_rectangle &  new_location  )  [virtual]

Definition at line 156 of file worker.cpp.

References nub::device_dimensions(), and manager::universe_to_device().

palette & worker::colormap (  )  const

Definition at line 70 of file worker.cpp.

Referenced by paintable::foreground(), visible_line::plot(), ring::plot(), oval::plot(), dot::plot(), and box::plot().

manager & worker::root (  )  const

Definition at line 68 of file worker.cpp.

Referenced by canvas::device_to_world(), message_box::draw(), and canvas::world_to_device().

color worker::foreground (  )  const

Reimplemented from drawable.

Definition at line 74 of file worker.cpp.

References drawable::foreground().

Referenced by draw(), message_box::draw(), slider::slider(), and worker().

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

Reimplemented from drawable.

Definition at line 124 of file worker.cpp.

References palette::add(), and drawable::foreground().

color worker::background (  )  const

Definition at line 72 of file worker.cpp.

Referenced by draw(), message_box::draw(), paintable::erase(), slider::slider(), and worker().

void worker::background ( const color new_background  )  [virtual]

Definition at line 140 of file worker.cpp.

References palette::add().

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

Reimplemented from drawable.

Definition at line 173 of file worker.cpp.

References c_rectangle, dimensions(), drawable::origin(), and drawable::set_origin().


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