mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 20:41:43 +00:00
4245ab65d3
2001-01-01 Michael Natterer <mitch@gimp.org> * plug-ins/libgck/gck/gck.h * plug-ins/libgck/gck/gckcolor.c: removed the GckRGB color type and all it's functions. * libgimp/Makefile.am * libgimp/gimpcolor.[ch]: new files containing the new GimpRGB color type and assorted functions. * libgimp/gimpcolorspace.[ch]: colorspace conversion routines for the new GimpRGB type. Also taken from LibGCK. * libgimp/gimp.h * libgimp/gimptypes.h: #include "gimpcolor.h". It's ugly to include it in both files but unavoidable to follow our new "*.c" file include policy. This will go away as libgimp will be chopped up into pieces anyway. * app/apptypes.h * app/asupsample.[ch] * app/blend.c * app/color_transfer.h * app/gradient_header.h: removed "color_t" and use GimpRGB instead. * plug-ins/Lighting/lighting_apply.c * plug-ins/Lighting/lighting_image.c * plug-ins/Lighting/lighting_image.h * plug-ins/Lighting/lighting_main.c * plug-ins/Lighting/lighting_main.h * plug-ins/Lighting/lighting_preview.c * plug-ins/Lighting/lighting_shade.c * plug-ins/Lighting/lighting_shade.h * plug-ins/MapObject/mapobject_apply.c * plug-ins/MapObject/mapobject_image.c * plug-ins/MapObject/mapobject_image.h * plug-ins/MapObject/mapobject_main.c * plug-ins/MapObject/mapobject_main.h * plug-ins/MapObject/mapobject_preview.c * plug-ins/MapObject/mapobject_shade.c * plug-ins/MapObject/mapobject_shade.h * modules/colorsel_triangle.c: s/GckRGB/GimpRGB/g * plug-ins/gdyntext/gdyntextcompat.h: check also for GIMP's minor version when deciding if to add a missing PDB wrapper. (All this compat cruft including libgimp/gimpcompat.h should go away ASAP)
69 lines
1.9 KiB
C
69 lines
1.9 KiB
C
/* The GIMP -- an image manipulation program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program 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 General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __GRADIENT_HEADER_H__
|
|
#define __GRADIENT_HEADER_H__
|
|
|
|
|
|
/***** Types *****/
|
|
|
|
/* Gradient segment type */
|
|
|
|
typedef enum
|
|
{
|
|
GRAD_LINEAR = 0,
|
|
GRAD_CURVED,
|
|
GRAD_SINE,
|
|
GRAD_SPHERE_INCREASING,
|
|
GRAD_SPHERE_DECREASING
|
|
} grad_type_t;
|
|
|
|
typedef enum
|
|
{
|
|
GRAD_RGB = 0, /* normal RGB */
|
|
GRAD_HSV_CCW, /* counterclockwise hue */
|
|
GRAD_HSV_CW /* clockwise hue */
|
|
} grad_color_t;
|
|
|
|
typedef struct _grad_segment_t grad_segment_t;
|
|
|
|
struct _gradient_t
|
|
{
|
|
gchar *name;
|
|
gchar *filename;
|
|
|
|
grad_segment_t *segments;
|
|
grad_segment_t *last_visited;
|
|
|
|
gboolean dirty;
|
|
GdkPixmap *pixmap;
|
|
};
|
|
|
|
struct _grad_segment_t
|
|
{
|
|
gdouble left, middle, right; /* Left pos, midpoint, right pos */
|
|
gdouble r0, g0, b0, a0; /* Left color */
|
|
gdouble r1, g1, b1, a1; /* Right color */
|
|
grad_type_t type; /* Segment's blending function */
|
|
grad_color_t color; /* Segment's coloring type */
|
|
|
|
struct _grad_segment_t *prev, *next; /* For linked list of segments */
|
|
};
|
|
|
|
#endif /* __GRADIENT_HEADER_H__ */
|