2000-02-26 11:41:06 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
2000-01-13 23:39:26 +08:00
|
|
|
*
|
|
|
|
* gimpwidgets.h
|
|
|
|
* Copyright (C) 2000 Michael Natterer <mitch@gimp.org>
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2000-01-13 23:39:26 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2000-02-26 11:41:06 +08:00
|
|
|
*
|
|
|
|
* 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
|
2000-01-13 23:39:26 +08:00
|
|
|
* Lesser 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
|
|
|
|
* <http://www.gnu.org/licenses/>.
|
2000-01-13 23:39:26 +08:00
|
|
|
*/
|
2000-05-31 07:38:46 +08:00
|
|
|
|
2000-01-13 23:39:26 +08:00
|
|
|
#ifndef __GIMP_WIDGETS_H__
|
|
|
|
#define __GIMP_WIDGETS_H__
|
|
|
|
|
2011-04-28 20:30:41 +08:00
|
|
|
#define __GIMP_WIDGETS_H_INSIDE__
|
2001-01-25 06:36:18 +08:00
|
|
|
|
|
|
|
#include <libgimpwidgets/gimpwidgetstypes.h>
|
|
|
|
|
2005-05-19 07:48:47 +08:00
|
|
|
#include <libgimpwidgets/gimpbrowser.h>
|
2001-05-07 04:31:46 +08:00
|
|
|
#include <libgimpwidgets/gimpbutton.h>
|
2007-12-12 22:17:19 +08:00
|
|
|
#include <libgimpwidgets/gimpcairo-utils.h>
|
2004-07-27 02:52:35 +08:00
|
|
|
#include <libgimpwidgets/gimpcellrenderercolor.h>
|
2004-07-27 05:09:16 +08:00
|
|
|
#include <libgimpwidgets/gimpcellrenderertoggle.h>
|
2001-01-25 06:36:18 +08:00
|
|
|
#include <libgimpwidgets/gimpchainbutton.h>
|
|
|
|
#include <libgimpwidgets/gimpcolorarea.h>
|
|
|
|
#include <libgimpwidgets/gimpcolorbutton.h>
|
2002-10-20 18:14:17 +08:00
|
|
|
#include <libgimpwidgets/gimpcolordisplay.h>
|
2003-11-22 05:27:10 +08:00
|
|
|
#include <libgimpwidgets/gimpcolordisplaystack.h>
|
2004-07-26 23:20:18 +08:00
|
|
|
#include <libgimpwidgets/gimpcolorhexentry.h>
|
2002-10-28 21:19:02 +08:00
|
|
|
#include <libgimpwidgets/gimpcolornotebook.h>
|
2014-03-15 05:01:46 +08:00
|
|
|
#include <libgimpwidgets/gimpcolorprofilechooserdialog.h>
|
2007-08-15 00:01:04 +08:00
|
|
|
#include <libgimpwidgets/gimpcolorprofilecombobox.h>
|
|
|
|
#include <libgimpwidgets/gimpcolorprofilestore.h>
|
2014-03-17 01:33:07 +08:00
|
|
|
#include <libgimpwidgets/gimpcolorprofileview.h>
|
2002-10-30 07:16:17 +08:00
|
|
|
#include <libgimpwidgets/gimpcolorscale.h>
|
2002-10-29 04:13:17 +08:00
|
|
|
#include <libgimpwidgets/gimpcolorscales.h>
|
2002-10-20 18:14:17 +08:00
|
|
|
#include <libgimpwidgets/gimpcolorselector.h>
|
|
|
|
#include <libgimpwidgets/gimpcolorselect.h>
|
2003-11-11 00:38:37 +08:00
|
|
|
#include <libgimpwidgets/gimpcolorselection.h>
|
2001-01-25 06:36:18 +08:00
|
|
|
#include <libgimpwidgets/gimpdialog.h>
|
2005-01-22 06:59:51 +08:00
|
|
|
#include <libgimpwidgets/gimpenumcombobox.h>
|
2005-06-25 06:46:42 +08:00
|
|
|
#include <libgimpwidgets/gimpenumlabel.h>
|
2005-01-22 06:59:51 +08:00
|
|
|
#include <libgimpwidgets/gimpenumstore.h>
|
2005-01-29 09:08:20 +08:00
|
|
|
#include <libgimpwidgets/gimpenumwidgets.h>
|
2003-11-21 23:53:57 +08:00
|
|
|
#include <libgimpwidgets/gimpfileentry.h>
|
2004-05-03 04:30:41 +08:00
|
|
|
#include <libgimpwidgets/gimpframe.h>
|
2001-01-25 06:36:18 +08:00
|
|
|
#include <libgimpwidgets/gimphelpui.h>
|
2006-09-06 05:43:07 +08:00
|
|
|
#include <libgimpwidgets/gimphintbox.h>
|
2015-12-13 03:44:46 +08:00
|
|
|
#include <libgimpwidgets/gimpicons.h>
|
2004-04-20 08:01:57 +08:00
|
|
|
#include <libgimpwidgets/gimpintcombobox.h>
|
2004-04-21 03:06:37 +08:00
|
|
|
#include <libgimpwidgets/gimpintstore.h>
|
2003-01-05 21:52:14 +08:00
|
|
|
#include <libgimpwidgets/gimpmemsizeentry.h>
|
2007-08-09 02:08:24 +08:00
|
|
|
#include <libgimpwidgets/gimpnumberpairentry.h>
|
2001-05-07 05:51:20 +08:00
|
|
|
#include <libgimpwidgets/gimpoffsetarea.h>
|
2005-06-27 22:14:25 +08:00
|
|
|
#include <libgimpwidgets/gimppageselector.h>
|
2001-01-25 06:36:18 +08:00
|
|
|
#include <libgimpwidgets/gimppatheditor.h>
|
2002-11-05 06:56:41 +08:00
|
|
|
#include <libgimpwidgets/gimppickbutton.h>
|
2001-01-25 06:36:18 +08:00
|
|
|
#include <libgimpwidgets/gimppixmap.h>
|
2004-08-31 06:10:26 +08:00
|
|
|
#include <libgimpwidgets/gimppreview.h>
|
2004-07-30 01:10:28 +08:00
|
|
|
#include <libgimpwidgets/gimppreviewarea.h>
|
2005-02-05 04:48:02 +08:00
|
|
|
#include <libgimpwidgets/gimppropwidgets.h>
|
2001-01-25 06:36:18 +08:00
|
|
|
#include <libgimpwidgets/gimpquerybox.h>
|
2008-05-27 05:20:16 +08:00
|
|
|
#include <libgimpwidgets/gimpruler.h>
|
2008-02-15 01:02:47 +08:00
|
|
|
#include <libgimpwidgets/gimpscaleentry.h>
|
2005-07-09 00:07:16 +08:00
|
|
|
#include <libgimpwidgets/gimpscrolledpreview.h>
|
2001-01-25 06:36:18 +08:00
|
|
|
#include <libgimpwidgets/gimpsizeentry.h>
|
2007-02-12 23:29:45 +08:00
|
|
|
#include <libgimpwidgets/gimpstringcombobox.h>
|
2010-10-15 04:15:25 +08:00
|
|
|
#include <libgimpwidgets/gimpunitcombobox.h>
|
2001-01-25 06:36:18 +08:00
|
|
|
#include <libgimpwidgets/gimpunitmenu.h>
|
2010-10-15 04:15:25 +08:00
|
|
|
#include <libgimpwidgets/gimpunitstore.h>
|
2008-12-01 15:44:14 +08:00
|
|
|
#include <libgimpwidgets/gimpwidgets-error.h>
|
2015-05-07 04:15:30 +08:00
|
|
|
#include <libgimpwidgets/gimpwidgetsutils.h>
|
2005-09-20 06:58:16 +08:00
|
|
|
#include <libgimpwidgets/gimpzoommodel.h>
|
2001-01-25 06:36:18 +08:00
|
|
|
|
2011-09-30 16:45:00 +08:00
|
|
|
#include <libgimpwidgets/gimp3migration.h>
|
2004-04-20 22:37:12 +08:00
|
|
|
#include <libgimpwidgets/gimpoldwidgets.h>
|
|
|
|
|
2011-04-28 20:30:41 +08:00
|
|
|
#undef __GIMP_WIDGETS_H_INSIDE__
|
2001-01-25 06:36:18 +08:00
|
|
|
|
2001-11-22 21:01:26 +08:00
|
|
|
G_BEGIN_DECLS
|
2000-01-13 23:39:26 +08:00
|
|
|
|
2000-02-23 23:52:33 +08:00
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
2001-11-28 09:14:06 +08:00
|
|
|
|
2000-01-13 23:39:26 +08:00
|
|
|
/*
|
|
|
|
* Widget Constructors
|
|
|
|
*/
|
|
|
|
|
2003-11-15 04:22:05 +08:00
|
|
|
GtkWidget * gimp_int_radio_group_new (gboolean in_frame,
|
2006-04-12 18:53:28 +08:00
|
|
|
const gchar *frame_title,
|
|
|
|
GCallback radio_button_callback,
|
|
|
|
gpointer radio_button_callback_data,
|
|
|
|
gint initial, /* item_data */
|
2003-11-15 02:05:39 +08:00
|
|
|
|
2006-04-12 18:53:28 +08:00
|
|
|
/* specify radio buttons as va_list:
|
|
|
|
* const gchar *label,
|
|
|
|
* gint item_data,
|
|
|
|
* GtkWidget **widget_ptr,
|
|
|
|
*/
|
2003-11-15 02:05:39 +08:00
|
|
|
|
2006-04-12 18:53:28 +08:00
|
|
|
...) G_GNUC_NULL_TERMINATED;
|
2003-11-15 02:05:39 +08:00
|
|
|
|
2003-11-15 19:27:34 +08:00
|
|
|
void gimp_int_radio_group_set_active (GtkRadioButton *radio_button,
|
|
|
|
gint item_data);
|
|
|
|
|
2003-11-15 07:17:38 +08:00
|
|
|
|
2000-01-13 23:39:26 +08:00
|
|
|
GtkWidget * gimp_radio_group_new (gboolean in_frame,
|
2006-04-12 18:53:28 +08:00
|
|
|
const gchar *frame_title,
|
|
|
|
|
|
|
|
/* specify radio buttons as va_list:
|
|
|
|
* const gchar *label,
|
|
|
|
* GCallback callback,
|
|
|
|
* gpointer callback_data,
|
|
|
|
* gpointer item_data,
|
|
|
|
* GtkWidget **widget_ptr,
|
|
|
|
* gboolean active,
|
|
|
|
*/
|
|
|
|
|
|
|
|
...) G_GNUC_NULL_TERMINATED;
|
2000-01-13 23:39:26 +08:00
|
|
|
GtkWidget * gimp_radio_group_new2 (gboolean in_frame,
|
2006-04-12 18:53:28 +08:00
|
|
|
const gchar *frame_title,
|
|
|
|
GCallback radio_button_callback,
|
|
|
|
gpointer radio_button_callback_data,
|
|
|
|
gpointer initial, /* item_data */
|
2000-01-13 23:39:26 +08:00
|
|
|
|
2006-04-12 18:53:28 +08:00
|
|
|
/* specify radio buttons as va_list:
|
|
|
|
* const gchar *label,
|
|
|
|
* gpointer item_data,
|
|
|
|
* GtkWidget **widget_ptr,
|
|
|
|
*/
|
2000-01-13 23:39:26 +08:00
|
|
|
|
2006-04-12 18:53:28 +08:00
|
|
|
...) G_GNUC_NULL_TERMINATED;
|
2003-11-15 19:27:34 +08:00
|
|
|
|
2001-11-22 21:01:26 +08:00
|
|
|
void gimp_radio_group_set_active (GtkRadioButton *radio_button,
|
|
|
|
gpointer item_data);
|
2003-11-15 04:22:05 +08:00
|
|
|
|
2001-11-22 21:01:26 +08:00
|
|
|
|
2014-06-22 04:35:39 +08:00
|
|
|
GIMP_DEPRECATED_FOR(gtk_spin_button_new)
|
2000-01-13 23:39:26 +08:00
|
|
|
GtkWidget * gimp_spin_button_new (/* return value: */
|
2006-04-12 18:53:28 +08:00
|
|
|
GtkObject **adjustment,
|
2000-01-13 23:39:26 +08:00
|
|
|
|
2006-04-12 18:53:28 +08:00
|
|
|
gdouble value,
|
|
|
|
gdouble lower,
|
|
|
|
gdouble upper,
|
|
|
|
gdouble step_increment,
|
|
|
|
gdouble page_increment,
|
|
|
|
gdouble page_size,
|
|
|
|
gdouble climb_rate,
|
|
|
|
guint digits);
|
2000-01-13 23:39:26 +08:00
|
|
|
|
2010-07-06 00:01:28 +08:00
|
|
|
/**
|
|
|
|
* GIMP_RANDOM_SEED_SPINBUTTON:
|
|
|
|
* @hbox: The #GtkHBox returned by gimp_random_seed_new().
|
|
|
|
*
|
2010-07-06 01:04:15 +08:00
|
|
|
* Returns: the random_seed's #GtkSpinButton.
|
2010-07-06 00:01:28 +08:00
|
|
|
**/
|
2000-02-23 23:52:33 +08:00
|
|
|
#define GIMP_RANDOM_SEED_SPINBUTTON(hbox) \
|
2002-03-11 02:31:42 +08:00
|
|
|
(g_object_get_data (G_OBJECT (hbox), "spinbutton"))
|
2010-07-06 00:01:28 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GIMP_RANDOM_SEED_SPINBUTTON_ADJ:
|
|
|
|
* @hbox: The #GtkHBox returned by gimp_random_seed_new().
|
|
|
|
*
|
2010-07-06 01:04:15 +08:00
|
|
|
* Returns: the #GtkAdjustment of the random_seed's #GtkSpinButton.
|
2010-07-06 00:01:28 +08:00
|
|
|
**/
|
|
|
|
#define GIMP_RANDOM_SEED_SPINBUTTON_ADJ(hbox) \
|
2000-02-23 23:52:33 +08:00
|
|
|
gtk_spin_button_get_adjustment \
|
2001-11-22 21:01:26 +08:00
|
|
|
(GTK_SPIN_BUTTON (g_object_get_data (G_OBJECT (hbox), "spinbutton")))
|
2010-07-06 00:01:28 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GIMP_RANDOM_SEED_TOGGLE:
|
|
|
|
* @hbox: The #GtkHBox returned by gimp_random_seed_new().
|
|
|
|
*
|
2010-07-06 01:04:15 +08:00
|
|
|
* Returns: the random_seed's #GtkToggleButton.
|
2010-07-06 00:01:28 +08:00
|
|
|
**/
|
2004-02-01 07:34:56 +08:00
|
|
|
#define GIMP_RANDOM_SEED_TOGGLE(hbox) \
|
|
|
|
(g_object_get_data (G_OBJECT(hbox), "toggle"))
|
2000-02-23 23:52:33 +08:00
|
|
|
|
2003-12-17 22:39:38 +08:00
|
|
|
GtkWidget * gimp_random_seed_new (guint32 *seed,
|
2006-04-12 18:53:28 +08:00
|
|
|
gboolean *random_seed);
|
2000-01-26 01:46:56 +08:00
|
|
|
|
2010-07-06 00:01:28 +08:00
|
|
|
/**
|
|
|
|
* GIMP_COORDINATES_CHAINBUTTON:
|
|
|
|
* @sizeentry: The #GimpSizeEntry returned by gimp_coordinates_new().
|
|
|
|
*
|
2010-07-06 01:04:15 +08:00
|
|
|
* Returns: the #GimpChainButton which is attached to the
|
|
|
|
* #GimpSizeEntry.
|
2010-07-06 00:01:28 +08:00
|
|
|
**/
|
2000-02-23 23:52:33 +08:00
|
|
|
#define GIMP_COORDINATES_CHAINBUTTON(sizeentry) \
|
2002-03-11 02:31:42 +08:00
|
|
|
(g_object_get_data (G_OBJECT (sizeentry), "chainbutton"))
|
2000-02-23 23:52:33 +08:00
|
|
|
|
2000-02-08 04:35:13 +08:00
|
|
|
GtkWidget * gimp_coordinates_new (GimpUnit unit,
|
2006-04-12 18:53:28 +08:00
|
|
|
const gchar *unit_format,
|
|
|
|
gboolean menu_show_pixels,
|
|
|
|
gboolean menu_show_percent,
|
|
|
|
gint spinbutton_width,
|
|
|
|
GimpSizeEntryUpdatePolicy update_policy,
|
|
|
|
|
|
|
|
gboolean chainbutton_active,
|
|
|
|
gboolean chain_constrains_ratio,
|
|
|
|
|
|
|
|
const gchar *xlabel,
|
|
|
|
gdouble x,
|
|
|
|
gdouble xres,
|
|
|
|
gdouble lower_boundary_x,
|
|
|
|
gdouble upper_boundary_x,
|
|
|
|
gdouble xsize_0, /* % */
|
|
|
|
gdouble xsize_100, /* % */
|
|
|
|
|
|
|
|
const gchar *ylabel,
|
|
|
|
gdouble y,
|
|
|
|
gdouble yres,
|
|
|
|
gdouble lower_boundary_y,
|
|
|
|
gdouble upper_boundary_y,
|
|
|
|
gdouble ysize_0, /* % */
|
|
|
|
gdouble ysize_100 /* % */);
|
2000-02-01 04:47:44 +08:00
|
|
|
|
2000-03-15 07:06:21 +08:00
|
|
|
|
2000-01-13 23:39:26 +08:00
|
|
|
/*
|
|
|
|
* Standard Callbacks
|
|
|
|
*/
|
|
|
|
|
2000-02-23 23:52:33 +08:00
|
|
|
void gimp_toggle_button_update (GtkWidget *widget,
|
2006-04-12 18:53:28 +08:00
|
|
|
gpointer data);
|
2000-01-13 23:39:26 +08:00
|
|
|
|
2000-02-23 23:52:33 +08:00
|
|
|
void gimp_radio_button_update (GtkWidget *widget,
|
2006-04-12 18:53:28 +08:00
|
|
|
gpointer data);
|
2000-01-13 23:39:26 +08:00
|
|
|
|
2000-02-23 23:52:33 +08:00
|
|
|
void gimp_int_adjustment_update (GtkAdjustment *adjustment,
|
2006-04-12 18:53:28 +08:00
|
|
|
gpointer data);
|
2000-01-13 23:39:26 +08:00
|
|
|
|
2000-05-21 02:39:02 +08:00
|
|
|
void gimp_uint_adjustment_update (GtkAdjustment *adjustment,
|
2006-04-12 18:53:28 +08:00
|
|
|
gpointer data);
|
2000-05-21 02:39:02 +08:00
|
|
|
|
2000-02-23 23:52:33 +08:00
|
|
|
void gimp_float_adjustment_update (GtkAdjustment *adjustment,
|
2006-04-12 18:53:28 +08:00
|
|
|
gpointer data);
|
2000-01-15 23:32:28 +08:00
|
|
|
|
2000-02-23 23:52:33 +08:00
|
|
|
void gimp_double_adjustment_update (GtkAdjustment *adjustment,
|
2006-04-12 18:53:28 +08:00
|
|
|
gpointer data);
|
2000-01-13 23:39:26 +08:00
|
|
|
|
2001-01-11 06:49:45 +08:00
|
|
|
|
2001-11-22 21:01:26 +08:00
|
|
|
G_END_DECLS
|
2000-01-13 23:39:26 +08:00
|
|
|
|
|
|
|
#endif /* __GIMP_WIDGETS_H__ */
|