## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: GEntry

- Goto spec source

# Description

    package Gtk.GEntry is

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>

### Screenshot

# Classes

### Gtk_Entry_Record

- Goto declaration in source
- Goto full declaration in source

    type Gtk_Entry_Record is new Gtk.Editable.Gtk_Editable_Record with private;

#### Ancestors:

Gtk.Editable.Gtk_Editable_Record
Gtk.Widget.Gtk_Widget_Record
Glib.Object.GObject_Record

#### Immediate Children:

Gtk.Extra.Item_Entry.Gtk_IEntry_Record
Gtk.Spin_Button.Gtk_Spin_Button_Record

#### Primitive operations:

Append_Text

- To API doc
- To spec

Get_Activates_Default

- To API doc
- To spec

Get_Alignment

- To API doc
- To spec

Get_Completion

- To API doc
- To spec

Get_Current_Icon_Drag_Source

- To API doc
- To spec

Get_Cursor_Hadjustment

- To API doc
- To spec

Get_Has_Frame

- To API doc
- To spec

Get_Icon_Activatable

- To API doc
- To spec

Get_Icon_At_Pos

- To API doc
- To spec

Get_Icon_Gicon

- To API doc
- To spec

Get_Icon_Name

- To API doc
- To spec

Get_Icon_Pixbuf

- To API doc
- To spec

Get_Icon_Sensitive

- To API doc
- To spec

Get_Icon_Stock

- To API doc
- To spec

Get_Icon_Storage_Type

- To API doc
- To spec

Get_Icon_Tooltip_Markup

- To API doc
- To spec

Get_Icon_Tooltip_Text

- To API doc
- To spec

Get_Inner_Border

- To API doc
- To spec

Get_Invisible_Char

- To API doc
- To spec

Get_Layout

- To API doc
- To spec

Get_Layout_Offsets

- To API doc
- To spec

Get_Max_Length

- To API doc
- To spec

Get_Overwrite_Mode

- To API doc
- To spec

Get_Progress_Fraction

- To API doc
- To spec

Get_Progress_Pulse_Step

- To API doc
- To spec

Get_Text

- To API doc
- To spec

Get_Text_Length

- To API doc
- To spec

Get_Visibility

- To API doc
- To spec

Glib.Object.Deallocate

- To API doc
- To spec

(Inherited)
Glib.Object.Get_Type

- To API doc
- To spec

(Inherited)
Glib.Object.Notify

- To API doc
- To spec

(Inherited)
Glib.Object.Ref

- To API doc
- To spec

(Inherited)
Glib.Object.Ref_Sink

- To API doc
- To spec

(Inherited)
Glib.Object.Unref

- To API doc
- To spec

(Inherited)
Gtk.Editable.Copy_Clipboard

- To API doc
- To spec

(Inherited)
Gtk.Editable.Cut_Clipboard

- To API doc
- To spec

(Inherited)
Gtk.Editable.Delete_Selection

- To API doc
- To spec

(Inherited)
Gtk.Editable.Delete_Text

- To API doc
- To spec

(Inherited)
Gtk.Editable.Get_Chars

- To API doc
- To spec

(Inherited)
Gtk.Editable.Get_Editable

- To API doc
- To spec

(Inherited)
Gtk.Editable.Get_Position

- To API doc
- To spec

(Inherited)
Gtk.Editable.Get_Selection_Bounds

- To API doc
- To spec

(Inherited)
Gtk.Editable.Insert_Text

- To API doc
- To spec

(Inherited)
Gtk.Editable.Paste_Clipboard

- To API doc
- To spec

(Inherited)
Gtk.Editable.Select_Region

- To API doc
- To spec

(Inherited)
Gtk.Editable.Set_Editable

- To API doc
- To spec

(Inherited)
Gtk.Editable.Set_Position

- To API doc
- To spec

(Inherited)
Gtk.Widget.Activate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Add_Accelerator

- To API doc
- To spec

(Inherited)
Gtk.Widget.Add_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Add_Mnemonic_Label

- To API doc
- To spec

(Inherited)
Gtk.Widget.Can_Activate_Accel

- To API doc
- To spec

(Inherited)
Gtk.Widget.Child_Notify

- To API doc
- To spec

(Inherited)
Gtk.Widget.Class_Path

- To API doc
- To spec

(Inherited)
Gtk.Widget.Class_Path_Reversed

- To API doc
- To spec

(Inherited)
Gtk.Widget.Create_Pango_Context

- To API doc
- To spec

(Inherited)
Gtk.Widget.Create_Pango_Layout

- To API doc
- To spec

(Inherited)
Gtk.Widget.Destroy

- To API doc
- To spec

(Inherited)
Gtk.Widget.Draw

