#include "gntwidget.h"
#include "gnt.h"
#include "gntcolors.h"
#include "gntkeys.h"
Include dependency graph for gntentry.h:
Go to the source code of this file.
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 _GntEntry | GntEntry |
typedef _GntEntryPriv | GntEntryPriv |
typedef _GntEntryClass | GntEntryClass |
typedef _GntEntryKillRing | GntEntryKillRing |
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. |
Definition in file gntentry.h.
|
Add an item to the suggestion list.
|
|
Add a text to the history list for the text. The history length for the entry box needs to be set first by gnt_entry_set_history_length.
|
|
Clear the text in the entry box.
|
|
|
|
Get the text in an entry box.
|
|
Create a new GntEntry.
|
|
Remove an entry from the suggestion list.
|
|
Set whether to always display the suggestions list, or only when the tab-completion key is pressed (the TAB key, by default).
|
|
Set flags an entry box.
|
|
Set the length of history for the entry box.
|
|
Set whether the text in the entry box should be masked for display.
|
|
Set the maximum length of the text in the entry box.
|
|
Set the text in an entry box.
|
|
Set whether the suggestions are for the entire entry box, or for each individual word in the entry box.
|