1 /* GtkItemEntry - widget for gtk+
2 * Copyright (C) 1999-2001 Adrian E. Feiguin <adrian@ifir.ifir.edu.ar>
3 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
5 * GtkItemEntry widget by Adrian E. Feiguin
6 * Based on GtkEntry widget
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the Free
20 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #ifndef __GTK_ITEM_ENTRY_H__
23 #define __GTK_ITEM_ENTRY_H__
28 #endif /* __cplusplus */
31 #define GTK_TYPE_ITEM_ENTRY (gtk_item_entry_get_type ())
32 #define GTK_ITEM_ENTRY(obj) (GTK_CHECK_CAST (obj, gtk_item_entry_get_type (), GtkItemEntry))
33 #define GTK_ITEM_ENTRY_CLASS(klass) (GTK_CHECK_CLASS_CAST (klass, gtk_item_entry_get_type (), GtkItemEntryClass))
34 #define GTK_IS_ITEM_ENTRY(obj) (GTK_CHECK_TYPE (obj, gtk_item_entry_get_type ()))
35 #define GTK_IS_ITEM_ENTRY_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ENTRY))
38 typedef struct _GtkItemEntry GtkItemEntry;
39 typedef struct _GtkItemEntryClass GtkItemEntryClass;
47 GtkJustification justification;
50 struct _GtkItemEntryClass
52 GtkEntryClass parent_class;
55 GtkType gtk_item_entry_get_type (void);
56 GtkWidget* gtk_item_entry_new (void);
57 GtkWidget* gtk_item_entry_new_with_max_length (gint max);
58 void gtk_item_entry_set_text (GtkItemEntry *item_entry,
60 GtkJustification justification);
62 void gtk_item_entry_set_justification (GtkItemEntry *item_entry,
63 GtkJustification justification);
65 void gtk_item_entry_set_cursor_visible (GtkItemEntry *entry,
67 gboolean gtk_item_entry_get_cursor_visible (GtkItemEntry *entry);
73 #endif /* __cplusplus */
76 #endif /* __GTK_ITEM_ENTRY_H__ */