1. ------------------------------------------------------------------------------ 
  2. --                                                                          -- 
  3. --      Copyright (C) 1998-2000 E. Briot, J. Brobecker and A. Charlet       -- 
  4. --                     Copyright (C) 2000-2014, AdaCore                     -- 
  5. --                                                                          -- 
  6. -- This library is free software;  you can redistribute it and/or modify it -- 
  7. -- under terms of the  GNU General Public License  as published by the Free -- 
  8. -- Software  Foundation;  either version 3,  or (at your  option) any later -- 
  9. -- version. This library is distributed in the hope that it will be useful, -- 
  10. -- but WITHOUT ANY WARRANTY;  without even the implied warranty of MERCHAN- -- 
  11. -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE.                            -- 
  12. --                                                                          -- 
  13. -- As a special exception under Section 7 of GPL version 3, you are granted -- 
  14. -- additional permissions described in the GCC Runtime Library Exception,   -- 
  15. -- version 3.1, as published by the Free Software Foundation.               -- 
  16. --                                                                          -- 
  17. -- You should have received a copy of the GNU General Public License and    -- 
  18. -- a copy of the GCC Runtime Library Exception along with this program;     -- 
  19. -- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    -- 
  20. -- <http://www.gnu.org/licenses/>.                                          -- 
  21. --                                                                          -- 
  22. ------------------------------------------------------------------------------ 
  23.  
  24. --  <description> 
  25. --  A Gtk_Hbutton_Box is a specific Gtk_Button_Box that organizes its children 
  26. --  horizontally. The beginning of the box (when you add children with 
  27. --  Gtk.Box.Pack_Start) is on the left of the box. Its end (for 
  28. --  Gtk.Box.Pack_End) is on the right. 
  29. -- 
  30. --  </description> 
  31. --  <group>Layout containers</group> 
  32. pragma Ada_2005; 
  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.  
  42. package Gtk.Hbutton_Box is 
  43.  
  44.    type Gtk_Hbutton_Box_Record is new Gtk_Button_Box_Record with null record; 
  45.    type Gtk_Hbutton_Box is access all Gtk_Hbutton_Box_Record'Class; 
  46.  
  47.    ------------------ 
  48.    -- Constructors -- 
  49.    ------------------ 
  50.  
  51.    procedure Gtk_New (Widget : out Gtk_Hbutton_Box); 
  52.    procedure Initialize 
  53.       (Widget : not null access Gtk_Hbutton_Box_Record'Class); 
  54.    --  Creates a new horizontal button box. 
  55.  
  56.    function Gtk_Hbutton_Box_New return Gtk_Hbutton_Box; 
  57.    --  Creates a new horizontal button box. 
  58.  
  59.    function Get_Type return Glib.GType; 
  60.    pragma Import (C, Get_Type, "gtk_hbutton_box_get_type"); 
  61.  
  62.    --------------------------------------------- 
  63.    -- Inherited subprograms (from interfaces) -- 
  64.    --------------------------------------------- 
  65.    --  Methods inherited from the Buildable interface are not duplicated here 
  66.    --  since they are meant to be used by tools, mostly. If you need to call 
  67.    --  them, use an explicit cast through the "-" operator below. 
  68.  
  69.    function Get_Orientation 
  70.       (Self : not null access Gtk_Hbutton_Box_Record) 
  71.        return Gtk.Enums.Gtk_Orientation; 
  72.  
  73.    procedure Set_Orientation 
  74.       (Self        : not null access Gtk_Hbutton_Box_Record; 
  75.        Orientation : Gtk.Enums.Gtk_Orientation); 
  76.  
  77.    ---------------- 
  78.    -- Interfaces -- 
  79.    ---------------- 
  80.    --  This class implements several interfaces. See Glib.Types 
  81.    -- 
  82.    --  - "Buildable" 
  83.    -- 
  84.    --  - "Orientable" 
  85.  
  86.    package Implements_Gtk_Buildable is new Glib.Types.Implements 
  87.      (Gtk.Buildable.Gtk_Buildable, Gtk_Hbutton_Box_Record, Gtk_Hbutton_Box); 
  88.    function "+" 
  89.      (Widget : access Gtk_Hbutton_Box_Record'Class) 
  90.    return Gtk.Buildable.Gtk_Buildable 
  91.    renames Implements_Gtk_Buildable.To_Interface; 
  92.    function "-" 
  93.      (Interf : Gtk.Buildable.Gtk_Buildable) 
  94.    return Gtk_Hbutton_Box 
  95.    renames Implements_Gtk_Buildable.To_Object; 
  96.  
  97.    package Implements_Gtk_Orientable is new Glib.Types.Implements 
  98.      (Gtk.Orientable.Gtk_Orientable, Gtk_Hbutton_Box_Record, Gtk_Hbutton_Box); 
  99.    function "+" 
  100.      (Widget : access Gtk_Hbutton_Box_Record'Class) 
  101.    return Gtk.Orientable.Gtk_Orientable 
  102.    renames Implements_Gtk_Orientable.To_Interface; 
  103.    function "-" 
  104.      (Interf : Gtk.Orientable.Gtk_Orientable) 
  105.    return Gtk_Hbutton_Box 
  106.    renames Implements_Gtk_Orientable.To_Object; 
  107.  
  108. end Gtk.Hbutton_Box;