TextView

@Composable
fun TextView(text: String, modifier: Modifier = Modifier, enableUndo: Boolean = true, acceptsTab: Boolean = true, bottomMargin: Int = 0, cursorVisible: Boolean = true, editable: Boolean = true, indent: Int = 0, inputHints: Set<InputHints> = setOf(InputHints.NONE), inputPurpose: InputPurpose = InputPurpose.FREE_FORM, justification: Justification = Justification.LEFT, leftMargin: Int = 0, monospace: Boolean = false, pixelsAboveLines: Int = 0, pixelsBelowLines: Int = 0, pixelsInsideWrap: Int = 0, rightMargin: Int = 0, topMargin: Int = 0, wrapMode: WrapMode = WrapMode.NONE, onTextChange: (String) -> Unit = {})

Creates a org.gnome.gtk.TextView, useful for entering large amounts of text.

Parameters

text

The text content.

modifier

Compose Modifier for layout and styling.

enableUndo

Whether support for undoing and redoing changes is allowed.

acceptsTab

Whether Tab will result in a tab character being entered.

bottomMargin

The bottom margin for text in the text view.

cursorVisible

If the insertion cursor is shown.

editable

Whether the text can be modified by the user.

indent

Amount to indent the paragraph, in pixels.

inputHints

Additional hints (beyond inputPurpose) that allow input methods to fine-tune their behaviour.

inputPurpose

The purpose of this text field.

justification

Left, right, or center justification.

leftMargin

The default left margin for text in the text view.

monospace

Whether text should be displayed in a monospace font.

pixelsAboveLines

Pixels of blank space above paragraphs.

pixelsBelowLines

Pixels of blank space below paragraphs.

pixelsInsideWrap

Pixels of blank space between wrapped lines in a paragraph.

rightMargin

The default right margin for text in the text view.

topMargin

The top margin for text in the text view.

wrapMode

Whether to wrap lines never, at word boundaries, or at character boundaries.