![]() |
![]() |
![]() |
Netbook Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
NbtkComboBox; NbtkComboBox * nbtk_combo_box_new (void
); void nbtk_combo_box_insert_text (NbtkComboBox *box
,gint position
,const gchar *text
); void nbtk_combo_box_append_text (NbtkComboBox *box
,const gchar *text
); void nbtk_combo_box_prepend_text (NbtkComboBox *box
,const gchar *text
); void nbtk_combo_box_remove_text (NbtkComboBox *box
,gint position
); void nbtk_combo_box_set_title (NbtkComboBox *box
,const gchar *title
); const gchar* nbtk_combo_box_get_title (NbtkComboBox *box
); void nbtk_combo_box_set_index (NbtkComboBox *box
,gint index
); const gint nbtk_combo_box_get_index (NbtkComboBox *box
);
NbtkComboBox combines a button with a popup menu to allow the user to select an option from a list.
typedef struct _NbtkComboBox NbtkComboBox;
The contents of this structure are private and should only be accessed through the public API.
NbtkComboBox * nbtk_combo_box_new (void
);
Create a new NbtkComboBox
Returns : |
a newly allocated NbtkComboBox |
void nbtk_combo_box_insert_text (NbtkComboBox *box
,gint position
,const gchar *text
);
Insert an item into the combo box list.
|
A NbtkComboBox |
|
zero indexed position to insert the item at |
|
name of the item |
void nbtk_combo_box_append_text (NbtkComboBox *box
,const gchar *text
);
Append an item to the combo box list
|
A NbtkComboBox |
|
name of the item |
void nbtk_combo_box_prepend_text (NbtkComboBox *box
,const gchar *text
);
Prepend an item to the combo box list
|
A NbtkComboBox |
|
name of the item |
void nbtk_combo_box_remove_text (NbtkComboBox *box
,gint position
);
Remove the item at position
|
A NbtkComboBox |
|
position of the item to remove |
void nbtk_combo_box_set_title (NbtkComboBox *box
,const gchar *title
);
Set the text displayed in the combo box
|
A NbtkComboBox |
|
text to display |
const gchar* nbtk_combo_box_get_title (NbtkComboBox *box
);
Get the text displayed in the combo box
|
A NbtkComboBox |
Returns : |
the text string, owned by the combo box |
void nbtk_combo_box_set_index (NbtkComboBox *box
,gint index
);
Set the currenet combo box text from the item at index
in the list.
|
A NbtkComboBox |
|
the index of the list item to set |
const gint nbtk_combo_box_get_index (NbtkComboBox *box
);
Get the index of the last item selected
|
A NbtkComboBox |
Returns : |
const gint |