Record Class EditorState
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.client.imgui.text.editor.EditorState
public record EditorState(List<List<EditorGlyph>> lines, EditorCoordinates cursor, EditorCoordinates selStart, EditorCoordinates selEnd)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEditorState(List<List<EditorGlyph>> lines, EditorCoordinates cursor, EditorCoordinates selStart, EditorCoordinates selEnd) Creates an instance of aEditorStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptioncursor()Returns the value of thecursorrecord component.static List<List<EditorGlyph>> deepCopyLines(List<List<EditorGlyph>> src) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lines()Returns the value of thelinesrecord component.selEnd()Returns the value of theselEndrecord component.selStart()Returns the value of theselStartrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
MAX_UNDO
public static final int MAX_UNDO- See Also:
-
-
Constructor Details
-
EditorState
public EditorState(List<List<EditorGlyph>> lines, EditorCoordinates cursor, EditorCoordinates selStart, EditorCoordinates selEnd) Creates an instance of aEditorStaterecord class.- Parameters:
lines- the value for thelinesrecord componentcursor- the value for thecursorrecord componentselStart- the value for theselStartrecord componentselEnd- the value for theselEndrecord component
-
-
Method Details
-
deepCopyLines
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
lines
Returns the value of thelinesrecord component.- Returns:
- the value of the
linesrecord component
-
cursor
Returns the value of thecursorrecord component.- Returns:
- the value of the
cursorrecord component
-
selStart
Returns the value of theselStartrecord component.- Returns:
- the value of the
selStartrecord component
-
selEnd
Returns the value of theselEndrecord component.- Returns:
- the value of the
selEndrecord component
-