5a7a1403680e38fe39dae475eda5704853a632f2
[hildon] / src / hildon-touch-selector-entry.h
1 /*
2  * This file is a part of hildon
3  *
4  * Copyright (C) 2008 Nokia Corporation.
5  *
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.
10  *
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.
15  *
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.
19  */
20
21 #ifndef _HILDON_TOUCH_SELECTOR_ENTRY
22 #define _HILDON_TOUCH_SELECTOR_ENTRY
23
24 #include <glib-object.h>
25 #include "hildon-touch-selector.h"
26
27 G_BEGIN_DECLS
28
29 #define HILDON_TYPE_TOUCH_SELECTOR_ENTRY            (hildon_touch_selector_entry_get_type())
30 #define HILDON_TOUCH_SELECTOR_ENTRY(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), HILDON_TYPE_TOUCH_SELECTOR_ENTRY, HildonTouchSelectorEntry))
31 #define HILDON_TOUCH_SELECTOR_ENTRY_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), HILDON_TYPE_TOUCH_SELECTOR_ENTRY, HildonTouchSelectorEntryClass))
32 #define HILDON_IS_TOUCH_SELECTOR_ENTRY(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_TOUCH_SELECTOR_ENTRY))
33 #define HILDON_IS_TOUCH_SELECTOR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_TOUCH_SELECTOR_ENTRY))
34 #define HILDON_TOUCH_SELECTOR_ENTRY_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), HILDON_TYPE_TOUCH_SELECTOR_ENTRY, HildonTouchSelectorEntryClass))
35
36 typedef struct {
37   HildonTouchSelector parent;
38 } HildonTouchSelectorEntry;
39
40 typedef struct {
41   HildonTouchSelectorClass parent_class;
42 } HildonTouchSelectorEntryClass;
43
44 GType       hildon_touch_selector_entry_get_type (void);
45 GtkWidget * hildon_touch_selector_entry_new      (void);
46 GtkWidget * hildon_touch_selector_entry_new_text (void);
47
48 void        hildon_touch_selector_entry_set_text_column (HildonTouchSelectorEntry *selector, gint text_column);
49 gint        hildon_touch_selector_entry_get_text_column (HildonTouchSelectorEntry *selector);
50
51 G_END_DECLS
52
53 #endif /* _HILDON_TOUCH_SELECTOR_ENTRY */
54