gtk :: GtkComboBox :: defaultinit
# An abstract class for laying out GtkCellRenderers
# See: https://developer.gnome.org/gtk3/stable/GtkCellArea.html
extern class GtkComboBox `{GtkComboBox *`}
super GtkBin
new `{
return (GtkComboBox *)gtk_combo_box_new();
`}
new with_entry `{
return (GtkComboBox *)gtk_combo_box_new_with_entry();
`}
new with_model(model: GtkTreeModel) `{
return (GtkComboBox *)gtk_combo_box_new_with_model(model);
`}
new with_model_and_entry(model: GtkTreeModel) `{
return (GtkComboBox *)gtk_combo_box_new_with_model_and_entry(model);
`}
new with_area(area: GtkCellArea) `{
return (GtkComboBox *)gtk_combo_box_new_with_area(area);
`}
new with_area_and_entry(area: GtkCellArea) `{
return (GtkComboBox *)gtk_combo_box_new_with_area_and_entry(area);
`}
fun wrap_width: Int `{
return gtk_combo_box_get_wrap_width(self);
`}
fun wrap_width=(width: Int) `{
gtk_combo_box_set_wrap_width(self, width);
`}
fun row_span_col: Int `{
return gtk_combo_box_get_row_span_column(self);
`}
fun row_span_col=(row_span: Int) `{
gtk_combo_box_set_row_span_column(self, row_span);
`}
fun col_span_col: Int `{
return gtk_combo_box_get_column_span_column(self);
`}
fun col_span_col=(col_span: Int) `{
gtk_combo_box_set_column_span_column(self, col_span);
`}
fun active_item: Int `{
return gtk_combo_box_get_active(self);
`}
fun active_item=(active: Int) `{
gtk_combo_box_set_active(self, active);
`}
fun column_id: Int `{
return gtk_combo_box_get_id_column(self);
`}
fun column_id=(id_column: Int) `{
gtk_combo_box_set_id_column(self, id_column);
`}
fun active_id: String import CString.to_s `{
return CString_to_s((char *)gtk_combo_box_get_active_id(self));
`}
fun active_id=(id_active: String) import String.to_cstring `{
gtk_combo_box_set_active_id(self, String_to_cstring(id_active));
`}
fun model: GtkTreeModel `{
return gtk_combo_box_get_model(self);
`}
fun model=(model: GtkTreeModel) `{
gtk_combo_box_set_model(self, model);
`}
fun popup `{
gtk_combo_box_popup(self);
`}
fun popdown `{
gtk_combo_box_popdown(self);
`}
fun title: String import CString.to_s `{
return CString_to_s((char *)gtk_combo_box_get_title(self));
`}
fun title=(t: String) import String.to_cstring `{
gtk_combo_box_set_title(self, String_to_cstring(t));
`}
fun has_entry: Bool `{
return gtk_combo_box_get_has_entry(self);
`}
fun with_fixed: Bool `{
return gtk_combo_box_get_popup_fixed_width(self);
`}
fun with_fixed=(fixed: Bool) `{
gtk_combo_box_set_popup_fixed_width(self, fixed);
`}
end
lib/gtk/v3_4/gtk_core.nit:929,1--1041,3