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. -- As a special exception, if other files instantiate generics from  -- 
  22. -- this unit, or you link this unit with other files to produce an   -- 
  23. -- executable, this  unit  does not  by itself cause  the resulting  -- 
  24. -- executable to be covered by the GNU General Public License. This  -- 
  25. -- exception does not however invalidate any other reasons why the   -- 
  26. -- executable file  might be covered by the  GNU Public License.     -- 
  27. ----------------------------------------------------------------------- 
  28.  
  29. --  <description> 
  30. -- 
  31. --  This package provides a set of types and subprograms to manipulate the 
  32. --  attributes of text displayed in a pango_layout 
  33. -- 
  34. --  </description> 
  35. --  <group>Pango, font handling</group> 
  36.  
  37. with Glib; 
  38. with Pango.Enums; 
  39.  
  40. package Pango.Attributes is 
  41.  
  42.    ---------------- 
  43.    -- Attributes -- 
  44.    ---------------- 
  45.  
  46.    type Pango_Attribute is new Glib.C_Proxy; 
  47.  
  48.    function Attr_Underline_New 
  49.      (Underline : Pango.Enums.Underline) return Pango_Attribute; 
  50.    --  Create a new underline attribute 
  51.  
  52.    --------------------- 
  53.    -- Attributes list -- 
  54.    --------------------- 
  55.  
  56.    type Pango_Attr_List is new Glib.C_Proxy; 
  57.  
  58.    procedure Gdk_New (Attr_List : out Pango_Attr_List); 
  59.    --  Create a new empty list of attributes 
  60.  
  61.    procedure Ref (Attr_List : Pango_Attr_List); 
  62.    --  Increment the reference count of the attribute list 
  63.  
  64.    procedure Unref (Attr_List : Pango_Attr_List); 
  65.    --  Decrement the reference count of the attribute list. When it reaches 0, 
  66.    --  the list is destroyed. 
  67.  
  68.    procedure Insert 
  69.      (Attr_List : Pango_Attr_List; 
  70.       Attribute : Pango_Attribute); 
  71.    --  Insert a new attribute in the list 
  72.  
  73. private 
  74.    pragma Import (C, Ref,   "pango_attr_list_ref"); 
  75.    pragma Import (C, Unref, "pango_attr_list_unref"); 
  76.    pragma Import (C, Insert, "pango_attr_list_insert"); 
  77.    pragma Import (C, Attr_Underline_New, "pango_attr_underline_new"); 
  78.  
  79. end Pango.Attributes;