## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

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

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

3.     --                                                                   --

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

5.     --                Copyright (C) 2000-2011, 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_Button_Box is a special type of Gtk_Box specially tailored to

32.     --  contain buttons.

33.     --

34.     --  This is only a base class for Gtk_Hbutton_Box and Gtk_Vbutton_Box which

35.     --  provide a way to arrange their children horizontally (resp. vertically).

36.     --  You can not instantiate a Gtk_Button_Box directly, and have to use one the

37.     --  above two instead.

38.     --

39.     --  </description>

40.     --  <screenshot>gtk-button_box</screenshot>

41.     --  <group>Layout containers</group>

42.     --  <testgtk>create_button_box.adb</testgtk>

44.     pragma Warnings (Off, "*is already use-visible*");

45.     with GlibTo API docTo specTo body;           use GlibTo API docTo specTo body;

46.     with Glib.TypesTo API docTo specTo body;     use Glib.TypesTo API docTo specTo body;

47.     with Gtk.BoxTo API docTo specTo body;        use Gtk.BoxTo API docTo specTo body;

48.     with Gtk.BuildableTo API docTo specTo body;  use Gtk.BuildableTo API docTo specTo body;

49.     with Gtk.EnumsTo API docTo specTo body;      use Gtk.EnumsTo API docTo specTo body;

50.     with Gtk.OrientableTo API docTo specTo body; use Gtk.OrientableTo API docTo specTo body;

51.     with Gtk.WidgetTo API docTo specTo body;     use Gtk.WidgetTo API docTo specTo body;

53.     package Gtk.Button_BoxTo API docTo specTo body is

55.        type Gtk_Button_Box_Record is new Gtk_Box_RecordTo API docTo spec with null record;

56.        type Gtk_Button_Box is access all Gtk_Button_Box_RecordTo API docTo spec'Class;

58.        ------------------

59.        -- Constructors --

60.        ------------------

62.        function Get_TypeTo API docTo body return Glib.GTypeTo API docTo spec;

63.        pragma Import (C, Get_TypeTo API docTo spec, "gtk_button_box_get_type");

65.        -------------

66.        -- Methods --

67.        -------------

69.        procedure Get_Child_IpaddingTo API docTo body

70.           (Widget : access Gtk_Button_Box_RecordTo API docTo spec;

71.            Ipad_X : out GintTo API docTo spec;

72.            Ipad_Y : out GintTo API docTo spec);

73.        procedure Set_Child_IpaddingTo API docTo body

74.           (Widget : access Gtk_Button_Box_RecordTo API docTo spec;

75.            Ipad_X : GintTo API docTo spec;

76.            Ipad_Y : GintTo API docTo spec);

77.        pragma Obsolescent (Set_Child_IpaddingTo API docTo specTo body);

78.        --  Deprecated

80.        function Get_Child_SecondaryTo API docTo body

