1. ----------------------------------------------------------------------- 
  2. --              GtkAda - Ada95 binding for Gtk+/Gnome                -- 
  3. --                                                                   -- 
  4. --                Copyright (C) 2001-2006 AdaCore                    -- 
  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. --  A GtkTextChildAnchor is a spot in the buffer where child widgets can be 
  31. --  "anchored" (inserted inline, as if they were characters). The anchor can 
  32. --  have multiple widgets anchored, to allow for multiple views. 
  33. --  </description> 
  34. --  <c_version>2.8.17</c_version> 
  35. --  <group>Multiline Text Editor</group> 
  36.  
  37. with Gtk; use Gtk; 
  38. with Gtk.Widget; 
  39.  
  40. package Gtk.Text_Child is 
  41.  
  42.    type Gtk_Text_Child_Anchor_Record is new GObject_Record with private; 
  43.    type Gtk_Text_Child_Anchor is access all Gtk_Text_Child_Anchor_Record'Class; 
  44.  
  45.    procedure Gtk_New (Widget : out Gtk_Text_Child_Anchor); 
  46.    procedure Initialize (Widget : access Gtk_Text_Child_Anchor_Record'Class); 
  47.    --  Creates or initializes a Gtk_Text_Child_Anchor widget. 
  48.    --  Usually you would then insert it into a Gtk_Text_Buffer with 
  49.    --  Gtk.Text_Buffer.Insert_Child_Anchor. 
  50.    --  To perform the creation and insertion in one step, use the 
  51.    --  convenience function Gtk.Text_Buffer.Create_Child_Anchor. 
  52.  
  53.    function Get_Type return Glib.GType; 
  54.    --  Return the internal value associated with a Gtk_Text_Child_Anchor. 
  55.  
  56.    function Get_Widgets 
  57.      (Anchor : access Gtk_Text_Child_Anchor_Record) 
  58.       return Gtk.Widget.Widget_List.Glist; 
  59.    --  Return the list of widgets attached at anchor. The returned list should 
  60.    --  be freed by the caller. 
  61.  
  62.    function Get_Deleted 
  63.      (Anchor : access Gtk_Text_Child_Anchor_Record) return Boolean; 
  64.    --  Determines whether a child anchor has been deleted from the buffer. Keep 
  65.    --  in mind that the child anchor will be unreferenced when removed from the 
  66.    --  buffer, so you need to hold your own reference (with Ref()) if you plan 
  67.    --  to use this function; otherwise all deleted child anchors will 
  68.    --  also be finalized. 
  69.  
  70.    ---------------- 
  71.    -- Properties -- 
  72.    ---------------- 
  73.  
  74.    --  <properties> 
  75.    --  The following properties are defined for this widget. See 
  76.    --  Glib.Properties for more information on properties. 
  77.    -- 
  78.    --  </properties> 
  79.  
  80. private 
  81.    type Gtk_Text_Child_Anchor_Record is new GObject_Record with null record; 
  82.    pragma Import (C, Get_Type, "gtk_text_child_anchor_get_type"); 
  83. end Gtk.Text_Child;