EntryRow

open class EntryRow(pointer: <Error class: unknown class><<Error class: unknown class>>) : PreferencesRow

A class@Gtk.ListBoxRow with an embedded text entry.

entry-row

AdwEntryRow 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, AdwEntryRow 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.

AdwEntryRow provides only minimal API and should be used with the iface@Gtk.Editable API.

See also class@PasswordEntryRow.

AdwEntryRow as GtkBuildable

The AdwEntryRow implementation of the iface@Gtk.Buildable interface supports adding a child at its end by specifying “suffix” or omitting the “type” attribute of a element.

It also supports adding a child as a prefix widget by specifying “prefix” as the “type” attribute of a element.

CSS nodes

AdwEntryRow has a single CSS node with name row and the .entry style class.

Since

1.2

Inheritors

Constructors

Link copied to clipboard
constructor()

Creates a new AdwEntryRow.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether activating the embedded entry can activate the default widget.

Link copied to clipboard
val adwEntryRowPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val adwPreferencesRowPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var attributes: <Error class: unknown class>?

A list of Pango attributes to apply to the text of the embedded entry.

Link copied to clipboard

Whether to suggest emoji replacements on the entry row.

Link copied to clipboard
open override val gtkAccessiblePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gtkActionablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gtkBuildablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gtkConstraintTargetPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gtkEditablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var inputHints: <Error class: unknown class>

Additional input hints for the entry row.

Link copied to clipboard
open var inputPurpose: <Error class: unknown class>

The input purpose of the entry row.

Link copied to clipboard
open var maxLength: Int

Maximum number of characters for the entry.

Link copied to clipboard

Whether to show the apply button.

Link copied to clipboard
open val textLength: <Error class: unknown class>

The length of the text in the entry row.

Link copied to clipboard
open var title: String

The title of the preference represented by this row.

Link copied to clipboard

Whether the user can copy the title from the label.

Link copied to clipboard
open var useMarkup: Boolean

Whether to use Pango markup for the title label.

Link copied to clipboard

Whether an embedded underline in the title indicates a mnemonic.

Functions

Link copied to clipboard
open fun addPrefix(widget: <Error class: unknown class>)

Adds a prefix widget to @self.

Link copied to clipboard
open fun addSuffix(widget: <Error class: unknown class>)

Adds a suffix widget to @self.

Link copied to clipboard
fun connectApply(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when the apply button is pressed.

Link copied to clipboard
fun connectEntryActivated(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when the embedded entry is activated.

Link copied to clipboard

Gets whether activating the embedded entry can activate the default widget.

Link copied to clipboard
open fun getAttributes(): <Error class: unknown class>?

Gets Pango attributes applied to the text of the embedded entry.

Link copied to clipboard

Gets whether to suggest emoji replacements on @self.

Link copied to clipboard
open fun getInputHints(): <Error class: unknown class>

Gets the additional input hints of @self.

Link copied to clipboard
open fun getInputPurpose(): <Error class: unknown class>

Gets the input purpose of @self.

Link copied to clipboard
open fun getMaxLength(): Int

Retrieves the maximum length of the entry.

Link copied to clipboard

Gets whether @self can show the apply button.

Link copied to clipboard
open fun getTextLength(): <Error class: unknown class>

Retrieves the current length of the text in @self.

Link copied to clipboard
open fun getTitle(): String

Gets the title of the preference represented by @self.

Link copied to clipboard

Gets whether the user can copy the title from the label

Link copied to clipboard
open fun getUseMarkup(): Boolean

Gets whether to use Pango markup for the title label.

Link copied to clipboard

Gets whether an embedded underline in the title indicates a mnemonic.

Link copied to clipboard

Causes @self to have keyboard focus without selecting the text.

Link copied to clipboard
open fun remove(widget: <Error class: unknown class>)

Removes a child from @self.

Link copied to clipboard
open fun setActivatesDefault(activates: Boolean)

Sets whether activating the embedded entry can activate the default widget.

Link copied to clipboard
open fun setAttributes(attributes: <Error class: unknown class>? = null)

Sets Pango attributes to apply to the text of the embedded entry.

Link copied to clipboard
open fun setEnableEmojiCompletion(enableEmojiCompletion: Boolean)

Sets whether to suggest emoji replacements on @self.

Link copied to clipboard
open fun setInputHints(hints: <Error class: unknown class>)

Set additional input hints for @self.

Link copied to clipboard
open fun setInputPurpose(purpose: <Error class: unknown class>)

Sets the input purpose of @self.

Link copied to clipboard
open fun setMaxLength(maxLength: Int)

Sets the maximum length of the entry.

Link copied to clipboard
open fun setShowApplyButton(showApplyButton: Boolean)

Sets whether @self can show the apply button.

Link copied to clipboard
open fun setTitle(title: String)

Sets the title of the preference represented by @self.

Link copied to clipboard
open fun setTitleSelectable(titleSelectable: Boolean)

Sets whether the user can copy the title from the label

Link copied to clipboard
open fun setUseMarkup(useMarkup: Boolean)

Sets whether to use Pango markup for the title label.

Link copied to clipboard
open fun setUseUnderline(useUnderline: Boolean)

Sets whether an embedded underline in the title indicates a mnemonic.