Skip to content

Instantly share code, notes, and snippets.

@aziis98
Last active June 7, 2016 20:25
Show Gist options
  • Save aziis98/47a017224aa298b9b8060af50651c633 to your computer and use it in GitHub Desktop.
Save aziis98/47a017224aa298b9b8060af50651c633 to your computer and use it in GitHub Desktop.
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