## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Text_View

- Goto spec source

# Description

    package Gtk.Text_View is

This widget displays a view of a Gtk_Text_Buffer. Multiple views can be set on a given buffer.

Binding from C File version 2.8.17

### Screenshot

<see>Gtk.Text_Buffer</see> <see>Gtk.Text_Tag</see> <see>Gtk.Text_Attributes</see> <testgtk>create_text_view.adb</testgtk>

# Classes

### Gtk_Text_View_Record

- Goto declaration in source
- Goto full declaration in source

    type Gtk_Text_View_Record is
         new Gtk.Container.Gtk_Container_Record with private;

#### Ancestors:

Gtk.Container.Gtk_Container_Record
Gtk.Widget.Gtk_Widget_Record
Glib.Object.GObject_Record

#### Primitive operations:

Add_Child_At_Anchor

- To API doc
- To spec

Add_Child_In_Window

- To API doc
- To spec

Backward_Display_Line

- To API doc
- To spec

Backward_Display_Line_Start

- To API doc
- To spec

Buffer_To_Window_Coords

- To API doc
- To spec

Forward_Display_Line

- To API doc
- To spec

Forward_Display_Line_End

- To API doc
- To spec

Get_Accepts_Tab

- To API doc
- To spec

Get_Border_Window_Size

- To API doc
- To spec

Get_Buffer

- To API doc
- To spec

Get_Cursor_Visible

- To API doc
- To spec

Get_Default_Attributes

- To API doc
- To spec

Get_Disable_Scroll_On_Focus

- To API doc
- To spec

Get_Editable

- To API doc
- To spec

Get_Indent

- To API doc
- To spec

Get_Iter_At_Location

- To API doc
- To spec

Get_Iter_At_Position

- To API doc
- To spec

Get_Iter_Location

- To API doc
- To spec

Get_Justification

- To API doc
- To spec

Get_Left_Margin

- To API doc
- To spec

Get_Line_At_Y

- To API doc
- To spec

Get_Line_Yrange

- To API doc
- To spec

Get_Overwrite

- To API doc
- To spec

Get_Pixels_Above_Lines

- To API doc
- To spec

Get_Pixels_Below_Lines

- To API doc
- To spec

Get_Pixels_Inside_Wrap

- To API doc
- To spec

Get_Right_Margin

- To API doc
- To spec

Get_Tabs

- To API doc
- To spec

Get_Visible_Rect

- To API doc
- To spec

Get_Window

- To API doc
- To spec

Get_Window_Type

- To API doc
- To spec

Get_Wrap_Mode

- 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)
Gtk.Container.Add

- To API doc
- To spec

(Inherited)
Gtk.Container.Check_Resize

- To API doc
- To spec

(Inherited)
Gtk.Container.Child_Get_Property

- To API doc
- To spec

(Inherited)
Gtk.Container.Child_Set_Property

- To API doc
- To spec

(Inherited)
Gtk.Container.Child_Type

- To API doc
- To spec

(Inherited)
Gtk.Container.Forall

- To API doc
- To spec

(Inherited)
Gtk.Container.Foreach

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Border_Width

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Children

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Focus_Chain

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Focus_Child

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Focus_Hadjustment

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Focus_Vadjustment

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Resize_Mode

- To API doc
- To spec

(Inherited)
Gtk.Container.Propagate_Expose

- To API doc
- To spec

(Inherited)
Gtk.Container.Remove

- To API doc
- To spec

(Inherited)
Gtk.Container.Resize_Children

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Border_Width

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Focus_Chain

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Focus_Child

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Focus_Hadjustment

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Focus_Vadjustment

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Reallocate_Redraws

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Resize_Mode

- To API doc
- To spec

(Inherited)
Gtk.Container.Unset_Focus_Chain

- To API doc
- To spec

(Inherited)
Gtk.Widget.Activate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Add_Accelerator

- To API doc
- To spec

(Inherited)
Gtk.Widget.Add_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Add_Mnemonic_Label

- To API doc
- To spec

(Inherited)
Gtk.Widget.Can_Activate_Accel

- To API doc
- To spec

(Inherited)
Gtk.Widget.Child_Notify

- To API doc
- To spec

(Inherited)
Gtk.Widget.Class_Path

- To API doc
- To spec

(Inherited)
Gtk.Widget.Class_Path_Reversed

- To API doc
- To spec