- To API doc
- To spec

(Inherited)
Gtk.Widget.Ensure_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Error_Bell

- To API doc
- To spec

(Inherited)
Gtk.Widget.Flag_Is_Set

- To API doc
- To spec

(Inherited)
Gtk.Widget.Flags

- To API doc
- To spec

(Inherited)
Gtk.Widget.Freeze_Child_Notify

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_Height

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_Width

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_X

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_Y

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Ancestor

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Child_Requisition

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Child_Visible

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Colormap

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Composite_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Direction

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Extension_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Has_Tooltip

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_No_Show_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Pango_Context

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Parent

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Parent_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Pointer

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Root_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Size_Request

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Snapshot

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_State

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Tooltip_Markup

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Tooltip_Text

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Tooltip_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Toplevel

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Visual

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Grab_Default

- To API doc
- To spec

(Inherited)
Gtk.Widget.Grab_Focus

- To API doc
- To spec

(Inherited)
Gtk.Widget.Has_Screen

- To API doc
- To spec

(Inherited)
Gtk.Widget.Hide

- To API doc
- To spec

(Inherited)
Gtk.Widget.Hide_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Input_Shape_Combine_Mask

- To API doc
- To spec

(Inherited)
Gtk.Widget.Intersect

- To API doc
- To spec

(Inherited)
Gtk.Widget.Is_Ancestor

- To API doc
- To spec

(Inherited)
Gtk.Widget.Is_Composited

- To API doc
- To spec

(Inherited)
Gtk.Widget.Is_Focus

- To API doc
- To spec

(Inherited)
Gtk.Widget.Keynav_Failed

- To API doc
- To spec

(Inherited)
Gtk.Widget.List_Mnemonic_Labels

- To API doc
- To spec

(Inherited)
Gtk.Widget.Map

- To API doc
- To spec

(Inherited)
Gtk.Widget.Mnemonic_Activate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Base

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Bg

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Cursor

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Fg

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Font

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Text

- To API doc
- To spec

(Inherited)
Gtk.Widget.Path

- To API doc
- To spec

(Inherited)
Gtk.Widget.Path_Reversed

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Clear

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Clear_Area

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Draw

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Draw_Area

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Resize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Resize_No_Redraw

- To API doc
- To spec

(Inherited)
Gtk.Widget.Realize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Region_Intersect

- To API doc
- To spec

(Inherited)
Gtk.Widget.Remove_Accelerator

- To API doc
- To spec

(Inherited)
Gtk.Widget.Remove_Mnemonic_Label

- To API doc
- To spec

(Inherited)
Gtk.Widget.Render_Icon

- To API doc
- To spec

(Inherited)
Gtk.Widget.Reparent

- To API doc
- To spec

(Inherited)
Gtk.Widget.Reset_Rc_Styles

- To API doc
- To spec

(Inherited)
Gtk.Widget.Reset_Shapes

- To API doc
- To spec

(Inherited)
Gtk.Widget.Restore_Default_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Send_Expose

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Accel_Path

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_App_Paintable

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Child_Visible

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Colormap

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Composite_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Direction

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Double_Buffered

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Extension_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Flags

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Has_Tooltip

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_No_Show_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Parent

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Parent_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Redraw_On_Allocate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Scroll_Adjustments

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Sensitive

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Size_Request

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_State

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Tooltip_Markup

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Tooltip_Text

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Tooltip_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_UPosition

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_USize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Shape_Combine_Mask

- To API doc
- To spec

(Inherited)
Gtk.Widget.Show

- To API doc
- To spec

(Inherited)
Gtk.Widget.Show_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Show_Now

- To API doc
- To spec

(Inherited)
Gtk.Widget.Size_Allocate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Size_Request

- To API doc
- To spec

(Inherited)
Gtk.Widget.Style_Get_Property

- To API doc
- To spec

(Inherited)
Gtk.Widget.Thaw_Child_Notify

- To API doc
- To spec

(Inherited)
Gtk.Widget.Trigger_Tooltip_Query

- To API doc
- To spec

(Inherited)
Gtk.Widget.Unmap

- To API doc
- To spec

(Inherited)
Gtk.Widget.Unrealize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Unset_Flags

- To API doc
- To spec

(Inherited)
Layout_Index_To_Text_Index

- To API doc
- To spec

Prepend_Text

- To API doc
- To spec

Progress_Pulse

- To API doc
- To spec

Set_Activates_Default

- To API doc
- To spec

Set_Alignment

- To API doc
- To spec

Set_Completion

- To API doc
- To spec

Set_Cursor_Hadjustment

- To API doc
- To spec

Set_Editable

- To API doc
- To spec

Set_Has_Frame

