Put function name in the changelog.
[hildon] / src / hildon-controlbar.h
1 /*
2  * This file is a part of hildon
3  *
4  * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
5  *
6  * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation; version 2.1 of
11  * the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  *
23  */
24
25 #ifndef                                         __HILDON_CONTROLBAR_H__
26 #define                                         __HILDON_CONTROLBAR_H__
27
28 #include                                        <gtk/gtkscale.h>
29
30 G_BEGIN_DECLS
31
32 #define                                         HILDON_TYPE_CONTROLBAR \
33                                                 (hildon_controlbar_get_type())
34
35 #define                                         HILDON_CONTROLBAR(obj) (GTK_CHECK_CAST (obj,\
36                                                 HILDON_TYPE_CONTROLBAR, HildonControlbar))
37
38 #define                                         HILDON_CONTROLBAR_CLASS(klass) \
39                                                 (GTK_CHECK_CLASS_CAST ((klass),\
40                                                 HILDON_TYPE_CONTROLBAR, HildonControlbarClass))
41
42 #define                                         HILDON_IS_CONTROLBAR(obj) \
43                                                 (GTK_CHECK_TYPE (obj, HILDON_TYPE_CONTROLBAR))
44
45 #define                                         HILDON_IS_CONTROLBAR_CLASS(klass) \
46                                                 (GTK_CHECK_CLASS_TYPE ((klass),\
47                                                 HILDON_TYPE_CONTROLBAR))
48
49 #define                                         HILDON_CONTROLBAR_GET_CLASS(obj) \
50                                                 ((HildonControlBarClass *) G_OBJECT_GET_CLASS(obj))
51
52 typedef struct                                  _HildonControlbar HildonControlbar;
53
54 typedef struct                                  _HildonControlbarClass HildonControlbarClass;
55
56 struct _HildonControlbar 
57 {
58     GtkScale scale;
59 };
60
61 struct _HildonControlbarClass 
62 {
63     GtkScaleClass parent_class;
64     void (*end_reached) (HildonControlbar *controlbar, gboolean end);
65 };
66
67 GType G_GNUC_CONST
68 hildon_controlbar_get_type                      (void);
69
70 GtkWidget*
71 hildon_controlbar_new                           (void);
72
73 void
74 hildon_controlbar_set_value                     (HildonControlbar *self, 
75                                                  gint value);
76
77 gint
78 hildon_controlbar_get_value                     (HildonControlbar *self);
79
80 gint
81 hildon_controlbar_get_max                       (HildonControlbar *self);
82
83 gint 
84 hildon_controlbar_get_min                       (HildonControlbar *self);
85
86 void
87 hildon_controlbar_set_max                       (HildonControlbar *self, 
88                                                  gint max);
89
90 void
91 hildon_controlbar_set_min                       (HildonControlbar *self, 
92                                                  gint min);
93
94 void
95 hildon_controlbar_set_range                     (HildonControlbar *self, 
96                                                  gint min,
97                                                  gint max);
98
99 G_END_DECLS
100
101 #endif                                          /* __HILDON_CONTROLBAR_H__ */