Add HildonAppMenu::changed signal
[hildon] / hildon / hildon-picker-button.h
1 /*
2  * This file is a part of hildon
3  *
4  * Copyright (C) 2008 Nokia Corporation, all rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser Public License as published by
8  * the Free Software Foundation; version 2 of the license.
9  *
10  * This program 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
13  * GNU Lesser Public License for more details.
14  *
15  */
16
17 #ifndef                                         __HILDON_PICKER_BUTTON__
18 #define                                         __HILDON_PICKER_BUTTON__
19
20 #include                                        <glib-object.h>
21
22 #include                                        "hildon-button.h"
23 #include                                        "hildon-touch-selector.h"
24
25 G_BEGIN_DECLS
26
27 #define                                         HILDON_TYPE_PICKER_BUTTON \
28                                                 hildon_picker_button_get_type()
29
30 #define                                         HILDON_PICKER_BUTTON(obj) \
31                                                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
32                                                 HILDON_TYPE_PICKER_BUTTON, HildonPickerButton))
33
34 #define                                         HILDON_PICKER_BUTTON_CLASS(klass) \
35                                                 (G_TYPE_CHECK_CLASS_CAST ((klass), \
36                                                 HILDON_TYPE_PICKER_BUTTON, HildonPickerButtonClass))
37
38 #define                                         HILDON_IS_PICKER_BUTTON(obj) \
39                                                 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_PICKER_BUTTON))
40
41 #define                                         HILDON_IS_PICKER_BUTTON_CLASS(klass) \
42                                                 (G_TYPE_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_PICKER_BUTTON))
43
44 #define                                         HILDON_PICKER_BUTTON_GET_CLASS(obj) \
45                                                 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
46                                                 HILDON_TYPE_PICKER_BUTTON, HildonPickerButtonClass))
47
48 typedef struct                                  _HildonPickerButton HildonPickerButton;
49 typedef struct                                  _HildonPickerButtonClass HildonPickerButtonClass;
50
51 struct                                          _HildonPickerButton
52 {
53   HildonButton parent;
54 };
55
56 struct                                          _HildonPickerButtonClass
57 {
58   HildonButtonClass parent_class;
59 };
60
61 GType
62 hildon_picker_button_get_type                   (void);
63
64 GtkWidget*
65 hildon_picker_button_new                        (HildonSizeType          size,
66                                                  HildonButtonArrangement arrangement);
67
68 void
69 hildon_picker_button_set_selector               (HildonPickerButton * button,
70                                                  HildonTouchSelector *selector);
71
72 HildonTouchSelector*
73 hildon_picker_button_get_selector               (HildonPickerButton *button);
74
75 void
76 hildon_picker_button_set_active                 (HildonPickerButton * button,
77                                                  gint index);
78
79 gint
80 hildon_picker_button_get_active                 (HildonPickerButton * button);
81
82 const gchar *
83 hildon_picker_button_get_done_button_text       (HildonPickerButton * button);
84
85 void
86 hildon_picker_button_set_done_button_text       (HildonPickerButton *button,
87                                                  const gchar *done_button_text);
88
89 void
90 hildon_picker_button_value_changed              (HildonPickerButton *button);
91
92 G_END_DECLS
93
94 #endif /* __HILDON_PICKER_BUTTON__ */