- To API doc
- To spec

Set_Icon_Activatable

- To API doc
- To spec

Set_Icon_Drag_Source

- To API doc
- To spec

Set_Icon_From_Gicon

- To API doc
- To spec

Set_Icon_From_Icon_Name

- To API doc
- To spec

Set_Icon_From_Pixbuf

- To API doc
- To spec

Set_Icon_From_Stock

- To API doc
- To spec

Set_Icon_Sensitive

- To API doc
- To spec

Set_Icon_Tooltip_Markup

- To API doc
- To spec

Set_Icon_Tooltip_Text

- To API doc
- To spec

Set_Inner_Border

- To API doc
- To spec

Set_Invisible_Char

- To API doc
- To spec

Set_Max_Length

- To API doc
- To spec

Set_Overwrite_Mode

- To API doc
- To spec

Set_Progress_Fraction

- To API doc
- To spec

Set_Progress_Pulse_Step

- To API doc
- To spec

Set_Text

- To API doc
- To spec

Set_Visibility

- To API doc
- To spec

Text_Index_To_Layout_Index

- To API doc
- To spec

Unset_Invisible_Char

- To API doc
- To spec

Gtk_Entry is actually a child of Gtk_Widget, and implements the Gtk_Editable interface, but GtkAda does not support yet interfaces, so use direct inheritance for now ???

# Types

### Gtk_Entry_Icon_Position

- Goto declaration in source

    type Gtk_Entry_Icon_Position is
         (Gtk_Entry_Icon_Primary, Gtk_Entry_Icon_Secondary);

### Gtk_Entry

- Goto declaration in source

    type Gtk_Entry is access all Gtk_Entry_Record'Class;

### Gtk_GEntry

- Goto declaration in source

    subtype Gtk_GEntry is Gtk_Entry;

# Constants & Global variables

### Activates_Default_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Activates_Default_Property : constant Glib.Properties.Property_Boolean;

### Caps_Lock_Warning_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Caps_Lock_Warning_Property : constant Glib.Properties.Property_Boolean;

### Cursor_Position_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Cursor_Position_Property   : constant Glib.Properties.Property_Int;

### Editable_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Editable_Property          : constant Glib.Properties.Property_Boolean;

### Has_Frame_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Has_Frame_Property         : constant Glib.Properties.Property_Boolean;

### Im_Module_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Im_Module_Property         : constant Glib.Properties.Property_String;

### Inner_Border_Property

- Goto declaration in source

(Glib.Properties.Property_Boxed)

    Inner_Border_Property      : constant Glib.Properties.Property_Boxed;

### Invisible_Char_Property

- Goto declaration in source

(Glib.Properties.Property_Unichar)

    Invisible_Char_Property    : constant Glib.Properties.Property_Unichar;

### Invisible_Char_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Invisible_Char_Set_Property :
                                    constant Glib.Properties.Property_Boolean;

### Max_Length_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Max_Length_Property        : constant Glib.Properties.Property_Int;

### Overwrite_Mode_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Overwrite_Mode_Property    : constant Glib.Properties.Property_Boolean;

### Primary_Icon_Activatable_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Primary_Icon_Activatable_Property :
                                    constant Glib.Properties.Property_Boolean;

### Primary_Icon_Gicon_Property

- Goto declaration in source

(Glib.Properties.Property_Object)

    Primary_Icon_Gicon_Property :
                                    constant Glib.Properties.Property_Object;

### Primary_Icon_Name_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Primary_Icon_Name_Property : constant Glib.Properties.Property_String;

### Primary_Icon_Pixbuf_Property

- Goto declaration in source

(Glib.Properties.Property_Object)

    Primary_Icon_Pixbuf_Property :
                                    constant Glib.Properties.Property_Object;

### Primary_Icon_Sensitive_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Primary_Icon_Sensitive_Property :
                                    constant Glib.Properties.Property_Boolean;

### Primary_Icon_Stock_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Primary_Icon_Stock_Property :
                                    constant Glib.Properties.Property_String;

### Primary_Icon_Storage_Type_Property

- Goto declaration in source

(Glib.Properties.Property_Enum)

    Primary_Icon_Storage_Type_Property :
                                    constant Glib.Properties.Property_Enum;

### Primary_Icon_Tooltip_Markup_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Primary_Icon_Tooltip_Markup_Property :
                                    constant Glib.Properties.Property_String;

### Primary_Icon_Tooltip_Text_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Primary_Icon_Tooltip_Text_Property :
                                    constant Glib.Properties.Property_String;

### Progress_Fraction_Property

- Goto declaration in source

(Glib.Properties.Property_Double)

    Progress_Fraction_Property : constant Glib.Properties.Property_Double;

