2000-02-25 19:41:06 -08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
2000-01-13 07:39:26 -08:00
|
|
|
*
|
|
|
|
|
* gimpwidgets.h
|
|
|
|
|
* Copyright (C) 2000 Michael Natterer <mitch@gimp.org>
|
|
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
2000-02-25 19:41:06 -08:00
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* 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 07:39:26 -08:00
|
|
|
* Lesser General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
|
*/
|
2000-05-30 16:38:46 -07:00
|
|
|
|
2000-01-13 07:39:26 -08:00
|
|
|
#ifndef __GIMP_WIDGETS_H__
|
|
|
|
|
#define __GIMP_WIDGETS_H__
|
|
|
|
|
|
2001-01-24 14:36:18 -08:00
|
|
|
|
|
|
|
|
#include <libgimpwidgets/gimpwidgetstypes.h>
|
|
|
|
|
|
2001-05-06 13:31:46 -07:00
|
|
|
#include <libgimpwidgets/gimpbutton.h>
|
2001-01-24 14:36:18 -08:00
|
|
|
#include <libgimpwidgets/gimpchainbutton.h>
|
|
|
|
|
#include <libgimpwidgets/gimpcolorarea.h>
|
|
|
|
|
#include <libgimpwidgets/gimpcolorbutton.h>
|
2002-10-20 03:14:17 -07:00
|
|
|
#include <libgimpwidgets/gimpcolordisplay.h>
|
2002-10-28 05:19:02 -08:00
|
|
|
#include <libgimpwidgets/gimpcolornotebook.h>
|
2002-10-29 15:16:17 -08:00
|
|
|
#include <libgimpwidgets/gimpcolorscale.h>
|
2002-10-28 12:13:17 -08:00
|
|
|
#include <libgimpwidgets/gimpcolorscales.h>
|
2002-10-20 03:14:17 -07:00
|
|
|
#include <libgimpwidgets/gimpcolorselector.h>
|
|
|
|
|
#include <libgimpwidgets/gimpcolorselect.h>
|
2001-01-24 14:36:18 -08:00
|
|
|
#include <libgimpwidgets/gimpdialog.h>
|
|
|
|
|
#include <libgimpwidgets/gimpfileselection.h>
|
|
|
|
|
#include <libgimpwidgets/gimphelpui.h>
|
2003-01-05 05:52:14 -08:00
|
|
|
#include <libgimpwidgets/gimpmemsizeentry.h>
|
2001-05-06 14:51:20 -07:00
|
|
|
#include <libgimpwidgets/gimpoffsetarea.h>
|
2001-01-24 14:36:18 -08:00
|
|
|
#include <libgimpwidgets/gimppatheditor.h>
|
2002-11-04 14:56:41 -08:00
|
|
|
#include <libgimpwidgets/gimppickbutton.h>
|
2001-01-24 14:36:18 -08:00
|
|
|
#include <libgimpwidgets/gimppixmap.h>
|
|
|
|
|
#include <libgimpwidgets/gimpquerybox.h>
|
|
|
|
|
#include <libgimpwidgets/gimpsizeentry.h>
|
2001-08-04 07:10:58 -07:00
|
|
|
#include <libgimpwidgets/gimpstock.h>
|
2001-01-24 14:36:18 -08:00
|
|
|
#include <libgimpwidgets/gimpunitmenu.h>
|
|
|
|
|
|
|
|
|
|
|
2001-11-22 05:01:26 -08:00
|
|
|
G_BEGIN_DECLS
|
2000-01-13 07:39:26 -08:00
|
|
|
|
2000-02-23 07:52:33 -08:00
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
2001-11-27 17:14:06 -08:00
|
|
|
|
2000-01-13 07:39:26 -08:00
|
|
|
/*
|
|
|
|
|
* Widget Constructors
|
|
|
|
|
*/
|
|
|
|
|
|
2000-01-26 17:22:27 -08:00
|
|
|
GtkWidget * gimp_option_menu_new (gboolean menu_only,
|
|
|
|
|
|
|
|
|
|
/* specify menu items as va_list:
|
|
|
|
|
* gchar *label,
|
Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning)
2001-07-24 Michael Natterer <mitch@gimp.org>
Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning)
* configure.in: require glib/gtk+ >= 1.3.7, commented out the
gtkxmhtml stuff.
From now on, you will need glib, pango, atk and gtk+ HEAD from CVS
to hack or use GIMP HEAD.
Beware, it crashes randomly :)
* app/core/Makefile.am
* app/core/gimpmarshal.list: new file plus rules to generate
gimpmarshal.[ch] from it.
* app/core/*
* app/tools/*
* app/widgets/*
* libgimpwidgets/*: started to use the glib object system. All
core/ objects are still gtk objects however. All signals are
created using g_signal_new(). There are many gtk+ artefacts left.
Finally, we will _not_ use the gtk_signal_foo() wrappers and
friends any more.
* app/colormaps.c
* app/devices.[ch]
* app/disp_callbacks.c
* app/errorconsole.c
* app/file-save.[ch]
* app/interface.c
* app/module_db.c
* app/nav_window.c
* app/ops_buttons.c
* app/scroll.c
* app/user_install.c
* app/gui/about-dialog.c
* app/gui/brush-editor.c
* app/gui/brushes-commands.c
* app/gui/color-notebook.c
* app/gui/colormap-dialog.c
* app/gui/dialogs-commands.c
* app/gui/dialogs-constructors.c
* app/gui/file-commands.c
* app/gui/file-dialog-utils.c
* app/gui/file-new-dialog.c
* app/gui/file-open-dialog.[ch]
* app/gui/file-save-dialog.c
* app/gui/gradient-editor.c
* app/gui/gradients-commands.c
* app/gui/image-commands.c
* app/gui/info-dialog.[ch]
* app/gui/layer-select.c
* app/gui/layers-commands.c
* app/gui/menus.c
* app/gui/offset-dialog.c
* app/gui/palette-editor.c
* app/gui/palettes-commands.c
* app/gui/patterns-commands.c
* app/gui/preferences-dialog.c
* app/gui/resize-dialog.[ch]
* app/gui/splash.c
* app/gui/tips-dialog.c
* app/gui/tool-options-dialog.c
* app/gui/toolbox.c
* app/gui/tools-commands.c
* libgimp/gimpbrushmenu.c
* libgimp/gimpmenu.c
* libgimp/gimppatternmenu.c
* libgimp/gimpui.c
* libgimpbase/gimpenv.c: tons and tons of changes like "const
gchar*", switch from GdkDeviceInfo to GdkDevice (very incomplete
and currently disables), lots of s/gtk_signal/g_signal/,
removal/replacement of deprecated stuff,
s/GtkSignalFunc/GCallback/ and lots of small changes and fixes
while I was on it, zillions of warnings left...
* modules/Makefile.am: disabled the water color selector
temporarily (XInput issues).
* plug-ins/Makefile.am
* plug-ins/common/.cvsignore
* plug-ins/common/Makefile.am
* plug-ins/common/plugin-defs.pl: simply excluded all plug-ins
which did not build (including Script-Fu). They are trivial to
fix.
2001-07-24 14:27:11 -07:00
|
|
|
* GCallback callback,
|
2001-11-22 05:01:26 -08:00
|
|
|
* gpointer callback_data,
|
|
|
|
|
* gpointer item_data,
|
2000-01-26 17:22:27 -08:00
|
|
|
* GtkWidget **widget_ptr,
|
|
|
|
|
* gboolean active
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
...);
|
|
|
|
|
|
|
|
|
|
GtkWidget * gimp_option_menu_new2 (gboolean menu_only,
|
Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning)
2001-07-24 Michael Natterer <mitch@gimp.org>
Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning)
* configure.in: require glib/gtk+ >= 1.3.7, commented out the
gtkxmhtml stuff.
From now on, you will need glib, pango, atk and gtk+ HEAD from CVS
to hack or use GIMP HEAD.
Beware, it crashes randomly :)
* app/core/Makefile.am
* app/core/gimpmarshal.list: new file plus rules to generate
gimpmarshal.[ch] from it.
* app/core/*
* app/tools/*
* app/widgets/*
* libgimpwidgets/*: started to use the glib object system. All
core/ objects are still gtk objects however. All signals are
created using g_signal_new(). There are many gtk+ artefacts left.
Finally, we will _not_ use the gtk_signal_foo() wrappers and
friends any more.
* app/colormaps.c
* app/devices.[ch]
* app/disp_callbacks.c
* app/errorconsole.c
* app/file-save.[ch]
* app/interface.c
* app/module_db.c
* app/nav_window.c
* app/ops_buttons.c
* app/scroll.c
* app/user_install.c
* app/gui/about-dialog.c
* app/gui/brush-editor.c
* app/gui/brushes-commands.c
* app/gui/color-notebook.c
* app/gui/colormap-dialog.c
* app/gui/dialogs-commands.c
* app/gui/dialogs-constructors.c
* app/gui/file-commands.c
* app/gui/file-dialog-utils.c
* app/gui/file-new-dialog.c
* app/gui/file-open-dialog.[ch]
* app/gui/file-save-dialog.c
* app/gui/gradient-editor.c
* app/gui/gradients-commands.c
* app/gui/image-commands.c
* app/gui/info-dialog.[ch]
* app/gui/layer-select.c
* app/gui/layers-commands.c
* app/gui/menus.c
* app/gui/offset-dialog.c
* app/gui/palette-editor.c
* app/gui/palettes-commands.c
* app/gui/patterns-commands.c
* app/gui/preferences-dialog.c
* app/gui/resize-dialog.[ch]
* app/gui/splash.c
* app/gui/tips-dialog.c
* app/gui/tool-options-dialog.c
* app/gui/toolbox.c
* app/gui/tools-commands.c
* libgimp/gimpbrushmenu.c
* libgimp/gimpmenu.c
* libgimp/gimppatternmenu.c
* libgimp/gimpui.c
* libgimpbase/gimpenv.c: tons and tons of changes like "const
gchar*", switch from GdkDeviceInfo to GdkDevice (very incomplete
and currently disables), lots of s/gtk_signal/g_signal/,
removal/replacement of deprecated stuff,
s/GtkSignalFunc/GCallback/ and lots of small changes and fixes
while I was on it, zillions of warnings left...
* modules/Makefile.am: disabled the water color selector
temporarily (XInput issues).
* plug-ins/Makefile.am
* plug-ins/common/.cvsignore
* plug-ins/common/Makefile.am
* plug-ins/common/plugin-defs.pl: simply excluded all plug-ins
which did not build (including Script-Fu). They are trivial to
fix.
2001-07-24 14:27:11 -07:00
|
|
|
GCallback menu_item_callback,
|
2001-11-22 05:01:26 -08:00
|
|
|
gpointer menu_item_callback_data,
|
|
|
|
|
gpointer initial, /* item_data */
|
2000-01-13 07:39:26 -08:00
|
|
|
|
|
|
|
|
/* specify menu items as va_list:
|
|
|
|
|
* gchar *label,
|
2001-11-22 05:01:26 -08:00
|
|
|
* gpointer item_data,
|
2000-01-13 07:39:26 -08:00
|
|
|
* GtkWidget **widget_ptr,
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
...);
|
|
|
|
|
|
2002-03-17 08:35:05 -08:00
|
|
|
void gimp_option_menu_set_history (GtkOptionMenu *option_menu,
|
|
|
|
|
gpointer item_data);
|
|
|
|
|
|
|
|
|
|
typedef gboolean (*GimpOptionMenuSensitivityCallback) (gpointer item_data,
|
|
|
|
|
gpointer callback_data);
|
|
|
|
|
void gimp_option_menu_set_sensitive (GtkOptionMenu *option_menu,
|
|
|
|
|
GimpOptionMenuSensitivityCallback callback,
|
|
|
|
|
gpointer callback_data);
|
2000-02-13 14:26:41 -08:00
|
|
|
|
2000-01-13 07:39:26 -08:00
|
|
|
GtkWidget * gimp_radio_group_new (gboolean in_frame,
|
2000-11-17 16:25:42 -08:00
|
|
|
const gchar *frame_title,
|
2000-01-13 07:39:26 -08:00
|
|
|
|
|
|
|
|
/* specify radio buttons as va_list:
|
2000-11-17 16:25:42 -08:00
|
|
|
* const gchar *label,
|
Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning)
2001-07-24 Michael Natterer <mitch@gimp.org>
Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning)
* configure.in: require glib/gtk+ >= 1.3.7, commented out the
gtkxmhtml stuff.
From now on, you will need glib, pango, atk and gtk+ HEAD from CVS
to hack or use GIMP HEAD.
Beware, it crashes randomly :)
* app/core/Makefile.am
* app/core/gimpmarshal.list: new file plus rules to generate
gimpmarshal.[ch] from it.
* app/core/*
* app/tools/*
* app/widgets/*
* libgimpwidgets/*: started to use the glib object system. All
core/ objects are still gtk objects however. All signals are
created using g_signal_new(). There are many gtk+ artefacts left.
Finally, we will _not_ use the gtk_signal_foo() wrappers and
friends any more.
* app/colormaps.c
* app/devices.[ch]
* app/disp_callbacks.c
* app/errorconsole.c
* app/file-save.[ch]
* app/interface.c
* app/module_db.c
* app/nav_window.c
* app/ops_buttons.c
* app/scroll.c
* app/user_install.c
* app/gui/about-dialog.c
* app/gui/brush-editor.c
* app/gui/brushes-commands.c
* app/gui/color-notebook.c
* app/gui/colormap-dialog.c
* app/gui/dialogs-commands.c
* app/gui/dialogs-constructors.c
* app/gui/file-commands.c
* app/gui/file-dialog-utils.c
* app/gui/file-new-dialog.c
* app/gui/file-open-dialog.[ch]
* app/gui/file-save-dialog.c
* app/gui/gradient-editor.c
* app/gui/gradients-commands.c
* app/gui/image-commands.c
* app/gui/info-dialog.[ch]
* app/gui/layer-select.c
* app/gui/layers-commands.c
* app/gui/menus.c
* app/gui/offset-dialog.c
* app/gui/palette-editor.c
* app/gui/palettes-commands.c
* app/gui/patterns-commands.c
* app/gui/preferences-dialog.c
* app/gui/resize-dialog.[ch]
* app/gui/splash.c
* app/gui/tips-dialog.c
* app/gui/tool-options-dialog.c
* app/gui/toolbox.c
* app/gui/tools-commands.c
* libgimp/gimpbrushmenu.c
* libgimp/gimpmenu.c
* libgimp/gimppatternmenu.c
* libgimp/gimpui.c
* libgimpbase/gimpenv.c: tons and tons of changes like "const
gchar*", switch from GdkDeviceInfo to GdkDevice (very incomplete
and currently disables), lots of s/gtk_signal/g_signal/,
removal/replacement of deprecated stuff,
s/GtkSignalFunc/GCallback/ and lots of small changes and fixes
while I was on it, zillions of warnings left...
* modules/Makefile.am: disabled the water color selector
temporarily (XInput issues).
* plug-ins/Makefile.am
* plug-ins/common/.cvsignore
* plug-ins/common/Makefile.am
* plug-ins/common/plugin-defs.pl: simply excluded all plug-ins
which did not build (including Script-Fu). They are trivial to
fix.
2001-07-24 14:27:11 -07:00
|
|
|
* GCallback callback,
|
2001-11-22 05:01:26 -08:00
|
|
|
* gpointer callback_data,
|
|
|
|
|
* gpointer item_data,
|
2000-01-13 07:39:26 -08:00
|
|
|
* GtkWidget **widget_ptr,
|
|
|
|
|
* gboolean active,
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
...);
|
|
|
|
|
|
|
|
|
|
GtkWidget * gimp_radio_group_new2 (gboolean in_frame,
|
2000-11-17 16:25:42 -08:00
|
|
|
const gchar *frame_title,
|
Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning)
2001-07-24 Michael Natterer <mitch@gimp.org>
Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning)
* configure.in: require glib/gtk+ >= 1.3.7, commented out the
gtkxmhtml stuff.
From now on, you will need glib, pango, atk and gtk+ HEAD from CVS
to hack or use GIMP HEAD.
Beware, it crashes randomly :)
* app/core/Makefile.am
* app/core/gimpmarshal.list: new file plus rules to generate
gimpmarshal.[ch] from it.
* app/core/*
* app/tools/*
* app/widgets/*
* libgimpwidgets/*: started to use the glib object system. All
core/ objects are still gtk objects however. All signals are
created using g_signal_new(). There are many gtk+ artefacts left.
Finally, we will _not_ use the gtk_signal_foo() wrappers and
friends any more.
* app/colormaps.c
* app/devices.[ch]
* app/disp_callbacks.c
* app/errorconsole.c
* app/file-save.[ch]
* app/interface.c
* app/module_db.c
* app/nav_window.c
* app/ops_buttons.c
* app/scroll.c
* app/user_install.c
* app/gui/about-dialog.c
* app/gui/brush-editor.c
* app/gui/brushes-commands.c
* app/gui/color-notebook.c
* app/gui/colormap-dialog.c
* app/gui/dialogs-commands.c
* app/gui/dialogs-constructors.c
* app/gui/file-commands.c
* app/gui/file-dialog-utils.c
* app/gui/file-new-dialog.c
* app/gui/file-open-dialog.[ch]
* app/gui/file-save-dialog.c
* app/gui/gradient-editor.c
* app/gui/gradients-commands.c
* app/gui/image-commands.c
* app/gui/info-dialog.[ch]
* app/gui/layer-select.c
* app/gui/layers-commands.c
* app/gui/menus.c
* app/gui/offset-dialog.c
* app/gui/palette-editor.c
* app/gui/palettes-commands.c
* app/gui/patterns-commands.c
* app/gui/preferences-dialog.c
* app/gui/resize-dialog.[ch]
* app/gui/splash.c
* app/gui/tips-dialog.c
* app/gui/tool-options-dialog.c
* app/gui/toolbox.c
* app/gui/tools-commands.c
* libgimp/gimpbrushmenu.c
* libgimp/gimpmenu.c
* libgimp/gimppatternmenu.c
* libgimp/gimpui.c
* libgimpbase/gimpenv.c: tons and tons of changes like "const
gchar*", switch from GdkDeviceInfo to GdkDevice (very incomplete
and currently disables), lots of s/gtk_signal/g_signal/,
removal/replacement of deprecated stuff,
s/GtkSignalFunc/GCallback/ and lots of small changes and fixes
while I was on it, zillions of warnings left...
* modules/Makefile.am: disabled the water color selector
temporarily (XInput issues).
* plug-ins/Makefile.am
* plug-ins/common/.cvsignore
* plug-ins/common/Makefile.am
* plug-ins/common/plugin-defs.pl: simply excluded all plug-ins
which did not build (including Script-Fu). They are trivial to
fix.
2001-07-24 14:27:11 -07:00
|
|
|
GCallback radio_button_callback,
|
2001-11-22 05:01:26 -08:00
|
|
|
gpointer radio_button_callback_data,
|
|
|
|
|
gpointer initial, /* item_data */
|
2000-01-13 07:39:26 -08:00
|
|
|
|
|
|
|
|
/* specify radio buttons as va_list:
|
2000-11-17 16:25:42 -08:00
|
|
|
* const gchar *label,
|
2001-11-22 05:01:26 -08:00
|
|
|
* gpointer item_data,
|
2000-01-13 07:39:26 -08:00
|
|
|
* GtkWidget **widget_ptr,
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
...);
|
|
|
|
|
|
2001-11-22 05:01:26 -08:00
|
|
|
void gimp_radio_group_set_active (GtkRadioButton *radio_button,
|
|
|
|
|
gpointer item_data);
|
|
|
|
|
|
2000-01-13 07:39:26 -08:00
|
|
|
GtkWidget * gimp_spin_button_new (/* return value: */
|
|
|
|
|
GtkObject **adjustment,
|
|
|
|
|
|
2003-02-26 04:48:48 -08:00
|
|
|
gdouble value,
|
|
|
|
|
gdouble lower,
|
|
|
|
|
gdouble upper,
|
|
|
|
|
gdouble step_increment,
|
|
|
|
|
gdouble page_increment,
|
|
|
|
|
gdouble page_size,
|
|
|
|
|
gdouble climb_rate,
|
2000-01-13 07:39:26 -08:00
|
|
|
guint digits);
|
|
|
|
|
|
2000-02-17 15:48:13 -08:00
|
|
|
#define GIMP_SCALE_ENTRY_LABEL(adj) \
|
2002-03-10 10:31:42 -08:00
|
|
|
(g_object_get_data (G_OBJECT (adj), "label"))
|
2000-02-17 15:48:13 -08:00
|
|
|
|
|
|
|
|
#define GIMP_SCALE_ENTRY_SCALE(adj) \
|
2002-03-10 10:31:42 -08:00
|
|
|
(g_object_get_data (G_OBJECT (adj), "scale"))
|
2000-02-17 15:48:13 -08:00
|
|
|
#define GIMP_SCALE_ENTRY_SCALE_ADJ(adj) \
|
|
|
|
|
gtk_range_get_adjustment \
|
2001-11-22 05:01:26 -08:00
|
|
|
(GTK_RANGE (g_object_get_data (G_OBJECT (adj), "scale")))
|
2000-02-17 15:48:13 -08:00
|
|
|
|
|
|
|
|
#define GIMP_SCALE_ENTRY_SPINBUTTON(adj) \
|
2002-03-10 10:31:42 -08:00
|
|
|
(g_object_get_data (G_OBJECT (adj), "spinbutton"))
|
2000-02-17 15:48:13 -08:00
|
|
|
#define GIMP_SCALE_ENTRY_SPINBUTTON_ADJ(adj) \
|
|
|
|
|
gtk_spin_button_get_adjustment \
|
2001-11-22 05:01:26 -08:00
|
|
|
(GTK_SPIN_BUTTON (g_object_get_data (G_OBJECT (adj), "spinbutton")))
|
2000-02-17 15:48:13 -08:00
|
|
|
|
2002-10-30 08:10:18 -08:00
|
|
|
GtkObject * gimp_scale_entry_new (GtkTable *table,
|
|
|
|
|
gint column,
|
|
|
|
|
gint row,
|
|
|
|
|
const gchar *text,
|
|
|
|
|
gint scale_width,
|
|
|
|
|
gint spinbutton_width,
|
2003-02-26 04:48:48 -08:00
|
|
|
gdouble value,
|
|
|
|
|
gdouble lower,
|
|
|
|
|
gdouble upper,
|
|
|
|
|
gdouble step_increment,
|
|
|
|
|
gdouble page_increment,
|
2002-10-30 08:10:18 -08:00
|
|
|
guint digits,
|
|
|
|
|
gboolean constrain,
|
2003-02-26 04:48:48 -08:00
|
|
|
gdouble unconstrained_lower,
|
|
|
|
|
gdouble unconstrained_upper,
|
2002-10-30 08:10:18 -08:00
|
|
|
const gchar *tooltip,
|
2003-08-23 12:35:05 -07:00
|
|
|
const gchar *help_id);
|
2002-10-30 08:10:18 -08:00
|
|
|
|
|
|
|
|
GtkObject * gimp_color_scale_entry_new (GtkTable *table,
|
|
|
|
|
gint column,
|
|
|
|
|
gint row,
|
|
|
|
|
const gchar *text,
|
|
|
|
|
gint scale_width,
|
|
|
|
|
gint spinbutton_width,
|
2003-02-26 04:48:48 -08:00
|
|
|
gdouble value,
|
|
|
|
|
gdouble lower,
|
|
|
|
|
gdouble upper,
|
|
|
|
|
gdouble step_increment,
|
|
|
|
|
gdouble page_increment,
|
2002-10-30 08:10:18 -08:00
|
|
|
guint digits,
|
|
|
|
|
const gchar *tooltip,
|
2003-08-23 12:35:05 -07:00
|
|
|
const gchar *help_id);
|
2002-10-30 08:10:18 -08:00
|
|
|
|
|
|
|
|
void gimp_scale_entry_set_sensitive (GtkObject *adjustment,
|
|
|
|
|
gboolean sensitive);
|
2002-10-08 10:36:32 -07:00
|
|
|
|
|
|
|
|
|
2000-02-23 07:52:33 -08:00
|
|
|
#define GIMP_RANDOM_SEED_SPINBUTTON(hbox) \
|
2002-03-10 10:31:42 -08:00
|
|
|
(g_object_get_data (G_OBJECT (hbox), "spinbutton"))
|
2000-02-23 07:52:33 -08:00
|
|
|
#define GIMP_RANDOM_SEED_SPINBUTTON_ADJ(hbox) \
|
|
|
|
|
gtk_spin_button_get_adjustment \
|
2001-11-22 05:01:26 -08:00
|
|
|
(GTK_SPIN_BUTTON (g_object_get_data (G_OBJECT (hbox), "spinbutton")))
|
2000-02-23 07:52:33 -08:00
|
|
|
|
2002-11-24 11:26:58 -08:00
|
|
|
GtkWidget * gimp_random_seed_new (guint32 *seed);
|
2000-01-25 09:46:56 -08:00
|
|
|
|
2000-02-23 07:52:33 -08:00
|
|
|
#define GIMP_COORDINATES_CHAINBUTTON(sizeentry) \
|
2002-03-10 10:31:42 -08:00
|
|
|
(g_object_get_data (G_OBJECT (sizeentry), "chainbutton"))
|
2000-02-23 07:52:33 -08:00
|
|
|
|
2000-02-07 12:35:13 -08:00
|
|
|
GtkWidget * gimp_coordinates_new (GimpUnit unit,
|
2000-11-17 16:25:42 -08:00
|
|
|
const gchar *unit_format,
|
2000-01-31 12:47:44 -08:00
|
|
|
gboolean menu_show_pixels,
|
|
|
|
|
gboolean menu_show_percent,
|
2001-11-11 10:35:25 -08:00
|
|
|
gint spinbutton_width,
|
2000-02-07 12:35:13 -08:00
|
|
|
GimpSizeEntryUpdatePolicy update_policy,
|
2000-01-31 12:47:44 -08:00
|
|
|
|
2000-02-02 09:59:44 -08:00
|
|
|
gboolean chainbutton_active,
|
|
|
|
|
gboolean chain_constrains_ratio,
|
|
|
|
|
|
2000-11-17 16:25:42 -08:00
|
|
|
const gchar *xlabel,
|
2000-01-31 12:47:44 -08:00
|
|
|
gdouble x,
|
|
|
|
|
gdouble xres,
|
2000-02-02 09:59:44 -08:00
|
|
|
gdouble lower_boundary_x,
|
|
|
|
|
gdouble upper_boundary_x,
|
|
|
|
|
gdouble xsize_0, /* % */
|
|
|
|
|
gdouble xsize_100, /* % */
|
2000-01-31 12:47:44 -08:00
|
|
|
|
2000-11-17 16:25:42 -08:00
|
|
|
const gchar *ylabel,
|
2000-01-31 12:47:44 -08:00
|
|
|
gdouble y,
|
|
|
|
|
gdouble yres,
|
2000-02-02 09:59:44 -08:00
|
|
|
gdouble lower_boundary_y,
|
|
|
|
|
gdouble upper_boundary_y,
|
|
|
|
|
gdouble ysize_0, /* % */
|
|
|
|
|
gdouble ysize_100 /* % */);
|
2000-01-31 12:47:44 -08:00
|
|
|
|
2000-03-14 15:06:21 -08:00
|
|
|
|
|
|
|
|
GtkWidget * gimp_pixmap_button_new (gchar **xpm_data,
|
2000-11-17 16:25:42 -08:00
|
|
|
const gchar *text);
|
2000-02-18 05:59:18 -08:00
|
|
|
|
2000-01-13 07:39:26 -08:00
|
|
|
/*
|
|
|
|
|
* Standard Callbacks
|
|
|
|
|
*/
|
|
|
|
|
|
2000-02-23 07:52:33 -08:00
|
|
|
void gimp_toggle_button_sensitive_update (GtkToggleButton *toggle_button);
|
|
|
|
|
|
|
|
|
|
void gimp_toggle_button_update (GtkWidget *widget,
|
|
|
|
|
gpointer data);
|
2000-01-13 07:39:26 -08:00
|
|
|
|
2000-02-23 07:52:33 -08:00
|
|
|
void gimp_radio_button_update (GtkWidget *widget,
|
|
|
|
|
gpointer data);
|
2000-01-13 07:39:26 -08:00
|
|
|
|
2000-02-23 07:52:33 -08:00
|
|
|
void gimp_menu_item_update (GtkWidget *widget,
|
|
|
|
|
gpointer data);
|
2000-01-13 07:39:26 -08:00
|
|
|
|
2000-02-23 07:52:33 -08:00
|
|
|
void gimp_int_adjustment_update (GtkAdjustment *adjustment,
|
|
|
|
|
gpointer data);
|
2000-01-13 07:39:26 -08:00
|
|
|
|
2000-05-20 11:39:02 -07:00
|
|
|
void gimp_uint_adjustment_update (GtkAdjustment *adjustment,
|
|
|
|
|
gpointer data);
|
|
|
|
|
|
2000-02-23 07:52:33 -08:00
|
|
|
void gimp_float_adjustment_update (GtkAdjustment *adjustment,
|
|
|
|
|
gpointer data);
|
2000-01-15 07:32:28 -08:00
|
|
|
|
2000-02-23 07:52:33 -08:00
|
|
|
void gimp_double_adjustment_update (GtkAdjustment *adjustment,
|
|
|
|
|
gpointer data);
|
2000-01-13 07:39:26 -08:00
|
|
|
|
2000-02-23 07:52:33 -08:00
|
|
|
void gimp_unit_menu_update (GtkWidget *widget,
|
|
|
|
|
gpointer data);
|
2000-01-14 04:41:00 -08:00
|
|
|
|
2001-01-10 14:49:45 -08:00
|
|
|
|
2000-01-13 07:39:26 -08:00
|
|
|
/*
|
|
|
|
|
* Helper Functions
|
|
|
|
|
*/
|
|
|
|
|
|
2002-03-08 10:30:40 -08:00
|
|
|
GtkWidget * gimp_table_attach_aligned (GtkTable *table,
|
|
|
|
|
gint column,
|
|
|
|
|
gint row,
|
|
|
|
|
const gchar *label_text,
|
|
|
|
|
gfloat xalign,
|
|
|
|
|
gfloat yalign,
|
|
|
|
|
GtkWidget *widget,
|
|
|
|
|
gint colspan,
|
|
|
|
|
gboolean left_align);
|
2000-01-27 11:26:00 -08:00
|
|
|
|
2000-05-30 16:38:46 -07:00
|
|
|
|
2001-11-22 05:01:26 -08:00
|
|
|
G_END_DECLS
|
2000-01-13 07:39:26 -08:00
|
|
|
|
|
|
|
|
#endif /* __GIMP_WIDGETS_H__ */
|