ControlledPasswordEntry

@Composable
fun ControlledPasswordEntry(text: String, onTextChange: (String) -> Unit, modifier: Modifier = Modifier, onActivate: () -> Unit = {}, editable: Boolean = true, alignment: Float = 0.0f, enableUndo: Boolean = true, maxWidthChars: Int = -1, widthChars: Int = -1, placeholderText: String? = null, showPeekIcon: Boolean = false, onVisibilityChange: (Boolean) -> Unit = {}, visibility: Boolean = false)

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.

onActivate

Callback triggered when the entry is activated (for example: pressing the Enter key).

editable

Whether the text can be edited. for the window containing the entry.

alignment

The alignment for the contents 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.

placeholderText

Placeholder text displayed when the entry is empty.

showPeekIcon

Whether the peek icon is shown.

onVisibilityChange

Callback triggered when visibility is changed.

visibility

Whether the text inside the entry is visible or hidden.

TODO:

  • setExtraMenu