### Progress_Pulse_Step_Property

- Goto declaration in source

(Glib.Properties.Property_Double)

    Progress_Pulse_Step_Property :
                                    constant Glib.Properties.Property_Double;

### Scroll_Offset_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Scroll_Offset_Property     : constant Glib.Properties.Property_Int;

### Secondary_Icon_Activatable_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Secondary_Icon_Activatable_Property :
                                    constant Glib.Properties.Property_Boolean;

### Secondary_Icon_Gicon_Property

- Goto declaration in source

(Glib.Properties.Property_Object)

    Secondary_Icon_Gicon_Property :
                                    constant Glib.Properties.Property_Object;

### Secondary_Icon_Name_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Secondary_Icon_Name_Property :
                                    constant Glib.Properties.Property_String;

### Secondary_Icon_Pixbuf_Property

- Goto declaration in source

(Glib.Properties.Property_Object)

    Secondary_Icon_Pixbuf_Property :
                                    constant Glib.Properties.Property_Object;

### Secondary_Icon_Sensitive_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Secondary_Icon_Sensitive_Property :
                                    constant Glib.Properties.Property_Boolean;

### Secondary_Icon_Stock_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Secondary_Icon_Stock_Property :
                                    constant Glib.Properties.Property_String;

### Secondary_Icon_Storage_Type_Property

- Goto declaration in source

(Glib.Properties.Property_Enum)

    Secondary_Icon_Storage_Type_Property :
                                    constant Glib.Properties.Property_Enum;

### Secondary_Icon_Tooltip_Markup_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Secondary_Icon_Tooltip_Markup_Property :
                                    constant Glib.Properties.Property_String;

### Secondary_Icon_Tooltip_Text_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Secondary_Icon_Tooltip_Text_Property :
                                    constant Glib.Properties.Property_String;

### Selection_Bound_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Selection_Bound_Property   : constant Glib.Properties.Property_Int;

### Shadow_Type_Property

- Goto declaration in source

(Glib.Properties.Property_Enum)

    Shadow_Type_Property       : constant Glib.Properties.Property_Enum;

### Text_Length_Property

- Goto declaration in source

(Glib.Properties.Property_Uint)

    Text_Length_Property       : constant Glib.Properties.Property_Uint;

### Text_Position_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Text_Position_Property     : constant Glib.Properties.Property_Int;

### Text_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Text_Property              : constant Glib.Properties.Property_String;

### Truncate_Multiline_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Truncate_Multiline_Property :
                                    constant Glib.Properties.Property_Boolean;

### Visibility_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Visibility_Property        : constant Glib.Properties.Property_Boolean;

### Width_Chars_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Width_Chars_Property       : constant Glib.Properties.Property_Int;

### Xalign_Property

- Goto declaration in source

(Glib.Properties.Property_Float)

    Xalign_Property            : constant Glib.Properties.Property_Float;

### Icon_Prelight_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Icon_Prelight_Property   : constant Glib.Properties.Property_Boolean;

### Progress_Border_Property

- Goto declaration in source

(Glib.Properties.Property_Boxed)

    Progress_Border_Property : constant Glib.Properties.Property_Boxed;

### State_Hint_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    State_Hint_Property      : constant Glib.Properties.Property_Boolean;

### Signal_Activate

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Activate           : constant Glib.Signal_Name :=
                                     "activate";

### Signal_Backspace

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Backspace          : constant Glib.Signal_Name :=
                                     "backspace";

### Signal_Copy_Clipboard

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Copy_Clipboard     : constant Glib.Signal_Name :=
                                     "copy_clipboard";

### Signal_Cut_Clipboard

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Cut_Clipboard      : constant Glib.Signal_Name :=
                                     "cut_clipboard";

### Signal_Delete_From_Cursor

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Delete_From_Cursor : constant Glib.Signal_Name :=
                                     "delete_from_cursor";

### Signal_Insert_At_Cursor

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Insert_At_Cursor   : constant Glib.Signal_Name :=
                                     "insert_at_cursor";

### Signal_Move_Cursor

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Move_Cursor        : constant Glib.Signal_Name :=
                                     "move_cursor";

### Signal_Paste_Clipboard

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Paste_Clipboard    : constant Glib.Signal_Name :=
                                     "paste_clipboard";

### Signal_Populate_Popup

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Populate_Popup     : constant Glib.Signal_Name :=
                                     "populate_popup";

### Signal_Toggle_Overwrite

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Toggle_Overwrite   : constant Glib.Signal_Name :=
                                     "toggle_overwrite";

# Subprograms & Entries

### Gtk_New

- Goto spec in source

    procedure Gtk_New (Widget: out Gtk_Entry);

