← Standard library

TextEvent

scoped struct TextEvent
import TextEvent from Wax;

A scoped editing intent with a borrowed UTF-32 content range in TextData.text. Read content during the current frame; copy it into string or secret storage if it must persist. The secret flag marks payloads redacted from recordings, not from live reads.

TextInput.wax:33

Members

textOffsetfield

public uint32 textOffset

Zero-based UTF-32 entry offset into this frame's TextData.text run.

TextInput.wax:41

textLengthfield

public uint32 textLength

The declared number of UTF-32 entries. Prefer TextLength, which validates the borrowed range.

TextInput.wax:47

intentfield

public TextIntent intent

The editing command to apply; content-free commands have no text payload.

TextInput.wax:52

secretfield

public bool secret

Whether this event's content is redacted in snapshots and recordings. The live application still reads the actual content.

TextInput.wax:66

_pad0field

public uint8 _pad0

Reserved event-layout padding; leave zero.

TextInput.wax:71

_pad1field

public uint8 _pad1

Reserved event-layout padding; leave zero.

TextInput.wax:76

TextLengthgetter

public get TextLength() : int32

The validated number of UTF-32 entries in this event. Malformed or truncated ranges read as empty.

TextInput.wax:84

TextAtmethod

public fn TextAt(int32 index) : uint32

Reads one UTF-32 entry from the current event. An index outside [0, TextLength) panics.

TextInput.wax:95

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.

constructorconstructor

public constructor ()

Provided by the compiler.