1 /* GIMP - The GNU Image Manipulation Program 2 * Copyright (C) 1995 Spencer Kimball and Peter Mattis 3 * 4 * This program is free software: you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 3 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program. If not, see <https://www.gnu.org/licenses/>. 16 */ 17 18 #ifndef __GIMP_GRADIENT_OPTIONS_H__ 19 #define __GIMP_GRADIENT_OPTIONS_H__ 20 21 22 #include "paint/gimppaintoptions.h" 23 24 25 #define GIMP_TYPE_GRADIENT_OPTIONS (gimp_gradient_options_get_type ()) 26 #define GIMP_GRADIENT_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_GRADIENT_OPTIONS, GimpGradientOptions)) 27 #define GIMP_GRADIENT_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_GRADIENT_OPTIONS, GimpGradientOptionsClass)) 28 #define GIMP_IS_GRADIENT_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_GRADIENT_OPTIONS)) 29 #define GIMP_IS_GRADIENT_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_GRADIENT_OPTIONS)) 30 #define GIMP_GRADIENT_OPTIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_GRADIENT_OPTIONS, GimpGradientOptionsClass)) 31 32 33 typedef struct _GimpGradientOptions GimpGradientOptions; 34 typedef struct _GimpPaintOptionsClass GimpGradientOptionsClass; 35 36 struct _GimpGradientOptions 37 { 38 GimpPaintOptions paint_options; 39 40 gdouble offset; 41 GimpGradientType gradient_type; 42 GeglDistanceMetric distance_metric; 43 44 gboolean supersample; 45 gint supersample_depth; 46 gdouble supersample_threshold; 47 48 gboolean dither; 49 50 gboolean instant; 51 gboolean modify_active; 52 53 /* options gui */ 54 GtkWidget *instant_toggle; 55 GtkWidget *modify_active_frame; 56 GtkWidget *modify_active_hint; 57 }; 58 59 60 GType gimp_gradient_options_get_type (void) G_GNUC_CONST; 61 62 GtkWidget * gimp_gradient_options_gui (GimpToolOptions *tool_options); 63 64 65 #endif /* __GIMP_GRADIENT_OPTIONS_H__ */ 66