1. ----------------------------------------------------------------------- 
  2. --              GtkAda - Ada95 binding for Gtk+/Gnome                -- 
  3. --                                                                   -- 
  4. --                Copyright (C) 2001-2002 ACT-Europe                 -- 
  5. --                                                                   -- 
  6. -- This library is free software; you can redistribute it and/or     -- 
  7. -- modify it under the terms of the GNU General Public               -- 
  8. -- License as published by the Free Software Foundation; either      -- 
  9. -- version 2 of the License, or (at your option) any later version.  -- 
  10. --                                                                   -- 
  11. -- This library is distributed in the hope that it will be useful,   -- 
  12. -- but WITHOUT ANY WARRANTY; without even the implied warranty of    -- 
  13. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU -- 
  14. -- General Public License for more details.                          -- 
  15. --                                                                   -- 
  16. -- You should have received a copy of the GNU General Public         -- 
  17. -- License along with this library; if not, write to the             -- 
  18. -- Free Software Foundation, Inc., 59 Temple Place - Suite 330,      -- 
  19. -- Boston, MA 02111-1307, USA.                                       -- 
  20. --                                                                   -- 
  21. -- -- -- -- -- -- -- -- -- -- -- --
  22. ----------------------------------------------------------------------- 
  23.  
  24. --  <description> 
  25. -- 
  26. --  This package provides a set of types and subprograms to manipulate the 
  27. --  attributes of text displayed in a pango_layout 
  28. -- 
  29. --  </description> 
  30. --  <group>Pango, font handling</group> 
  31.  
  32. with Glib; 
  33. with Pango.Enums; 
  34.  
  35. package Pango.Attributes is 
  36.  
  37.    ---------------- 
  38.    -- Attributes -- 
  39.    ---------------- 
  40.  
  41.    type Pango_Attribute is new Glib.C_Proxy; 
  42.  
  43.    function Attr_Underline_New 
  44.      (Underline : Pango.Enums.Underline) return Pango_Attribute; 
  45.    --  Create a new underline attribute 
  46.  
  47.    --------------------- 
  48.    -- Attributes list -- 
  49.    --------------------- 
  50.  
  51.    type Pango_Attr_List is new Glib.C_Proxy; 
  52.  
  53.    procedure Gdk_New (Attr_List : out Pango_Attr_List); 
  54.    --  Create a new empty list of attributes 
  55.  
  56.    procedure Ref (Attr_List : Pango_Attr_List); 
  57.    --  Increment the reference count of the attribute list 
  58.  
  59.    procedure Unref (Attr_List : Pango_Attr_List); 
  60.    --  Decrement the reference count of the attribute list. When it reaches 0, 
  61.    --  the list is destroyed. 
  62.  
  63.    procedure Insert 
  64.      (Attr_List : Pango_Attr_List; 
  65.       Attribute : Pango_Attribute); 
  66.    --  Insert a new attribute in the list 
  67.  
  68. private 
  69.    pragma Import (C, Ref,   "pango_attr_list_ref"); 
  70.    pragma Import (C, Unref, "pango_attr_list_unref"); 
  71.    pragma Import (C, Insert, "pango_attr_list_insert"); 
  72.    pragma Import (C, Attr_Underline_New, "pango_attr_underline_new"); 
  73.  
  74. end Pango.Attributes;