adw.entry_row
Module for [EntryRow] class
Types 3
A [gtk.list_box_row.ListBoxRow] with an embedded text entry.
[adw.entry_row.EntryRow] has a title that doubles as placeholder text. It shows an icon indicating that it's editable and can receive additional widgets before or after the editable part.
If property@EntryRow:show-apply-button is set to TRUE, [adw.entry_row.EntryRow] can show an apply button when editing its contents. This can be useful if changing its contents can result in an expensive operation, such as network activity.
[adw.entry_row.EntryRow] provides only minimal API and should be used with the [gtk.editable.Editable] API.
See also class@PasswordEntryRow.
AdwEntryRow as GtkBuildable
The [adw.entry_row.EntryRow] implementation of the [gtk.buildable.Buildable] interface supports adding a child at its end by specifying “suffix” or omitting the “type” attribute of a <child> element.
It also supports adding a child as a prefix widget by specifying “prefix” as the “type” attribute of a <child> element.
CSS nodes
[adw.entry_row.EntryRow] has a single CSS node with name row and the .entry style class.
EntryRowGidBuilder builder()Get builder for [adw.entry_row.EntryRow] Returns: New builder objectbool activatesDefault() @propertyGet `activatesDefault` property. Returns: Whether activating the embedded entry can activate the default widget.void activatesDefault(bool propval) @propertySet `activatesDefault` property. Params: propval = Whether activating the embedded entry can activate the default widget.pango.attr_list.AttrList attributes() @propertyGet `attributes` property. Returns: A list of Pango attributes to apply to the text of the embedded entry.void attributes(pango.attr_list.AttrList propval) @propertySet `attributes` property. Params: propval = A list of Pango attributes to apply to the text of the embedded entry.bool enableEmojiCompletion() @propertyGet `enableEmojiCompletion` property. Returns: Whether to suggest emoji replacements on the entry row.void enableEmojiCompletion(bool propval) @propertySet `enableEmojiCompletion` property. Params: propval = Whether to suggest emoji replacements on the entry row.gtk.types.InputHints inputHints() @propertyGet `inputHints` property. Returns: Additional input hints for the entry row.void inputHints(gtk.types.InputHints propval) @propertySet `inputHints` property. Params: propval = Additional input hints for the entry row.gtk.types.InputPurpose inputPurpose() @propertyGet `inputPurpose` property. Returns: The input purpose of the entry row.void inputPurpose(gtk.types.InputPurpose propval) @propertySet `inputPurpose` property. Params: propval = The input purpose of the entry row.bool showApplyButton() @propertyGet `showApplyButton` property. Returns: Whether to show the apply button.void showApplyButton(bool propval) @propertySet `showApplyButton` property. Params: propval = Whether to show the apply button.uint textLength() @propertyGet `textLength` property. Returns: The length of the text in the entry row.void addPrefix(gtk.widget.Widget widget)Adds a prefix widget to self.void addSuffix(gtk.widget.Widget widget)Adds a suffix widget to self.bool getActivatesDefault()Gets whether activating the embedded entry can activate the default widget. Returns: whether to activate the default widgetpango.attr_list.AttrList getAttributes()Gets Pango attributes applied to the text of the embedded entry. Returns: the list of attributesbool getEnableEmojiCompletion()Gets whether to suggest emoji replacements on self. Returns: whether or not emoji completion is enabledgtk.types.InputHints getInputHints()Gets the additional input hints of self. Returns: The input hintsgtk.types.InputPurpose getInputPurpose()Gets the input purpose of self. Returns: the input purposebool getShowApplyButton()Gets whether self can show the apply button. Returns: whether to show the apply buttonuint getTextLength()Retrieves the current length of the text in self. Returns: The current number of characters in self, or 0 if there are none.bool grabFocusWithoutSelecting()Causes self to have keyboard focus without selecting the text.void remove(gtk.widget.Widget widget)Removes a child from self.void setActivatesDefault(bool activates)Sets whether activating the embedded entry can activate the default widget.void setAttributes(pango.attr_list.AttrList attributes = null)Sets Pango attributes to apply to the text of the embedded entry.void setEnableEmojiCompletion(bool enableEmojiCompletion)Sets whether to suggest emoji replacements on self.void setInputHints(gtk.types.InputHints hints)Set additional input hints for self.void setInputPurpose(gtk.types.InputPurpose purpose)Sets the input purpose of self.void setShowApplyButton(bool showApplyButton)Sets whether self can show the apply button.gulong connectApply(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] : adw.entry_row.EntryRow)))
&& Parameters!T.length < 2)Connect to `Apply` signal.gulong connectEntryActivated(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] : adw.entry_row.EntryRow)))
&& Parameters!T.length < 2)Connect to `EntryActivated` signal.T activatesDefault(bool propval)Set `activatesDefault` property. Params: propval = Whether activating the embedded entry can activate the default widget. Returns: Builder instance for fluent chainingT attributes(pango.attr_list.AttrList propval)Set `attributes` property. Params: propval = A list of Pango attributes to apply to the text of the embedded entry.T enableEmojiCompletion(bool propval)Set `enableEmojiCompletion` property. Params: propval = Whether to suggest emoji replacements on the entry row.T inputHints(gtk.types.InputHints propval)Set `inputHints` property. Params: propval = Additional input hints for the entry row.T inputPurpose(gtk.types.InputPurpose propval)Set `inputPurpose` property. Params: propval = The input purpose of the entry row.T showApplyButton(bool propval)Set `showApplyButton` property. Params: propval = Whether to show the apply button.