mirror of https://github.com/GNOME/gimp.git
71 lines
2.4 KiB
C
71 lines
2.4 KiB
C
/* The GIMP -- an image manipulation program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program 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 General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __HISTOGRAM_WIDGET_H__
|
|
#define __HISTOGRAM_WIDGET_H__
|
|
|
|
|
|
#include <gtk/gtkdrawingarea.h>
|
|
|
|
|
|
#define HISTOGRAM_WIDGET_TYPE (histogram_widget_get_type ())
|
|
#define HISTOGRAM_WIDGET(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, histogram_widget_get_type (), HistogramWidget)
|
|
#define IS_HISTOGRAM_WIDGET(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, histogram_widget_get_type ())
|
|
#define HISTOGRAM_WIDGET_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, histogram_widget_get_type (), HistogramWidget)
|
|
|
|
|
|
typedef struct _HistogramWidgetClass HistogramWidgetClass;
|
|
|
|
struct _HistogramWidget
|
|
{
|
|
GtkDrawingArea parent_instance;
|
|
|
|
GimpHistogram *histogram;
|
|
GimpHistogramChannel channel;
|
|
gint start;
|
|
gint end;
|
|
};
|
|
|
|
struct _HistogramWidgetClass
|
|
{
|
|
GtkDrawingAreaClass parent_class;
|
|
|
|
void (* range_changed) (HistogramWidget *hw,
|
|
gint start,
|
|
gint end);
|
|
};
|
|
|
|
|
|
/* Histogram functions */
|
|
|
|
GtkType histogram_widget_get_type (void);
|
|
|
|
HistogramWidget * histogram_widget_new (gint width,
|
|
gint height);
|
|
void histogram_widget_update (HistogramWidget *hw,
|
|
GimpHistogram *histogram);
|
|
void histogram_widget_range (HistogramWidget *hw,
|
|
gint start,
|
|
gint end);
|
|
void histogram_widget_channel (HistogramWidget *hw,
|
|
gint channel);
|
|
GimpHistogram * histogram_widget_histogram (HistogramWidget *hw);
|
|
|
|
|
|
#endif /* __HISTOGRAM_WIDGET_H__ */
|