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. -- -- -- -- -- -- -- -- -- -- -- --
  23. ----------------------------------------------------------------------- 
  24.  
  25. --  <description> 
  26. --  A Gtk_Hbutton_Box is a specific Gtk_Button_Box that organizes its children 
  27. --  horizontally. The beginning of the box (when you add children with 
  28. --  Gtk.Box.Pack_Start) is on the left of the box. Its end (for 
  29. --  Gtk.Box.Pack_End) is on the right. 
  30. -- 
  31. --  </description> 
  32. --  <group>Layout containers</group> 
  33.  
  34. pragma Warnings (Off, "*is already use-visible*"); 
  35. with Glib;           use Glib; 
  36. with Glib.Types;     use Glib.Types; 
  37. with Gtk.Buildable;  use Gtk.Buildable; 
  38. with Gtk.Button_Box; use Gtk.Button_Box; 
  39. with Gtk.Enums;      use Gtk.Enums; 
  40. with Gtk.Orientable; use Gtk.Orientable; 
  41. with Gtk.Widget;     use Gtk.Widget; 
  42.  
  43. package Gtk.Hbutton_Box is 
  44.  
  45.    type Gtk_Hbutton_Box_Record is new Gtk_Button_Box_Record with null record; 
  46.    type Gtk_Hbutton_Box is access all Gtk_Hbutton_Box_Record'Class; 
  47.  
  48.    ------------------ 
  49.    -- Constructors -- 
  50.    ------------------ 
  51.  
  52.    procedure Gtk_New (Widget : out Gtk_Hbutton_Box); 
  53.    procedure Initialize (Widget : access Gtk_Hbutton_Box_Record'Class); 
  54.  
  55.    function Get_Type return Glib.GType; 
  56.    pragma Import (C, Get_Type, "gtk_hbutton_box_get_type"); 
  57.  
  58.    --------------- 
  59.    -- Functions -- 
  60.    --------------- 
  61.  
  62.    function Get_Layout_Default return Gtk.Enums.Gtk_Button_Box_Style; 
  63.    pragma Obsolescent (Get_Layout_Default); 
  64.    procedure Set_Layout_Default (Layout : Gtk.Enums.Gtk_Button_Box_Style); 
  65.    pragma Obsolescent (Set_Layout_Default); 
  66.    --  Set the the default layout to use for all the hbutton_boxes in your 
  67.    --  application that don't have a specific value set by 
  68.    --  Gtk.Button_Box.Set_Layout. The default value is Buttonbox_Edge 
  69.    --  Deprecated 
  70.  
  71.    function Get_Spacing_Default return Gint; 
  72.    pragma Obsolescent (Get_Spacing_Default); 
  73.    procedure Set_Spacing_Default (Spacing : Gint); 
  74.    pragma Obsolescent (Set_Spacing_Default); 
  75.    --  Set the default spacing (space between two adjacent children). This is 
  76.    --  done for all the Hbutton_Boxes in your application. This can be 
  77.    --  overridden for a specific box by calling Gtk.Button_Box.Set_Spacing. 
  78.    --  Deprecated 
  79.  
  80.    --------------------- 
  81.    -- Interfaces_Impl -- 
  82.    --------------------- 
  83.  
  84.    function Get_Orientation 
  85.       (Self : access Gtk_Hbutton_Box_Record) 
  86.        return Gtk.Enums.Gtk_Orientation; 
  87.    procedure Set_Orientation 
  88.       (Self        : access Gtk_Hbutton_Box_Record; 
  89.        Orientation : Gtk.Enums.Gtk_Orientation); 
  90.  
  91.    ---------------- 
  92.    -- Interfaces -- 
  93.    ---------------- 
  94.    --  This class implements several interfaces. See Glib.Types 
  95.    -- 
  96.    --  - "Buildable" 
  97.    -- 
  98.    --  - "Orientable" 
  99.  
  100.    package Implements_Buildable is new Glib.Types.Implements 
  101.      (Gtk.Buildable.Gtk_Buildable, Gtk_Hbutton_Box_Record, Gtk_Hbutton_Box); 
  102.    function "+" 
  103.      (Widget : access Gtk_Hbutton_Box_Record'Class) 
  104.    return Gtk.Buildable.Gtk_Buildable 
  105.    renames Implements_Buildable.To_Interface; 
  106.    function "-" 
  107.      (Interf : Gtk.Buildable.Gtk_Buildable) 
  108.    return Gtk_Hbutton_Box 
  109.    renames Implements_Buildable.To_Object; 
  110.  
  111.    package Implements_Orientable is new Glib.Types.Implements 
  112.      (Gtk.Orientable.Gtk_Orientable, Gtk_Hbutton_Box_Record, Gtk_Hbutton_Box); 
  113.    function "+" 
  114.      (Widget : access Gtk_Hbutton_Box_Record'Class) 
  115.    return Gtk.Orientable.Gtk_Orientable 
  116.    renames Implements_Orientable.To_Interface; 
  117.    function "-" 
  118.      (Interf : Gtk.Orientable.Gtk_Orientable) 
  119.    return Gtk_Hbutton_Box 
  120.    renames Implements_Orientable.To_Object; 
  121.  
  122. end Gtk.Hbutton_Box;