| libmokoui Reference Manual | ||||
|---|---|---|---|---|
MokoSearchBar;
GtkWidget* moko_search_bar_new ();
GtkWidget* moko_search_bar_new_with_combo (GtkComboBox *combo);
GtkComboBox* moko_search_bar_get_combo_box (MokoSearchBar *self);
GtkEntry* moko_search_bar_get_entry (MokoSearchBar *self);
gboolean moko_search_bar_search_visible (MokoSearchBar *self);
void moko_search_bar_toggle (MokoSearchBar *self);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkHBox +----MokoSearchBar
The MokoSearchBar is a composite widget that implements the "Search Bar" user interface from OpenMoko. It comprises of a GtkEntry, a GtkComboBox and a GtkToggleButton that toggles the visibility of the entry and combo box.
typedef struct _MokoSearchBar MokoSearchBar;
MokoSearchBar has no publicly accessible fields
GtkWidget* moko_search_bar_new ();
Create a new MokoSearBar widget
| Returns : | The newly created MokoSearchBar |
GtkWidget* moko_search_bar_new_with_combo (GtkComboBox *combo);
Creates a MokoSearchBar with the specified combo box
combo : |
a GtkComboBox to use as the combobox |
| Returns : | the newly created MokoSearchBar |
GtkComboBox* moko_search_bar_get_combo_box (MokoSearchBar *self);
Get a pointer to the GtkComboBox being used in the MokoSearchBar
self : |
a MokoSearchBar |
| Returns : | the GtkComboBox |
GtkEntry* moko_search_bar_get_entry (MokoSearchBar *self);
Retrieve the GtkEntry widget being used in the MokoSearchBar
self : |
a MokoSearchBar |
| Returns : | the GtkEntry |
gboolean moko_search_bar_search_visible (MokoSearchBar *self);
Determine the visibility of the search entry.
self : |
a MokoSaerchBar |
| Returns : | TRUE if the search entry is visible |
void moko_search_bar_toggle (MokoSearchBar *self);
Toggle the search button on the MokoSearchBar. This toggles the visibility of the combo box and entry widgets.
self : |
a MokoSearchBar |
combo" property"combo" GtkComboBox : Read / Write / Construct Only
The GtkComboBox to place inside the widget.
void user_function (MokoSearchBar *searchbar, GtkComboBox *combo, gpointer user_data) : Run Last
The ::combo-changed signal is emitted each time the underlying GtkComboBox receives its ::changed signal.
searchbar : |
The MokoSearchBar that received the signal |
combo : |
The underlying GtkComboBox that received the ::changed signal. |
user_data : |
User data set when the signal handler was connected. |
user_data : |
user data set when the signal handler was connected. |
void user_function (MokoSearchBar *searchbar, gpointer editable, gpointer user_data) : Run Last
The ::text-changed signal is emitted each time the underlying GtkEditable receives its ::changed signal.
searchbar : |
The MokoSearchBar that received the signal |
editable : |
The underlying GtkEditable that received the ::changed signal. |
user_data : |
User data set when the signal handler was connected. |
user_data : |
user data set when the signal handler was connected. |
void user_function (MokoSearchBar *searchbar, gboolean search_visible, gpointer user_data) : Run Last
The ::toggled signal is emitted each time the search button is pressed.
searchbar : |
The MokoSearchBar that received the signal |
search_visible : |
TRUE if the search entry is visible, FALSE
otherwise
|
user_data : |
User data set when the signal handler was connected. |
user_data : |
user data set when the signal handler was connected. |