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 |
---|
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 Gtk.Gtk_Type; | ||
Return the internal value associated with a Gtk_Editable.
| ||
procedure Changed (Editable : access Gtk_Editable_Record); | ||
Cause the "changed" signal to be emitted.
| ||
procedure Claim_Selection (Editable : access Gtk_Editable_Record; Claim : in Boolean := True; Time : in Guint32); | ||
If Claim is set to True, claim the ownership of the primary X selection. | ||
procedure Copy_Clipboard (Editable : access Gtk_Editable_Record; Time : in Guint32); | ||
Copy the characters in the current selection to the clipboard.
| ||
procedure Cut_Clipboard (Editable : access Gtk_Editable_Record; Time : in Guint32); | ||
Copy the characters in the current selection to the clipboard. | ||
procedure Delete_Selection (Editable : access Gtk_Editable_Record); | ||
Disclaim and delete the current selection.
| ||
procedure Delete_Text (Editable : access Gtk_Editable_Record; Start_Pos : in Gint := 0; End_Pos : in Gint := -1); | ||
Delete the characters from Start_Pos to End_Pos. | ||
function Get_Chars (Editable : access Gtk_Editable_Record; Start_Pos : in Gint := 0; End_Pos : in Gint := -1) return String; | ||
Get the text from Start_Pos to End_Pos. | ||
function Get_Clipboard_Text (Widget : access Gtk_Editable_Record) return String; | ||
Return the last text copied from the clipboard.
| ||
function Get_Editable (Widget : access Gtk_Editable_Record) return Boolean; | ||
Return True if the widget is editable by the user.
| ||
procedure Set_Editable (Widget : access Gtk_Editable_Record; Editable : in Boolean := True); | ||
Set the editable status of the entry. | ||
function Get_Has_Selection (Widget : access Gtk_Editable_Record) return Boolean; | ||
Return True if the selection is owned by the widget.
| ||
function Get_Selection_End_Pos (Widget : access Gtk_Editable_Record) return Guint; | ||
Return the position of the end of the current selection.
| ||
function Get_Selection_Start_Pos (Widget : access Gtk_Editable_Record) return Guint; | ||
Return the position of the beginning of the current selection.
| ||
procedure Insert_Text (Editable : access Gtk_Editable_Record; New_Text : in String; Position : in out Gint); | ||
Insert the given string at the given position. | ||
procedure Paste_Clipboard (Editable : access Gtk_Editable_Record; Time : in Guint32); | ||
The contents of the clipboard is pasted into the given widget at | ||
procedure Select_Region (Editable : access Gtk_Editable_Record; Start : in Gint; The_End : in Gint := -1); | ||
Select the region of text from Start to The_End. | ||
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.
|