| 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 "hildon-touch-selector.h" |
| 25 |
#include "hildon-entry.h" |
| 26 |
|
| 27 |
G_BEGIN_DECLS |
| 28 |
|
| 29 |
#define HILDON_TYPE_TOUCH_SELECTOR_ENTRY \ |
| 30 |
(hildon_touch_selector_entry_get_type()) |
| 31 |
|
| 32 |
#define HILDON_TOUCH_SELECTOR_ENTRY(obj) \ |
| 33 |
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \ |
| 34 |
HILDON_TYPE_TOUCH_SELECTOR_ENTRY, HildonTouchSelectorEntry)) |
| 35 |
|
| 36 |
#define HILDON_TOUCH_SELECTOR_ENTRY_CLASS(klass) \ |
| 37 |
(G_TYPE_CHECK_CLASS_CAST ((klass), \ |
| 38 |
HILDON_TYPE_TOUCH_SELECTOR_ENTRY, HildonTouchSelectorEntryClass)) |
| 39 |
|
| 40 |
#define HILDON_IS_TOUCH_SELECTOR_ENTRY(obj) \ |
| 41 |
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ |
| 42 |
HILDON_TYPE_TOUCH_SELECTOR_ENTRY)) |
| 43 |
|
| 44 |
#define HILDON_IS_TOUCH_SELECTOR_ENTRY_CLASS(klass) \ |
| 45 |
(G_TYPE_CHECK_CLASS_TYPE ((klass), \ |
| 46 |
HILDON_TYPE_TOUCH_SELECTOR_ENTRY)) |
| 47 |
|
| 48 |
#define HILDON_TOUCH_SELECTOR_ENTRY_GET_CLASS(obj) \ |
| 49 |
(G_TYPE_INSTANCE_GET_CLASS ((obj), \ |
| 50 |
HILDON_TYPE_TOUCH_SELECTOR_ENTRY, HildonTouchSelectorEntryClass)) |
| 51 |
|
| 52 |
typedef struct _HildonTouchSelectorEntry HildonTouchSelectorEntry; |
| 53 |
typedef struct _HildonTouchSelectorEntryClass HildonTouchSelectorEntryClass; |
| 54 |
|
| 55 |
struct _HildonTouchSelectorEntry |
| 56 |
{ |
| 57 |
HildonTouchSelector parent; |
| 58 |
|
| 59 |
/*< private > */ |
| 60 |
}; |
| 61 |
|
| 62 |
struct _HildonTouchSelectorEntryClass |
| 63 |
{ |
| 64 |
HildonTouchSelectorClass parent_class; |
| 65 |
}; |
| 66 |
|
| 67 |
GType |
| 68 |
hildon_touch_selector_entry_get_type (void); |
| 69 |
|
| 70 |
GtkWidget* |
| 71 |
hildon_touch_selector_entry_new (void); |
| 72 |
|
| 73 |
GtkWidget* |
| 74 |
hildon_touch_selector_entry_new_text (void); |
| 75 |
|
| 76 |
void |
| 77 |
hildon_touch_selector_entry_set_text_column (HildonTouchSelectorEntry *selector, |
| 78 |
gint text_column); |
| 79 |
gint |
| 80 |
hildon_touch_selector_entry_get_text_column (HildonTouchSelectorEntry *selector); |
| 81 |
|
| 82 |
HildonGtkInputMode |
| 83 |
hildon_touch_selector_entry_get_input_mode (HildonTouchSelectorEntry * selector); |
| 84 |
|
| 85 |
void |
| 86 |
hildon_touch_selector_entry_set_input_mode (HildonTouchSelectorEntry * selector, |
| 87 |
HildonGtkInputMode input_mode); |
| 88 |
|
| 89 |
HildonEntry * |
| 90 |
hildon_touch_selector_entry_get_entry (HildonTouchSelectorEntry * selector); |
| 91 |
|
| 92 |
G_END_DECLS |
| 93 |
|
| 94 |
#endif /* __HILDON_TOUCH_SELECTOR_ENTRY__ */ |