home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / app / gradient.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-30  |  1.7 KB  |  48 lines

  1. /* The GIMP -- an image manipulation program
  2.  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  3.  *
  4.  * Gradient editor module copyight (C) 1996-1997 Federico Mena Quintero
  5.  * federico@nuclecu.unam.mx
  6.  *
  7.  * This program is free software; you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License as published by
  9.  * the Free Software Foundation; either version 2 of the License, or
  10.  * (at your option) any later version.
  11.  *
  12.  * This program is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  * GNU General Public License for more details.
  16.  *
  17.  * You should have received a copy of the GNU General Public License
  18.  * along with this program; if not, write to the Free Software
  19.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  20.  */
  21. #ifndef __GRADIENT_H__
  22. #define __GRADIENT_H__
  23.  
  24. typedef struct _gradient_t gradient_t;
  25.  
  26. /*  global variables  */
  27. extern GSList * gradients_list;
  28. extern gint     num_gradients;
  29.  
  30. void         gradients_init                   (gint        no_data);
  31. void         gradients_free                   (void);
  32.  
  33. gradient_t * gradients_get_standard_gradient  (void);
  34.  
  35. gradient_t * gradient_list_get_gradient       (GSList     *list,
  36.                            gchar      *name);
  37. gint         gradient_list_get_gradient_index (GSList     *list,
  38.                            gradient_t *gradient);
  39.  
  40. void         gradient_get_color_at            (gradient_t *gradient,
  41.                            gdouble     pos,
  42.                            gdouble    *r,
  43.                            gdouble    *g,
  44.                            gdouble    *b,
  45.                            gdouble    *a);
  46.  
  47. #endif  /* __GRADIENT_H__ */
  48.