![]() |
![]() |
![]() |
libmokoui Reference Manual | ![]() |
---|---|---|---|---|
MokoHintEntry; GtkWidget* moko_hint_entry_new (const char *hint); void moko_hint_entry_set_text (MokoHintEntry *entry, const gchar *text); gboolean moko_hint_entry_is_empty (MokoHintEntry *entry);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkEntry +----MokoHintEntry
MokoHintEntry implements AtkImplementorIface, GtkBuildable, GtkEditable and GtkCellEditable.
MokoHintEntry is a simple GtkEntry subclass that displays "hint" text if the user has not entered a value. This is useful when there is not enough space in the user interface to add a label next to the entry. However, it should only be used where the meaning and context of the user entered value is obvious without a label.
typedef struct _MokoHintEntry MokoHintEntry;
MokoHintEntry has no publicly accessible fields
GtkWidget* moko_hint_entry_new (const char *hint);
Create a new MokoHintEntry widget with the specified hint.
|
The hint to display when the widget is not focused |
Returns : |
a newly created MokoHintEntry |
void moko_hint_entry_set_text (MokoHintEntry *entry, const gchar *text);
Clear the text in the entry and if the widget is not focused, display the hint text.
|
a MokoHintEntry |
|
the next text |
gboolean moko_hint_entry_is_empty (MokoHintEntry *entry);
Check if the entry has a user entered value.
|
a MokoHintyEntry |
Returns : |
TRUE if the hint is currently displayed. FALSE if the user has entered a value |