type Gtk_Entry_Buffer_Record is new GObject_Record with null record;
type Gtk_Entry_Buffer is access all Gtk_Entry_Buffer_Record'Class;
type Cb_Gtk_Entry_Buffer_Guint_Guint_Void is not null access procedure (Self : access Gtk_Entry_Buffer_Record'Class; Position : Guint; N_Chars : Guint);
type Cb_GObject_Guint_Guint_Void is not null access procedure (Self : access Glib.Object.GObject_Record'Class; Position : Guint; N_Chars : Guint);
type Cb_Gtk_Entry_Buffer_Guint_UTF8_String_Guint_Void is not null access procedure (Self : access Gtk_Entry_Buffer_Record'Class; Position : Guint; Chars : UTF8_String; N_Chars : Guint);
type Cb_GObject_Guint_UTF8_String_Guint_Void is not null access procedure (Self : access Glib.Object.GObject_Record'Class; Position : Guint; Chars : UTF8_String; N_Chars : Guint);
Length_Property : constant Glib.Properties.Property_Uint;
Max_Length_Property : constant Glib.Properties.Property_Int;
Text_Property : constant Glib.Properties.Property_String;
Signal_Deleted_Text : constant Glib.Signal_Name := "deleted-text";
Signal_Inserted_Text : constant Glib.Signal_Name := "inserted-text";
procedure Gtk_New
( | Self | : out Gtk_Entry_Buffer; |
Initial_Chars | : UTF8_String := ""; | |
N_Initial_Chars | : Gint); |
procedure Initialize
( | Self | : not null access Gtk_Entry_Buffer_Record'Class; |
Initial_Chars | : UTF8_String := ""; | |
N_Initial_Chars | : Gint); |
function Gtk_Entry_Buffer_New
( | Initial_Chars | : UTF8_String := ""; |
N_Initial_Chars | : Gint) return Gtk_Entry_Buffer; |
function Get_Type return Glib.GType;
function Delete_Text
( | Self | : not null access Gtk_Entry_Buffer_Record; |
Position | : Guint; | |
N_Chars | : Gint) return Guint; |
procedure Emit_Deleted_Text
( | Self | : not null access Gtk_Entry_Buffer_Record; |
Position | : Guint; | |
N_Chars | : Guint); |
procedure Emit_Inserted_Text
( | Self | : not null access Gtk_Entry_Buffer_Record; |
Position | : Guint; | |
Chars | : UTF8_String; | |
N_Chars | : Guint); |
function Get_Bytes
( | Self | : not null access Gtk_Entry_Buffer_Record) return Gsize; |
function Get_Length
( | Self | : not null access Gtk_Entry_Buffer_Record) return Guint; |
function Get_Max_Length
( | Self | : not null access Gtk_Entry_Buffer_Record) return Gint; |
procedure Set_Max_Length
( | Self | : not null access Gtk_Entry_Buffer_Record; |
Max_Length | : Gint); |
function Get_Text
( | Self | : not null access Gtk_Entry_Buffer_Record) return UTF8_String; |
procedure Set_Text
( | Self | : not null access Gtk_Entry_Buffer_Record; |
Chars | : UTF8_String; | |
N_Chars | : Gint); |
function Insert_Text
( | Self | : not null access Gtk_Entry_Buffer_Record; |
Position | : Guint; | |
Chars | : UTF8_String; | |
N_Chars | : Gint) return Guint; |
procedure On_Deleted_Text
( | Self | : not null access Gtk_Entry_Buffer_Record; |
Call | : Cb_Gtk_Entry_Buffer_Guint_Guint_Void; | |
After | : Boolean := False); |
procedure On_Deleted_Text
( | Self | : not null access Gtk_Entry_Buffer_Record; |
Call | : Cb_GObject_Guint_Guint_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
procedure On_Inserted_Text
( | Self | : not null access Gtk_Entry_Buffer_Record; |
Call | : Cb_Gtk_Entry_Buffer_Guint_UTF8_String_Guint_Void; | |
After | : Boolean := False); |
procedure On_Inserted_Text
( | Self | : not null access Gtk_Entry_Buffer_Record; |
Call | : Cb_GObject_Guint_UTF8_String_Guint_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
The Gtk.Entry_Buffer.Gtk_Entry_Buffer class contains the actual text displayed in a Gtk.GEntry.Gtk_Entry widget.
A single Gtk.Entry_Buffer.Gtk_Entry_Buffer object can be shared by multiple Gtk.GEntry.Gtk_Entry widgets which will then share the same text content, but not the cursor position, visibility attributes, icon etc.
Gtk.Entry_Buffer.Gtk_Entry_Buffer may be derived from. Such a derived class might allow text to be stored in an alternate location, such as non-pageable memory, useful in the case of important passwords. Or a derived class could integrate with an application's concept of undo/redo.