type Gtk_Text_Record is new Gtk.Old_Editable.Gtk_Old_Editable_Record with private;
type Gtk_Text is access all Gtk_Text_Record'Class;
Signal_Set_Scroll_Adjustments : constant Glib.Signal_Name := "set_scroll_adjustments";
Line_Wrap_Property : constant Glib.Properties.Property_Boolean;
Vadjustment_Property : constant Glib.Properties.Property_Object;
Word_Wrap_Property : constant Glib.Properties.Property_Boolean;
procedure Gtk_New
( | Text | : out Gtk_Text; |
Hadj | : in Adjustment.Gtk_Adjustment := null; | |
Vadj | : in Adjustment.Gtk_Adjustment := null); |
procedure Initialize
( | Text | : access Gtk_Text_Record'Class; |
Hadj | : in Adjustment.Gtk_Adjustment := null; | |
Vadj | : in Adjustment.Gtk_Adjustment := null); |
function Get_Type return Gtk.Gtk_Type;
function Get_Text_Area
( | Text | : access Gtk_Text_Record) return Gdk.Window.Gdk_Window; |
function Backward_Delete
( | Text | : access Gtk_Text_Record; |
Nchars | : in Guint) return Boolean; |
function Forward_Delete
( | Text | : access Gtk_Text_Record; |
Nchars | : in Guint) return Boolean; |
procedure Freeze
( | Text | : access Gtk_Text_Record); |
procedure Thaw
( | Text | : access Gtk_Text_Record); |
function Get_Gap_Position
( | Text | : access Gtk_Text_Record) return Guint; |
function Get_Gap_Size
( | Text | : access Gtk_Text_Record) return Guint; |
function Get_Text_End
( | Text | : access Gtk_Text_Record) return Guint; |
function Get_Hadj
( | Text | : access Gtk_Text_Record) return Gtk.Adjustment.Gtk_Adjustment; |
function Get_Vadj
( | Text | : access Gtk_Text_Record) return Gtk.Adjustment.Gtk_Adjustment; |
function Get_Length
( | Text | : access Gtk_Text_Record) return Guint; |
function Get_Point
( | Text | : access Gtk_Text_Record) return Guint; |
procedure Set_Point
( | Text | : access Gtk_Text_Record; |
Index | : in Guint); |
procedure Insert
( | Text | : access Gtk_Text_Record; |
Font | : in Gdk.Font.Gdk_Font := Gdk.Font.Null_Font; | |
Fore | : in Gdk.Color.Gdk_Color := Gdk.Color.Null_Color; | |
Back | : in Gdk.Color.Gdk_Color := Gdk.Color.Null_Color; | |
Chars | : in UTF8_String := ""; | |
Length | : in Gint := -1); |
procedure Set_Adjustments
( | Text | : access Gtk_Text_Record; |
Hadj | : Gtk.Adjustment.Gtk_Adjustment; | |
Vadj | : Gtk.Adjustment.Gtk_Adjustment); |
procedure Set_Editable
( | Text | : access Gtk_Text_Record; |
Editable | : in Boolean := True); |
procedure Set_Line_Wrap
( | Text | : access Gtk_Text_Record; |
Line_Wrap | : in Boolean := True); |
procedure Set_Word_Wrap
( | Text | : access Gtk_Text_Record; |
Word_Wrap | : in Boolean := True); |
This widget displays any given text that can be manipulated by both the user and the programmer.
The text can optionally be interactively modified by the user.
Different colors and fonts can be used for any given part of the text. The background can have any color, or even be a pixmap.
Binding from C File version 2.8.17