app: s/sprintf/g_snprintf/ in xcf_save_image()
[gimp.git] / libgimp / gimpgradientselect.h
blob15063cc387aa0675e35432c43ecbb22dbfd55118
1 /* LIBGIMP - The GIMP Library
2 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
4 * gimpgradientselect.h
6 * This library is free software: you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 3 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library. If not, see
18 * <https://www.gnu.org/licenses/>.
21 #if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
22 #error "Only <libgimp/gimp.h> can be included directly."
23 #endif
25 #ifndef __GIMP_GRADIENT_SELECT_H__
26 #define __GIMP_GRADIENT_SELECT_H__
28 G_BEGIN_DECLS
31 typedef void (* GimpRunGradientCallback) (const gchar *gradient_name,
32 gint width,
33 const gdouble *grad_data,
34 gboolean dialog_closing,
35 gpointer user_data);
38 const gchar * gimp_gradient_select_new (const gchar *title,
39 const gchar *gradient_name,
40 gint sample_size,
41 GimpRunGradientCallback callback,
42 gpointer data);
43 void gimp_gradient_select_destroy (const gchar *gradient_callback);
46 G_END_DECLS
48 #endif /* __GIMP_GRADIENT_SELECT_H__ */