2 * This file is a part of hildon
4 * Copyright (C) 2008 Nokia Corporation, all rights reserved.
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.
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.
17 #ifndef __HILDON_PICKER_BUTTON__
18 #define __HILDON_PICKER_BUTTON__
20 #include <glib-object.h>
22 #include "hildon-button.h"
23 #include "hildon-touch-selector.h"
27 #define HILDON_TYPE_PICKER_BUTTON \
28 hildon_picker_button_get_type()
30 #define HILDON_PICKER_BUTTON(obj) \
31 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
32 HILDON_TYPE_PICKER_BUTTON, HildonPickerButton))
34 #define HILDON_PICKER_BUTTON_CLASS(klass) \
35 (G_TYPE_CHECK_CLASS_CAST ((klass), \
36 HILDON_TYPE_PICKER_BUTTON, HildonPickerButtonClass))
38 #define HILDON_IS_PICKER_BUTTON(obj) \
39 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_PICKER_BUTTON))
41 #define HILDON_IS_PICKER_BUTTON_CLASS(klass) \
42 (G_TYPE_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_PICKER_BUTTON))
44 #define HILDON_PICKER_BUTTON_GET_CLASS(obj) \
45 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
46 HILDON_TYPE_PICKER_BUTTON, HildonPickerButtonClass))
48 typedef struct _HildonPickerButton HildonPickerButton;
49 typedef struct _HildonPickerButtonClass HildonPickerButtonClass;
51 struct _HildonPickerButton
56 struct _HildonPickerButtonClass
58 HildonButtonClass parent_class;
62 hildon_picker_button_get_type (void);
65 hildon_picker_button_new (HildonSizeType size,
66 HildonButtonArrangement arrangement);
69 hildon_picker_button_set_selector (HildonPickerButton * button,
70 HildonTouchSelector *selector);
73 hildon_picker_button_get_selector (HildonPickerButton *button);
76 hildon_picker_button_set_active (HildonPickerButton * button,
80 hildon_picker_button_get_active (HildonPickerButton * button);
83 hildon_picker_button_get_done_button_text (HildonPickerButton * button);
86 hildon_picker_button_set_done_button_text (HildonPickerButton *button,
87 const gchar *done_button_text);
90 hildon_picker_button_value_changed (HildonPickerButton *button);
94 #endif /* __HILDON_PICKER_BUTTON__ */