home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 February / CMCD0205.ISO / Linux / gimp-2.2.0.tar.gz / gimp-2.2.0.tar / gimp-2.2.0 / libgimpwidgets / gimppickbutton.h < prev    next >
C/C++ Source or Header  |  2004-01-28  |  2KB  |  69 lines

  1. /* LIBGIMP - The GIMP Library
  2.  * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
  3.  *
  4.  * gimppickbutton.h
  5.  * Copyright (C) 2002 Michael Natterer <mitch@gimp.org>
  6.  *
  7.  * based on gtk-2-0/gtk/gtkcolorsel.c
  8.  *
  9.  * This library is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.  * Library General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU Lesser General Public
  15.  * License along with this library; if not, write to the
  16.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17.  * Boston, MA 02111-1307, USA.
  18.  */
  19.  
  20. #ifndef __GIMP_PICK_BUTTON_H__
  21. #define __GIMP_PICK_BUTTON_H__
  22.  
  23. #include <gtk/gtkbutton.h>
  24.  
  25. G_BEGIN_DECLS
  26.  
  27.  
  28. #define GIMP_TYPE_PICK_BUTTON            (gimp_pick_button_get_type ())
  29. #define GIMP_PICK_BUTTON(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_PICK_BUTTON, GimpPickButton))
  30. #define GIMP_PICK_BUTTON_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_PICK_BUTTON, GimpPickButtonClass))
  31. #define GIMP_IS_PICK_BUTTON(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_PICK_BUTTON))
  32. #define GIMP_IS_PICK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_PICK_BUTTON))
  33. #define GIMP_PICK_BUTTON_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_PICK_BUTTON, GimpPickButtonClass))
  34.  
  35.  
  36. typedef struct _GimpPickButtonClass GimpPickButtonClass;
  37.  
  38. struct _GimpPickButton
  39. {
  40.   GtkButton   parent_instance;
  41.  
  42.   /*< private >*/
  43.   GdkCursor  *cursor;
  44.   GtkWidget  *grab_widget;
  45. };
  46.  
  47. struct _GimpPickButtonClass
  48. {
  49.   GtkButtonClass  parent_class;
  50.  
  51.   void (* color_picked) (GimpPickButton *button,
  52.                          const GimpRGB  *color);
  53.  
  54.   /* Padding for future expansion */
  55.   void (* _gimp_reserved1) (void);
  56.   void (* _gimp_reserved2) (void);
  57.   void (* _gimp_reserved3) (void);
  58.   void (* _gimp_reserved4) (void);
  59. };
  60.  
  61.  
  62. GType       gimp_pick_button_get_type (void) G_GNUC_CONST;
  63. GtkWidget * gimp_pick_button_new      (void);
  64.  
  65.  
  66. G_END_DECLS
  67.  
  68. #endif /* __GIMP_PICK_BUTTON_H__ */
  69.