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. --  The Gtk_Orientable interface is implemented by all widgets that can be 
  32. --  oriented horizontally or vertically. Historically, such widgets have been 
  33. --  realized as subclasses of a common base class (e.g 
  34. --  Gtk_Box/Gtk_HBox/Gtk_VBox or Gtk_Scale/Gtk_HScale/Gtk_VScale). 
  35. --  Gtk_Orientable is more flexible in that it allows the orientation to be 
  36. --  changed at runtime, allowing the widgets to 'flip'. 
  37. -- 
  38. --  </description> 
  39.  
  40. pragma Warnings (Off, "*is already use-visible*"); 
  41. with Glib;       use Glib; 
  42. with Glib.Types; use Glib.Types; 
  43. with Gtk.Enums;  use Gtk.Enums; 
  44.  
  45. package Gtk.Orientable is 
  46.  
  47.    type Gtk_Orientable is new Glib.Types.GType_Interface; 
  48.  
  49.    ------------------ 
  50.    -- Constructors -- 
  51.    ------------------ 
  52.  
  53.    function Get_Type return Glib.GType; 
  54.    pragma Import (C, Get_Type, "gtk_orientable_get_type"); 
  55.  
  56.    ------------- 
  57.    -- Methods -- 
  58.    ------------- 
  59.  
  60.    function Get_Orientation 
  61.       (Self : Gtk_Orientable) return Gtk.Enums.Gtk_Orientation; 
  62.    procedure Set_Orientation 
  63.       (Self        : Gtk_Orientable; 
  64.        Orientation : Gtk.Enums.Gtk_Orientation); 
  65.    --  Sets the orientation of the Orientable. 
  66.    --  Since: gtk+ 2.16 
  67.    --  "orientation": the orientable's new orientation. 
  68.  
  69.    ---------------- 
  70.    -- Properties -- 
  71.    ---------------- 
  72.    --  The following properties are defined for this widget. See 
  73.    --  Glib.Properties for more information on properties) 
  74.    -- 
  75.    --  Name: Orientation_Property 
  76.    --  Type: Gtk.Enums.Gtk_Orientation 
  77.    --  Flags: read-write 
  78.    --  The orientation of the orientable. 
  79.  
  80.    Orientation_Property : constant Gtk.Enums.Property_Gtk_Orientation; 
  81.  
  82. private 
  83.    Orientation_Property : constant Gtk.Enums.Property_Gtk_Orientation := 
  84.      Gtk.Enums.Build ("orientation"); 
  85. end Gtk.Orientable;