mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
075195d16b
2003-07-22 Michael Natterer <mitch@gimp.org> * app/core/gimpgradient.[ch]: added "gboolean reverse" to gimp_gradient_get_color_at() so all gradients can be used reversed. * app/core/gimpdrawable-blend.[ch] (gimp_drawable_blend) * app/core/gimppalette-import.[ch] (gimp_palette_import_from_gradient): added "gboolean reverse". * app/paint/paint-enums.[ch]: removed enum GimpGradientRepeatMode since it is identical to GimpRepeatMode, except for the now obsolete ONCE_BACKWARD value. * app/paint/gimppaintcore.[ch]: removed gimp_paint_core_get_color_from_gradient()... * app/paint/gimppaintoptions.[ch]: ...and added gimp_paint_options_get_gradient_color(), which is much more general. Added a "reverse" property to GimpGradientOptions and changed the type of the "repeat" property to GimpRepeatMode. * app/paint/gimppaintbrush.c: use gimp_paint_options_get_gradient_color(). * app/tools/gimpblendoptions.[ch]: removed the "repeat" property since it is in the parent class now. * app/gui/gradient-select.c * app/gui/palette-import-dialog.c * app/widgets/gimpgradienteditor.c * app/tools/gimpblendtool.c * tools/pdbgen/pdb/gradients.pdb * tools/pdbgen/pdb/misc_tools.pdb: changed accordingly. * app/tools/gimppaintoptions-gui.c: added a "Reverse" toggle right of the gradient preview. * app/widgets/gimppreviewrenderergradient.[ch]: added "gboolean reverse" member and gimp_preview_renderer_gradient_set_reverse() API. * tools/pdbgen/pdb/paint_tools.pdb: fixed the paintbrush invoker to set GimpPaintOption's "use-fade" and "use-gradient" properties correctly. * app/pdb/gradients_cmds.c * app/pdb/misc_tools_cmds.c * app/pdb/paint_tools_cmds.c * libgimp/gimpenums.h * libgimp/gimpmisctools_pdb.[ch] * plug-ins/pygimp/gimpenums.py * plug-ins/script-fu/script-fu-constants.c * tools/pdbgen/enums.pl: regenerated. * libgimp/gimpcompat.h * plug-ins/script-fu/siod-wrapper.c: removed GimpGradientPaintMode here too since it was only exported accidentially (it's not used by any external API). * plug-ins/script-fu/scripts/3dTruchet.scm * plug-ins/script-fu/scripts/alien-glow-arrow.scm * plug-ins/script-fu/scripts/alien-glow-bar.scm * plug-ins/script-fu/scripts/alien-glow-bullet.scm * plug-ins/script-fu/scripts/alien-glow-button.scm * plug-ins/script-fu/scripts/alien-glow-logo.scm * plug-ins/script-fu/scripts/basic1-logo.scm * plug-ins/script-fu/scripts/basic2-logo.scm * plug-ins/script-fu/scripts/beveled-button.scm * plug-ins/script-fu/scripts/blended-logo.scm * plug-ins/script-fu/scripts/burn-in-anim.scm * plug-ins/script-fu/scripts/coffee.scm * plug-ins/script-fu/scripts/comic-logo.scm * plug-ins/script-fu/scripts/coolmetal-logo.scm * plug-ins/script-fu/scripts/glossy.scm * plug-ins/script-fu/scripts/gradient-bevel-logo.scm * plug-ins/script-fu/scripts/gradient-example.scm * plug-ins/script-fu/scripts/pupi-button.scm * plug-ins/script-fu/scripts/rendermap.scm * plug-ins/script-fu/scripts/sphere.scm * plug-ins/script-fu/scripts/starscape-logo.scm * plug-ins/script-fu/scripts/test-sphere.scm * plug-ins/script-fu/scripts/textured-logo.scm * plug-ins/script-fu/scripts/title-header.scm * plug-ins/script-fu/scripts/weave.scm: pass "reverse" to gimp_blend(). Pass FALSE in most cases and added script parameters were it makes sense.
132 lines
4.3 KiB
C
132 lines
4.3 KiB
C
/* LIBGIMP - The GIMP Library
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
*
|
|
* gimpcompat.h
|
|
* Compatibility defines to ease migration from the GIMP-1.2 API
|
|
*
|
|
* 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
|
|
* 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
|
|
* 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.
|
|
*/
|
|
|
|
#ifndef __GIMP_COMPAT_H__
|
|
#define __GIMP_COMPAT_H__
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/* This file contains aliases that are kept for historical
|
|
* reasons, because a wide code base depends on them.
|
|
*
|
|
* These defines will be removed in the next development cycle.
|
|
*/
|
|
|
|
#define GimpRunModeType GimpRunMode
|
|
|
|
#define gimp_use_xshm TRUE
|
|
#define gimp_color_cube ((guchar *) { 6, 6, 4, 24 })
|
|
|
|
#define gimp_crop gimp_image_crop
|
|
|
|
#define gimp_gradients_get_active gimp_gradients_get_gradient
|
|
#define gimp_gradients_set_active gimp_gradients_set_gradient
|
|
|
|
#define gimp_help_init() ((void) 0)
|
|
#define gimp_help_free() ((void) 0)
|
|
|
|
#define gimp_interactive_selection_brush gimp_brush_select_new
|
|
#define gimp_brush_select_widget gimp_brush_select_widget_new
|
|
#define gimp_brush_select_widget_set_popup gimp_brush_select_widget_set
|
|
#define gimp_brush_select_widget_close_popup gimp_brush_select_widget_close
|
|
|
|
#define gimp_interactive_selection_font gimp_font_select_new
|
|
#define gimp_gradient_select_widget gimp_gradient_select_widget_new
|
|
#define gimp_gradient_select_widget_set_popup gimp_gradient_select_widget_set
|
|
#define gimp_gradient_select_widget_close_popup gimp_gradient_select_widget_close
|
|
|
|
#define gimp_interactive_selection_gradient gimp_gradient_select_new
|
|
#define gimp_font_select_widget gimp_font_select_widget_new
|
|
#define gimp_font_select_widget_set_popup gimp_font_select_widget_set
|
|
#define gimp_font_select_widget_close_popup gimp_font_select_widget_close
|
|
|
|
#define gimp_interactive_selection_pattern gimp_pattern_select_new
|
|
#define gimp_pattern_select_widget gimp_pattern_select_widget_new
|
|
#define gimp_pattern_select_widget_set_popup gimp_pattern_select_widget_set
|
|
#define gimp_pattern_select_widget_close_popup gimp_pattern_select_widget_close
|
|
|
|
|
|
enum
|
|
{
|
|
GIMP_WHITE_MASK = GIMP_ADD_WHITE_MASK,
|
|
GIMP_BLACK_MASK = GIMP_ADD_BLACK_MASK,
|
|
GIMP_ALPHA_MASK = GIMP_ADD_ALPHA_MASK,
|
|
GIMP_SELECTION_MASK = GIMP_ADD_SELECTION_MASK,
|
|
GIMP_INV_SELECTION_MASK = GIMP_ADD_INVERSE_SELECTION_MASK,
|
|
GIMP_COPY_MASK = GIMP_ADD_COPY_MASK,
|
|
GIMP_INV_COPY_MASK = GIMP_ADD_INVERSE_COPY_MASK
|
|
};
|
|
|
|
enum
|
|
{
|
|
GIMP_ADD = GIMP_CHANNEL_OP_ADD,
|
|
GIMP_SUB = GIMP_CHANNEL_OP_SUBTRACT,
|
|
GIMP_REPLACE = GIMP_CHANNEL_OP_REPLACE,
|
|
GIMP_INTERSECT = GIMP_CHANNEL_OP_INTERSECT
|
|
};
|
|
|
|
enum
|
|
{
|
|
GIMP_FG_BG_RGB = GIMP_FG_BG_RGB_MODE,
|
|
GIMP_FG_BG_HSV = GIMP_FG_BG_HSV_MODE,
|
|
GIMP_FG_TRANS = GIMP_FG_TRANSPARENT_MODE,
|
|
GIMP_CUSTOM = GIMP_CUSTOM_MODE
|
|
};
|
|
|
|
enum
|
|
{
|
|
GIMP_FG_IMAGE_FILL = GIMP_FOREGROUND_FILL,
|
|
GIMP_BG_IMAGE_FILL = GIMP_BACKGROUND_FILL,
|
|
GIMP_WHITE_IMAGE_FILL = GIMP_WHITE_FILL,
|
|
GIMP_TRANS_IMAGE_FILL = GIMP_TRANSPARENT_FILL,
|
|
GIMP_NO_IMAGE_FILL = GIMP_NO_FILL
|
|
};
|
|
|
|
enum
|
|
{
|
|
GIMP_APPLY = GIMP_MASK_APPLY,
|
|
GIMP_DISCARD = GIMP_MASK_DISCARD
|
|
};
|
|
|
|
enum
|
|
{
|
|
GIMP_HARD = GIMP_BRUSH_HARD,
|
|
GIMP_SOFT = GIMP_BRUSH_SOFT,
|
|
};
|
|
|
|
enum
|
|
{
|
|
GIMP_CONTINUOUS = GIMP_PAINT_CONSTANT,
|
|
GIMP_INCREMENTAL = GIMP_PAINT_INCREMENTAL
|
|
};
|
|
|
|
enum
|
|
{
|
|
GIMP_HORIZONTAL = GIMP_ORIENTATION_HORIZONTAL,
|
|
GIMP_VERTICAL = GIMP_ORIENTATION_VERTICAL,
|
|
GIMP_UNKNOWN = GIMP_ORIENTATION_UNKNOWN
|
|
} GimpOrientationType;
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GIMP_COMPAT_H__ */
|