1 /* === S Y N F I G ========================================================= */
2 /*! \file workarearenderer.cpp
3 ** \brief Template File
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
10 ** This package is free software; you can redistribute it and/or
11 ** modify it under the terms of the GNU General Public License as
12 ** published by the Free Software Foundation; either version 2 of
13 ** the License, or (at your option) any later version.
15 ** This package is distributed in the hope that it will be useful,
16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ** General Public License for more details.
21 /* ========================================================================= */
23 /* === H E A D E R S ======================================================= */
32 #include "workarearenderer.h"
39 /* === U S I N G =========================================================== */
43 using namespace synfig;
44 using namespace studio;
46 /* === M A C R O S ========================================================= */
48 /* === G L O B A L S ======================================================= */
50 /* === P R O C E D U R E S ================================================= */
52 /* === M E T H O D S ======================================================= */
54 WorkAreaRenderer::WorkAreaRenderer():
60 WorkAreaRenderer::~WorkAreaRenderer()
65 WorkAreaRenderer::get_enabled_vfunc()const
71 WorkAreaRenderer::set_enabled(bool x)
80 WorkAreaRenderer::set_priority(int x)
89 WorkAreaRenderer::set_work_area(WorkArea* x)
95 WorkAreaRenderer::render_vfunc(
96 const Glib::RefPtr<Gdk::Drawable>& /*window*/,
97 const Gdk::Rectangle& /*expose_area*/
103 WorkAreaRenderer::event_vfunc(
111 WorkAreaRenderer::get_w()const
112 { return get_work_area()->get_w(); }
114 WorkAreaRenderer::get_h()const
115 { return get_work_area()->get_h(); }
118 WorkAreaRenderer::get_pw()const
119 { return get_work_area()->get_pw(); }
121 WorkAreaRenderer::get_ph()const
122 { return get_work_area()->get_ph(); }
125 WorkAreaRenderer::screen_to_comp_coords(synfig::Point pos)const
127 return get_work_area()->screen_to_comp_coords(pos);
131 WorkAreaRenderer::comp_to_screen_coords(synfig::Point pos)const
133 return get_work_area()->comp_to_screen_coords(pos);