Data Structures |
struct | _GntEntry |
struct | _GntEntryClass |
Defines |
#define | GNT_TYPE_ENTRY (gnt_entry_get_gtype()) |
#define | GNT_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_ENTRY, GntEntry)) |
#define | GNT_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_ENTRY, GntEntryClass)) |
#define | GNT_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_ENTRY)) |
#define | GNT_IS_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_ENTRY)) |
#define | GNT_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_ENTRY, GntEntryClass)) |
#define | GNT_ENTRY_FLAGS(obj) (GNT_ENTRY(obj)->priv.flags) |
#define | GNT_ENTRY_SET_FLAGS(obj, flags) (GNT_ENTRY_FLAGS(obj) |= flags) |
#define | GNT_ENTRY_UNSET_FLAGS(obj, flags) (GNT_ENTRY_FLAGS(obj) &= ~(flags)) |
#define | ENTRY_CHAR '_' |
#define | GNT_ENTRY_FLAG_ALL (GNT_ENTRY_FLAG_ALPHA | GNT_ENTRY_FLAG_INT) |
Typedefs |
typedef struct _GntEntry | GntEntry |
typedef struct _GntEntryPriv | GntEntryPriv |
typedef struct _GntEntryClass | GntEntryClass |
typedef struct _GntEntryKillRing | GntEntryKillRing |
typedef struct _GntEntrySearch | GntEntrySearch |
Enumerations |
enum | GntEntryFlag {
GNT_ENTRY_FLAG_ALPHA = 1 << 0,
GNT_ENTRY_FLAG_INT = 1 << 1,
GNT_ENTRY_FLAG_NO_SPACE = 1 << 2,
GNT_ENTRY_FLAG_NO_PUNCT = 1 << 3,
GNT_ENTRY_FLAG_MASK = 1 << 4
} |
Functions |
G_BEGIN_DECLS GType | gnt_entry_get_gtype (void) |
GntWidget * | gnt_entry_new (const char *text) |
| Create a new GntEntry.
|
void | gnt_entry_set_max (GntEntry *entry, int max) |
| Set the maximum length of the text in the entry box.
|
void | gnt_entry_set_text (GntEntry *entry, const char *text) |
| Set the text in an entry box.
|
void | gnt_entry_set_flag (GntEntry *entry, GntEntryFlag flag) |
| Set flags an entry box.
|
const char * | gnt_entry_get_text (GntEntry *entry) |
| Get the text in an entry box.
|
void | gnt_entry_clear (GntEntry *entry) |
| Clear the text in the entry box.
|
void | gnt_entry_set_masked (GntEntry *entry, gboolean set) |
| Set whether the text in the entry box should be masked for display.
|
void | gnt_entry_add_to_history (GntEntry *entry, const char *text) |
| Add a text to the history list for the text.
|
void | gnt_entry_set_history_length (GntEntry *entry, int num) |
| Set the length of history for the entry box.
|
void | gnt_entry_set_word_suggest (GntEntry *entry, gboolean word) |
| Set whether the suggestions are for the entire entry box, or for each individual word in the entry box.
|
void | gnt_entry_set_always_suggest (GntEntry *entry, gboolean always) |
| Set whether to always display the suggestions list, or only when the tab-completion key is pressed (the TAB key, by default).
|
void | gnt_entry_add_suggest (GntEntry *entry, const char *text) |
| Add an item to the suggestion list.
|
void | gnt_entry_remove_suggest (GntEntry *entry, const char *text) |
| Remove an entry from the suggestion list.
|
Entry API.
Definition in file gntentry.h.