![]() |
![]() |
![]() |
libmokoui Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
struct MokoSearchBar; struct MokoSearchBarClass; 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
MokoSearchBar implements AtkImplementorIface, GtkBuildable and GtkOrientable.
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.
struct MokoSearchBarClass { GtkHBoxClass parent_class; /* Signals */ void (*toggled) (MokoSearchBar *self, gboolean search_visible); void (*text_changed) (MokoSearchBar *self, GtkEditable *editable); void (*combo_changed) (MokoSearchBar *self, GtkComboBox *combo_box); };
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
|
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
|
a MokoSearchBar |
Returns : |
the GtkComboBox |
GtkEntry * moko_search_bar_get_entry (MokoSearchBar *self
);
Retrieve the GtkEntry widget being used in the MokoSearchBar
|
a MokoSearchBar |
Returns : |
the GtkEntry |
gboolean moko_search_bar_search_visible (MokoSearchBar *self
);
Determine the visibility of the search entry.
|
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.
|
a MokoSearchBar |
"combo"
property "combo" GtkComboBox* : Read / Write / Construct Only
The GtkComboBox to place inside the widget.
"combo-changed"
signalvoid 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.
|
The MokoSearchBar that received the signal |
|
The underlying GtkComboBox that received the ::changed signal. |
|
User data set when the signal handler was connected. |
|
user data set when the signal handler was connected. |
"text-changed"
signalvoid 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.
|
The MokoSearchBar that received the signal |
|
The underlying GtkEditable that received the ::changed signal. |
|
User data set when the signal handler was connected. |
|
user data set when the signal handler was connected. |
"toggled"
signalvoid user_function (MokoSearchBar *searchbar,
gboolean search_visible,
gpointer user_data) : Run Last
The ::toggled signal is emitted each time the search button is pressed.
|
The MokoSearchBar that received the signal |
|
TRUE if the search entry is visible, FALSE
otherwise |
|
User data set when the signal handler was connected. |
|
user data set when the signal handler was connected. |