X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Frenderer_ducks.h;h=32a6efd6c0ebdbdb71e03c435de9479fae2fad99;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=a4be796e011e333e5a601f9cb2eecb7fb3fe4f6d;hpb=3a3c4bca3a17137bec5d7960560934b91ef4146e;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/renderer_ducks.h b/synfig-studio/trunk/src/gtkmm/renderer_ducks.h index a4be796..32a6efd 100644 --- a/synfig-studio/trunk/src/gtkmm/renderer_ducks.h +++ b/synfig-studio/trunk/src/gtkmm/renderer_ducks.h @@ -1,28 +1,30 @@ -/* === S I N F G =========================================================== */ -/*! \file template.h +/* === S Y N F I G ========================================================= */ +/*! \file renderer_ducks.h ** \brief Template Header ** -** $Id: renderer_ducks.h,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $ +** $Id$ ** ** \legal -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 Chris Moore ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. ** \endlegal */ /* ========================================================================= */ /* === S T A R T =========================================================== */ -#ifndef __SINFG_RENDERER_DUCKS_H -#define __SINFG_RENDERER_DUCKS_H +#ifndef __SYNFIG_RENDERER_DUCKS_H +#define __SYNFIG_RENDERER_DUCKS_H /* === H E A D E R S ======================================================= */ @@ -31,6 +33,32 @@ /* === M A C R O S ========================================================= */ +#define DUCK_COLOR_NOT_EDITABLE Gdk::Color("#cfcfcf") + +#define DUCK_COLOR_ANGLE Gdk::Color("#0000ff") +#define DUCK_COLOR_RADIUS Gdk::Color("#00ffff") +#define DUCK_COLOR_TANGENT_1 Gdk::Color("#ffff00") +#define DUCK_COLOR_TANGENT_2 Gdk::Color("#ff0000") +#define DUCK_COLOR_VERTEX Gdk::Color("#ff7f00") +#define DUCK_COLOR_WIDTH Gdk::Color("#ff00ff") +#define DUCK_COLOR_OTHER Gdk::Color("#00ff00") + +#define DUCK_COLOR_OUTLINE Gdk::Color("#000000") // the outline around each duck + +#define DUCK_COLOR_BEZIER_1 Gdk::Color("#000000") // the 2 colors used to draw bezier curves +#define DUCK_COLOR_BEZIER_2 Gdk::Color("#afafaf") + +#define DUCK_COLOR_BOX_1 Gdk::Color("#ffffff") // the 2 colors used to draw boxes +#define DUCK_COLOR_BOX_2 Gdk::Color("#000000") + +#define DUCK_COLOR_SELECTED Gdk::Color("#ff0000") // the color of the box drawn when a valuenode is selected + +#define DUCK_COLOR_CONNECT_INSIDE Gdk::Color("#9fefef") // the color of the inside of the line connecting a vertex duck to the tangent ducks +#define DUCK_COLOR_CONNECT_OUTSIDE Gdk::Color("#000000") // the color of the outside of the line connecting a vertex duck to the tangent ducks + +#define DUCK_COLOR_WIDTH_TEXT_1 Gdk::Color("#000000") // the color of the text's shadow when hovering over a width duck +#define DUCK_COLOR_WIDTH_TEXT_2 Gdk::Color("#ff00ff") // the color of the text when hovering over a width duck + /* === T Y P E D E F S ===================================================== */ /* === C L A S S E S & S T R U C T S ======================================= */ @@ -39,10 +67,10 @@ namespace studio { class Renderer_Ducks : public studio::WorkAreaRenderer { - + public: ~Renderer_Ducks(); - + void render_vfunc(const Glib::RefPtr& drawable,const Gdk::Rectangle& expose_area ); protected: