gtk.entry

Module for [Entry] class

Types 3

gtk.entry.Entry is a single line text entry widget.

!An example GtkEntry

A fairly large set of key bindings are supported by default. If the entered text is longer than the allocation of the widget, the widget will scroll so that the cursor position is visible.

When using an entry for passwords and other sensitive information, it can be put into “password mode” using gtk.entry.Entry.setVisibility. In this mode, entered text is displayed using a “invisible” character. By default, GTK picks the best invisible character that is available in the current font, but it can be changed with gtk.entry.Entry.setInvisibleChar.

gtk.entry.Entry has the ability to display progress or activity information behind the text. To make an entry display such information, use gtk.entry.Entry.setProgressFraction or gtk.entry.Entry.setProgressPulseStep.

Additionally, gtk.entry.Entry can show icons at either side of the entry. These icons can be activatable by clicking, can be set up as drag source and can have tooltips. To add an icon, use gtk.entry.Entry.setIconFromGicon or one of the various other functions that set an icon from an icon name or a paintable. To trigger an action when the user clicks an icon, connect to the gtk.entry.Entry.iconPress signal. To allow DND operations from an icon, use gtk.entry.Entry.setIconDragSource. To set a tooltip on an icon, use gtk.entry.Entry.setIconTooltipText or the corresponding function for markup.

Note that functionality or information that is only available by clicking on an icon in an entry may not be accessible at all to users which are not able to use a mouse or other pointing device. It is therefore recommended that any such functionality should also be available by other means, e.g. via the context menu of the entry.

CSS nodes

entry[.flat][.warning][.error]
├── text[.readonly]
├── image.left
├── image.right
╰── [progress[.pulse]]

gtk.entry.Entry has a main node with the name entry. Depending on the properties of the entry, the style classes .read-only and .flat may appear. The style classes .warning and .error may also be used with entries.

When the entry shows icons, it adds subnodes with the name image and the style class .left or .right, depending on where the icon appears.

When the entry shows progress, it adds a subnode with the name progress. The node has the style class .pulse when the shown progress is pulsing.

For all the subnodes added to the text node in various situations, see gtk.text.Text.

GtkEntry as GtkBuildable

The gtk.entry.Entry implementation of the gtk.buildable.Buildable interface supports a custom <attributes> element, which supports any number of <attribute> elements. The <attribute> element has attributes named “name“, “value“, “start“ and “end“ and allows you to specify pango.attribute.Attribute values for this label.

An example of a UI definition fragment specifying Pango attributes:

<object class="GtkEntry">
  <attributes>
    <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
    <attribute name="background" value="red" start="5" end="10"/>
  </attributes>
</object>

The start and end attributes specify the range of characters to which the Pango attribute applies. If start and end are not specified, the attribute is applied to the whole text. Note that specifying ranges does not make much sense with translatable attributes. Use markup embedded in the translatable content instead.

Accessibility

