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-2006 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. ----------------------------------------------------------------------- 
  29.  
  30. --  <description> 
  31. --  A Gtk_Hbutton_Box is a specific Gtk_Button_Box that organizes its 
  32. --  children horizontally. 
  33. --  The beginning of the box (when you add children with Gtk.Box.Pack_Start) 
  34. --  is on the left of the box. Its end (for Gtk.Box.Pack_End) is on the right. 
  35. --  </description> 
  36. --  <c_version>2.8.17</c_version> 
  37. --  <group>Layout containers</group> 
  38.  
  39. with Gtk.Button_Box; 
  40. with Gtk.Enums; 
  41.  
  42. package Gtk.Hbutton_Box is 
  43.  
  44.    type Gtk_Hbutton_Box_Record is new 
  45.      Gtk.Button_Box.Gtk_Button_Box_Record with private; 
  46.    type Gtk_Hbutton_Box is access all Gtk_Hbutton_Box_Record'Class; 
  47.  
  48.    procedure Gtk_New (Widget : out Gtk_Hbutton_Box); 
  49.    --  Create a new horizontal button box. 
  50.  
  51.    procedure Initialize (Widget : access Gtk_Hbutton_Box_Record'Class); 
  52.    --  Internal initialization function. 
  53.    --  See the section "Creating your own widgets" in the documentation. 
  54.  
  55.    function Get_Type return Gtk.Gtk_Type; 
  56.    --  Return the internal value associated with a Gtk_HButton_Box. 
  57.  
  58.    ----------------- 
  59.    -- Obsolescent -- 
  60.    ----------------- 
  61.    --  All subprograms below are now obsolescent in gtk+. They might be removed 
  62.    --  from future versions of gtk+ (and therefore GtkAda). 
  63.    --  To find out whether your code uses any of these, we recommend compiling 
  64.    --  with the -gnatwj switch 
  65.    --  <doc_ignore> 
  66.  
  67.    procedure Set_Spacing_Default (Spacing : in Gint); 
  68.    pragma Obsolescent;  --  Set_Spacing_Default 
  69.    --  Set the default spacing (space between two adjacent children). 
  70.    --  This is done for all the Hbutton_Boxes in your application. This can be 
  71.    --  overridden for a specific box by calling Gtk.Button_Box.Set_Spacing. 
  72.  
  73.    function Get_Spacing_Default return Gint; 
  74.    pragma Obsolescent;  --  Get_Spacing_Default 
  75.    --  Return the default spacing to use for all Hbutton_Boxes in your 
  76.    --  application that don't have a specific value. 
  77.  
  78.    procedure Set_Layout_Default (Layout : Gtk.Enums.Gtk_Button_Box_Style); 
  79.    pragma Obsolescent;  --  Set_Layout_Default 
  80.    --  Set the the default layout to use for all the hbutton_boxes in your 
  81.    --  application that don't have a specific value set by 
  82.    --  Gtk.Button_Box.Set_Layout. The default value is Buttonbox_Edge. 
  83.  
  84.    function Get_Layout_Default return Gtk.Enums.Gtk_Button_Box_Style; 
  85.    pragma Obsolescent;  --  Get_Layout_Default 
  86.    --  Return the default layout to use for all the hbutton_boxes. 
  87.  
  88.    --  </doc_ignore> 
  89.  
  90.    ---------------- 
  91.    -- Properties -- 
  92.    ---------------- 
  93.  
  94.    --  <properties> 
  95.    --  The following properties are defined for this widget. See 
  96.    --  Glib.Properties for more information on properties. 
  97.    -- 
  98.    --  </properties> 
  99.  
  100.    ------------- 
  101.    -- Signals -- 
  102.    ------------- 
  103.  
  104.    --  <signals> 
  105.    --  The following new signals are defined for this widget: 
  106.    --  </signals> 
  107.  
  108. private 
  109.    type Gtk_Hbutton_Box_Record is new Gtk.Button_Box.Gtk_Button_Box_Record 
  110.      with null record; 
  111.    pragma Import (C, Get_Type, "gtk_hbutton_box_get_type"); 
  112.    pragma Import 
  113.      (C, Get_Spacing_Default, "gtk_hbutton_box_get_spacing_default"); 
  114.    pragma Import 
  115.      (C, Set_Spacing_Default, "gtk_hbutton_box_set_spacing_default"); 
  116.    pragma Import (C, Set_Layout_Default, "gtk_hbutton_box_set_layout_default"); 
  117. end Gtk.Hbutton_Box;