1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
|
-----------------------------------------------------------------------
-- GtkAda - Ada95 binding for Gtk+/Gnome --
-- --
-- Copyright (C) 2001-2006 AdaCore --
-- --
-- This library is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public --
-- License as published by the Free Software Foundation; either --
-- version 2 of the License, or (at your option) any later version. --
-- --
-- This library is distributed in the hope that it will be useful, --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --
-- General Public License for more details. --
-- --
-- You should have received a copy of the GNU General Public --
-- License along with this library; if not, write to the --
-- Free Software Foundation, Inc., 59 Temple Place - Suite 330, --
-- Boston, MA 02111-1307, USA. --
-- --
-----------------------------------------------------------------------
-- <description>
-- Marks are positions in a buffer which move when the buffer is modified,
-- so that they always point to the same place in the buffer.
-- They are automatically destroyed when the buffer is destroyed, unless
-- you have explicitly call Ref on the mark.
-- See Gtk.Text_Buffer for various functions dealing with marks. In
-- particular, Gtk.Text_Buffer.Get_Buffer can be used to retrieve the
-- buffer from a mark.
-- </description>
-- <c_version>2.8.17</c_version>
-- <group>Multiline Text Editor</group>
with Glib.Values;
package Gtk.Text_Mark is
type Gtk_Text_Mark_Record is new GObject_Record with private;
type Gtk_Text_Mark is access all Gtk_Text_Mark_Record'Class;
function Get_Type return Glib.GType;
-- Return the internal value associated with a Gtk_Label.
procedure Set_Visible
(Mark : access Gtk_Text_Mark_Record;
Setting : Boolean := True);
function Get_Visible
(Mark : access Gtk_Text_Mark_Record) return Boolean;
-- Set the visibility of Mark.
-- The insertion point is normally visible, i.e. you can see it as a
-- vertical bar. Also, the text widget uses a visible mark to indicate
-- where a drop will occur when dragging-and-dropping text. Most other
-- marks are not visible.
-- Marks are not visible by default.
function Get_Name (Mark : access Gtk_Text_Mark_Record) return String;
-- Return the mark name; Return "" for anonymous marks.
function Get_Deleted (Mark : access Gtk_Text_Mark_Record) return Boolean;
-- Returns True if the mark has been removed from its buffer with
-- Gtk.Text_Buffer.Delete_Mark. Marks can't be used once deleted.
function Get_Left_Gravity
(Mark : access Gtk_Text_Mark_Record) return Boolean;
-- Return True if the mark has left gravity, False otherwise.
-------------------------------
-- Converting to/from GValue --
-------------------------------
procedure Set_Text_Mark
(Val : in out Glib.Values.GValue;
Mark : access Gtk_Text_Mark_Record);
function Get_Text_Mark (Val : Glib.Values.GValue) return Gtk_Text_Mark;
-- Set the value of the given GValue to Mark.
----------------
-- Properties --
----------------
-- <properties>
-- The following properties are defined for this widget. See
-- Glib.Properties for more information on properties.
--
-- </properties>
private
type Gtk_Text_Mark_Record is new GObject_Record with null record;
pragma Import (C, Get_Type, "gtk_text_mark_get_type");
end Gtk.Text_Mark;
-- The following subprogram is implemented in gtk-text_buffer.ads for
-- circularity reasons:
-- No binding: gtk_text_mark_get_buffer
|