gtk.entry.Entry uses the gtk.types.AccessibleRole.TextBox role.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Entry self() nothrowReturns `this`, for use in `with` statements.
EntryGidBuilder builder() static nothrowGet builder for [gtk.entry.Entry] Returns: New builder object
bool activatesDefault() @property nothrowGet `activatesDefault` property. Returns: Whether to activate the default widget when Enter is pressed.
void activatesDefault(bool propval) @property nothrowSet `activatesDefault` property. Params: propval = Whether to activate the default widget when Enter is pressed.
pango.attr_list.AttrList attributes() @property nothrowGet `attributes` property. Returns: A list of Pango attributes to apply to the text of the entry.
void attributes(pango.attr_list.AttrList propval) @property nothrowSet `attributes` property. Params: propval = A list of Pango attributes to apply to the text of the entry.
gtk.entry_buffer.EntryBuffer buffer() @property nothrowGet `buffer` property. Returns: The buffer object which actually stores the text.
void buffer(gtk.entry_buffer.EntryBuffer propval) @property nothrowSet `buffer` property. Params: propval = The buffer object which actually stores the text.
gtk.entry_completion.EntryCompletion completion() @property nothrowGet `completion` property. Returns: The auxiliary completion object to use with the entry.
void completion(gtk.entry_completion.EntryCompletion propval) @property nothrowSet `completion` property. Params: propval = The auxiliary completion object to use with the entry.
bool enableEmojiCompletion() @property nothrowGet `enableEmojiCompletion` property. Returns: Whether to suggest Emoji replacements for :-delimited names like `:heart:`.
void enableEmojiCompletion(bool propval) @property nothrowSet `enableEmojiCompletion` property. Params: propval = Whether to suggest Emoji replacements for :-delimited names like `:heart:`.
gio.menu_model.MenuModel extraMenu() @property nothrowGet `extraMenu` property. Returns: A menu model whose contents will be appended to the context menu.
void extraMenu(gio.menu_model.MenuModel propval) @property nothrowSet `extraMenu` property. Params: propval = A menu model whose contents will be appended to the context menu.
bool hasFrame() @property nothrowGet `hasFrame` property. Returns: Whether the entry should draw a frame.
void hasFrame(bool propval) @property nothrowSet `hasFrame` property. Params: propval = Whether the entry should draw a frame.
string imModule() @property nothrowGet `imModule` property. Returns: Which IM (input method) module should be used for this entry.
void imModule(string propval) @property nothrowSet `imModule` property. Params: propval = Which IM (input method) module should be used for this entry.
gtk.types.InputHints inputHints() @property nothrowGet `inputHints` property. Returns: Additional hints that allow input methods to fine-tune their behavior.
void inputHints(gtk.types.InputHints propval) @property nothrowSet `inputHints` property. Params: propval = Additional hints that allow input methods to fine-tune their behavior.
gtk.types.InputPurpose inputPurpose() @property nothrowGet `inputPurpose` property. Returns: The purpose of this text field.
void inputPurpose(gtk.types.InputPurpose propval) @property nothrowSet `inputPurpose` property. Params: propval = The purpose of this text field.
uint invisibleChar() @property nothrowGet `invisibleChar` property. Returns: The character to use when masking entry contents (“password mode”).
void invisibleChar(uint propval) @property nothrowSet `invisibleChar` property. Params: propval = The character to use when masking entry contents (“password mode”).
bool invisibleCharSet() @property nothrowGet `invisibleCharSet` property. Returns: Whether the invisible char has been set for the [gtk.entry.Entry].
void invisibleCharSet(bool propval) @property nothrowSet `invisibleCharSet` property. Params: propval = Whether the invisible char has been set for the [gtk.entry.Entry].
int maxLength() @property nothrowGet `maxLength` property. Returns: Maximum number of characters for this entry.
void maxLength(int propval) @property nothrowSet `maxLength` property. Params: propval = Maximum number of characters for this entry.
bool overwriteMode() @property nothrowGet `overwriteMode` property. Returns: If text is overwritten when typing in the [gtk.entry.Entry].
void overwriteMode(bool propval) @property nothrowSet `overwriteMode` property. Params: propval = If text is overwritten when typing in the [gtk.entry.Entry].
string placeholderText() @property nothrowGet `placeholderText` property. Returns: The text that will be displayed in the [gtk.entry.Entry] when it is empty and unfocused.
void placeholderText(string propval) @property nothrowSet `placeholderText` property. Params: propval = The text that will be displayed in the [gtk.entry.Entry] when it is empty and unfocused.
bool primaryIconActivatable() @property nothrowGet `primaryIconActivatable` property. Returns: Whether the primary icon is activatable.
void primaryIconActivatable(bool propval) @property nothrowSet `primaryIconActivatable` property. Params: propval = Whether the primary icon is activatable.
gio.icon.Icon primaryIconGicon() @property nothrowGet `primaryIconGicon` property. Returns: The [gio.icon.Icon] to use for the primary icon for the entry.
void primaryIconGicon(gio.icon.Icon propval) @property nothrowSet `primaryIconGicon` property. Params: propval = The [gio.icon.Icon] to use for the primary icon for the entry.
string primaryIconName() @property nothrowGet `primaryIconName` property. Returns: The icon name to use for the primary icon for the entry.
void primaryIconName(string propval) @property nothrowSet `primaryIconName` property. Params: propval = The icon name to use for the primary icon for the entry.
gdk.paintable.Paintable primaryIconPaintable() @property nothrowGet `primaryIconPaintable` property. Returns: A [gdk.paintable.Paintable] to use as the primary icon for the entry.
void primaryIconPaintable(gdk.paintable.Paintable propval) @property nothrowSet `primaryIconPaintable` property. Params: propval = A [gdk.paintable.Paintable] to use as the primary icon for the entry.
bool primaryIconSensitive() @property nothrowGet `primaryIconSensitive` property. Returns: Whether the primary icon is sensitive.
void primaryIconSensitive(bool propval) @property nothrowSet `primaryIconSensitive` property. Params: propval = Whether the primary icon is sensitive.
gtk.types.ImageType primaryIconStorageType() @property nothrowGet `primaryIconStorageType` property. Returns: The representation which is used for the primary icon of the entry.
string primaryIconTooltipMarkup() @property nothrowGet `primaryIconTooltipMarkup` property. Returns: The contents of the tooltip on the primary icon, with markup.
void primaryIconTooltipMarkup(string propval) @property nothrowSet `primaryIconTooltipMarkup` property. Params: propval = The contents of the tooltip on the primary icon, with markup.
string primaryIconTooltipText() @property nothrowGet `primaryIconTooltipText` property. Returns: The contents of the tooltip on the primary icon.
void primaryIconTooltipText(string propval) @property nothrowSet `primaryIconTooltipText` property. Params: propval = The contents of the tooltip on the primary icon.
double progressFraction() @property nothrowGet `progressFraction` property. Returns: The current fraction of the task that's been completed.
void progressFraction(double propval) @property nothrowSet `progressFraction` property. Params: propval = The current fraction of the task that's been completed.
double progressPulseStep() @property nothrowGet `progressPulseStep` property. Returns: The fraction of total entry width to move the progress bouncing block for each pulse.
void progressPulseStep(double propval) @property nothrowSet `progressPulseStep` property. Params: propval = The fraction of total entry width to move the progress bouncing block for each pulse.
int scrollOffset() @property nothrowGet `scrollOffset` property. Returns: Number of pixels of the entry scrolled off the screen to the left.
bool secondaryIconActivatable() @property nothrowGet `secondaryIconActivatable` property. Returns: Whether the secondary icon is activatable.
void secondaryIconActivatable(bool propval) @property nothrowSet `secondaryIconActivatable` property. Params: propval = Whether the secondary icon is activatable.
gio.icon.Icon secondaryIconGicon() @property nothrowGet `secondaryIconGicon` property. Returns: The [gio.icon.Icon] to use for the secondary icon for the entry.
void secondaryIconGicon(gio.icon.Icon propval) @property nothrowSet `secondaryIconGicon` property. Params: propval = The [gio.icon.Icon] to use for the secondary icon for the entry.
string secondaryIconName() @property nothrowGet `secondaryIconName` property. Returns: The icon name to use for the secondary icon for the entry.
void secondaryIconName(string propval) @property nothrowSet `secondaryIconName` property. Params: propval = The icon name to use for the secondary icon for the entry.
gdk.paintable.Paintable secondaryIconPaintable() @property nothrowGet `secondaryIconPaintable` property. Returns: A [gdk.paintable.Paintable] to use as the secondary icon for the entry.
void secondaryIconPaintable(gdk.paintable.Paintable propval) @property nothrowSet `secondaryIconPaintable` property. Params: propval = A [gdk.paintable.Paintable] to use as the secondary icon for the entry.
bool secondaryIconSensitive() @property nothrowGet `secondaryIconSensitive` property. Returns: Whether the secondary icon is sensitive.
void secondaryIconSensitive(bool propval) @property nothrowSet `secondaryIconSensitive` property. Params: propval = Whether the secondary icon is sensitive.
gtk.types.ImageType secondaryIconStorageType() @property nothrowGet `secondaryIconStorageType` property. Returns: The representation which is used for the secondary icon of the entry.
string secondaryIconTooltipMarkup() @property nothrowGet `secondaryIconTooltipMarkup` property. Returns: The contents of the tooltip on the secondary icon, with markup.
void secondaryIconTooltipMarkup(string propval) @property nothrowSet `secondaryIconTooltipMarkup` property. Params: propval = The contents of the tooltip on the secondary icon, with markup.
string secondaryIconTooltipText() @property nothrowGet `secondaryIconTooltipText` property. Returns: The contents of the tooltip on the secondary icon.
void secondaryIconTooltipText(string propval) @property nothrowSet `secondaryIconTooltipText` property. Params: propval = The contents of the tooltip on the secondary icon.
bool showEmojiIcon() @property nothrow
void showEmojiIcon(bool propval) @property nothrow
pango.tab_array.TabArray tabs() @property nothrow
void tabs(pango.tab_array.TabArray propval) @property nothrow
uint textLength() @property nothrowGet `textLength` property. Returns: The length of the text in the [gtk.entry.Entry].
bool truncateMultiline() @property nothrowGet `truncateMultiline` property. Returns: When true, pasted multi-line text is truncated to the first line.
void truncateMultiline(bool propval) @property nothrowSet `truncateMultiline` property. Params: propval = When true, pasted multi-line text is truncated to the first line.
bool visibility() @property nothrowGet `visibility` property. Returns: Whether the entry should show the “invisible char” instead of the actual text (“password mode”).
void visibility(bool propval) @property nothrowSet `visibility` property. Params: propval = Whether the entry should show the “invisible char” instead of the actual text (“password mode”).
gtk.entry.Entry newWithBuffer(gtk.entry_buffer.EntryBuffer buffer) static nothrowCreates a new entry with the specified text buffer.
bool getActivatesDefault() nothrowRetrieves the value set by [gtk.entry.Entry.setActivatesDefault]. Returns: true if the entry will activate the default widget
float getAlignment() nothrowGets the value set by [gtk.entry.Entry.setAlignment].
pango.attr_list.AttrList getAttributes() nothrowGets the attribute list of the [gtk.entry.Entry].
gtk.entry_buffer.EntryBuffer getBuffer() nothrowGet the [gtk.entry_buffer.EntryBuffer] object which holds the text for this widget. Returns: A [gtk.entry_buffer.EntryBuffer] object.
gtk.entry_completion.EntryCompletion getCompletion() nothrowReturns the auxiliary completion object currently in use by entry. Returns: The auxiliary completion object currently in use by entry
int getCurrentIconDragSource() nothrowReturns the index of the icon which is the source of the current DND operation, or -1. Returns: index of the icon which is the source of the current DND operation, or -1.
gio.menu_model.MenuModel getExtraMenu() nothrowGets the menu model set with [gtk.entry.Entry.setExtraMenu]. Returns: the menu model
bool getHasFrame() nothrowGets the value set by [gtk.entry.Entry.setHasFrame]. Returns: whether the entry has a beveled frame
bool getIconActivatable(gtk.types.EntryIconPosition iconPos) nothrowReturns whether the icon is activatable.
void getIconArea(gtk.types.EntryIconPosition iconPos, out gdk.rectangle.Rectangle iconArea) nothrowGets the area where entry’s icon at icon_pos is drawn.
int getIconAtPos(int x, int y) nothrowFinds the icon at the given position and return its index.
gio.icon.Icon getIconGicon(gtk.types.EntryIconPosition iconPos) nothrowRetrieves the [gio.icon.Icon] used for the icon.
string getIconName(gtk.types.EntryIconPosition iconPos) nothrowRetrieves the icon name used for the icon.
gdk.paintable.Paintable getIconPaintable(gtk.types.EntryIconPosition iconPos) nothrowRetrieves the [gdk.paintable.Paintable] used for the icon.
bool getIconSensitive(gtk.types.EntryIconPosition iconPos) nothrowReturns whether the icon appears sensitive or insensitive.
gtk.types.ImageType getIconStorageType(gtk.types.EntryIconPosition iconPos) nothrowGets the type of representation being used by the icon to store image data.
string getIconTooltipMarkup(gtk.types.EntryIconPosition iconPos) nothrowGets the contents of the tooltip on the icon at the specified position in entry.
string getIconTooltipText(gtk.types.EntryIconPosition iconPos) nothrowGets the contents of the tooltip on the icon at the specified position in entry.
gtk.types.InputHints getInputHints() nothrowGets the input hints of this [gtk.entry.Entry]. Returns: the input hints
gtk.types.InputPurpose getInputPurpose() nothrowGets the input purpose of the [gtk.entry.Entry]. Returns: the input purpose
dchar getInvisibleChar() nothrowRetrieves the character displayed in place of the actual text in “password mode”. Returns: the current invisible char, or 0, if the entry does not show invisible text at all.
int getMaxLength() nothrowRetrieves the maximum allowed length of the text in entry.
bool getOverwriteMode() nothrowGets whether the [gtk.entry.Entry] is in overwrite mode. Returns: whether the text is overwritten when typing.
string getPlaceholderText() nothrowRetrieves the text that will be displayed when entry is empty and unfocused Returns: a pointer to the placeholder text as a string. This string points to internally allocated storage in the widget ...
double getProgressFraction() nothrowReturns the current fraction of the task that’s been completed.
double getProgressPulseStep() nothrowRetrieves the pulse step set with [gtk.entry.Entry.setProgressPulseStep]. Returns: a fraction from 0.0 to 1.0
pango.tab_array.TabArray getTabs() nothrowGets the tabstops of the [gtk.entry.Entry].
ushort getTextLength() nothrowRetrieves the current length of the text in entry.
bool getVisibility() nothrowRetrieves whether the text in entry is visible.
bool grabFocusWithoutSelecting() nothrowCauses entry to have keyboard focus.
void progressPulse() nothrowIndicates that some progress is made, but you don’t know how much.
void resetImContext() nothrowReset the input method context of the entry if needed.
void setActivatesDefault(bool setting) nothrowSets whether pressing Enter in the entry will activate the default widget for the window containing the entry.
void setAlignment(float xalign) nothrowSets the alignment for the contents of the entry.
void setAttributes(pango.attr_list.AttrList attrs) nothrowSets a [pango.attr_list.AttrList].
void setBuffer(gtk.entry_buffer.EntryBuffer buffer) nothrowSet the [gtk.entry_buffer.EntryBuffer] object which holds the text for this widget.
void setCompletion(gtk.entry_completion.EntryCompletion completion = null) nothrowSets completion to be the auxiliary completion object to use with entry.
void setExtraMenu(gio.menu_model.MenuModel model = null) nothrowSets a menu model to add when constructing the context menu for entry.
void setHasFrame(bool setting) nothrowSets whether the entry has a beveled frame around it.
void setIconActivatable(gtk.types.EntryIconPosition iconPos, bool activatable) nothrowSets whether the icon is activatable.
void setIconDragSource(gtk.types.EntryIconPosition iconPos, gdk.content_provider.ContentProvider provider, gdk.types.DragAction actions) nothrowSets up the icon at the given position as drag source.
void setIconFromGicon(gtk.types.EntryIconPosition iconPos, gio.icon.Icon icon = null) nothrowSets the icon shown in the entry at the specified position from the current icon theme.
void setIconFromIconName(gtk.types.EntryIconPosition iconPos, string iconName = null) nothrowSets the icon shown in the entry at the specified position from the current icon theme.
void setIconFromPaintable(gtk.types.EntryIconPosition iconPos, gdk.paintable.Paintable paintable = null) nothrowSets the icon shown in the specified position using a [gdk.paintable.Paintable].
void setIconSensitive(gtk.types.EntryIconPosition iconPos, bool sensitive) nothrowSets the sensitivity for the specified icon.
void setIconTooltipMarkup(gtk.types.EntryIconPosition iconPos, string tooltip = null) nothrowSets tooltip as the contents of the tooltip for the icon at the specified position.
void setIconTooltipText(gtk.types.EntryIconPosition iconPos, string tooltip = null) nothrowSets tooltip as the contents of the tooltip for the icon at the specified position.
void setInputHints(gtk.types.InputHints hints) nothrowSet additional hints which allow input methods to fine-tune their behavior.
void setInputPurpose(gtk.types.InputPurpose purpose) nothrowSets the input purpose which can be used by input methods to adjust their behavior.
void setInvisibleChar(dchar ch) nothrowSets the character to use in place of the actual text in “password mode”.
void setMaxLength(int max) nothrowSets the maximum allowed length of the contents of the widget.
void setOverwriteMode(bool overwrite) nothrowSets whether the text is overwritten when typing in the [gtk.entry.Entry].
void setPlaceholderText(string text = null) nothrowSets text to be displayed in entry when it is empty.
void setProgressFraction(double fraction) nothrowCauses the entry’s progress indicator to “fill in” the given fraction of the bar.
void setProgressPulseStep(double fraction) nothrowSets the fraction of total entry width to move the progress bouncing block for each pulse.
void setTabs(pango.tab_array.TabArray tabs = null) nothrowSets a [pango.tab_array.TabArray].
void setVisibility(bool visible) nothrowSets whether the contents of the entry are visible or not.
void unsetInvisibleChar() nothrowUnsets the invisible char, so that the default invisible char is used again. See [gtk.entry.Entry.setInvisibleChar].
gulong connectActivate(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.entry.Entry))) && Parameters!T.length < 2) nothrowConnect to `Activate` signal.
gulong connectIconPress(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gtk.types.EntryIconPosition))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.entry.Entry))) && Parameters!T.length < 3) nothrowConnect to `IconPress` signal.
gulong connectIconRelease(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gtk.types.EntryIconPosition))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.entry.Entry))) && Parameters!T.length < 3) nothrowConnect to `IconRelease` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new entry. Returns: a new [gtk.entry.Entry].

