mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-19 22:34:37 +00:00
cd9f65cb87
2003-08-18 Michael Natterer <mitch@gimp.org> Finished the addition of "gboolean reverse" to the gradient API: * tools/pdbgen/pdb/gradients.pdb: added "reverse" params to gimp_gradients_sample_uniform(), sample_custom() and get_gradient_data(). * app/pdb/gradients_cmds.c * libgimp/gimpgradients_pdb.[ch]: regenerated. * libgimp/gimpgradientmenu.c: changed accordingly. Made everything compile with the new API: * plug-ins/FractalExplorer/Dialogs.c * plug-ins/FractalExplorer/FractalExplorer.[ch]: got lost in "reverse" adding, whitespace removal and general code cleanup. I better commit this now before continuing, even though "reverse" adding is not finished. * plug-ins/common/sample_colorize.c: removed own gradient reversing code, use "reverse" instead. * plug-ins/common/gradmap.c * plug-ins/flame/flame.c * plug-ins/gflare/gflare.c * plug-ins/pagecurl/pagecurl.c: simply pass reverse == FALSE and added #warnings that more work needs to be done. Some whitespace removal and minor cleanup.
51 lines
1.8 KiB
C
51 lines
1.8 KiB
C
/* LIBGIMP - The GIMP Library
|
|
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
|
|
*
|
|
* gimpgradients_pdb.h
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
/* NOTE: This file is autogenerated by pdbgen.pl */
|
|
|
|
#ifndef __GIMP_GRADIENTS_PDB_H__
|
|
#define __GIMP_GRADIENTS_PDB_H__
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
gboolean gimp_gradients_refresh (void);
|
|
gchar** gimp_gradients_get_list (gint *num_gradients);
|
|
gchar* gimp_gradients_get_gradient (void);
|
|
gboolean gimp_gradients_set_gradient (const gchar *name);
|
|
gdouble* gimp_gradients_sample_uniform (gint num_samples,
|
|
gboolean reverse);
|
|
gdouble* gimp_gradients_sample_custom (gint num_samples,
|
|
const gdouble *positions,
|
|
gboolean reverse);
|
|
gchar* gimp_gradients_get_gradient_data (const gchar *name,
|
|
gint sample_size,
|
|
gboolean reverse,
|
|
gint *width,
|
|
gdouble **grad_data);
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GIMP_GRADIENTS_PDB_H__ */
|