#include <paintable.h>
Inheritance diagram for paintable:


Public Member Functions | |
| paintable (canvas &to_draw_on, const c_point &origin, const color &foreground=colors::WHITE, bool attach=true) | |
| virtual | ~paintable () |
| canvas & | target () const |
| void | draw () |
| void | erase () |
| virtual c_rectangle | dimensions () const=0 |
| virtual void | plot (const color &to_draw_in)=0 |
| bool | filled () const |
| virtual void | set_filled (bool i_am_to_be_filled=true) |
| color | foreground () const |
| virtual void | foreground (const color &new_foreground) |
| virtual void | set_origin (const c_point &new_origin) |
Definition at line 25 of file paintable.h.
| paintable::paintable | ( | canvas & | to_draw_on, | |
| const c_point & | origin, | |||
| const color & | foreground = colors::WHITE, |
|||
| bool | attach = true | |||
| ) |
| paintable::~paintable | ( | ) | [virtual] |
Definition at line 30 of file paintable.cpp.
| canvas & paintable::target | ( | ) | const |
Definition at line 34 of file paintable.cpp.
Referenced by bitmap::draw(), visible_line::plot(), ring::plot(), oval::plot(), dot::plot(), and box::plot().
| void paintable::draw | ( | ) | [virtual] |
Implements drawable.
Reimplemented in bitmap.
Definition at line 42 of file paintable.cpp.
References drawable::_foreground, plot(), drawable::set_visible(), and drawable::visible().
Referenced by house::draw(), visible_line::set_origin(), set_origin(), and box::set_origin().
| void paintable::erase | ( | ) | [virtual] |
Implements drawable.
Reimplemented in bitmap.
Definition at line 51 of file paintable.cpp.
References worker::background(), plot(), drawable::set_invisible(), and drawable::visible().
Referenced by house::erase(), visible_line::set_origin(), set_origin(), and box::set_origin().
| virtual c_rectangle paintable::dimensions | ( | ) | const [pure virtual] |
| virtual void paintable::plot | ( | const color & | to_draw_in | ) | [pure virtual] |
| bool paintable::filled | ( | ) | const |
Definition at line 38 of file paintable.cpp.
Referenced by ring::plot(), oval::plot(), and box::plot().
| void paintable::set_filled | ( | bool | i_am_to_be_filled = true |
) | [virtual] |
Definition at line 36 of file paintable.cpp.
| color paintable::foreground | ( | ) | const |
Reimplemented from drawable.
Definition at line 40 of file paintable.cpp.
References drawable::foreground().
Referenced by paintable().
| void paintable::foreground | ( | const color & | new_foreground | ) | [virtual] |
Reimplemented from drawable.
Definition at line 75 of file paintable.cpp.
References palette::add(), worker::colormap(), and drawable::foreground().
| void paintable::set_origin | ( | const c_point & | new_origin | ) | [virtual] |
Reimplemented from drawable.
Reimplemented in box, and visible_line.
Definition at line 82 of file paintable.cpp.
References draw(), erase(), drawable::set_origin(), and drawable::visible().
1.5.1