(Inherited)
Gtk.Widget.Create_Pango_Context

- To API doc
- To spec

(Inherited)
Gtk.Widget.Create_Pango_Layout

- To API doc
- To spec

(Inherited)
Gtk.Widget.Destroy

- To API doc
- To spec

(Inherited)
Gtk.Widget.Draw

- To API doc
- To spec

(Inherited)
Gtk.Widget.Ensure_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Error_Bell

- To API doc
- To spec

(Inherited)
Gtk.Widget.Flag_Is_Set

- To API doc
- To spec

(Inherited)
Gtk.Widget.Flags

- To API doc
- To spec

(Inherited)
Gtk.Widget.Freeze_Child_Notify

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_Height

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_Width

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_X

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_Y

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Ancestor

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Child_Requisition

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Child_Visible

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Colormap

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Composite_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Direction

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Extension_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Has_Tooltip

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_No_Show_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Pango_Context

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Parent

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Parent_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Pointer

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Root_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Size_Request

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Snapshot

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_State

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Tooltip_Markup

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Tooltip_Text

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Tooltip_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Toplevel

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Visual

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Grab_Default

- To API doc
- To spec

(Inherited)
Gtk.Widget.Grab_Focus

- To API doc
- To spec

(Inherited)
Gtk.Widget.Has_Screen

- To API doc
- To spec

(Inherited)
Gtk.Widget.Hide

- To API doc
- To spec

(Inherited)
Gtk.Widget.Hide_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Input_Shape_Combine_Mask

- To API doc
- To spec

(Inherited)
Gtk.Widget.Intersect

- To API doc
- To spec

(Inherited)
Gtk.Widget.Is_Ancestor

- To API doc
- To spec

(Inherited)
Gtk.Widget.Is_Composited

- To API doc
- To spec

(Inherited)
Gtk.Widget.Is_Focus

- To API doc
- To spec

(Inherited)
Gtk.Widget.Keynav_Failed

- To API doc
- To spec

(Inherited)
Gtk.Widget.List_Mnemonic_Labels

- To API doc
- To spec

(Inherited)
Gtk.Widget.Map

- To API doc
- To spec

(Inherited)
Gtk.Widget.Mnemonic_Activate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Base

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Bg

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Cursor

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Fg

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Font

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Text

- To API doc
- To spec

(Inherited)
Gtk.Widget.Path

- To API doc
- To spec

(Inherited)
Gtk.Widget.Path_Reversed

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Clear

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Clear_Area

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Draw

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Draw_Area

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Resize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Resize_No_Redraw

- To API doc
- To spec

(Inherited)
Gtk.Widget.Realize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Region_Intersect

- To API doc
- To spec

(Inherited)
Gtk.Widget.Remove_Accelerator

- To API doc
- To spec

(Inherited)
Gtk.Widget.Remove_Mnemonic_Label

- To API doc
- To spec

(Inherited)
Gtk.Widget.Render_Icon

- To API doc
- To spec

(Inherited)
Gtk.Widget.Reparent

- To API doc
- To spec

(Inherited)
Gtk.Widget.Reset_Rc_Styles

- To API doc
- To spec

(Inherited)
Gtk.Widget.Reset_Shapes

- To API doc
- To spec

(Inherited)
Gtk.Widget.Restore_Default_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Send_Expose

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Accel_Path

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_App_Paintable

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Child_Visible

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Colormap

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Composite_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Direction

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Double_Buffered

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Extension_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Flags

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Has_Tooltip

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_No_Show_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Parent

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Parent_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Redraw_On_Allocate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Scroll_Adjustments

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Sensitive

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Size_Request

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_State

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Tooltip_Markup

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Tooltip_Text

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Tooltip_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_UPosition

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_USize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Shape_Combine_Mask

- To API doc
- To spec

(Inherited)
Gtk.Widget.Show

- To API doc
- To spec

(Inherited)
Gtk.Widget.Show_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Show_Now

- To API doc
- To spec

(Inherited)
Gtk.Widget.Size_Allocate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Size_Request

- To API doc
- To spec

(Inherited)
Gtk.Widget.Style_Get_Property

- To API doc
- To spec

(Inherited)
Gtk.Widget.Thaw_Child_Notify

- To API doc
- To spec

(Inherited)
Gtk.Widget.Trigger_Tooltip_Query

- To API doc
- To spec

(Inherited)
Gtk.Widget.Unmap

- To API doc
- To spec

