2 * This file is a part of hildon
4 * Copyright (C) 2005, 2008 Nokia Corporation.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free
18 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef __HILDON_TIME_SELECTOR_H__
22 #define __HILDON_TIME_SELECTOR_H__
24 #include "hildon-touch-picker.h"
28 #define HILDON_TYPE_TIME_SELECTOR (hildon_time_selector_get_type ())
29 #define HILDON_TIME_SELECTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), HILDON_TYPE_TIME_SELECTOR, HildonTimeSelector))
30 #define HILDON_TIME_SELECTOR_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), HILDON_TYPE_TIME_SELECTOR, HildonTimeSelectorClass))
31 #define HILDON_IS_TIME_SELECTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_TIME_SELECTOR))
32 #define HILDON_IS_TIME_SELECTOR_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), HILDON_TYPE_TIME_SELECTOR))
33 #define HILDON_TIME_SELECTOR_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), HILDON_TYPE_TIME_SELECTOR, HildonTimeSelectorClass))
35 typedef struct _HildonTimeSelector HildonTimeSelector;
36 typedef struct _HildonTimeSelectorClass HildonTimeSelectorClass;
37 typedef struct _HildonTimeSelectorPrivate HildonTimeSelectorPrivate;
39 struct _HildonTimeSelector
41 HildonTouchPicker parent_instance;
44 HildonTimeSelectorPrivate *priv;
47 struct _HildonTimeSelectorClass
49 HildonTouchPickerClass parent_class;
56 GType hildon_time_selector_get_type (void) G_GNUC_CONST;
57 GtkWidget * hildon_time_selector_new (void);
60 gboolean hildon_time_selector_set_time (HildonTimeSelector * selector,
61 guint hours, guint minutes);
62 void hildon_time_selector_get_time (HildonTimeSelector * selector,
63 guint * hours, guint * minutes);
67 #endif /* __HILDON_TIME_SELECTOR_H__ */