Create a new entry with no maximum length for the text

### Initialize

- Goto spec in source

    procedure Initialize (Widget: access Gtk_Entry_Record'Class);

Internal initialization function. See the section "Creating your own widgets" in the documentation.

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return Gtk.Gtk_Type;

Return the internal value associated with a Gtk_Entry.

### Get_Text_Length

- Goto spec in source

    function Get_Text_Length (The_Entry: access Gtk_Entry_Record) return Guint16;

Retrieves the current length of the text in The_Entry.

### Set_Visibility

- Goto spec in source

    procedure Set_Visibility (The_Entry: access Gtk_Entry_Record;Visible: Boolean);

### Get_Visibility

- Goto spec in source

    function Get_Visibility (The_Entry: access Gtk_Entry_Record) return Boolean;

Set the visibility of the characters in the entry. If Visible is set to False, the characters will be replaced with the invisible character ('*' by default) in the display, and when the text is copied elsewhere.

### Set_Invisible_Char

- Goto spec in source

    procedure Set_Invisible_Char (The_Entry: access Gtk_Entry_Record;Char: Gunichar);

### Get_Invisible_Char

- Goto spec in source

    function Get_Invisible_Char (The_Entry: access Gtk_Entry_Record) return Gunichar;

Gets/Sets the character to use in place of the actual text when Set_Visibility has been called to set text visibility to False. i.e. this is the character used in "password mode" to show the user how many characters have been typed. By default, GTK+ picks the best invisible char available in the current font. If you set the invisible char to 0, then the user will get no feedback at all; there will be no text on the screen as they type.

### Unset_Invisible_Char

- Goto spec in source

    procedure Unset_Invisible_Char (The_Entry: access Gtk_Entry_Record);

Unsets the invisible char previously set with Set_Invisible_Char, so that the default invisible char is used again.

### Set_Has_Frame

- Goto spec in source

    procedure Set_Has_Frame (The_Entry: access Gtk_Entry_Record;Setting: Boolean := True);

### Get_Has_Frame

- Goto spec in source

    function Get_Has_Frame (The_Entry: access Gtk_Entry_Record) return Boolean;

Set whether the entry has a beveled frame around it.

### Set_Max_Length

- Goto spec in source

    procedure Set_Max_Length (The_Entry: access Gtk_Entry_Record;Max: Gint);

### Get_Max_Length

- Goto spec in source

    function Get_Max_Length (The_Entry: access Gtk_Entry_Record) return Gint;

Set the maximum length for the text. The current text is truncated if needed.

### Set_Activates_Default

- Goto spec in source

    procedure Set_Activates_Default (The_Entry: access Gtk_Entry_Record;Setting: Boolean);

### Get_Activates_Default

- Goto spec in source

    function Get_Activates_Default (The_Entry: access Gtk_Entry_Record) return Boolean;

If Setting is True, pressing Enter in the Entry will activate the default widget for the window containing the entry. This usually means that the dialog box containing the entry will be closed, since the default widget is usually one of the dialog buttons. (For experts: if Setting is True, the entry calls Gtk.Window.Activate_Default on the window containing the entry, in the default handler for the "activate" signal.)

### Set_Width_Chars

- Goto spec in source

    procedure Set_Width_Chars (The_Entry: access Gtk_Entry_Record'Class;Width: Gint);

### Get_Width_Chars

- Goto spec in source

    function Get_Width_Chars (The_Entry: access Gtk_Entry_Record'Class) return Gint;

Number of characters to leave space for in the entry, on the screen. This is the number of visible characters, not the maximal number of characters the entry can contain

### Set_Text

- Goto spec in source

    procedure Set_Text (The_Entry: access Gtk_Entry_Record;Text: UTF8_String);

### Get_Text

- Goto spec in source

    function Get_Text (The_Entry: access Gtk_Entry_Record) return UTF8_String;

Modify the text in the entry. The text is cut at the maximum length that was set when the entry was created. The text replaces the current contents.

### Set_Alignment

- Goto spec in source

    procedure Set_Alignment (Ent: access Gtk_Entry_Record;Xalign: Gfloat);

### Get_Alignment

- Goto spec in source

    function Get_Alignment   (Ent: access Gtk_Entry_Record) return Gfloat;

Sets the alignment for the contents of the entry. This controls the horizontal positioning of the contents when the displayed text is shorter than the width of the entry.

### Set_Completion

- Goto spec in source

    procedure Set_Completion (Ent: access Gtk_Entry_Record;Completion: access Gtk_Entry_Completion_Record'Class);

### Get_Completion

- Goto spec in source

    function Get_Completion (Ent: access Gtk_Entry_Record) return Gtk_Entry_Completion;

Sets Completion to be the auxiliary completion object to use with Ent. All further configuration of the completion mechanism is done on Completion using the Gtk.Entry_Completion API.

### Text_Index_To_Layout_Index

- Goto spec in source

    function Text_Index_To_Layout_Index (Ent: access Gtk_Entry_Record;Text_Index: Gint) return Gint;

Converts from a position in the entry's layout (returned by Get_Layout) to a position in the entry contents (returned by Get_Text). Returns the byte index into the entry layout text

### Layout_Index_To_Text_Index

- Goto spec in source

    function Layout_Index_To_Text_Index (Ent: access Gtk_Entry_Record;Layout_Index: Gint) return Gint;

Converts from a position in the entry contents (returned by Get_Text) to a position in the entry's layout (returned by Get_Layout, with text retrieved via pango.layout.Get_Text). Return the byte index into the entry contents

### Get_Layout_Offsets

- Goto spec in source

    procedure Get_Layout_Offsets (The_Entry: access Gtk_Entry_Record;X: out Gint;Y: out Gint);

Obtain the position of the Pango_Layout used to render text in the entry, in widget coordinates. Useful if you want to line up the text in an entry with some other text, e.g. when using the entry to implement editable cells in a sheet widget. Also useful to convert mouse events into coordinates inside the Pango_Layout, e.g. to take some action if some part of the entry text is clicked. Note that as the user scrolls around in the entry the offsets will change; you'll need to connect to the "notify::scroll_offset" signal to track this. Remember when using the Pango_Layout functions you need to convert to and from pixels using Pango_Pixels or Pango_Scale.

### Get_Layout

- Goto spec in source

    function Get_Layout (The_Entry: access Gtk_Entry_Record) return Pango.Layout.Pango_Layout;

Return the widget that manages all the layout of text (left-to-right, right-to-left, fonts,...). Changing the font used for the entry should be done by changing the font using for this layout. Note that you should also change the font in the Pango_Context returned by Get_Pango_Context, or the next keypress event in the entry will restore the default initial font. The layout is useful to e.g. convert text positions to pixel positions, in combination with Get_Layout_Offsets. The returned layout is owned by the entry so need not be freed by the caller.

### Get_Current_Icon_Drag_Source

- Goto spec in source

    function Get_Current_Icon_Drag_Source (The_Entry: access Gtk_Entry_Record) return Gint;

Returns the index of the icon which is the source of the current DND operation, or -1. This function is meant to be used in a #GtkWidget::drag-data-get callback.

### Set_Icon_Drag_Source

- Goto spec in source

    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);

Sets up the icon at the given position so that GTK+ will start a drag operation when the user clicks and drags the icon. To handle the drag operation, you need to connect to the usual #GtkWidget::drag-data-get (or possibly #GtkWidget::drag-data-delete) signal, and use Get_Current_Icon_Drag_Source in your signal handler to find out if the drag was started from an icon. By default, GTK+ uses the icon as the drag icon. You can use the #GtkWidget::drag-begin signal to set a different icon. Note that you have to use g_signal_connect_after() to ensure that your signal handler gets executed after the default handler.

### Get_Cursor_Hadjustment

- Goto spec in source

    function Get_Cursor_Hadjustment (The_Entry: access Gtk_Entry_Record) return Gtk.Adjustment.Gtk_Adjustment;

### Set_Cursor_Hadjustment

- Goto spec in source

    procedure Set_Cursor_Hadjustment (The_Entry: access Gtk_Entry_Record;Adjustment: access Gtk.Adjustment.Gtk_Adjustment_Record'Class);

Hooks up an adjustment to the cursor position in an entry, so that when the cursor is moved, the adjustment is scrolled to show that position. See Gtk.Scrolled_Window.Get_Hadjustment for a typical way of obtaining the adjustment. The adjustment has to be in pixel units and in the same coordinate system as the entry. Get_Cursor_Hadjustment returns the horizontal cursor adjustment, or null if none has been set.

### Get_Icon_Activatable

- Goto spec in source

    function Get_Icon_Activatable (The_Entry: access Gtk_Entry_Record;Icon_Pos: Gtk_Entry_Icon_Position) return Boolean;

### Set_Icon_Activatable

- Goto spec in source

    procedure Set_Icon_Activatable (The_Entry: access Gtk_Entry_Record;Icon_Pos: Gtk_Entry_Icon_Position;Activatable: Boolean);

Get/Sets whether the icon is activatable.

### Get_Icon_At_Pos

- Goto spec in source

    function Get_Icon_At_Pos (The_Entry: access Gtk_Entry_Record;X: Gint;Y: Gint) return Gint;

Finds the icon at the given position and return its index. If (X, Y) doesn't lie inside an icon, -1 is returned. This function is intended for use in a GtkWidget "query-tooltip" signal handler.

### Get_Icon_Gicon

- Goto spec in source

    function Get_Icon_Gicon (The_Entry: access Gtk_Entry_Record;Icon_Pos: Gtk_Entry_Icon_Position) return Glib.G_Icon.G_Icon;

### Set_Icon_From_Gicon

- Goto spec in source

    procedure Set_Icon_From_Gicon (The_Entry: access Gtk_Entry_Record;Icon_Pos: Gtk_Entry_Icon_Position;Icon: Glib.G_Icon.G_Icon);

Sets the icon shown in the entry at the specified position from the current icon theme. If the icon isn't known, a "broken image" icon will be displayed instead. If Icon is null, no icon will be shown in the specified position.

### Get_Icon_Name

- Goto spec in source

    function Get_Icon_Name (The_Entry: access Gtk_Entry_Record;Icon_Pos: Gtk_Entry_Icon_Position) return UTF8_String;

Retrieves the icon name used for the icon, or "" if there is no icon or if the icon was set by some other method (e.g., by pixbuf, stock or gicon).

### Set_Icon_From_Icon_Name

- Goto spec in source

    procedure Set_Icon_From_Icon_Name (The_Entry: access Gtk_Entry_Record;Icon_Pos: Gtk_Entry_Icon_Position;Icon_Name: UTF8_String);

Sets the icon shown in the entry at the specified position from the current icon theme. If the icon name isn't known, a "broken image" icon will be displayed instead. If Icon_Name is "", no icon will be shown in the specified position.

### Get_Icon_Pixbuf

- Goto spec in source

    function Get_Icon_Pixbuf (The_Entry: access Gtk_Entry_Record;Icon_Pos: Gtk_Entry_Icon_Position) return Gdk.Pixbuf.Gdk_Pixbuf;

Retrieves the image used for the icon. Unlike the other methods of setting and getting icon data, this method will work regardless of whether the icon was set using a Gdk_Pixbuf, a G_Icon, a stock item, or an icon name. Returns: A Gdk_Pixbuf, or null if no icon is set for this position.

### Set_Icon_From_Pixbuf

- Goto spec in source

    procedure Set_Icon_From_Pixbuf (The_Entry: access Gtk_Entry_Record;Icon_Pos: Gtk_Entry_Icon_Position;Pixbuf: Gdk.Pixbuf.Gdk_Pixbuf);

Sets the icon shown in the specified position using a pixbuf. If Pixbuf is null, no icon will be shown in the specified position.

### Get_Icon_Stock

- Goto spec in source

    function Get_Icon_Stock (The_Entry: access Gtk_Entry_Record;Icon_Pos: Gtk_Entry_Icon_Position) return UTF8_String;

Retrieves the stock id used for the icon, or "" if there is no icon or if the icon was set by some other method (e.g., by pixbuf, icon name or gicon). Returns a stock id, or "" if no icon is set or if the icon wasn't set from a stock id

### Set_Icon_From_Stock

- Goto spec in source

    procedure Set_Icon_From_Stock (The_Entry: access Gtk_Entry_Record;Icon_Pos: Gtk_Entry_Icon_Position;Stock_Id: UTF8_String);

Sets the icon shown in the entry at the specified position from a stock image. If Stock_Id is "", no icon will be shown in the specified position.

### Get_Icon_Sensitive

- Goto spec in source

    function Get_Icon_Sensitive (The_Entry: access Gtk_Entry_Record;Icon_Pos: Gtk_Entry_Icon_Position) return Boolean;

### Set_Icon_Sensitive

- Goto spec in source

    procedure Set_Icon_Sensitive (The_Entry: access Gtk_Entry_Record;Icon_Pos: Gtk_Entry_Icon_Position;Sensitive: Boolean);

Gets/Sets the sensitivity for the specified icon.

### Get_Icon_Storage_Type

- Goto spec in source

    function Get_Icon_Storage_Type (The_Entry: access Gtk_Entry_Record;Icon_Pos: Gtk_Entry_Icon_Position) return Gtk.Image.Gtk_Image_Type;

Gets the type of representation being used by the icon to store image data. If the icon has no image data, the return value will be Gtk.Image.Image_Empty.

### Get_Icon_Tooltip_Markup

- Goto spec in source

    function Get_Icon_Tooltip_Markup (The_Entry: access Gtk_Entry_Record;Icon_Pos: Gtk_Entry_Icon_Position) return UTF8_String;

### Set_Icon_Tooltip_Markup

- Goto spec in source

    procedure Set_Icon_Tooltip_Markup (The_Entry: access Gtk_Entry_Record;Icon_Pos: Gtk_Entry_Icon_Position;Tooltip: UTF8_String);

Gets/Sets Tooltip as the contents of the tooltip for the icon at the specified position. Tooltip is assumed to be marked up with the Pango text markup language. Use "" for Tooltip to remove an existing tooltip. See also Gtk.Widget.Set_Tooltip_Markup and Set_Icon_Tooltip_Text

### Get_Icon_Tooltip_Text

- Goto spec in source

    function Get_Icon_Tooltip_Text (The_Entry: access Gtk_Entry_Record;Icon_Pos: Gtk_Entry_Icon_Position) return UTF8_String;

### Set_Icon_Tooltip_Text

- Goto spec in source

    procedure Set_Icon_Tooltip_Text (The_Entry: access Gtk_Entry_Record;Icon_Pos: Gtk_Entry_Icon_Position;Tooltip: UTF8_String);

Gets/Sets Tooltip as the contents of the tooltip for the icon at the specified position. Use "" for Tooltip to remove an existing tooltip. See also Gtk.Widget.Set_Tooltip_Text and Set_Icon_Tooltip_Markup

### Get_Inner_Border

- Goto spec in source

    function Get_Inner_Border (The_Entry: access Gtk_Entry_Record) return Gtk.Style.Gtk_Border;

### Set_Inner_Border

- Goto spec in source

    procedure Set_Inner_Border (The_Entry: access Gtk_Entry_Record;Border: Gtk.Style.Gtk_Border);

Gets/Sets The_Entry's inner-border property. null signifies that the property is (should be) cleared. The inner-border is the area around the entry's text, but inside its frame. If set, this property overrides the inner-border style property. Overriding the style-provided border is useful when you want to do in-place editing of some text in a canvas or list widget, where pixel-exact positioning of the entry is important.

### Get_Overwrite_Mode

- Goto spec in source

    function Get_Overwrite_Mode (The_Entry: access Gtk_Entry_Record) return Boolean;

### Set_Overwrite_Mode

- Goto spec in source

    procedure Set_Overwrite_Mode (The_Entry: access Gtk_Entry_Record;Overwrite: Boolean);

Gets/Sets whether text is overwritten when typing in the Gtk_Entry.

### Get_Progress_Fraction

- Goto spec in source

    function Get_Progress_Fraction (The_Entry: access Gtk_Entry_Record) return Gdouble;

### Set_Progress_Fraction

- Goto spec in source

    procedure Set_Progress_Fraction (The_Entry: access Gtk_Entry_Record;Fraction: Gdouble);

Causes the entry's progress indicator to "fill in" the given fraction of the bar. The fraction should be between 0.0 and 1.0, inclusive.

### Get_Progress_Pulse_Step

- Goto spec in source

    function Get_Progress_Pulse_Step (The_Entry: access Gtk_Entry_Record) return Gdouble;

### Set_Progress_Pulse_Step

- Goto spec in source

    procedure Set_Progress_Pulse_Step (The_Entry: access Gtk_Entry_Record;Fraction: Gdouble);

Gets/Sets the fraction of total entry width to move the progress bouncing block for each call to Progress_Pulse.

### Progress_Pulse

- Goto spec in source

    procedure Progress_Pulse (The_Entry: access Gtk_Entry_Record);

Indicates that some progress is made, but you don't know how much. Causes the entry's progress indicator to enter "activity mode," where a block bounces back and forth. Each call to Progress_Pulse causes the block to move by a little bit (the amount of movement per pulse is determined by Set_Progress_Pulse_Step).

### Gtk_New

- Goto spec in source

    procedure Gtk_New (Widget: out Gtk_Entry;Max: Gint);

New_With_Max_Length Create a new entry with a maximum length for the text. The text can never be longer than Max characters.

### Initialize

- Goto spec in source

    procedure Initialize (Widget: access Gtk_Entry_Record'Class;Max: Gint);

### Append_Text

- Goto spec in source

    procedure Append_Text (The_Entry: access Gtk_Entry_Record;Text: UTF8_String);

Append_Text Append a new string at the end of the existing one.

### Prepend_Text

- Goto spec in source

    procedure Prepend_Text (The_Entry: access Gtk_Entry_Record;Text: UTF8_String);

Prepend_Text Insert some text at the beginning of the entry.

### Set_Editable

- Goto spec in source

    procedure Set_Editable (The_Entry: access Gtk_Entry_Record;Editable: Boolean);

Set_Editable

### Get_Chars

- Goto spec in source

    function Get_Chars (The_Entry: access Gtk_Entry_Record) return UTF8_String renames Get_Text;

pragma Obsolescent; Convenience function provided for compatibility with GtkAda 1.2