(Inherited)
Gtk.Widget.Unrealize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Unset_Flags

- To API doc
- To spec

(Inherited)
Move_Child

- To API doc
- To spec

Move_Mark_Onscreen

- To API doc
- To spec

Move_Visually

- To API doc
- To spec

Place_Cursor_Onscreen

- To API doc
- To spec

Scroll_Mark_Onscreen

- To API doc
- To spec

Scroll_To_Iter

- To API doc
- To spec

Scroll_To_Mark

- To API doc
- To spec

Set_Accepts_Tab

- To API doc
- To spec

Set_Border_Window_Size

- To API doc
- To spec

Set_Buffer

- To API doc
- To spec

Set_Cursor_Visible

- To API doc
- To spec

Set_Disable_Scroll_On_Focus

- To API doc
- To spec

Set_Editable

- To API doc
- To spec

Set_Indent

- To API doc
- To spec

Set_Justification

- To API doc
- To spec

Set_Left_Margin

- To API doc
- To spec

Set_Overwrite

- To API doc
- To spec

Set_Pixels_Above_Lines

- To API doc
- To spec

Set_Pixels_Below_Lines

- To API doc
- To spec

Set_Pixels_Inside_Wrap

- To API doc
- To spec

Set_Right_Margin

- To API doc
- To spec

Set_Tabs

- To API doc
- To spec

Set_Wrap_Mode

- To API doc
- To spec

Starts_Display_Line

- To API doc
- To spec

Window_To_Buffer_Coords

- To API doc
- To spec

# Types

### Gtk_Text_View

- Goto declaration in source

    type Gtk_Text_View is access all Gtk_Text_View_Record'Class;

# Constants & Global variables

### Accepts_Tab_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Accepts_Tab_Property        : constant Glib.Properties.Property_Boolean;

### Buffer_Property

- Goto declaration in source

(Glib.Properties.Property_Object)

    Buffer_Property             : constant Glib.Properties.Property_Object;

### Cursor_Visible_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Cursor_Visible_Property     : constant Glib.Properties.Property_Boolean;

### Editable_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Editable_Property           : constant Glib.Properties.Property_Boolean;

### Indent_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Indent_Property             : constant Glib.Properties.Property_Int;

### Justification_Property

- Goto declaration in source

(Gtk.Enums.Property_Gtk_Justification)

    Justification_Property      : constant Gtk.Enums.Property_Gtk_Justification;

### Left_Margin_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Left_Margin_Property        : constant Glib.Properties.Property_Int;

### Overwrite_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Overwrite_Property          : constant Glib.Properties.Property_Boolean;

### Pixels_Above_Lines_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Pixels_Above_Lines_Property : constant Glib.Properties.Property_Int;

### Pixels_Below_Lines_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Pixels_Below_Lines_Property : constant Glib.Properties.Property_Int;

### Pixels_Inside_Wrap_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Pixels_Inside_Wrap_Property : constant Glib.Properties.Property_Int;

### Right_Margin_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Right_Margin_Property       : constant Glib.Properties.Property_Int;

Tabs_Property : constant Glib.Properties.Property_Boxed;

### Wrap_Mode_Property

- Goto declaration in source

(Gtk.Enums.Property_Gtk_Wrap_Mode)

    Wrap_Mode_Property          : constant Gtk.Enums.Property_Gtk_Wrap_Mode;

Tabs_Property : constant Glib.Properties.Property_Boxed;

### Signal_Backspace

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Backspace              : constant Glib.Signal_Name :=
                                         "backspace";

### Signal_Copy_Clipboard

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Copy_Clipboard         : constant Glib.Signal_Name :=
                                         "copy_clipboard";

### Signal_Cut_Clipboard

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Cut_Clipboard          : constant Glib.Signal_Name :=
                                         "cut_clipboard";

### Signal_Delete_From_Cursor

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Delete_From_Cursor     : constant Glib.Signal_Name :=
                                         "delete_from_cursor";

### Signal_Insert_At_Cursor

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Insert_At_Cursor       : constant Glib.Signal_Name :=
                                         "insert_at_cursor";

### Signal_Move_Cursor

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Move_Cursor            : constant Glib.Signal_Name :=
                                         "move_cursor";

### Signal_Move_Focus

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Move_Focus             : constant Glib.Signal_Name :=
                                         "move_focus";

