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