00001
00022
00023
00024
00025
00026 #ifndef __SYNFIG_RENDERER_DUCKS_H
00027 #define __SYNFIG_RENDERER_DUCKS_H
00028
00029
00030
00031 #include "workarearenderer.h"
00032 #include <vector>
00033
00034
00035
00036 #define DUCK_COLOR_NOT_EDITABLE Gdk::Color("#cfcfcf")
00037
00038 #define DUCK_COLOR_ANGLE Gdk::Color("#0000ff")
00039 #define DUCK_COLOR_RADIUS Gdk::Color("#00ffff")
00040 #define DUCK_COLOR_TANGENT_1 Gdk::Color("#ffff00")
00041 #define DUCK_COLOR_TANGENT_2 Gdk::Color("#ff0000")
00042 #define DUCK_COLOR_VERTEX Gdk::Color("#ff7f00")
00043 #define DUCK_COLOR_WIDTH Gdk::Color("#ff00ff")
00044 #define DUCK_COLOR_OTHER Gdk::Color("#00ff00")
00045
00046 #define DUCK_COLOR_OUTLINE Gdk::Color("#000000") // the outline around each duck
00047
00048 #define DUCK_COLOR_BEZIER_1 Gdk::Color("#000000") // the 2 colors used to draw bezier curves
00049 #define DUCK_COLOR_BEZIER_2 Gdk::Color("#afafaf")
00050
00051 #define DUCK_COLOR_BOX_1 Gdk::Color("#ffffff") // the 2 colors used to draw boxes
00052 #define DUCK_COLOR_BOX_2 Gdk::Color("#000000")
00053
00054 #define DUCK_COLOR_SELECTED Gdk::Color("#ff0000") // the color of the box drawn when a valuenode is selected
00055
00056 #define DUCK_COLOR_CONNECT_INSIDE Gdk::Color("#9fefef") // the color of the inside of the line connecting a vertex duck to the tangent ducks
00057 #define DUCK_COLOR_CONNECT_OUTSIDE Gdk::Color("#000000") // the color of the outside of the line connecting a vertex duck to the tangent ducks
00058
00059 #define DUCK_COLOR_WIDTH_TEXT_1 Gdk::Color("#000000") // the color of the text's shadow when hovering over a width duck
00060 #define DUCK_COLOR_WIDTH_TEXT_2 Gdk::Color("#ff00ff") // the color of the text when hovering over a width duck
00061
00062
00063
00064
00065
00066 namespace studio {
00067
00068 class Renderer_Ducks : public studio::WorkAreaRenderer
00069 {
00070
00071 public:
00072 ~Renderer_Ducks();
00073
00074 void render_vfunc(const Glib::RefPtr<Gdk::Drawable>& drawable,const Gdk::Rectangle& expose_area );
00075
00076 protected:
00077
00078 };
00079
00080 };
00081
00082
00083
00084 #endif