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 hildon_picker_button_get_type()
28 #define HILDON_PICKER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), HILDON_TYPE_PICKER_BUTTON, HildonPickerButton))
29 #define HILDON_PICKER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), HILDON_TYPE_PICKER_BUTTON, HildonPickerButtonClass))
30 #define HILDON_IS_PICKER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_PICKER_BUTTON))
31 #define HILDON_IS_PICKER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_PICKER_BUTTON))
32 #define HILDON_PICKER_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), HILDON_TYPE_PICKER_BUTTON, HildonPickerButtonClass))
34 typedef struct _HildonPickerButton HildonPickerButton;
35 typedef struct _HildonPickerButtonClass HildonPickerButtonClass;
37 struct _HildonPickerButton
42 struct _HildonPickerButtonClass
44 HildonButtonClass parent_class;
47 GType hildon_picker_button_get_type (void);
48 GtkWidget *hildon_picker_button_new (HildonSizeType size,
49 HildonButtonArrangement arrangement);
51 void hildon_picker_button_set_selector (HildonPickerButton * button,
52 HildonTouchSelector * selector);
53 HildonTouchSelector *hildon_picker_button_get_selector (HildonPickerButton * button);
54 void hildon_picker_button_set_active (HildonPickerButton * button,
56 gint hildon_picker_button_get_active (HildonPickerButton * button);
60 #endif /* _HILDON_PICKER_BUTTON */