1 /* === S Y N F I G ========================================================= */
2 /*! \file renderer_ducks.h
3 ** \brief Template Header
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
9 ** Copyright (c) 2007 Chris Moore
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.
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.
22 /* ========================================================================= */
24 /* === S T A R T =========================================================== */
26 #ifndef __SYNFIG_RENDERER_DUCKS_H
27 #define __SYNFIG_RENDERER_DUCKS_H
29 /* === H E A D E R S ======================================================= */
31 #include "workarearenderer.h"
34 /* === M A C R O S ========================================================= */
36 #define DUCK_COLOR_NOT_EDITABLE Gdk::Color("#cfcfcf")
38 #define DUCK_COLOR_ANGLE Gdk::Color("#0000ff")
39 #define DUCK_COLOR_RADIUS Gdk::Color("#00ffff")
40 #define DUCK_COLOR_TANGENT_1 Gdk::Color("#ffff00")
41 #define DUCK_COLOR_TANGENT_2 Gdk::Color("#ff0000")
42 #define DUCK_COLOR_VERTEX Gdk::Color("#ff7f00")
43 #define DUCK_COLOR_WIDTH Gdk::Color("#ff00ff")
44 #define DUCK_COLOR_OTHER Gdk::Color("#00ff00")
46 #define DUCK_COLOR_OUTLINE Gdk::Color("#000000") // the outline around each duck
48 #define DUCK_COLOR_BEZIER_1 Gdk::Color("#000000") // the 2 colors used to draw bezier curves
49 #define DUCK_COLOR_BEZIER_2 Gdk::Color("#afafaf")
51 #define DUCK_COLOR_BOX_1 Gdk::Color("#ffffff") // the 2 colors used to draw boxes
52 #define DUCK_COLOR_BOX_2 Gdk::Color("#000000")
54 #define DUCK_COLOR_SELECTED Gdk::Color("#ff0000") // the color of the box drawn when a valuenode is selected
56 #define DUCK_COLOR_CONNECT_INSIDE Gdk::Color("#9fefef") // the color of the inside of the line connecting a vertex duck to the tangent ducks
57 #define DUCK_COLOR_CONNECT_OUTSIDE Gdk::Color("#000000") // the color of the outside of the line connecting a vertex duck to the tangent ducks
59 #define DUCK_COLOR_WIDTH_TEXT_1 Gdk::Color("#000000") // the color of the text's shadow when hovering over a width duck
60 #define DUCK_COLOR_WIDTH_TEXT_2 Gdk::Color("#ff00ff") // the color of the text when hovering over a width duck
62 /* === T Y P E D E F S ===================================================== */
64 /* === C L A S S E S & S T R U C T S ======================================= */
68 class Renderer_Ducks : public studio::WorkAreaRenderer
74 void render_vfunc(const Glib::RefPtr<Gdk::Drawable>& drawable,const Gdk::Rectangle& expose_area );
77 // bool get_enabled_vfunc()const;
80 }; // END of namespace studio
82 /* === E N D =============================================================== */