![]() |
![]() |
![]() |
Mx Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
struct MxComboBox; ClutterActor * mx_combo_box_new (void
); void mx_combo_box_insert_text (MxComboBox *box
,gint position
,const gchar *text
); void mx_combo_box_insert_text_with_icon (MxComboBox *box
,gint position
,const gchar *text
,const gchar *icon
); void mx_combo_box_append_text (MxComboBox *box
,const gchar *text
); void mx_combo_box_prepend_text (MxComboBox *box
,const gchar *text
); void mx_combo_box_remove_text (MxComboBox *box
,gint position
); void mx_combo_box_set_active_text (MxComboBox *box
,const gchar *text
); const gchar * mx_combo_box_get_active_text (MxComboBox *box
); void mx_combo_box_set_active_icon_name (MxComboBox *box
,const gchar *icon_name
); const gchar * mx_combo_box_get_active_icon_name (MxComboBox *box
); void mx_combo_box_set_index (MxComboBox *box
,gint index
); const gint mx_combo_box_get_index (MxComboBox *box
);
MxComboBox implements ClutterScriptable, ClutterAnimatable, AtkImplementorIface, MxStylable and MxFocusable.
"active-icon-name" gchar* : Read / Write "active-text" gchar* : Read / Write "index" gint : Read / Write
MxComboBox combines a button with a popup menu to allow the user to select an option from a list.
struct MxComboBox;
The contents of this structure are private and should only be accessed through the public API.
ClutterActor * mx_combo_box_new (void
);
Create a new MxComboBox
Returns : |
a newly allocated MxComboBox |
void mx_combo_box_insert_text (MxComboBox *box
,gint position
,const gchar *text
);
Insert an item into the combo box list.
|
A MxComboBox |
|
zero indexed position to insert the item at |
|
name of the item |
void mx_combo_box_insert_text_with_icon (MxComboBox *box
,gint position
,const gchar *text
,const gchar *icon
);
Insert an item with text and an icon into the combo box list.
|
A MxComboBox |
|
zero indexed position to insert the item at |
|
name of the item |
|
name of an icon from the icon theme |
void mx_combo_box_append_text (MxComboBox *box
,const gchar *text
);
Append an item to the combo box list
|
A MxComboBox |
|
name of the item |
void mx_combo_box_prepend_text (MxComboBox *box
,const gchar *text
);
Prepend an item to the combo box list
|
A MxComboBox |
|
name of the item |
void mx_combo_box_remove_text (MxComboBox *box
,gint position
);
Remove the item at position
|
A MxComboBox |
|
position of the item to remove |
void mx_combo_box_set_active_text (MxComboBox *box
,const gchar *text
);
Set the text displayed in the combo box
|
A MxComboBox |
|
text to display |
const gchar * mx_combo_box_get_active_text (MxComboBox *box
);
Get the text displayed in the combo box
|
A MxComboBox |
Returns : |
the text string, owned by the combo box |
void mx_combo_box_set_active_icon_name (MxComboBox *box
,const gchar *icon_name
);
Set the icon displayed in the combo box.
|
A MxComboBox |
|
Icon name to use for displayed icon. [allow-none] |
const gchar * mx_combo_box_get_active_icon_name (MxComboBox *box
);
Get the name of the icon displayed in the combo box
|
A MxComboBox |
Returns : |
the text string of the name of the displayed icon, owned by
the combo box, or NULL if there is no active icon. |
void mx_combo_box_set_index (MxComboBox *box
,gint index
);
Set the current combo box text from the item at index
in the list.
|
A MxComboBox |
|
the index of the list item to set |
const gint mx_combo_box_get_index (MxComboBox *box
);
Get the index of the last item selected
|
A MxComboBox |
Returns : |
const gint |