![]() |
![]() |
![]() |
Cinnamon St Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
struct StEntry; struct StEntryClass; StWidget * st_entry_new (const gchar *text
); const gchar * st_entry_get_text (StEntry *entry
); void st_entry_set_text (StEntry *entry
,const gchar *text
); ClutterActor * st_entry_get_clutter_text (StEntry *entry
); void st_entry_set_hint_text (StEntry *entry
,const gchar *text
); const gchar * st_entry_get_hint_text (StEntry *entry
); void st_entry_set_primary_icon (StEntry *entry
,ClutterActor *icon
); void st_entry_set_secondary_icon (StEntry *entry
,ClutterActor *icon
); void st_entry_set_primary_icon_from_file (StEntry *entry
,const gchar *filename
); void st_entry_set_secondary_icon_from_file (StEntry *entry
,const gchar *filename
);
StEntry implements ClutterContainer, ClutterScriptable, ClutterAnimatable and AtkImplementorIface.
"clutter-text" ClutterText* : Read "hint-text" gchar* : Read / Write "text" gchar* : Read / Write
StEntry is a simple widget for displaying text. It derives from StWidget to add extra style and placement functionality over ClutterText. The internal ClutterText is publicly accessibly to allow applications to set further properties.
StEntry supports the following pseudo style states:
focus: the widget has focus
indeterminate: the widget is showing the hint text
hover: the widget is showing the hint text and is underneath the pointer
struct StEntry;
The contents of this structure is private and should only be accessed using the provided API.
struct StEntryClass { StWidgetClass parent_class; /* signals */ void (*primary_icon_clicked) (StEntry *entry); void (*secondary_icon_clicked) (StEntry *entry); };
StWidget * st_entry_new (const gchar *text
);
Create a new StEntry with the specified entry
|
text to set the entry to |
Returns : |
a new StEntry |
const gchar * st_entry_get_text (StEntry *entry
);
Get the text displayed on the entry
|
a StEntry |
Returns : |
the text for the entry. This must not be freed by the application |
void st_entry_set_text (StEntry *entry
,const gchar *text
);
Sets the text displayed on the entry
|
a StEntry |
|
text to set the entry to. [allow-none] |
ClutterActor * st_entry_get_clutter_text (StEntry *entry
);
Retrieve the internal ClutterText so that extra parameters can be set
void st_entry_set_hint_text (StEntry *entry
,const gchar *text
);
Sets the text to display when the entry is empty and unfocused. When the entry is displaying the hint, it has a pseudo class of "indeterminate". A value of NULL unsets the hint.
|
a StEntry |
|
text to set as the entry hint. [allow-none] |
const gchar * st_entry_get_hint_text (StEntry *entry
);
Gets the text that is displayed when the entry is empty and unfocused
void st_entry_set_primary_icon (StEntry *entry
,ClutterActor *icon
);
Set the primary icon of the entry to icon
|
a StEntry |
|
a ClutterActor. [allow-none] |
void st_entry_set_secondary_icon (StEntry *entry
,ClutterActor *icon
);
Set the secondary icon of the entry to icon
|
a StEntry |
|
an ClutterActor. [allow-none] |
void st_entry_set_primary_icon_from_file (StEntry *entry
,const gchar *filename
);
Set the primary icon of the entry to the given filename
|
a StEntry |
|
filename of an icon. [allow-none] |
"hint-text"
property "hint-text" gchar* : Read / Write
Text to display when the entry is not focused and the text property is empty.
Default value: NULL
"primary-icon-clicked"
signalvoid user_function (StEntry *arg0,
gpointer user_data) : Run Last
Emitted when the primary icon is clicked
|
user data set when the signal handler was connected. |
"secondary-icon-clicked"
signalvoid user_function (StEntry *arg0,
gpointer user_data) : Run Last
Emitted when the secondary icon is clicked
|
user data set when the signal handler was connected. |