TextEvent
scoped struct TextEventimport 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.
Members
textOffsetfield
public uint32 textOffsetZero-based UTF-32 entry offset into this frame's TextData.text run.
textLengthfield
public uint32 textLengthThe declared number of UTF-32 entries. Prefer TextLength, which validates the borrowed range.
intentfield
public TextIntent intentThe editing command to apply; content-free commands have no text payload.
secretfield
public bool secretWhether this event's content is redacted in snapshots and recordings. The live application still reads the actual content.
_pad0field
public uint8 _pad0Reserved event-layout padding; leave zero.
_pad1field
public uint8 _pad1Reserved event-layout padding; leave zero.
TextLengthgetter
public get TextLength() : int32The validated number of UTF-32 entries in this event. Malformed or truncated ranges read as empty.
TextAtmethod
public fn TextAt(int32 index) : uint32Reads one UTF-32 entry from the current event. An index outside [0, TextLength) panics.
ToStringmethod
public fn ToString() : stringProvided by the compiler.
ToStringBuffermethod
public fn ToStringBuffer(StringBuilder builder) : int32Provided by the compiler.
constructorconstructor
public constructor ()Provided by the compiler.