InsertText

data class InsertText(val text: String, val position: Offset, val fontSize: Float, val fontFamilyKey: String, val alignment: TextAlignment, val color: Color) : Intent

Insert an Element.Text at position with the given style. The wrap box is sized from a sensible default width; embedders that want a different layout can dispatch SetElementBounds immediately after. Snapshots history once.

Constructors

Link copied to clipboard
constructor(text: String, position: Offset, fontSize: Float, fontFamilyKey: String, alignment: TextAlignment, color: Color)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard