Description
This widget displays a view of a Gtk_Text_Buffer. Multiple views can be
set on a given buffer.
Subprograms
-
-
-
-
-
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;
-
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);
-
-
-
function Place_Cursor_Onscreen
(Text_View : access Gtk_Text_View_Record) return Boolean;
-
procedure Get_Visible_Rect
(Text_View : access Gtk_Text_View_Record;
Visible_Rect : out Gdk.Rectangle.Gdk_Rectangle);
-
procedure Get_Iter_Location
(Text_View :
access Gtk_Text_View_Record;
Iter :
Gtk.Text_Iter.Gtk_Text_Iter;
Location :
out Gdk.Rectangle.Gdk_Rectangle);
-
-
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);
-
procedure Get_Line_Yrange
(Text_View :
access Gtk_Text_View_Record;
Iter :
Gtk.Text_Iter.Gtk_Text_Iter;
Y :
out Gint;
Height :
out Gint);
-
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);
-
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);
-
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);
-
-
-
Iterators
You can manipulate iterators either through the buffer directly (thus
independently of any display properties), or through the property (if
you need to reference to what the user is actually seeing on the screen)
-
procedure Forward_Display_Line
(Text_View : access Gtk_Text_View_Record;
Iter : in out Gtk.Text_Iter.Gtk_Text_Iter;
Result : out Boolean);
procedure Forward_Display_Line_End
(Text_View : access Gtk_Text_View_Record;
Iter : in out Gtk.Text_Iter.Gtk_Text_Iter;
Result : out Boolean);
-
procedure Backward_Display_Line
(Text_View : access Gtk_Text_View_Record;
Iter : in out Gtk.Text_Iter.Gtk_Text_Iter;
Result : out Boolean);
procedure Backward_Display_Line_Start
(Text_View : access Gtk_Text_View_Record;
Iter : in out Gtk.Text_Iter.Gtk_Text_Iter;
Result : out Boolean);
-
-
procedure Move_Visually
(Text_View : access Gtk_Text_View_Record;
Iter : in out Gtk.Text_Iter.Gtk_Text_Iter;
Count : Gint;
Result : out Boolean);
Children widgets
Any widget can be put in a text_view, for instance to provide an
interactive area.
-
-
-
procedure Move_Child
(Text_View :
access Gtk_Text_View_Record;
Child :
access Gtk.Widget.Gtk_Widget_Record'Class;
Xpos : Gint;
Ypos : Gint);
Attributes
-
-
procedure Set_Cursor_Visible
(Text_View : access Gtk_Text_View_Record;
Setting : Boolean := True);
function Get_Cursor_Visible
(Text_View : access Gtk_Text_View_Record) return Boolean;
-
-
procedure Set_Editable
(Text_View : access Gtk_Text_View_Record;
Setting : Boolean := True);
function Get_Editable
(Text_View : access Gtk_Text_View_Record) return Boolean;
-
procedure Set_Pixels_Above_Lines
(Text_View : access Gtk_Text_View_Record;
Pixels_Above_Lines : Gint);
function Get_Pixels_Above_Lines
(Text_View : access Gtk_Text_View_Record) return Gint;
-
procedure Set_Pixels_Below_Lines
(Text_View : access Gtk_Text_View_Record;
Pixels_Below_Lines : Gint);
function Get_Pixels_Below_Lines
(Text_View : access Gtk_Text_View_Record) return Gint;
-
procedure Set_Pixels_Inside_Wrap
(Text_View : access Gtk_Text_View_Record;
Pixels_Inside_Wrap : Gint);
function Get_Pixels_Inside_Wrap
(Text_View : access Gtk_Text_View_Record) return Gint;
-
-
procedure Set_Left_Margin
(Text_View : access Gtk_Text_View_Record;
Left_Margin : Gint);
function Get_Left_Margin
(Text_View : access Gtk_Text_View_Record) return Gint;
-
procedure Set_Right_Margin
(Text_View : access Gtk_Text_View_Record;
Right_Margin : Gint);
function Get_Right_Margin
(Text_View : access Gtk_Text_View_Record) return Gint;
-
procedure Set_Indent
(Text_View : access Gtk_Text_View_Record; Indent : Gint);
function Get_Indent (Text_View : access Gtk_Text_View_Record) return Gint;
-
procedure Set_Tabs
(Text_View : access Gtk_Text_View_Record;
Tabs : Pango.Tabs.Pango_Tab_Array);
function Get_Tabs
(Text_View : access Gtk_Text_View_Record)
return Pango.Tabs.Pango_Tab_Array;
-
procedure Set_Overwrite
(Text_View : access Gtk_Text_View_Record; Overwrite : Boolean);
function Get_Overwrite
(Text_View : access Gtk_Text_View_Record) return Boolean;
-
procedure Set_Accepts_Tab
(Text_View : access Gtk_Text_View_Record; Accepts_Tab : Boolean);
function Get_Accepts_Tab
(Text_View : access Gtk_Text_View_Record) return Boolean;