Entry

@Composable
fun Entry(text: String, onTextChange: (String) -> Unit, modifier: Modifier = Modifier, attributes: AttrList = emptyAttributes, placeholderText: String? = null, editable: Boolean = true, visibility: Boolean = true, activatesDefault: Boolean = false, alignment: Float = 0.0f, hasFrame: Boolean = true, inputHints: InputHints = InputHints.NONE, inputPurpose: InputPurpose = InputPurpose.FREE_FORM, invisibleChar: Char? = null, maxLength: Int = 0, progressFraction: Double = 0.0, tabs: TabArray? = null, enableUndo: Boolean = true, maxWidthChars: Int = -1, widthChars: Int = -1)

Creates a org.gnome.gtk.Entry used to input text.

Parameters

text

The text in the entry.

onTextChange

Callback triggered when the text is changed.

modifier

Compose Modifier for layout and styling.

attributes

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

placeholderText

The text displayed when the entry is empty and unfocused.

editable

Whether the text can be edited.

visibility

Whether the contents of the entry are visible.

activatesDefault

Whether pressing Enter in will activate the default widget for the window containing the entry.

alignment

The alignment for the contents of the entry.

hasFrame

Whether the entry has a frame.

inputHints

Additional hints which allow input methods to fine-tune their behavior.

inputPurpose

The input purpose which can be used by input methods to adjust their behavior.

invisibleChar

The character to use in place of the actual text when visibility is false.

maxLength

The maximum allowed length of the contents.

progressFraction

The level at which the progress indicator of the entry is filled.

tabs

A list of tabstops to apply to the text of the entry.

enableUndo

Whether changes to this entry will be saved for undo/redo actions.

maxWidthChars

The desired maximum width of the entry, in characters.

widthChars

Number of characters to leave space for in the entry.

TODO:

  • setExtraMenu

  • Icons

  • overwriteMode

  • pulse