### Signal_Move_Viewport

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Move_Viewport          : constant Glib.Signal_Name :=
                                         "move_viewport";

### Signal_Page_Horizontally

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Page_Horizontally      : constant Glib.Signal_Name :=
                                         "page_horizontally";

### Signal_Paste_Clipboard

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Paste_Clipboard        : constant Glib.Signal_Name :=
                                         "paste_clipboard";

### Signal_Populate_Popup

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Populate_Popup         : constant Glib.Signal_Name :=
                                         "populate_popup";

### Signal_Select_All

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Select_All             : constant Glib.Signal_Name :=
                                         "select_all";

### Signal_Set_Anchor

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Set_Anchor             : constant Glib.Signal_Name :=
                                         "set_anchor";

### Signal_Set_Scroll_Adjustments

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Set_Scroll_Adjustments : constant Glib.Signal_Name :=
                                         "set_scroll_adjustments";

### Signal_Toggle_Overwrite

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Toggle_Overwrite       : constant Glib.Signal_Name :=
                                         "toggle_overwrite";

# Subprograms & Entries

### Gtk_New

- Goto spec in source

    procedure Gtk_New (Widget: out Gtk_Text_View;Buffer: Gtk.Text_Buffer.Gtk_Text_Buffer := null);

### Initialize

