Last active
June 7, 2016 20:25
-
-
Save aziis98/47a017224aa298b9b8060af50651c633 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Editor { | |
val carretPosition: Vec2i | |
val selectionLength: Int | |
fun putChar(char: Char) | |
fun putString(string: String) | |
fun putColor(position: Vec2i, length: Int, forecolor: Color, backcolor: Color) | |
fun deleteLeft() | |
fun deleteRight() | |
fun replaceTextWithin(start: Vec2i, end: Vec2i) | |
fun moveCarretHorizontally(delta: Int) | |
fun moveCarretVertically(delta: Int) | |
fun getTextWithin(start: Vec2i, end: Vec2i) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment