1 /* === S Y N F I G ========================================================= */
2 /*! \file widget_color.h
3 ** \brief Template Header
5 ** $Id: widget_color.h,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
14 ** You may not copy, print, publish, or in any
15 ** other way distribute this software without
16 ** a prior written agreement with
17 ** the copyright holder.
20 /* ========================================================================= */
22 /* === S T A R T =========================================================== */
24 #ifndef __SYNFIG_STUDIO_WIDGET_COLOR_H
25 #define __SYNFIG_STUDIO_WIDGET_COLOR_H
27 /* === H E A D E R S ======================================================= */
29 #include <gtkmm/box.h>
30 #include <gtkmm/table.h>
31 #include <gtkmm/spinbutton.h>
32 #include <gtkmm/adjustment.h>
33 #include <gtkmm/drawingarea.h>
34 #include <synfig/color.h>
36 /* === M A C R O S ========================================================= */
38 /* === T Y P E D E F S ===================================================== */
40 /* === C L A S S E S & S T R U C T S ======================================= */
45 Gdk::Color colorconv_synfig2gdk(const synfig::Color &c);
47 void render_color_to_window(const Glib::RefPtr<Gdk::Drawable>& window,const Gdk::Rectangle& ca,const synfig::Color &color);
49 class Widget_Color : public Gtk::DrawingArea
53 sigc::signal<void> signal_activate_;
54 sigc::signal<void> signal_secondary_;
59 sigc::signal<void>& signal_activate() { return signal_activate_; }
60 sigc::signal<void>& signal_clicked() { return signal_activate_; }
61 sigc::signal<void>& signal_secondary() { return signal_secondary_; }
63 void set_value(const synfig::Color &data);
64 const synfig::Color &get_value();
68 bool redraw(GdkEventExpose*bleh);
69 bool on_event(GdkEvent *event);
71 }; // END of class Widget_Color
73 }; // END of namespace studio
75 /* === E N D =============================================================== */