type Gtk_Entry_Record is new Gtk.Editable.Gtk_Editable_Record with private;
type Gtk_Entry_Icon_Position is (Gtk_Entry_Icon_Primary, Gtk_Entry_Icon_Secondary);
type Gtk_Entry is access all Gtk_Entry_Record'Class;
subtype Gtk_GEntry is Gtk_Entry;
Activates_Default_Property : constant Glib.Properties.Property_Boolean;
Caps_Lock_Warning_Property : constant Glib.Properties.Property_Boolean;
Cursor_Position_Property : constant Glib.Properties.Property_Int;
Editable_Property : constant Glib.Properties.Property_Boolean;
Has_Frame_Property : constant Glib.Properties.Property_Boolean;
Im_Module_Property : constant Glib.Properties.Property_String;
Inner_Border_Property : constant Glib.Properties.Property_Boxed;
Invisible_Char_Property : constant Glib.Properties.Property_Unichar;
Invisible_Char_Set_Property : constant Glib.Properties.Property_Boolean;
Max_Length_Property : constant Glib.Properties.Property_Int;
Overwrite_Mode_Property : constant Glib.Properties.Property_Boolean;
Primary_Icon_Activatable_Property : constant Glib.Properties.Property_Boolean;
Primary_Icon_Gicon_Property : constant Glib.Properties.Property_Object;
Primary_Icon_Name_Property : constant Glib.Properties.Property_String;
Primary_Icon_Pixbuf_Property : constant Glib.Properties.Property_Object;
Primary_Icon_Sensitive_Property : constant Glib.Properties.Property_Boolean;
Primary_Icon_Stock_Property : constant Glib.Properties.Property_String;
Primary_Icon_Storage_Type_Property : constant Glib.Properties.Property_Enum;
Primary_Icon_Tooltip_Markup_Property : constant Glib.Properties.Property_String;
Primary_Icon_Tooltip_Text_Property : constant Glib.Properties.Property_String;
Progress_Fraction_Property : constant Glib.Properties.Property_Double;
Progress_Pulse_Step_Property : constant Glib.Properties.Property_Double;
Scroll_Offset_Property : constant Glib.Properties.Property_Int;
Secondary_Icon_Activatable_Property : constant Glib.Properties.Property_Boolean;
Secondary_Icon_Gicon_Property : constant Glib.Properties.Property_Object;
Secondary_Icon_Name_Property : constant Glib.Properties.Property_String;
Secondary_Icon_Pixbuf_Property : constant Glib.Properties.Property_Object;
Secondary_Icon_Sensitive_Property : constant Glib.Properties.Property_Boolean;
Secondary_Icon_Stock_Property : constant Glib.Properties.Property_String;
Secondary_Icon_Storage_Type_Property : constant Glib.Properties.Property_Enum;
Secondary_Icon_Tooltip_Markup_Property : constant Glib.Properties.Property_String;
Secondary_Icon_Tooltip_Text_Property : constant Glib.Properties.Property_String;
Selection_Bound_Property : constant Glib.Properties.Property_Int;
Shadow_Type_Property : constant Glib.Properties.Property_Enum;
Text_Length_Property : constant Glib.Properties.Property_Uint;
Text_Position_Property : constant Glib.Properties.Property_Int;
Text_Property : constant Glib.Properties.Property_String;
Truncate_Multiline_Property : constant Glib.Properties.Property_Boolean;
Visibility_Property : constant Glib.Properties.Property_Boolean;
Width_Chars_Property : constant Glib.Properties.Property_Int;
Xalign_Property : constant Glib.Properties.Property_Float;
Icon_Prelight_Property : constant Glib.Properties.Property_Boolean;
Progress_Border_Property : constant Glib.Properties.Property_Boxed;
State_Hint_Property : constant Glib.Properties.Property_Boolean;
Signal_Activate : constant Glib.Signal_Name := "activate";
Signal_Backspace : constant Glib.Signal_Name := "backspace";
Signal_Copy_Clipboard : constant Glib.Signal_Name := "copy_clipboard";
Signal_Cut_Clipboard : constant Glib.Signal_Name := "cut_clipboard";
Signal_Delete_From_Cursor : constant Glib.Signal_Name := "delete_from_cursor";
Signal_Insert_At_Cursor : constant Glib.Signal_Name := "insert_at_cursor";
Signal_Move_Cursor : constant Glib.Signal_Name := "move_cursor";
Signal_Paste_Clipboard : constant Glib.Signal_Name := "paste_clipboard";
Signal_Populate_Popup : constant Glib.Signal_Name := "populate_popup";
Signal_Toggle_Overwrite : constant Glib.Signal_Name := "toggle_overwrite";
procedure Gtk_New
( | Widget | : out Gtk_Entry); |
procedure Initialize
( | Widget | : access Gtk_Entry_Record'Class); |
function Get_Type return Gtk.Gtk_Type;
function Get_Text_Length
( | The_Entry | : access Gtk_Entry_Record) return Guint16; |
procedure Set_Visibility
( | The_Entry | : access Gtk_Entry_Record; |
Visible | : Boolean); |
function Get_Visibility
( | The_Entry | : access Gtk_Entry_Record) return Boolean; |
procedure Set_Invisible_Char
( | The_Entry | : access Gtk_Entry_Record; |
Char | : Gunichar); |
function Get_Invisible_Char
( | The_Entry | : access Gtk_Entry_Record) return Gunichar; |
procedure Unset_Invisible_Char
( | The_Entry | : access Gtk_Entry_Record); |
procedure Set_Has_Frame
( | The_Entry | : access Gtk_Entry_Record; |
Setting | : Boolean := True); |
function Get_Has_Frame
( | The_Entry | : access Gtk_Entry_Record) return Boolean; |
procedure Set_Max_Length
( | The_Entry | : access Gtk_Entry_Record; |
Max | : Gint); |
function Get_Max_Length
( | The_Entry | : access Gtk_Entry_Record) return Gint; |
procedure Set_Activates_Default
( | The_Entry | : access Gtk_Entry_Record; |
Setting | : Boolean); |
function Get_Activates_Default
( | The_Entry | : access Gtk_Entry_Record) return Boolean; |
procedure Set_Width_Chars
( | The_Entry | : access Gtk_Entry_Record'Class; |
Width | : Gint); |
function Get_Width_Chars
( | The_Entry | : access Gtk_Entry_Record'Class) return Gint; |
procedure Set_Text
( | The_Entry | : access Gtk_Entry_Record; |
Text | : UTF8_String); |
function Get_Text
( | The_Entry | : access Gtk_Entry_Record) return UTF8_String; |
procedure Set_Alignment
( | Ent | : access Gtk_Entry_Record; |
Xalign | : Gfloat); |
function Get_Alignment
( | Ent | : access Gtk_Entry_Record) return Gfloat; |
procedure Set_Completion
( | Ent | : access Gtk_Entry_Record; |
Completion | : access Gtk_Entry_Completion_Record'Class); |
function Get_Completion
( | Ent | : access Gtk_Entry_Record) return Gtk_Entry_Completion; |
function Text_Index_To_Layout_Index
( | Ent | : access Gtk_Entry_Record; |
Text_Index | : Gint) return Gint; |
function Layout_Index_To_Text_Index
( | Ent | : access Gtk_Entry_Record; |
Layout_Index | : Gint) return Gint; |
procedure Get_Layout_Offsets
( | The_Entry | : access Gtk_Entry_Record; |
X | : out Gint; | |
Y | : out Gint); |
function Get_Layout
( | The_Entry | : access Gtk_Entry_Record) return Pango.Layout.Pango_Layout; |
function Get_Current_Icon_Drag_Source
( | The_Entry | : access Gtk_Entry_Record) return Gint; |
procedure Set_Icon_Drag_Source
( | The_Entry | : access Gtk_Entry_Record; |
Icon_Pos | : Gtk_Entry_Icon_Position; | |
Target_List | : Gtk.Selection.Target_List; | |
Actions | : Gdk.Dnd.Drag_Action); |
function Get_Cursor_Hadjustment
( | The_Entry | : access Gtk_Entry_Record) return Gtk.Adjustment.Gtk_Adjustment; |
procedure Set_Cursor_Hadjustment
( | The_Entry | : access Gtk_Entry_Record; |
Adjustment | : access Gtk.Adjustment.Gtk_Adjustment_Record'Class); |
function Get_Icon_Activatable
( | The_Entry | : access Gtk_Entry_Record; |
Icon_Pos | : Gtk_Entry_Icon_Position) return Boolean; |
procedure Set_Icon_Activatable
( | The_Entry | : access Gtk_Entry_Record; |
Icon_Pos | : Gtk_Entry_Icon_Position; | |
Activatable | : Boolean); |
function Get_Icon_At_Pos
( | The_Entry | : access Gtk_Entry_Record; |
X | : Gint; | |
Y | : Gint) return Gint; |
function Get_Icon_Gicon
( | The_Entry | : access Gtk_Entry_Record; |
Icon_Pos | : Gtk_Entry_Icon_Position) return Glib.G_Icon.G_Icon; |
procedure Set_Icon_From_Gicon
( | The_Entry | : access Gtk_Entry_Record; |
Icon_Pos | : Gtk_Entry_Icon_Position; | |
Icon | : Glib.G_Icon.G_Icon); |
function Get_Icon_Name
( | The_Entry | : access Gtk_Entry_Record; |
Icon_Pos | : Gtk_Entry_Icon_Position) return UTF8_String; |
procedure Set_Icon_From_Icon_Name
( | The_Entry | : access Gtk_Entry_Record; |
Icon_Pos | : Gtk_Entry_Icon_Position; | |
Icon_Name | : UTF8_String); |
function Get_Icon_Pixbuf
( | The_Entry | : access Gtk_Entry_Record; |
Icon_Pos | : Gtk_Entry_Icon_Position) return Gdk.Pixbuf.Gdk_Pixbuf; |
procedure Set_Icon_From_Pixbuf
( | The_Entry | : access Gtk_Entry_Record; |
Icon_Pos | : Gtk_Entry_Icon_Position; | |
Pixbuf | : Gdk.Pixbuf.Gdk_Pixbuf); |
function Get_Icon_Stock
( | The_Entry | : access Gtk_Entry_Record; |
Icon_Pos | : Gtk_Entry_Icon_Position) return UTF8_String; |
procedure Set_Icon_From_Stock
( | The_Entry | : access Gtk_Entry_Record; |
Icon_Pos | : Gtk_Entry_Icon_Position; | |
Stock_Id | : UTF8_String); |
function Get_Icon_Sensitive
( | The_Entry | : access Gtk_Entry_Record; |
Icon_Pos | : Gtk_Entry_Icon_Position) return Boolean; |
procedure Set_Icon_Sensitive
( | The_Entry | : access Gtk_Entry_Record; |
Icon_Pos | : Gtk_Entry_Icon_Position; | |
Sensitive | : Boolean); |
function Get_Icon_Storage_Type
( | The_Entry | : access Gtk_Entry_Record; |
Icon_Pos | : Gtk_Entry_Icon_Position) return Gtk.Image.Gtk_Image_Type; |
function Get_Icon_Tooltip_Markup
( | The_Entry | : access Gtk_Entry_Record; |
Icon_Pos | : Gtk_Entry_Icon_Position) return UTF8_String; |
procedure Set_Icon_Tooltip_Markup
( | The_Entry | : access Gtk_Entry_Record; |
Icon_Pos | : Gtk_Entry_Icon_Position; | |
Tooltip | : UTF8_String); |
function Get_Icon_Tooltip_Text
( | The_Entry | : access Gtk_Entry_Record; |
Icon_Pos | : Gtk_Entry_Icon_Position) return UTF8_String; |
procedure Set_Icon_Tooltip_Text
( | The_Entry | : access Gtk_Entry_Record; |
Icon_Pos | : Gtk_Entry_Icon_Position; | |
Tooltip | : UTF8_String); |
function Get_Inner_Border
( | The_Entry | : access Gtk_Entry_Record) return Gtk.Style.Gtk_Border; |
procedure Set_Inner_Border
( | The_Entry | : access Gtk_Entry_Record; |
Border | : Gtk.Style.Gtk_Border); |
function Get_Overwrite_Mode
( | The_Entry | : access Gtk_Entry_Record) return Boolean; |
procedure Set_Overwrite_Mode
( | The_Entry | : access Gtk_Entry_Record; |
Overwrite | : Boolean); |
function Get_Progress_Fraction
( | The_Entry | : access Gtk_Entry_Record) return Gdouble; |
procedure Set_Progress_Fraction
( | The_Entry | : access Gtk_Entry_Record; |
Fraction | : Gdouble); |
function Get_Progress_Pulse_Step
( | The_Entry | : access Gtk_Entry_Record) return Gdouble; |
procedure Set_Progress_Pulse_Step
( | The_Entry | : access Gtk_Entry_Record; |
Fraction | : Gdouble); |
procedure Progress_Pulse
( | The_Entry | : access Gtk_Entry_Record); |
procedure Initialize
( | Widget | : access Gtk_Entry_Record'Class; |
Max | : Gint); |
procedure Append_Text
( | The_Entry | : access Gtk_Entry_Record; |
Text | : UTF8_String); |
procedure Prepend_Text
( | The_Entry | : access Gtk_Entry_Record; |
Text | : UTF8_String); |
procedure Set_Editable
( | The_Entry | : access Gtk_Entry_Record; |
Editable | : Boolean); |
function Get_Chars
( | The_Entry | : access Gtk_Entry_Record) return UTF8_String renames Get_Text; |
A Gtk_Entry is a single line text editing widget.
The text is automatically scrolled if it is longer than can be displayed on the screen, so that the cursor position is visible at all times.
See Gtk_Text_View for a multiple-line text editing widget.
Binding from C File version 2.16.6
<testgtk>create_entry.adb</testgtk>