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


Public Member Functions | |
| canvas (manager &root, const c_rectangle &initial_size, const c_rectangle &initial_world=default_world, const color &foreground=colors::WHITE, const color &background=colors::BLACK, origin_vertex world_corner=BOTTOM_LEFT) | |
| virtual | ~canvas () |
| IMPLEMENT_CLASS_NAME ("canvas") | |
| void | redraw () |
| virtual void | redraw_part (const c_rectangle &to_redraw) |
| c_rectangle | world () const |
| c_rectangle | universe () const |
| c_point | world_to_device (const c_point &in_world) const |
| c_point | device_to_world (const c_point &in_device) const |
| c_rectangle | world_to_device (const c_rectangle &in_world) const |
| c_rectangle | device_to_world (const c_rectangle &in_device) const |
| int | elements () |
| void | add (drawable *to_add) |
| void | remove (drawable *to_add) |
| void | update () |
| resources & | details () |
Static Public Member Functions | |
| static void | exposer (window_handle, canvas *me, XmAnyCallbackStruct *parms) |
| static void | resizer (window_handle, canvas *me, XmAnyCallbackStruct *parms) |
| static void | inputer (window_handle, canvas *me, XmAnyCallbackStruct *parms) |
Definition at line 30 of file canvas.h.
| canvas::canvas | ( | manager & | root, | |
| const c_rectangle & | initial_size, | |||
| const c_rectangle & | initial_world = default_world, |
|||
| const color & | foreground = colors::WHITE, |
|||
| const color & | background = colors::BLACK, |
|||
| origin_vertex | world_corner = BOTTOM_LEFT | |||
| ) |
Definition at line 35 of file canvas.cpp.
References worker::dimensions(), exposer(), FUNCDEF, inputer(), LOG, and resizer().
| canvas::~canvas | ( | ) | [virtual] |
| canvas::IMPLEMENT_CLASS_NAME | ( | "canvas" | ) |
| void canvas::redraw | ( | ) |
| void canvas::redraw_part | ( | const c_rectangle & | to_redraw | ) | [virtual] |
| c_rectangle canvas::world | ( | ) | const |
| c_rectangle canvas::universe | ( | ) | const |
Definition at line 79 of file canvas.cpp.
| c_point canvas::world_to_device | ( | const c_point & | in_world | ) | const |
Definition at line 96 of file canvas.cpp.
References c_rectangle.
Referenced by visible_line::plot(), and query_canvas().
| c_point canvas::device_to_world | ( | const c_point & | in_device | ) | const |
Definition at line 99 of file canvas.cpp.
References c_rectangle.
Referenced by exposer(), and query_canvas().
| c_rectangle canvas::world_to_device | ( | const c_rectangle & | in_world | ) | const |
Definition at line 147 of file canvas.cpp.
References c_rectangle, worker::dimensions(), and worker::root().
| c_rectangle canvas::device_to_world | ( | const c_rectangle & | in_device | ) | const |
Definition at line 156 of file canvas.cpp.
References c_rectangle, worker::dimensions(), and worker::root().
| int canvas::elements | ( | ) |
| void canvas::add | ( | drawable * | to_add | ) |
| void canvas::remove | ( | drawable * | to_add | ) |
| void canvas::update | ( | ) |
| resources & canvas::details | ( | ) |
Definition at line 91 of file canvas.cpp.
| void canvas::exposer | ( | window_handle | , | |
| canvas * | me, | |||
| XmAnyCallbackStruct * | parms | |||
| ) | [static] |
Definition at line 111 of file canvas.cpp.
References c_rectangle, device_to_world(), FUNCDEF, LOG, and redraw_part().
| static void canvas::resizer | ( | window_handle | , | |
| canvas * | me, | |||
| XmAnyCallbackStruct * | parms | |||
| ) | [static] |
| static void canvas::inputer | ( | window_handle | , | |
| canvas * | me, | |||
| XmAnyCallbackStruct * | parms | |||
| ) | [static] |
1.5.1