This widget is an abstract widget designed to support the common functionalities of all widgets for editing text. It provides general services to manipulate an editable widget, a large number of action signals used for key bindings, and several signals that an application can connect to to modify the behavior of a widget.
Widget Hierarchy |
---|
GObject (see section Package Glib.Object) Gtk_Object (see section Package Gtk.Object) \___ Gtk_Widget (see section Package Gtk.Widget) \___ Gtk_Editable (see section Package Gtk.Editable) |
Signals |
---|
Subprograms |
---|
function Get_Type return Glib.GType; | ||
Return the internal value associated with a Gtk_Editable.
| ||
procedure Select_Region (Editable : access Gtk_Editable_Record; Start : Gint; The_End : Gint := -1); | ||
Select the region of text from Start to The_End. | ||
procedure Get_Selection_Bounds (Widget : access Gtk_Editable_Record; Success : out Boolean; Start_Pos : out Guint; End_Pos : out Guint); | ||
Return the position of the start and end of the current selection. | ||
procedure Insert_Text (Editable : access Gtk_Editable_Record; New_Text : UTF8_String; Position : in out Gint); | ||
Insert the given string at the given position. | ||
procedure Delete_Text (Editable : access Gtk_Editable_Record; Start_Pos : Gint := 0; End_Pos : Gint := -1); | ||
Delete the characters from Start_Pos to End_Pos. | ||
function Get_Chars (Editable : access Gtk_Editable_Record; Start_Pos : Gint := 0; End_Pos : Gint := -1) return UTF8_String; | ||
Get the text from Start_Pos to End_Pos. | ||
procedure Cut_Clipboard (Editable : access Gtk_Editable_Record); | ||
Copy the characters in the current selection to the clipboard. | ||
procedure Copy_Clipboard (Editable : access Gtk_Editable_Record); | ||
Copy the characters in the current selection to the clipboard.
| ||
procedure Paste_Clipboard (Editable : access Gtk_Editable_Record); | ||
The contents of the clipboard is pasted into the given widget at | ||
procedure Delete_Selection (Editable : access Gtk_Editable_Record); | ||
Disclaim and delete the current selection.
| ||
procedure Set_Position (Editable : access Gtk_Editable_Record; Position : Gint); | ||
Change the position of the cursor in the entry. | ||
function Get_Position (Editable : access Gtk_Editable_Record) return Gint; | ||
Return the position of the cursor.
| ||
procedure Set_Editable (Widget : access Gtk_Editable_Record; Editable : Boolean := True); | ||
Set the editable status of the entry. | ||
function Get_Editable (Editable : access Gtk_Editable_Record) return Boolean; | ||
Get the editable status of the entry.
|