2
/* GTK - The GIMP Toolkit
3
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Library General Public
7
* License as published by the Free Software Foundation; either
8
* version 2 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Library General Public License for more details.
15
* You should have received a copy of the GNU Library General Public
16
* License along with this library; if not, write to the
17
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
* Boston, MA 02111-1307, USA.
20
#ifndef __GTK_DIAL_H__
21
#define __GTK_DIAL_H__
25
#include <gtk/gtkadjustment.h>
26
#include <gtk/gtkwidget.h>
31
#endif /* __cplusplus */
34
#define GTK_DIAL(obj) GTK_CHECK_CAST (obj, gtk_dial_get_type (), GtkDial)
35
#define GTK_DIAL_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_dial_get_type (), GtkDialClass)
36
#define GTK_IS_DIAL(obj) GTK_CHECK_TYPE (obj, gtk_dial_get_type ())
39
typedef struct _GtkDial GtkDial;
40
typedef struct _GtkDialClass GtkDialClass;
46
/* update policy (GTK_UPDATE_[CONTINUOUS/DELAYED/DISCONTINUOUS]) */
49
/* Button currently pressed or 0 if none */
52
/* Dimensions of dial components */
56
/* ID of update timer, or 0 if none */
63
/* Old values from adjustment stored so we know when something changes */
68
/* The adjustment object that stores the data for this dial */
69
GtkAdjustment *adjustment;
74
GtkWidgetClass parent_class;
78
GtkWidget* gtk_dial_new (GtkAdjustment *adjustment);
79
GtkType gtk_dial_get_type (void);
80
GtkAdjustment* gtk_dial_get_adjustment (GtkDial *dial);
81
void gtk_dial_set_update_policy (GtkDial *dial,
82
GtkUpdateType policy);
84
void gtk_dial_set_adjustment (GtkDial *dial,
85
GtkAdjustment *adjustment);
88
#endif /* __cplusplus */
91
#endif /* __GTK_DIAL_H__ */