## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Text_Mark

- Goto spec source

# Description

    package Gtk.Text_Mark is

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.

Binding from C File version 2.8.17

# Classes

### Gtk_Text_Mark_Record

- Goto declaration in source
- Goto full declaration in source

    type Gtk_Text_Mark_Record is new GObject_Record with private;

#### Ancestors:

Glib.Object.GObject_Record

#### Primitive operations:

Get_Deleted

- To API doc
- To spec

Get_Left_Gravity

- To API doc
- To spec

Get_Name

- To API doc
- To spec

Get_Visible

- To API doc
- To spec

Glib.Object.Deallocate

- To API doc
- To spec

(Inherited)
Glib.Object.Get_Type

- To API doc
- To spec

(Inherited)
Glib.Object.Notify

- To API doc
- To spec

(Inherited)
Glib.Object.Ref

- To API doc
- To spec

(Inherited)
Glib.Object.Ref_Sink

- To API doc
- To spec

(Inherited)
Glib.Object.Unref

- To API doc
- To spec

(Inherited)
Set_Text_Mark

- To API doc
- To spec

Set_Visible

- To API doc
- To spec

# Types

### Gtk_Text_Mark

- Goto declaration in source

    type Gtk_Text_Mark is access all Gtk_Text_Mark_Record'Class;

# Subprograms & Entries

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return Glib.GType;

Return the internal value associated with a Gtk_Label.

### Set_Visible

- Goto spec in source

    procedure Set_Visible (Mark: access Gtk_Text_Mark_Record;Setting: Boolean := True);

### Get_Visible

- Goto spec in source

    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.

### Get_Name

- Goto spec in source

    function Get_Name (Mark: access Gtk_Text_Mark_Record) return String;

Return the mark name; Return "" for anonymous marks.

### Get_Deleted

- Goto spec in source

    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.

### Get_Left_Gravity

- Goto spec in source

    function Get_Left_Gravity (Mark: access Gtk_Text_Mark_Record) return Boolean;

Return True if the mark has left gravity, False otherwise.

### Set_Text_Mark

- Goto spec in source

    procedure Set_Text_Mark (Val: in out Glib.Values.GValue;Mark: access Gtk_Text_Mark_Record);

### Get_Text_Mark

- Goto spec in source

    function Get_Text_Mark (Val: Glib.Values.GValue) return Gtk_Text_Mark;

Set the value of the given GValue to Mark.