1 /* GtkEnhancedScale - A gtk(h)scale with multiple sliders
2 * Copyright (C) 2001 - Ronald Bultje
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
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.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
20 /* Some code used was taken from GtkScale and GtkRange, all part
21 * of the Gimp Toolkit (Gtk+), http://www.gtk.org/
24 #ifndef __GTK_ENHANCED_SCALE_H__
25 #define __GTK_ENHANCED_SCALE_H__
28 #include <gtk/gtkwidget.h>
32 #endif /* __cplusplus */
34 #define GTK_ENHANCED_SCALE(obj) GTK_CHECK_CAST (obj, gtk_enhanced_scale_get_type (), GtkEnhancedScale)
35 #define GTK_ENHANCED_SCALE_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_enhanced_scale_get_type (), GtkEnhancedScaleClass)
36 #define GTK_IS_ENHANCED_SCALE(obj) GTK_CHECK_TYPE (obj, gtk_enhanced_scale_get_type ())
38 typedef struct _GtkEnhancedScale GtkEnhancedScale
;
39 typedef struct _GtkEnhancedScaleClass GtkEnhancedScaleClass
;
41 struct _GtkEnhancedScale
48 GtkObject
**adjustment
;
53 guint click_child
: 3;
61 struct _GtkEnhancedScaleClass
63 GtkWidgetClass parent_class
;
68 gint stepper_slider_spacing
;
76 GtkWidget
* gtk_enhanced_scale_new (GtkObject
*adjustment
[],
77 gint num_adjustments
);
78 guint
gtk_enhanced_scale_get_type (void);
79 void gtk_enhanced_scale_set_breaks( GtkWidget
*widget
, GArray
*breaks
);
83 #endif /* __cplusplus */
86 #endif /* __GTK_ENHANCED_SCALE_H__ */