Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | sexy_icon_entry_new () |
void | sexy_icon_entry_set_icon () |
void | sexy_icon_entry_set_icon_highlight () |
GtkImage * | sexy_icon_entry_get_icon () |
gboolean | sexy_icon_entry_get_icon_highlight () |
void | sexy_icon_entry_add_clear_button () |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkEntry ╰── SexyIconEntry
SexyIconEntry implements AtkImplementorIface, GtkBuildable, GtkEditable and GtkCellEditable.
SexyIconEntry is a GtkEntry with support for inline icons. They can appear on either side of the entry or on both sides. There's also built-in support for adding a clear button for clearing the entry. This widget is particularly useful as search fields.
GtkWidget *
sexy_icon_entry_new (void
);
Creates a new SexyIconEntry widget.
Returns a new SexyIconEntry.
void sexy_icon_entry_set_icon (SexyIconEntry *entry
,SexyIconEntryPosition position
,GtkImage *icon
);
Sets the icon shown in the entry
void sexy_icon_entry_set_icon_highlight (SexyIconEntry *entry
,SexyIconEntryPosition position
,gboolean highlight
);
Determines whether the icon will highlight on mouse-over.
GtkImage * sexy_icon_entry_get_icon (const SexyIconEntry *entry
,SexyIconEntryPosition position
);
Retrieves the image used for the icon
gboolean sexy_icon_entry_get_icon_highlight (const SexyIconEntry *entry
,SexyIconEntryPosition position
);
Retrieves whether entry will highlight the icon on mouseover.
void
sexy_icon_entry_add_clear_button (SexyIconEntry *icon_entry
);
A convenience function to add a clear button to the end of the entry. This is useful for search boxes.
struct SexyIconEntry;
The SexyIconEntry struct contains private data only, and should be manipulated using the functions below.
“icon-pressed”
signalvoid user_function (SexyIconEntry *entry, gint icon_pos, gint button, gpointer user_data)
The ::icon-pressed signal is emitted when an icon is clicked.
entry |
The entry on which the signal is emitted. |
|
icon_pos |
The position of the clicked icon. |
|
button |
The mouse button clicked. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
“icon-released”
signalvoid user_function (SexyIconEntry *entry, gint icon_pos, gint button, gpointer user_data)
The ::icon-released signal is emitted on the button release from a mouse click.
entry |
The entry on which the signal is emitted. |
|
icon_pos |
The position of the clicked icon. |
|
button |
The mouse button clicked. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action