81.           (Widget : access Gtk_Button_Box_RecordTo API docTo spec;

82.            Child  : access Gtk.Widget.Gtk_Widget_RecordTo API docTo specTo body'Class) return Boolean;

83.        procedure Set_Child_SecondaryTo API docTo body

84.           (Widget       : access Gtk_Button_Box_RecordTo API docTo spec;

85.            Child        : access Gtk.Widget.Gtk_Widget_RecordTo API docTo specTo body'Class;

86.            Is_Secondary : Boolean);

87.        --  Set whether Child should appear in a secondary group of children. A

88.        --  typical use of a secondary child is the help button in a dialog.

89.        --  This group appears after the other children if the style is

90.        --  Buttonbox_Start, Buttonbox_Spread or Buttonbox_Edge, and before the

91.        --  other children if the style is Buttonbox_End. For horizontal button

92.        --  boxes, the definition of before/after depends on direction of the

93.        --  widget. (See Gtk.Widget.Set_Direction) If the style is Buttonbox_Start,

94.        --  or Buttonbox_End, then the secondary children are aligned at the other

95.        --  end of the button box from the main children. For the other styles, they

96.        --  appear immediately next to the main children.

97.        --  Is_Secondary: if True, the Child appears in a secondary group of the

98.        --  button box.

99.        --  "child": a child of Widget

100.        --  "is_secondary": if True, the Child appears in a secondary group of the

101.        --  button box.

103.        procedure Get_Child_SizeTo API docTo body

104.           (Widget     : access Gtk_Button_Box_RecordTo API docTo spec;

105.            Min_Width  : out GintTo API docTo spec;

106.            Min_Height : out GintTo API docTo spec);

107.        pragma Obsolescent (Get_Child_SizeTo API docTo specTo body);

108.        procedure Set_Child_SizeTo API docTo body

109.           (Widget     : access Gtk_Button_Box_RecordTo API docTo spec;

110.            Min_Width  : GintTo API docTo spec;

111.            Min_Height : GintTo API docTo spec);

112.        pragma Obsolescent (Set_Child_SizeTo API docTo specTo body);

113.        --  Deprecated

115.        function Get_LayoutTo API docTo body

116.           (Widget : access Gtk_Button_Box_RecordTo API docTo spec)

117.            return Gtk.Enums.Gtk_Button_Box_StyleTo API docTo spec;

118.        procedure Set_LayoutTo API docTo body

119.           (Widget       : access Gtk_Button_Box_RecordTo API docTo spec;

120.            Layout_StyleTo API docTo body : Gtk.Enums.Gtk_Button_Box_StyleTo API docTo spec);

122.        ---------------------

123.        -- Interfaces_Impl --

124.        ---------------------

126.        function Get_OrientationTo API docTo body

127.           (Self : access Gtk_Button_Box_RecordTo API docTo spec) return Gtk.Enums.Gtk_OrientationTo API docTo spec;

128.        procedure Set_OrientationTo API docTo body

129.           (Self        : access Gtk_Button_Box_RecordTo API docTo spec;

130.            OrientationTo API docTo body : Gtk.Enums.Gtk_OrientationTo API docTo spec);

132.        ----------------

133.        -- Interfaces --

134.        ----------------

135.        --  This class implements several interfaces. See Glib.Types

136.        --

137.        --  - "Buildable"

138.        --

139.        --  - "Orientable"

141.        package Implements_Buildable is new Glib.Types.ImplementsTo API docTo specTo body

142.          (Gtk.Buildable.Gtk_BuildableTo API docTo spec, Gtk_Button_Box_RecordTo API docTo spec, Gtk_Button_BoxTo API docTo spec);

143.        function "+"

144.          (Widget : access Gtk_Button_Box_RecordTo API docTo spec'Class)

145.        return Gtk.Buildable.Gtk_BuildableTo API docTo spec

146.        renames Implements_Buildable.To_InterfaceTo API docTo specTo body;

147.        function "-"

148.          (Interf : Gtk.Buildable.Gtk_BuildableTo API docTo spec)

149.        return Gtk_Button_BoxTo API docTo spec

150.        renames Implements_Buildable.To_ObjectTo API docTo specTo body;

152.        package Implements_Orientable is new Glib.Types.ImplementsTo API docTo specTo body

153.          (Gtk.Orientable.Gtk_OrientableTo API docTo spec, Gtk_Button_Box_RecordTo API docTo spec, Gtk_Button_BoxTo API docTo spec);

154.        function "+"

155.          (Widget : access Gtk_Button_Box_RecordTo API docTo spec'Class)

156.        return Gtk.Orientable.Gtk_OrientableTo API docTo spec

157.        renames Implements_Orientable.To_InterfaceTo API docTo specTo body;

158.        function "-"

159.          (Interf : Gtk.Orientable.Gtk_OrientableTo API docTo spec)

160.        return Gtk_Button_BoxTo API docTo spec

161.        renames Implements_Orientable.To_ObjectTo API docTo specTo body;

163.        ----------------

164.        -- Properties --

165.        ----------------

166.        --  The following properties are defined for this widget. See

167.        --  Glib.Properties for more information on properties)

168.        --

169.        --  Name: Layout_Style_Property

170.        --  Type: Gtk.Enums.Gtk_Button_Box_Style

171.        --  Flags: read-write

173.        Layout_Style_Property : constant Gtk.Enums.Property_Gtk_Button_Box_StyleTo API docTo spec;

175.     private

176.        Layout_Style_PropertyTo API docTo spec : constant Gtk.Enums.Property_Gtk_Button_Box_StyleTo API docTo spec :=

177.          Gtk.Enums.BuildTo API docTo specTo body ("layout-style");

178.     end Gtk.Button_BoxTo API docTo specTo body;