package Implements_Cell_Layout is new Glib.Types.Implements (Gtk.Cell_Layout.Gtk_Cell_Layout, Gtk_Combo_Box_Record, Gtk_Combo_Box);
package Implements_Cell_Editable is new Glib.Types.Implements (Gtk.Cell_Editable.Gtk_Cell_Editable, Gtk_Combo_Box_Record, Gtk_Combo_Box);
type Gtk_Combo_Box_Record is new Gtk.Bin.Gtk_Bin_Record with null record;
type Gtk_Combo_Box is access all Gtk_Combo_Box_Record'Class;
Active_Property : constant Glib.Properties.Property_Int;
Add_Tearoffs_Property : constant Glib.Properties.Property_Boolean;
Button_Sensitivity_Property : constant Glib.Properties.Property_Enum;
Column_Span_Column_Property : constant Glib.Properties.Property_Int;
Focus_On_Click_Property : constant Glib.Properties.Property_Boolean;
Has_Frame_Property : constant Glib.Properties.Property_Boolean;
Model_Property : constant Glib.Properties.Property_Object;
Popup_Shown_Property : constant Glib.Properties.Property_Boolean;
Row_Span_Column_Property : constant Glib.Properties.Property_Int;
Tearoff_Title_Property : constant Glib.Properties.Property_String;
Wrap_Width_Property : constant Glib.Properties.Property_Int;
Appears_As_List_Property : constant Glib.Properties.Property_Boolean;
Arrow_Size_Property : constant Glib.Properties.Property_Int;
Shadow_Type_Property : constant Glib.Properties.Property_Enum;
Signal_Changed : constant Glib.Signal_Name := "changed";
procedure Gtk_New
( | Combo | : out Gtk_Combo_Box); |
procedure Initialize
( | Combo | : access Gtk_Combo_Box_Record'Class); |
procedure Gtk_New_With_Model
( | Combo | : out Gtk_Combo_Box; |
Model | : access Gtk.Tree_Model.Gtk_Tree_Model_Record'Class); |
procedure Initialize_With_Model
( | Combo | : access Gtk_Combo_Box_Record'Class; |
Model | : access Gtk.Tree_Model.Gtk_Tree_Model_Record'Class); |
procedure Gtk_New_With_Entry
( | Combo | : out Gtk_Combo_Box); |
procedure Initialize_With_Entry
( | Combo | : access Gtk_Combo_Box_Record'Class); |
procedure Gtk_New_With_Model_And_Entry
( | Combo | : out Gtk_Combo_Box; |
Model | : access Gtk.Tree_Model.Gtk_Tree_Model_Record'Class); |
procedure Initialize_With_Model_And_Entry
( | Combo | : access Gtk_Combo_Box_Record'Class; |
Model | : access Gtk.Tree_Model.Gtk_Tree_Model_Record'Class); |
function Get_Type return Glib.GType;
procedure Set_Model
( | Combo_Box | : access Gtk_Combo_Box_Record; |
Model | : Gtk.Tree_Model.Gtk_Tree_Model := null); |
function Get_Model
( | Combo_Box | : access Gtk_Combo_Box_Record) return Gtk.Tree_Model.Gtk_Tree_Model; |
procedure Set_Active
( | Combo_Box | : access Gtk_Combo_Box_Record; |
Index | : Gint); |
function Get_Active
( | Combo_Box | : access Gtk_Combo_Box_Record) return Gint; |
procedure Set_Active_Iter
( | Combo_Box | : access Gtk_Combo_Box_Record; |
Iter | : Gtk.Tree_Model.Gtk_Tree_Iter); |
function Get_Active_Iter
( | Combo_Box | : access Gtk_Combo_Box_Record) return Gtk.Tree_Model.Gtk_Tree_Iter; |
procedure Set_Wrap_Width
( | Combo_Box | : access Gtk_Combo_Box_Record; |
Width | : Gint); |
function Get_Wrap_Width
( | Combo_Box | : access Gtk_Combo_Box_Record) return Gint; |
procedure Set_Add_Tearoffs
( | Combo_Box | : access Gtk_Combo_Box_Record; |
Add_Tearoffs | : Boolean); |
function Get_Add_Tearoffs
( | Combo_Box | : access Gtk_Combo_Box_Record) return Boolean; |
procedure Set_Button_Sensitivity
( | Combo_Box | : access Gtk_Combo_Box_Record; |
Sensitivity | : Gtk.Enums.Gtk_Sensitivity_Type); |
function Get_Button_Sensitivity
( | Combo_Box | : access Gtk_Combo_Box_Record) return Gtk.Enums.Gtk_Sensitivity_Type; |
function Get_Has_Entry
( | Combo_Box | : access Gtk_Combo_Box_Record) return Boolean; |
procedure Set_Entry_Text_Column
( | Combo_Box | : access Gtk_Combo_Box_Record; |
Text_Column | : Gint); |
function Get_Entry_Text_Column
( | Combo_Box | : access Gtk_Combo_Box_Record) return Gint; |
procedure Set_Column_Span_Column
( | Combo_Box | : access Gtk_Combo_Box_Record; |
Column_Span | : Gint); |
function Get_Column_Span_Column
( | Combo_Box | : access Gtk_Combo_Box_Record) return Gint; |
procedure Set_Row_Span_Column
( | Combo_Box | : access Gtk_Combo_Box_Record; |
Row_Span | : Gint); |
function Get_Row_Span_Column
( | Combo_Box | : access Gtk_Combo_Box_Record) return Gint; |
procedure Set_Focus_On_Click
( | Combo | : access Gtk_Combo_Box_Record; |
Focus_On_Click | : Boolean); |
function Get_Focus_On_Click
( | Combo | : access Gtk_Combo_Box_Record) return Boolean; |
procedure Set_Row_Separator_Func
( | Combo_Box | : access Gtk_Combo_Box_Record; |
Func | : Gtk.Tree_View.Gtk_Tree_View_Row_Separator_Func; | |
Data | : System.Address; | |
Destroy | : Glib.G_Destroy_Notify_Address := null); |
function Get_Row_Separator_Func
( | Combo_Box | : access Gtk_Combo_Box_Record) return Gtk.Tree_View.Gtk_Tree_View_Row_Separator_Func; |
procedure Set_Title
( | Combo_Box | : access Gtk_Combo_Box_Record; |
Title | : String); |
function Get_Title
( | Combo_Box | : access Gtk_Combo_Box_Record) return String; |
procedure Gtk_New_Text
( | Combo | : out Gtk_Combo_Box); |
procedure Initialize_Text
( | Combo | : access Gtk_Combo_Box_Record'Class); |
procedure Append_Text
( | Combo_Box | : access Gtk_Combo_Box_Record; |
Text | : String); |
procedure Prepend_Text
( | Combo_Box | : access Gtk_Combo_Box_Record; |
Text | : String); |
procedure Insert_Text
( | Combo_Box | : access Gtk_Combo_Box_Record; |
Position | : Gint; | |
Text | : String); |
procedure Remove_Text
( | Combo_Box | : access Gtk_Combo_Box_Record; |
Position | : Gint); |
function Get_Active_Text
( | Combo_Box | : access Gtk_Combo_Box_Record) return String; |
procedure Popdown
( | Combo_Box | : access Gtk_Combo_Box_Record); |
procedure Popup
( | Combo_Box | : access Gtk_Combo_Box_Record); |
function "+"
( | Box | : access Gtk_Combo_Box_Record'Class) return Gtk.Cell_Layout.Gtk_Cell_Layout renames Implements_Cell_Layout.To_Interface; |
function "-"
( | Layout | : Gtk.Cell_Layout.Gtk_Cell_Layout) return Gtk_Combo_Box renames Implements_Cell_Layout.To_Object; |
function "+"
( | Box | : access Gtk_Combo_Box_Record'Class) return Gtk.Cell_Editable.Gtk_Cell_Editable renames Implements_Cell_Editable.To_Interface; |
function "-"
( | Editable | : Gtk.Cell_Editable.Gtk_Cell_Editable) return Gtk_Combo_Box renames Implements_Cell_Editable.To_Object; |
A Gtk_Combo_Box is a widget that allows the user to choose from a list of valid choices. The Gtk_Combo_Box displays the selected choice. When activated, the Gtk_Combo_Box displays a popup which allows the user to make new choice. The style in which the selected value is displayed, and the style of the popup is determined by the current theme. It may be similar to a Gtk_Option_Menu, or similar to a Windows-style combo box.
Unlike its predecessors Gtk.Combo.Gtk_Combo and Gtk.Option_Menu.Gtk_Option_Menu, the Gtk_Combo_Box uses the model-view pattern; the list of valid choices is specified in the form of a tree model, and the display of the choices can be adapted to the data in the model by using cell renderers, as you would in a tree view. This is possible since Gtk_Combo_Box implements the Gtk_Cell_Layout interface. The tree model holding the valid choices is not restricted to a flat list, it can be a real tree, and the popup will reflect the tree structure.
In addition to the model-view API, Gtk_Combo_Box offers a simple API which is suitable for text-only combo boxes, and hides the complexity of managing the data in a model.
Binding from C File version 2.16.6
<see>Gtk.Combo_Box_Entry</see>