| libmokoui Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
struct MokoHintEntry; struct MokoHintEntryClass; gboolean moko_hint_entry_is_empty (MokoHintEntry *entry); GtkWidget * moko_hint_entry_new (const char *hint); void moko_hint_entry_set_text (MokoHintEntry *entry,const gchar *text);
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.
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 |
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 |