1 /* === S I N F G =========================================================== */
3 ** \brief Template File
5 ** $Id: workarearenderer.cpp,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
14 ** You may not copy, print, publish, or in any
15 ** other way distribute this software without
16 ** a prior written agreement with
17 ** the copyright holder.
20 /* ========================================================================= */
22 /* === H E A D E R S ======================================================= */
31 #include "workarearenderer.h"
36 /* === U S I N G =========================================================== */
40 using namespace sinfg;
41 using namespace studio;
43 /* === M A C R O S ========================================================= */
45 /* === G L O B A L S ======================================================= */
47 /* === P R O C E D U R E S ================================================= */
49 /* === M E T H O D S ======================================================= */
51 WorkAreaRenderer::WorkAreaRenderer():
57 WorkAreaRenderer::~WorkAreaRenderer()
62 WorkAreaRenderer::get_enabled_vfunc()const
68 WorkAreaRenderer::set_enabled(bool x)
77 WorkAreaRenderer::set_priority(int x)
86 WorkAreaRenderer::set_work_area(WorkArea* x)
92 WorkAreaRenderer::render_vfunc(
93 const Glib::RefPtr<Gdk::Drawable>& window,
94 const Gdk::Rectangle& expose_area
100 WorkAreaRenderer::event_vfunc(
108 WorkAreaRenderer::get_w()const
109 { return get_work_area()->get_w(); }
111 WorkAreaRenderer::get_h()const
112 { return get_work_area()->get_h(); }
115 WorkAreaRenderer::get_pw()const
116 { return get_work_area()->get_pw(); }
118 WorkAreaRenderer::get_ph()const
119 { return get_work_area()->get_ph(); }
122 WorkAreaRenderer::screen_to_comp_coords(sinfg::Point pos)const
124 return get_work_area()->screen_to_comp_coords(pos);
128 WorkAreaRenderer::comp_to_screen_coords(sinfg::Point pos)const
130 return get_work_area()->comp_to_screen_coords(pos);