1 /* GIMP - The GNU Image Manipulation Program 2 * Copyright (C) 1995 Spencer Kimball and Peter Mattis 3 * 4 * gimppolar.h 5 * Copyright (C) 2014 Michael Natterer <mitch@gimp.org> 6 * 7 * Based on code from the color-rotate plug-in 8 * Copyright (C) 1997-1999 Sven Anders (anderss@fmi.uni-passau.de) 9 * Based on code from Pavel Grinfeld (pavel@ml.com) 10 * 11 * This program is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU General Public License as published by 13 * the Free Software Foundation; either version 3 of the License, or 14 * (at your option) any later version. 15 * 16 * This program is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * You should have received a copy of the GNU General Public License 22 * along with this program. If not, see <https://www.gnu.org/licenses/>. 23 */ 24 25 #ifndef __GIMP_POLAR_H__ 26 #define __GIMP_POLAR_H__ 27 28 29 #include "gimpcircle.h" 30 31 32 #define GIMP_TYPE_POLAR (gimp_polar_get_type ()) 33 #define GIMP_POLAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_POLAR, GimpPolar)) 34 #define GIMP_POLAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_POLAR, GimpPolarClass)) 35 #define GIMP_IS_POLAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GIMP_TYPE_POLAR)) 36 #define GIMP_IS_POLAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_POLAR)) 37 #define GIMP_POLAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_POLAR, GimpPolarClass)) 38 39 40 typedef struct _GimpPolarPrivate GimpPolarPrivate; 41 typedef struct _GimpPolarClass GimpPolarClass; 42 43 struct _GimpPolar 44 { 45 GimpCircle parent_instance; 46 47 GimpPolarPrivate *priv; 48 }; 49 50 struct _GimpPolarClass 51 { 52 GimpCircleClass parent_class; 53 }; 54 55 56 GType gimp_polar_get_type (void) G_GNUC_CONST; 57 58 GtkWidget * gimp_polar_new (void); 59 60 61 #endif /* __GIMP_POLAR_H__ */ 62