1 /* === S Y N F I G ========================================================= */
2 /*!	\file renderer_bbox.h
3 **  \brief Renderer_BBox classe is used to render in the workarea the bouding box
4 ** of the selected layer(s)
5 **
6 **	$Id$
7 **
8 **	\legal
9 **	Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
10 **
11 **	This package is free software; you can redistribute it and/or
12 **	modify it under the terms of the GNU General Public License as
13 **	published by the Free Software Foundation; either version 2 of
14 **	the License, or (at your option) any later version.
15 **
16 **	This package is distributed in the hope that it will be useful,
17 **	but WITHOUT ANY WARRANTY; without even the implied warranty of
18 **	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 **	General Public License for more details.
20 **	\endlegal
21 */
22 /* ========================================================================= */
23 
24 /* === S T A R T =========================================================== */
25 
26 #ifndef __SYNFIG_RENDERER_BBOX_H
27 #define __SYNFIG_RENDERER_BBOX_H
28 
29 /* === H E A D E R S ======================================================= */
30 
31 #include "workarearenderer.h"
32 #include <vector>
33 #include <synfig/vector.h>
34 #include <synfig/rect.h>
35 
36 /* === M A C R O S ========================================================= */
37 
38 #define BBOX_COLOR_OUTLINE      Gdk::Color("#ffffff")
39 #define BBOX_COLOR_FAILBACK     Gdk::Color("#000000")
40 
41 /* === T Y P E D E F S ===================================================== */
42 
43 /* === C L A S S E S & S T R U C T S ======================================= */
44 
45 namespace studio {
46 
47 class Renderer_BBox : public studio::WorkAreaRenderer
48 {
49 	synfig::Rect bbox;
50 
51 public:
52 	Renderer_BBox();
53 	~Renderer_BBox();
54 
55 	const synfig::Rect& get_bbox();
56 
57 	void render_vfunc(const Glib::RefPtr<Gdk::Window>& drawable,const Gdk::Rectangle& expose_area	);
58 
59 protected:
60 	//bool get_enabled_vfunc()const;
61 };
62 
63 }; // END of namespace studio
64 
65 /* === E N D =============================================================== */
66 
67 #endif
68