Top |
#define | GNT_ENTRY_FLAGS() |
#define | GNT_ENTRY_SET_FLAGS() |
#define | GNT_ENTRY_UNSET_FLAGS() |
GType | gnt_entry_get_gtype () |
GntWidget * | gnt_entry_new () |
void | gnt_entry_set_max () |
void | gnt_entry_set_text () |
void | gnt_entry_set_flag () |
const char * | gnt_entry_get_text () |
void | gnt_entry_clear () |
void | gnt_entry_set_masked () |
void | gnt_entry_add_to_history () |
void | gnt_entry_set_history_length () |
void | gnt_entry_set_word_suggest () |
void | gnt_entry_set_always_suggest () |
void | gnt_entry_add_suggest () |
void | gnt_entry_remove_suggest () |
#define | ENTRY_CHAR |
enum | GntEntryFlag |
#define | GNT_ENTRY_FLAG_ALL |
struct | GntEntry |
GntEntryKillRing | |
GntEntryPriv | |
GntEntrySearch |
#define GNT_ENTRY_FLAGS(obj) (GNT_ENTRY(obj)->priv.flags)
GNT_ENTRY_FLAGS
has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
#define GNT_ENTRY_SET_FLAGS(obj, flags) (GNT_ENTRY_FLAGS(obj) |= flags)
GNT_ENTRY_SET_FLAGS
has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
#define GNT_ENTRY_UNSET_FLAGS(obj, flags) (GNT_ENTRY_FLAGS(obj) &= ~(flags))
GNT_ENTRY_UNSET_FLAGS
has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
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_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. The history length for the entry box needs to be set first by gnt_entry_set_history_length.
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.
struct GntEntry { GntWidget parent; GntEntryFlag GNTSEAL(flag); char *GNTSEAL(start); char *GNTSEAL(end); char *GNTSEAL(scroll); /* Current scrolling position */ char *GNTSEAL(cursor); /* Cursor location */ /* 0 <= cursor - scroll < widget-width */ size_t GNTSEAL(buffer); /* Size of the buffer */ int GNTSEAL(max); /* 0 means infinite */ gboolean GNTSEAL(masked); GList *GNTSEAL(history); /* History of the strings. User can use this by pressing ctrl+up/down */ int GNTSEAL(histlength); /* How long can the history be? */ GList *GNTSEAL(suggests); /* List of suggestions */ gboolean GNTSEAL(word); /* Are the suggestions for only a word, or for the whole thing? */ gboolean GNTSEAL(always); /* Should the list of suggestions show at all times, or only on tab-press? */ GntWidget *GNTSEAL(ddown); /* The dropdown with the suggested list */ struct _GntEntryKillRing *GNTSEAL(killring); /* Since: 2.3.0 */ struct _GntEntrySearch *GNTSEAL(search); /* Since: 2.7.0 */ };
Access to any fields is deprecated. See inline comments for replacements.
typedef struct _GntEntryKillRing GntEntryKillRing;
GntEntryKillRing
has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
typedef struct _GntEntryPriv GntEntryPriv;
GntEntryPriv
has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.