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"
37 /* === U S I N G =========================================================== */
41 using namespace synfig;
42 using namespace studio;
44 /* === M A C R O S ========================================================= */
46 /* === G L O B A L S ======================================================= */
48 /* === P R O C E D U R E S ================================================= */
50 /* === M E T H O D S ======================================================= */
52 WorkAreaRenderer::WorkAreaRenderer():
58 WorkAreaRenderer::~WorkAreaRenderer()
63 WorkAreaRenderer::get_enabled_vfunc()const
69 WorkAreaRenderer::set_enabled(bool x)
78 WorkAreaRenderer::set_priority(int x)
87 WorkAreaRenderer::set_work_area(WorkArea* x)
93 WorkAreaRenderer::render_vfunc(
94 const Glib::RefPtr<Gdk::Drawable>& window,
95 const Gdk::Rectangle& expose_area
101 WorkAreaRenderer::event_vfunc(
109 WorkAreaRenderer::get_w()const
110 { return get_work_area()->get_w(); }
112 WorkAreaRenderer::get_h()const
113 { return get_work_area()->get_h(); }
116 WorkAreaRenderer::get_pw()const
117 { return get_work_area()->get_pw(); }
119 WorkAreaRenderer::get_ph()const
120 { return get_work_area()->get_ph(); }
123 WorkAreaRenderer::screen_to_comp_coords(synfig::Point pos)const
125 return get_work_area()->screen_to_comp_coords(pos);
129 WorkAreaRenderer::comp_to_screen_coords(synfig::Point pos)const
131 return get_work_area()->comp_to_screen_coords(pos);