1/* GTK - The GIMP Toolkit 2 * Copyright (C) 1997 David Mosberger 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2 of the License, or (at your option) any later version. 8 * 9 * This library 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 GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library; if not, write to the 16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 * Boston, MA 02111-1307, USA. 18 */ 19 20/* 21 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS 22 * file for a list of people on the GTK+ Team. See the ChangeLog 23 * files for a list of changes. These files are distributed with 24 * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 25 */ 26 27#ifndef GUTENPRINTUI_GAMMA_CURVE_H 28#define GUTENPRINTUI_GAMMA_CURVE_H 29 30 31#include <gdk/gdk.h> 32#include <gtk/gtkvbox.h> 33 34 35#ifdef __cplusplus 36extern "C" { 37#endif /* __cplusplus */ 38 39 40#define STPUI_TYPE_GAMMA_CURVE (stpui_gamma_curve_get_type ()) 41#define STPUI_GAMMA_CURVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), STPUI_TYPE_GAMMA_CURVE, StpuiGammaCurve)) 42#define STPUI_GAMMA_CURVE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), STPUI_TYPE_GAMMA_CURVE, StpuiGammaCurveClass)) 43#define STPUI_IS_GAMMA_CURVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), STPUI_TYPE_GAMMA_CURVE)) 44#define STPUI_IS_GAMMA_CURVE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), STPUI_TYPE_GAMMA_CURVE)) 45#define STPUI_GAMMA_CURVE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), STPUI_TYPE_GAMMA_CURVE, StpuiGammaCurveClass)) 46 47typedef struct _StpuiGammaCurve StpuiGammaCurve; 48typedef struct _StpuiGammaCurveClass StpuiGammaCurveClass; 49 50 51struct _StpuiGammaCurve 52{ 53 GtkVBox vbox; 54 55 GtkWidget *table; 56 GtkWidget *curve; 57 GtkWidget *button[5]; /* spline, linear, free, gamma, reset */ 58 59 gfloat gamma; 60 GtkWidget *gamma_dialog; 61 GtkWidget *gamma_text; 62}; 63 64struct _StpuiGammaCurveClass 65{ 66 GtkVBoxClass parent_class; 67 68 /* Padding for future expansion */ 69 void (*_gtk_reserved1) (void); 70 void (*_gtk_reserved2) (void); 71 void (*_gtk_reserved3) (void); 72 void (*_gtk_reserved4) (void); 73}; 74 75 76GType stpui_gamma_curve_get_type (void) G_GNUC_CONST; 77GtkWidget* stpui_gamma_curve_new (void); 78 79 80#ifdef __cplusplus 81} 82#endif /* __cplusplus */ 83 84 85#endif /* GUTENPRINTUI_GAMMACURVE_H */ 86