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-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. ----------------------------------------------------------------------- 
  29.  
  30. --  <description> 
  31. --  A Gtk_Vbutton_Box is a specific Gtk_Button_Box that organizes its children 
  32. --  vertically. The beginning of the box (when you add children with 
  33. --  Gtk.Box.Pack_Start) is on the top of the box. Its end (for 
  34. --  Gtk.Box.Pack_End) is on the bottom. 
  35. -- 
  36. --  </description> 
  37. --  <group>Layout containers</group> 
  38.  
  39. pragma Warnings (Off, "*is already use-visible*"); 
  40. with Glib;           use Glib; 
  41. with Glib.Types;     use Glib.Types; 
  42. with Gtk.Buildable;  use Gtk.Buildable; 
  43. with Gtk.Button_Box; use Gtk.Button_Box; 
  44. with Gtk.Enums;      use Gtk.Enums; 
  45. with Gtk.Orientable; use Gtk.Orientable; 
  46. with Gtk.Widget;     use Gtk.Widget; 
  47.  
  48. package Gtk.Vbutton_Box is 
  49.  
  50.    type Gtk_Vbutton_Box_Record is new Gtk_Button_Box_Record with null record; 
  51.    type Gtk_Vbutton_Box is access all Gtk_Vbutton_Box_Record'Class; 
  52.  
  53.    ------------------ 
  54.    -- Constructors -- 
  55.    ------------------ 
  56.  
  57.    procedure Gtk_New (Widget : out Gtk_Vbutton_Box); 
  58.    procedure Initialize (Widget : access Gtk_Vbutton_Box_Record'Class); 
  59.    --  Creates a new vertical button box. 
  60.  
  61.    function Get_Type return Glib.GType; 
  62.    pragma Import (C, Get_Type, "gtk_vbutton_box_get_type"); 
  63.  
  64.    --------------- 
  65.    -- Functions -- 
  66.    --------------- 
  67.  
  68.    function Get_Layout_Default return Gtk.Enums.Gtk_Button_Box_Style; 
  69.    pragma Obsolescent (Get_Layout_Default); 
  70.    procedure Set_Layout_Default (Layout : Gtk.Enums.Gtk_Button_Box_Style); 
  71.    pragma Obsolescent (Set_Layout_Default); 
  72.    --  Sets a new layout mode that will be used by all button boxes. 
  73.    --  Deprecated since 2.0, Use Gtk.Button_Box.Set_Layout instead. 
  74.    --  "layout": a new Gtk.Enums.Gtk_Button_Box_Style. 
  75.  
  76.    function Get_Spacing_Default return Gint; 
  77.    pragma Obsolescent (Get_Spacing_Default); 
  78.    procedure Set_Spacing_Default (Spacing : Gint); 
  79.    pragma Obsolescent (Set_Spacing_Default); 
  80.    --  Changes the default spacing that is placed between widgets in an 
  81.    --  vertical button box. 
  82.    --  Deprecated since 2.0, Use Gtk.Box.Set_Spacing instead. 
  83.    --  "spacing": an integer value. 
  84.  
  85.    --------------------- 
  86.    -- Interfaces_Impl -- 
  87.    --------------------- 
  88.  
  89.    function Get_Orientation 
  90.       (Self : access Gtk_Vbutton_Box_Record) 
  91.        return Gtk.Enums.Gtk_Orientation; 
  92.    procedure Set_Orientation 
  93.       (Self        : access Gtk_Vbutton_Box_Record; 
  94.        Orientation : Gtk.Enums.Gtk_Orientation); 
  95.  
  96.    ---------------- 
  97.    -- Interfaces -- 
  98.    ---------------- 
  99.    --  This class implements several interfaces. See Glib.Types 
  100.    -- 
  101.    --  - "Buildable" 
  102.    -- 
  103.    --  - "Orientable" 
  104.  
  105.    package Implements_Buildable is new Glib.Types.Implements 
  106.      (Gtk.Buildable.Gtk_Buildable, Gtk_Vbutton_Box_Record, Gtk_Vbutton_Box); 
  107.    function "+" 
  108.      (Widget : access Gtk_Vbutton_Box_Record'Class) 
  109.    return Gtk.Buildable.Gtk_Buildable 
  110.    renames Implements_Buildable.To_Interface; 
  111.    function "-" 
  112.      (Interf : Gtk.Buildable.Gtk_Buildable) 
  113.    return Gtk_Vbutton_Box 
  114.    renames Implements_Buildable.To_Object; 
  115.  
  116.    package Implements_Orientable is new Glib.Types.Implements 
  117.      (Gtk.Orientable.Gtk_Orientable, Gtk_Vbutton_Box_Record, Gtk_Vbutton_Box); 
  118.    function "+" 
  119.      (Widget : access Gtk_Vbutton_Box_Record'Class) 
  120.    return Gtk.Orientable.Gtk_Orientable 
  121.    renames Implements_Orientable.To_Interface; 
  122.    function "-" 
  123.      (Interf : Gtk.Orientable.Gtk_Orientable) 
  124.    return Gtk_Vbutton_Box 
  125.    renames Implements_Orientable.To_Object; 
  126.  
  127. end Gtk.Vbutton_Box;