2002-11-05 06:56:41 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
|
|
*
|
|
|
|
* gimppickbutton.h
|
|
|
|
* Copyright (C) 2002 Michael Natterer <mitch@gimp.org>
|
|
|
|
*
|
|
|
|
* based on gtk-2-0/gtk/gtkcolorsel.c
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
2018-07-12 05:27:07 +08:00
|
|
|
* <https://www.gnu.org/licenses/>.
|
2002-11-05 06:56:41 +08:00
|
|
|
*/
|
|
|
|
|
2011-04-28 20:30:41 +08:00
|
|
|
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
|
|
|
|
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2002-11-05 06:56:41 +08:00
|
|
|
#ifndef __GIMP_PICK_BUTTON_H__
|
|
|
|
#define __GIMP_PICK_BUTTON_H__
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
2024-08-04 02:24:46 +08:00
|
|
|
#define GIMP_TYPE_PICK_BUTTON (gimp_pick_button_get_type ())
|
|
|
|
G_DECLARE_DERIVABLE_TYPE (GimpPickButton, gimp_pick_button, GIMP, PICK_BUTTON, GtkButton)
|
2002-11-05 06:56:41 +08:00
|
|
|
|
|
|
|
struct _GimpPickButtonClass
|
|
|
|
{
|
|
|
|
GtkButtonClass parent_class;
|
|
|
|
|
2024-03-26 09:25:08 +08:00
|
|
|
void (* color_picked) (GimpPickButton *button,
|
|
|
|
const GeglColor *color);
|
2004-01-29 08:21:33 +08:00
|
|
|
|
|
|
|
/* Padding for future expansion */
|
|
|
|
void (* _gimp_reserved1) (void);
|
|
|
|
void (* _gimp_reserved2) (void);
|
|
|
|
void (* _gimp_reserved3) (void);
|
|
|
|
void (* _gimp_reserved4) (void);
|
2018-05-03 18:51:36 +08:00
|
|
|
void (* _gimp_reserved5) (void);
|
|
|
|
void (* _gimp_reserved6) (void);
|
|
|
|
void (* _gimp_reserved7) (void);
|
|
|
|
void (* _gimp_reserved8) (void);
|
2002-11-05 06:56:41 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
GtkWidget * gimp_pick_button_new (void);
|
|
|
|
|
2024-08-04 02:24:46 +08:00
|
|
|
/* for internal use only */
|
|
|
|
G_GNUC_INTERNAL void _gimp_pick_button_default_pick (GimpPickButton *button);
|
|
|
|
|
2002-11-05 06:56:41 +08:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GIMP_PICK_BUTTON_H__ */
|