## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

1.     -----------------------------------------------------------------------

2.     --               GtkAda - Ada95 binding for Gtk+/Gnome               --

3.     --                                                                   --

4.     --      Copyright (C) 2000 E. Briot, J. Brobecker and A. Charlet     --

5.     --                Copyright (C) 2000-2013, AdaCore                   --

6.     --                                                                   --

7.     -- This library is free software; you can redistribute it and/or     --

8.     -- modify it under the terms of the GNU General Public               --

9.     -- License as published by the Free Software Foundation; either      --

10.     -- version 2 of the License, or (at your option) any later version.  --

11.     --                                                                   --

12.     -- This library is distributed in the hope that it will be useful,   --

13.     -- but WITHOUT ANY WARRANTY; without even the implied warranty of    --

14.     -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU --

15.     -- General Public License for more details.                          --

16.     --                                                                   --

17.     -- You should have received a copy of the GNU General Public         --

18.     -- License along with this library; if not, write to the             --

19.     -- Free Software Foundation, Inc., 59 Temple Place - Suite 330,      --

20.     -- Boston, MA 02111-1307, USA.                                       --

21.     --                                                                   --

22.     -- As a special exception, if other files instantiate generics from  --

23.     -- this unit, or you link this unit with other files to produce an   --

24.     -- executable, this  unit  does not  by itself cause  the resulting  --

25.     -- executable to be covered by the GNU General Public License. This  --

26.     -- exception does not however invalidate any other reasons why the   --

27.     -- executable file  might be covered by the  GNU Public License.     --

28.     -----------------------------------------------------------------------

30.     --  <description>

31.     --  A Gtk_Combo_Button is a general form for a combo box (ie a button

32.     --  associated with a popup window to select its value).

33.     --  This widget should be used only if you intend to write your own kind

34.     --  of combo box. You should look at the following widgets for specific

35.     --  implementation: Gtk_Combo, Gtk_Color_Combo, Gtk_Border_Combo.

36.     --  </description>

37.     --  <c_version>gtkextra 2.1.1</c_version>

38.     --  <group>Menus and Toolbars</group>

40.     with Gtk.BoxTo API docTo specTo body;

41.     with Gtk.ButtonTo API docTo specTo body;

42.     with Gtk.Toggle_ButtonTo API docTo specTo body;

43.     with Gtk.FrameTo API docTo specTo body;

45.     package Gtk.Extra.Combo_ButtonTo API docTo specTo body is

47.        type Gtk_Combo_Button_RecordTo API docTo body is new Gtk.Box.Gtk_Box_RecordTo API docTo spec with private;

48.        type Gtk_Combo_Button is access all Gtk_Combo_Button_RecordTo API docTo specTo body'Class;

50.        procedure Gtk_NewTo API docTo body (Widget : out Gtk_Combo_ButtonTo API docTo spec);

51.        --  Create a new combo box.

52.        --  This creates all the internal subwidgets (the popup window,...) but

53.        --  this is your responsibility to put something inside the button or

54.        --  the popup window.

56.        procedure InitializeTo API docTo body (Widget : access Gtk_Combo_Button_RecordTo API docTo specTo body'Class);

57.        --  Internal initialization function.

58.        --  See the section "Creating your own widgets" in the documentation.

60.        function Get_TypeTo API docTo body return Gtk.Gtk_TypeTo API docTo spec;

61.        --  Return the internal value associated with a Gtk_Combo_Box.

63.        procedure Hide_Popdown_WindowTo API docTo body (Combo : access Gtk_Combo_Button_RecordTo API docTo specTo body);

64.        --  Hide the popup window, release the mouse grabs, and restore the

65.        --  default aspect for the arrow.

67.        function Get_ButtonTo API docTo body

68.          (Combo : access Gtk_Combo_Button_RecordTo API docTo specTo body) return Gtk.Button.Gtk_ButtonTo API docTo spec;

69.        --  Return the button that shows the value of the combo.

71.        function Get_Toggle_ButtonTo API docTo body

72.          (Combo : access Gtk_Combo_Button_RecordTo API docTo specTo body)

73.           return Gtk.Toggle_Button.Gtk_Toggle_ButtonTo API docTo spec;

74.        --  Return the arrow button.

75.        --  The user has to click on it to open the popup window.

77.        function Get_FrameTo API docTo body

78.          (Combo : access Gtk_Combo_Button_RecordTo API docTo specTo body) return Gtk.Frame.Gtk_FrameTo API docTo spec;

79.        --  The frame displayed in the popup window.

80.        --  You should add whatever value the popup window should display in it.

82.        -------------

83.        -- Signals --

84.        -------------

86.        --  <signals>

87.        --  The following new signals are defined for this widget:

88.        --  </signals>

90.     private

91.        type Gtk_Combo_Button_RecordTo API docTo spec is new Gtk.Box.Gtk_Box_RecordTo API docTo spec with null record;

92.        pragma Import (C, Get_TypeTo API docTo spec, "gtk_combo_button_get_type");

93.     end Gtk.Extra.Combo_ButtonTo API docTo specTo body;