← Standard library

TextIntent

enum TextIntent extends uint8
import TextIntent from Wax;

Editing commands rather than raw keys. Insert and InsertFromPaste carry UTF-32 text; deletion, clipboard, history, and lifecycle cases describe actions for the editor to apply. A Paste request may be followed by a separate InsertFromPaste payload. Secret editors must refuse Cut and Copy.

TextInput.wax:122

Members

Nonecase

case None = 0x00

TextInput.wax:123

MoveLeftcase

case MoveLeft = 0x01

TextInput.wax:130

MoveRightcase

case MoveRight = 0x02

TextInput.wax:131

MoveUpcase

case MoveUp = 0x03

TextInput.wax:132

MoveDowncase

case MoveDown = 0x04

TextInput.wax:133

MoveWordLeftcase

case MoveWordLeft = 0x05

TextInput.wax:134

MoveWordRightcase

case MoveWordRight = 0x06

TextInput.wax:135

MoveLineStartcase

case MoveLineStart = 0x07

TextInput.wax:136

MoveLineEndcase

case MoveLineEnd = 0x08

TextInput.wax:137

MoveDocumentStartcase

case MoveDocumentStart = 0x09

TextInput.wax:138

MoveDocumentEndcase

case MoveDocumentEnd = 0x0A

TextInput.wax:139

MovePageUpcase

case MovePageUp = 0x0B

TextInput.wax:140

MovePageDowncase

case MovePageDown = 0x0C

TextInput.wax:141

ExtendLeftcase

case ExtendLeft = 0x11

TextInput.wax:148

ExtendRightcase

case ExtendRight = 0x12

TextInput.wax:149

ExtendUpcase

case ExtendUp = 0x13

TextInput.wax:150

ExtendDowncase

case ExtendDown = 0x14

TextInput.wax:151

ExtendWordLeftcase

case ExtendWordLeft = 0x15

TextInput.wax:152

ExtendWordRightcase

case ExtendWordRight = 0x16

TextInput.wax:153

ExtendLineStartcase

case ExtendLineStart = 0x17

TextInput.wax:154

ExtendLineEndcase

case ExtendLineEnd = 0x18

TextInput.wax:155

ExtendDocumentStartcase

case ExtendDocumentStart = 0x19

TextInput.wax:156

ExtendDocumentEndcase

case ExtendDocumentEnd = 0x1A

TextInput.wax:157

ExtendPageUpcase

case ExtendPageUp = 0x1B

TextInput.wax:158

ExtendPageDowncase

case ExtendPageDown = 0x1C

TextInput.wax:159

SelectAllcase

case SelectAll = 0x20

TextInput.wax:161

DeleteBackwardcase

case DeleteBackward = 0x30

TextInput.wax:164

DeleteForwardcase

case DeleteForward = 0x31

TextInput.wax:165

DeleteWordBackwardcase

case DeleteWordBackward = 0x32

TextInput.wax:166

DeleteWordForwardcase

case DeleteWordForward = 0x33

TextInput.wax:167

DeleteLineBackwardcase

case DeleteLineBackward = 0x34

TextInput.wax:170

DeleteLineForwardcase

case DeleteLineForward = 0x35

TextInput.wax:171

Insertcase

case Insert = 0x40

Inserts the supplied UTF-32 entry.

TextInput.wax:178

InsertFromPastecase

case InsertFromPaste = 0x41

Inserts the supplied UTF-32 run as one paste operation.

TextInput.wax:185

InsertNewlinecase

case InsertNewline = 0x42

TextInput.wax:186

InsertLineBreakcase

case InsertLineBreak = 0x43

TextInput.wax:189

InsertTabcase

case InsertTab = 0x44

TextInput.wax:190

Cutcase

case Cut = 0x50

Requests cutting selected content; secret editors must refuse this operation.

TextInput.wax:201

Copycase

case Copy = 0x51

Requests copying selected content; secret editors must refuse this operation.

TextInput.wax:205

Pastecase

case Paste = 0x52

Requests pasting. The host may supply the actual content in a following InsertFromPaste event.

TextInput.wax:213

Undocase

case Undo = 0x60

TextInput.wax:216

Redocase

case Redo = 0x61

TextInput.wax:217

Commitcase

case Commit = 0x70

Signals that the host is committing and closing text entry.

TextInput.wax:227

Cancelcase

case Cancel = 0x71

Signals cancellation of text entry.

TextInput.wax:231

CompareTomethod

public fn CompareTo(TextIntent other) : int32

Provided by the compiler.

Equalsmethod

public fn Equals(TextIntent other) : bool

Provided by the compiler.

GetHashCodemethod

public fn GetHashCode() : uint32

Provided by the compiler.

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.