Fluent builder implementation template for gtk.entry.Entry

Methods
T activatesDefault(bool propval) nothrowSet `activatesDefault` property. Params: propval = Whether to activate the default widget when Enter is pressed. Returns: Builder instance for fluent chaining
T attributes(pango.attr_list.AttrList propval) nothrowSet `attributes` property. Params: propval = A list of Pango attributes to apply to the text of the entry.
T buffer(gtk.entry_buffer.EntryBuffer propval) nothrowSet `buffer` property. Params: propval = The buffer object which actually stores the text. Returns: Builder instance for fluent chaining
T completion(gtk.entry_completion.EntryCompletion propval) nothrowSet `completion` property. Params: propval = The auxiliary completion object to use with the entry. Returns: Builder instance for fluent chaining
T enableEmojiCompletion(bool propval) nothrowSet `enableEmojiCompletion` property. Params: propval = Whether to suggest Emoji replacements for :-delimited names like `:heart:`. Returns: Builder instance for fluent chaining
T extraMenu(gio.menu_model.MenuModel propval) nothrowSet `extraMenu` property. Params: propval = A menu model whose contents will be appended to the context menu. Returns: Builder instance for fluent chaining
T hasFrame(bool propval) nothrowSet `hasFrame` property. Params: propval = Whether the entry should draw a frame. Returns: Builder instance for fluent chaining
T imModule(string propval) nothrowSet `imModule` property. Params: propval = Which IM (input method) module should be used for this entry.
T inputHints(gtk.types.InputHints propval) nothrowSet `inputHints` property. Params: propval = Additional hints that allow input methods to fine-tune their behavior.
T inputPurpose(gtk.types.InputPurpose propval) nothrowSet `inputPurpose` property. Params: propval = The purpose of this text field.
T invisibleChar(uint propval) nothrowSet `invisibleChar` property. Params: propval = The character to use when masking entry contents (“password mode”). Returns: Builder instance for fluent chaining
T invisibleCharSet(bool propval) nothrowSet `invisibleCharSet` property. Params: propval = Whether the invisible char has been set for the [gtk.entry.Entry]. Returns: Builder instance for fluent chaining
T maxLength(int propval) nothrowSet `maxLength` property. Params: propval = Maximum number of characters for this entry. Returns: Builder instance for fluent chaining
T overwriteMode(bool propval) nothrowSet `overwriteMode` property. Params: propval = If text is overwritten when typing in the [gtk.entry.Entry]. Returns: Builder instance for fluent chaining
T placeholderText(string propval) nothrowSet `placeholderText` property. Params: propval = The text that will be displayed in the [gtk.entry.Entry] when it is empty and unfocused. Returns: Builder instance for fluent chaining
T primaryIconActivatable(bool propval) nothrowSet `primaryIconActivatable` property. Params: propval = Whether the primary icon is activatable.
T primaryIconGicon(gio.icon.Icon propval) nothrowSet `primaryIconGicon` property. Params: propval = The [gio.icon.Icon] to use for the primary icon for the entry. Returns: Builder instance for fluent chaining
T primaryIconName(string propval) nothrowSet `primaryIconName` property. Params: propval = The icon name to use for the primary icon for the entry. Returns: Builder instance for fluent chaining
T primaryIconPaintable(gdk.paintable.Paintable propval) nothrowSet `primaryIconPaintable` property. Params: propval = A [gdk.paintable.Paintable] to use as the primary icon for the entry. Returns: Builder instance for fluent chaining
T primaryIconSensitive(bool propval) nothrowSet `primaryIconSensitive` property. Params: propval = Whether the primary icon is sensitive.
T primaryIconTooltipMarkup(string propval) nothrowSet `primaryIconTooltipMarkup` property. Params: propval = The contents of the tooltip on the primary icon, with markup.
T primaryIconTooltipText(string propval) nothrowSet `primaryIconTooltipText` property. Params: propval = The contents of the tooltip on the primary icon.
T progressFraction(double propval) nothrowSet `progressFraction` property. Params: propval = The current fraction of the task that's been completed. Returns: Builder instance for fluent chaining
T progressPulseStep(double propval) nothrowSet `progressPulseStep` property. Params: propval = The fraction of total entry width to move the progress bouncing block for each pulse.
T secondaryIconActivatable(bool propval) nothrowSet `secondaryIconActivatable` property. Params: propval = Whether the secondary icon is activatable.
T secondaryIconGicon(gio.icon.Icon propval) nothrowSet `secondaryIconGicon` property. Params: propval = The [gio.icon.Icon] to use for the secondary icon for the entry. Returns: Builder instance for fluent chaining
T secondaryIconName(string propval) nothrowSet `secondaryIconName` property. Params: propval = The icon name to use for the secondary icon for the entry. Returns: Builder instance for fluent chaining
T secondaryIconPaintable(gdk.paintable.Paintable propval) nothrowSet `secondaryIconPaintable` property. Params: propval = A [gdk.paintable.Paintable] to use as the secondary icon for the entry. Returns: Builder instance for fluent chaining
T secondaryIconSensitive(bool propval) nothrowSet `secondaryIconSensitive` property. Params: propval = Whether the secondary icon is sensitive.
T secondaryIconTooltipMarkup(string propval) nothrowSet `secondaryIconTooltipMarkup` property. Params: propval = The contents of the tooltip on the secondary icon, with markup.
T secondaryIconTooltipText(string propval) nothrowSet `secondaryIconTooltipText` property. Params: propval = The contents of the tooltip on the secondary icon.
T showEmojiIcon(bool propval) nothrow
T tabs(pango.tab_array.TabArray propval) nothrow
T truncateMultiline(bool propval) nothrowSet `truncateMultiline` property. Params: propval = When true, pasted multi-line text is truncated to the first line. Returns: Builder instance for fluent chaining
T visibility(bool propval) nothrowSet `visibility` property. Params: propval = Whether the entry should show the “invisible char” instead of the actual text (“password mode”). Returns: Builder instance for fluent chaining

Fluent builder for gtk.entry.Entry

Methods
Entry build() nothrowCreate object from builder. Returns: New object