1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 3 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  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 /*
19  * Modified by the GTK+ Team and others 1997-1999.  See the AUTHORS
20  * file for a list of people on the GTK+ Team.  See the ChangeLog
21  * files for a list of changes.  These files are distributed with
22  * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
23  */
24 
25  /*
26   * Modified by the Sylpheed Team and others 2003
27   */
28 
29 
30 #ifndef __GTK_VSCROLLBUTTON_H__
31 #define __GTK_VSCROLLBUTTON_H__
32 
33 
34 #include <gdk/gdk.h>
35 #include <gtk/gtk.h>
36 
37 
38 #define GTK_TYPE_VSCROLLBUTTON            (gtk_vscrollbutton_get_type ())
39 #define GTK_VSCROLLBUTTON(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VSCROLLBUTTON, GtkVScrollbutton))
40 #define GTK_VSCROLLBUTTON_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VSCROLLBUTTON, GtkVScrollbuttonClass))
41 #define GTK_IS_VSCROLLBUTTON(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VSCROLLBUTTON))
42 #define GTK_IS_VSCROLLBUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VSCROLLBUTTON))
43 
44 typedef struct _GtkVScrollbutton       GtkVScrollbutton;
45 typedef struct _GtkVScrollbuttonClass  GtkVScrollbuttonClass;
46 
47 struct _GtkVScrollbutton
48 {
49 	GtkVBox vbox;
50 	GtkWidget *upbutton;
51 	GtkWidget *downbutton;
52 	guint need_timer : 1;
53 	guint32 timer;
54 	GtkAdjustment *adjustment;
55 	gint button;
56 	GtkScrollType scroll_type;
57 
58 };
59 
60 struct _GtkVScrollbuttonClass
61 {
62 	GtkVBoxClass parent_class;
63 };
64 
65 
66 
67 #ifdef __cplusplus
68 extern "C" {
69 #endif /* __cplusplus */
70 
71 
72 GType    gtk_vscrollbutton_get_type	(void);
73 GtkWidget* gtk_vscrollbutton_new	(GtkAdjustment *adjustment);
74 gboolean gtk_vscrollbutton_scroll	(GtkVScrollbutton *scrollbutton);
75 
76 #ifdef __cplusplus
77 }
78 #endif /* __cplusplus */
79 
80 
81 #endif /* __GTK_VSCROLLBUTTON_H__ */
82