@js
Wraps up information regarding a text modification.
Slots
- newNumNewlinesSource
-
Int? newNumNewlines
Number of newlines in newText or zero if no newlines. This field will lazily be calcualted if null.
- newTextSource
-
Str? newText
New text inserted
- oldNumNewlinesSource
-
Int? oldNumNewlines
Number of newlines in oldText or zero if no newlines This field will lazily be calcualted if null.
- oldTextSource
-
Str? oldText
Old text which was replaced
- redoSource
-
Void redo(TextWidget widget)
Redo this modification on the given widget.
- repaintLenSource
-
Int? repaintLen
Zero based offset of where repaint should end, or if null then
newText.size
is assumed. - repaintStartSource
-
Int? repaintStart
Zero based offset of where repaint should start, or if null then startOffset is assumed.
- startLineSource
-
Int startLine
Zero based line number of modification
- startOffsetSource
-
Int startOffset
Zero based offset of modification
- toStrSource
-
override Str toStr()
Overrides sys::Obj.toStr
Doc inherited from sys::Obj.toStr
Return a string representation of this object.
- undoSource
-
Void undo(TextWidget widget)
Undo this modification on the given widget.