- Goto spec in source

    procedure Initialize (Widget: access Gtk_Text_View_Record'Class;Buffer: Gtk.Text_Buffer.Gtk_Text_Buffer);

Creates or initializes a new Gtk_Text_View. If Buffer is null, an empty default buffer will be created for you. Get the buffer with Get_Buffer. Otherwise, create a new text view widget displaying Buffer. One buffer can be shared among many widgets. The text view adds its own reference count to the buffer; it does not take over an existing reference.

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return Glib.GType;

Return the internal value associated with this widget.

### Set_Buffer

- Goto spec in source

    procedure Set_Buffer (Text_View: access Gtk_Text_View_Record;Buffer: access Gtk.Text_Buffer.Gtk_Text_Buffer_Record'Class);

Set Buffer as the buffer being displayed by Text_View. The previous buffer displayed by the text view is unreferenced, and a reference is added to Buffer. If you owned a reference to Buffer before passing it to this function, you must remove that reference yourself; Gtk_Text_View will not "adopt" it.

### Get_Buffer

- Goto spec in source

    function Get_Buffer (Text_View: access Gtk_Text_View_Record) return Gtk.Text_Buffer.Gtk_Text_Buffer;

Return the Gtk_Text_Buffer being displayed by this text view. The reference count on the buffer is not incremented; the caller of this function won't own a new reference.

### Scroll_To_Iter

- Goto spec in source

    function Scroll_To_Iter (Text_View: access Gtk_Text_View_Record;Iter: Gtk.Text_Iter.Gtk_Text_Iter;Within_Margin: Gdouble;Use_Align: Boolean;Xalign: Gdouble;Yalign: Gdouble) return Boolean;

Scroll Text_View so that Iter is on the screen in the position indicated by Xalign and Yalign. An alignment of 0.0 indicates left or top, 1.0 indicates right or bottom, 0.5 means center. If Use_Align is False, the text scrolls the minimal distance to get the mark onscreen, possibly not scrolling at all. The effective screen for purposes of this function is reduced by a margin of size Within_Margin. Note: This function uses the currently-computed height of the lines in the text buffer. Note that line heights are computed in an idle handler; so this function may not have the desired effect if it's called before the height computations. To avoid oddness, consider using Scroll_To_Mark which saves a point to be scrolled to after line validation.

### Scroll_To_Mark

- Goto spec in source

    procedure Scroll_To_Mark (Text_View: access Gtk_Text_View_Record;Mark: access Gtk.Text_Mark.Gtk_Text_Mark_Record'Class;Within_Margin: Gdouble := 0.0;Use_Align: Boolean := False;Xalign: Gdouble := 0.0;Yalign: Gdouble := 0.0);

Scroll Text_View so that Mark is on the screen in the position indicated by Xalign and Yalign. An alignment of 0.0 indicates left or top, 1.0 indicates right or bottom, 0.5 means center. If Use_Align is False, the text scrolls the minimal distance to get the mark onscreen, possibly not scrolling at all. The effective screen for purposes of this function is reduced by a margin of size Within_Margin.

### Scroll_Mark_Onscreen

- Goto spec in source

    procedure Scroll_Mark_Onscreen (Text_View: access Gtk_Text_View_Record;Mark: access Gtk.Text_Mark.Gtk_Text_Mark_Record'Class);

Same as the above with the default values

### Move_Mark_Onscreen

- Goto spec in source

    function Move_Mark_Onscreen (Text_View: access Gtk_Text_View_Record;Mark: access Gtk.Text_Mark.Gtk_Text_Mark_Record'Class) return Boolean;

Move a mark within the buffer so that it's located within the currently-visible text area. Return value: True if the mark moved (wasn't already onscreen).

### Place_Cursor_Onscreen

- Goto spec in source

    function Place_Cursor_Onscreen (Text_View: access Gtk_Text_View_Record) return Boolean;

Move the cursor to the currently visible region of the buffer, if it isn't there already. Return value: True if the cursor had to be moved.

### Get_Visible_Rect

- Goto spec in source

    procedure Get_Visible_Rect (Text_View: access Gtk_Text_View_Record;Visible_Rect: out Gdk.Rectangle.Gdk_Rectangle);

Fill Visible_Rect with the currently-visible region of the buffer, in buffer coordinates. Convert to window coordinates with Buffer_To_Window_Coords.

### Get_Iter_Location

- Goto spec in source

    procedure Get_Iter_Location (Text_View: access Gtk_Text_View_Record;Iter: Gtk.Text_Iter.Gtk_Text_Iter;Location: out Gdk.Rectangle.Gdk_Rectangle);

Get a rectangle which roughly contains the character at iter. The rectangle position is in buffer coordinates; use Buffer_To_Window_Coords to convert these coordinates to coordinates for one of the windows in the text view.

### Get_Iter_At_Location

- Goto spec in source

    procedure Get_Iter_At_Location (Text_View: access Gtk_Text_View_Record;Iter: out Gtk.Text_Iter.Gtk_Text_Iter;X: Gint;Y: Gint);

Retrieve the iterator at buffer coordinates X and Y. Buffer coordinates are coordinates for the entire buffer, not just the currently-displayed portion. If you have coordinates from an event, you have to convert those to buffer coordinates with Window_To_Buffer_Coords.

### Get_Iter_At_Position

- Goto spec in source

    procedure Get_Iter_At_Position (Text_View: access Gtk_Text_View_Record;Iter: out Gtk.Text_Iter.Gtk_Text_Iter;Trailing: out Gint;X: Gint;Y: Gint);

Retrieves the iterator pointing to the character at buffer coordinates X and Y. Buffer coordinates are coordinates for the entire buffer, not just the currently-displayed portion. If you have coordinates from an event, you have to convert those to buffer coordinates with Window_To_Buffer_Coords. Note that this is different from Get_Iter_At_Location(), which returns cursor locations, i.e. positions between characters) Trailing is set to indicate where in the grapheme the user clicked. It will be either 0, or the number of characters in the grapheme. 0 represents the trailing edge of the grapheme.

### Get_Line_Yrange

- Goto spec in source

    procedure Get_Line_Yrange (Text_View: access Gtk_Text_View_Record;Iter: Gtk.Text_Iter.Gtk_Text_Iter;Y: out Gint;Height: out Gint);

Get the Y coordinate of the top of the line containing Iter, and the Height of the line. The coordinate is a buffer coordinate; convert to window coordinates with Buffer_To_Window_Coords.

### Get_Line_At_Y

- Goto spec in source

    procedure Get_Line_At_Y (Text_View: access Gtk_Text_View_Record;Target_Iter: out Gtk.Text_Iter.Gtk_Text_Iter;Y: Gint;Line_Top: out Gint);

Get the Gtk_Text_Iter at the start of the line containing the coordinate Y. Y is in buffer coordinates, convert from window coordinates with Window_To_Buffer_Coords. Line_Top will be filled with the coordinate of the top edge of the line.

### Buffer_To_Window_Coords

- Goto spec in source

    procedure Buffer_To_Window_Coords (Text_View: access Gtk_Text_View_Record;Win: Gtk.Enums.Gtk_Text_Window_Type;Buffer_X: Gint;Buffer_Y: Gint;Window_X: out Gint;Window_Y: out Gint);

Convert coordinate (Buffer_X, Buffer_Y) to coordinates for the window Win, and store the result in (Window_X, Window_Y).

### Window_To_Buffer_Coords

- Goto spec in source

    procedure Window_To_Buffer_Coords (Text_View: access Gtk_Text_View_Record;Win: Gtk.Enums.Gtk_Text_Window_Type;Window_X: Gint;Window_Y: Gint;Buffer_X: out Gint;Buffer_Y: out Gint);

Convert coordinates on the window identified by Win to buffer coordinates, storing the result in (Buffer_X, Buffer_Y).

### Get_Window

- Goto spec in source

    function Get_Window (Text_View: access Gtk_Text_View_Record;Win: Gtk.Enums.Gtk_Text_Window_Type) return Gdk.Window.Gdk_Window;

Retrieve the Gdk_Window corresponding to an area of the text view; possible windows include the overall widget window, child windows on the left, right, top, bottom, and the window that displays the text buffer. Windows are null and nonexistent if their width or height is 0, and are nonexistent before the widget has been realized.

### Get_Window_Type

- Goto spec in source

    function Get_Window_Type (Text_View: access Gtk_Text_View_Record;Window: Gdk.Window.Gdk_Window) return Gtk.Enums.Gtk_Text_Window_Type;

Usually used to find out which window an event corresponds to. If you connect to an event signal on Text_View, this function should be called on Get_Window (Event) to see which window it was.

### Set_Border_Window_Size

- Goto spec in source

    procedure Set_Border_Window_Size (Text_View: access Gtk_Text_View_Record;The_Type: Gtk.Enums.Gtk_Text_Window_Type;Size: Gint);

### Get_Border_Window_Size

- Goto spec in source

    function Get_Border_Window_Size (Text_View: access Gtk_Text_View_Record;The_Type: Gtk.Enums.Gtk_Text_Window_Type) return Gint;

Set the width of Text_Window_Left or Text_Window_Right, or the height of Text_Window_Top or Text_Window_Bottom. Automatically destroy the corresponding window if the size is set to 0, and create the window if the size is set to non-zero.

### Set_Disable_Scroll_On_Focus

- Goto spec in source

    procedure Set_Disable_Scroll_On_Focus (Text_View: access Gtk_Text_View_Record;Set: Boolean);

<doc_ignore>

### Get_Disable_Scroll_On_Focus

- Goto spec in source

    function Get_Disable_Scroll_On_Focus (Text_View: access Gtk_Text_View_Record) return Boolean;

Set whether the Text_View should scroll to the cursor when it gets the focus. (This is the default behaviour) This procedure has no effect for gtk+ 2.2.2 or later. </doc_ignore>

### Forward_Display_Line

- Goto spec in source

    procedure Forward_Display_Line (Text_View: access Gtk_Text_View_Record;Iter: in out Gtk.Text_Iter.Gtk_Text_Iter;Result: out    Boolean);

### Forward_Display_Line_End

- Goto spec in source

    procedure Forward_Display_Line_End (Text_View: access Gtk_Text_View_Record;Iter: in out Gtk.Text_Iter.Gtk_Text_Iter;Result: out    Boolean);

Moves the given Iter forward by one display (wrapped) line. A display line is different from a paragraph. Paragraphs are separated by newlines or other paragraph separator characters. Display lines are created by line-wrapping a paragraph. If wrapping is turned off, display lines and paragraphs will be the same. Display lines are divided differently for each view, since they depend on the view's width; paragraphs are the same in all views, since they depend on the contents of the Gtk_Text_Buffer. Returns True if Iter was moved and is not on the end iterator.

### Backward_Display_Line

- Goto spec in source

    procedure Backward_Display_Line (Text_View: access Gtk_Text_View_Record;Iter: in out Gtk.Text_Iter.Gtk_Text_Iter;Result: out    Boolean);

### Backward_Display_Line_Start

- Goto spec in source

    procedure Backward_Display_Line_Start (Text_View: access Gtk_Text_View_Record;Iter: in out Gtk.Text_Iter.Gtk_Text_Iter;Result: out    Boolean);

Moves the given Iter backward by one display (wrapped) line. A display line is different from a paragraph. Paragraphs are separated by newlines or other paragraph separator characters. Display lines are created by line-wrapping a paragraph. If wrapping is turned off, display lines and paragraphs will be the same. Display lines are divided differently for each view, since they depend on the view's width; paragraphs are the same in all views, since they depend on the contents of the Gtk_Text_Buffer. Returns True if Iter was moved and is not on the end iterator

### Starts_Display_Line

- Goto spec in source

    function Starts_Display_Line (Text_View: access Gtk_Text_View_Record;Iter: Gtk.Text_Iter.Gtk_Text_Iter) return Boolean;

Determines whether Iter is at the start of a display line. See Forward_Display_Line for an explanation of display lines vs. paragraphs. Returns true if Iter begins a wrapped line.

### Move_Visually

- Goto spec in source

    procedure Move_Visually (Text_View: access Gtk_Text_View_Record;Iter: in out Gtk.Text_Iter.Gtk_Text_Iter;Count: Gint;Result: out Boolean);

Move the iterator a given number of characters visually, treating it as the strong cursor position. If Count is positive, then the new strong cursor position will be Count positions to the right of the old cursor position. If Count is negative then the new strong cursor position will be Count positions to the left of the old cursor position. In the presence of bidirection text, the correspondence between logical and visual order will depend on the direction of the current run, and there may be jumps when the cursor is moved off of the end of a run. Returns True if Iter moved and is not on the end iterator

### Add_Child_In_Window

- Goto spec in source

    procedure Add_Child_In_Window (Text_View: access Gtk_Text_View_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Which_Window: Gtk.Enums.Gtk_Text_Window_Type;Xpos: Gint;Ypos: Gint);

Adds a child at fixed coordinates in one of the text widget's windows. The window must have nonzero size (see Set_Border_Window_Size). Note that the child coordinates are given relative to the Gdk_Window in question, and that these coordinates have no sane relationship to scrolling. When placing a child in GTK_TEXT_WINDOW_WIDGET, scrolling is irrelevant, the child floats above all scrollable areas. But when placing a child in one of the scrollable windows (border windows or text window), you'll need to compute the child's correct position in buffer coordinates any time scrolling occurs or buffer changes occur, and then call Move_Child() to update the child's position. Unfortunately there's no good way to detect that scrolling has occurred, using the current API; a possible hack would be to update all child positions when the scroll adjustments change or the text buffer changes.

### Add_Child_At_Anchor

- Goto spec in source

    procedure Add_Child_At_Anchor (Text_View: access Gtk_Text_View_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Anchor: access Gtk.Text_Child.Gtk_Text_Child_Anchor_Record'Class);

Adds a child widget in the text buffer, at the given Anchor.

### Move_Child

- Goto spec in source

    procedure Move_Child (Text_View: access Gtk_Text_View_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Xpos: Gint;Ypos: Gint);

Updates the position of a child, as for Add_Child_In_Window. Child must already have been added to the text_view.

### Get_Default_Attributes

- Goto spec in source

    function Get_Default_Attributes (Text_View: access Gtk_Text_View_Record) return Gtk.Text_Attributes.Gtk_Text_Attributes;

Obtains a copy of the default text attributes. These are the attributes used for text unless a tag overrides them. You'd typically pass the default attributes in to Gtk.Text_Iter.Get_Attributes in order to get the attributes in effect at a given text position. The returned value is a copy and should be freed by the caller.

### Set_Cursor_Visible

- Goto spec in source

    procedure Set_Cursor_Visible (Text_View: access Gtk_Text_View_Record;Setting: Boolean := True);

### Get_Cursor_Visible

- Goto spec in source

    function Get_Cursor_Visible (Text_View: access Gtk_Text_View_Record) return Boolean;

Toggle whether the insertion point is displayed. A buffer with no editable text probably shouldn't have a visible cursor, so you may want to turn the cursor off.

### Set_Wrap_Mode

- Goto spec in source

    procedure Set_Wrap_Mode (Text_View: access Gtk_Text_View_Record;Wrap_Mode: Gtk.Enums.Gtk_Wrap_Mode);

### Get_Wrap_Mode

- Goto spec in source

    function Get_Wrap_Mode (Text_View: access Gtk_Text_View_Record) return Gtk.Enums.Gtk_Wrap_Mode;

Set the line wrapping for the view.

### Set_Editable

- Goto spec in source

    procedure Set_Editable (Text_View: access Gtk_Text_View_Record;Setting: Boolean := True);

### Get_Editable

- Goto spec in source

    function Get_Editable (Text_View: access Gtk_Text_View_Record) return Boolean;

Set the default editability of the Gtk_Text_View. You can override this default setting with tags in the buffer, using the "editable" attribute of tags.

### Set_Pixels_Above_Lines

- Goto spec in source

    procedure Set_Pixels_Above_Lines (Text_View: access Gtk_Text_View_Record;Pixels_Above_Lines: Gint);

### Get_Pixels_Above_Lines

- Goto spec in source

    function Get_Pixels_Above_Lines (Text_View: access Gtk_Text_View_Record) return Gint;

Sets the default number of blank pixels above paragraphs in Text_View. Tags in the buffer for Text_View may override the defaults.

### Set_Pixels_Below_Lines

- Goto spec in source

    procedure Set_Pixels_Below_Lines (Text_View: access Gtk_Text_View_Record;Pixels_Below_Lines: Gint);

### Get_Pixels_Below_Lines

- Goto spec in source

    function Get_Pixels_Below_Lines (Text_View: access Gtk_Text_View_Record) return Gint;

Sets the default number of pixels of blank space to put below paragraphs in Text_View. May be overridden by tags applied to Text_View's buffer.

### Set_Pixels_Inside_Wrap

- Goto spec in source

    procedure Set_Pixels_Inside_Wrap (Text_View: access Gtk_Text_View_Record;Pixels_Inside_Wrap: Gint);

### Get_Pixels_Inside_Wrap

- Goto spec in source

    function Get_Pixels_Inside_Wrap (Text_View: access Gtk_Text_View_Record) return Gint;

Sets the default number of pixels of blank space to leave between display/wrapped lines within a paragraph. May be overridden by tags in Text_View's buffer.

### Set_Justification

- Goto spec in source

    procedure Set_Justification (Text_View: access Gtk_Text_View_Record;Justification: Gtk.Enums.Gtk_Justification);

### Get_Justification

- Goto spec in source

    function Get_Justification (Text_View: access Gtk_Text_View_Record) return Gtk.Enums.Gtk_Justification;

Sets the default justification of text in Text_View. Tags in the view's buffer may override the default.

### Set_Left_Margin

- Goto spec in source

    procedure Set_Left_Margin (Text_View: access Gtk_Text_View_Record;Left_Margin: Gint);

### Get_Left_Margin

- Goto spec in source

    function Get_Left_Margin (Text_View: access Gtk_Text_View_Record) return Gint;

Sets the default left margin for text in Text_View. Tags in the buffer may override the default.

### Set_Right_Margin

- Goto spec in source

    procedure Set_Right_Margin (Text_View: access Gtk_Text_View_Record;Right_Margin: Gint);

### Get_Right_Margin

- Goto spec in source

    function Get_Right_Margin (Text_View: access Gtk_Text_View_Record) return Gint;

Sets the default right margin for text in the text view. Tags in the buffer may override the default.

### Set_Indent

- Goto spec in source

    procedure Set_Indent (Text_View: access Gtk_Text_View_Record;Indent: Gint);

### Get_Indent

- Goto spec in source

    function Get_Indent (Text_View: access Gtk_Text_View_Record) return Gint;

Sets the default indentation for paragraphs in Text_View. Tags in the buffer may override the default.

### Set_Tabs

- Goto spec in source

    procedure Set_Tabs (Text_View: access Gtk_Text_View_Record;Tabs: Pango.Tabs.Pango_Tab_Array);

### Get_Tabs

- Goto spec in source

    function Get_Tabs (Text_View: access Gtk_Text_View_Record) return Pango.Tabs.Pango_Tab_Array;

Sets the default tab stops for paragraphs in Text_View. Tags in the buffer may override the default The returned array will be Null_Tab_Array if "standard" (8-space) tabs are used. Free the return value Pango.Tabs.Free

### Set_Overwrite

- Goto spec in source

    procedure Set_Overwrite (Text_View: access Gtk_Text_View_Record;Overwrite: Boolean);

### Get_Overwrite

- Goto spec in source

    function Get_Overwrite (Text_View: access Gtk_Text_View_Record) return Boolean;

Changes the Text_View overwrite mode.

### Set_Accepts_Tab

- Goto spec in source

    procedure Set_Accepts_Tab (Text_View: access Gtk_Text_View_Record;Accepts_Tab: Boolean);

### Get_Accepts_Tab

- Goto spec in source

    function Get_Accepts_Tab (Text_View: access Gtk_Text_View_Record) return Boolean;

Sets the behavior of the text widget when the Tab key is pressed. If Accepts_Tab is True a tab character is inserted, otherwise the keyboard focus is moved to the next widget in the focus chain.