Skip to content

Instantly share code, notes, and snippets.

@adam-arold
Created January 11, 2019 23:36
Show Gist options
  • Save adam-arold/0a4dc0ab04a17604940b1bcbef43ddff to your computer and use it in GitHub Desktop.
Save adam-arold/0a4dc0ab04a17604940b1bcbef43ddff to your computer and use it in GitHub Desktop.
interface Component {
val children: Iterable<Component>
fun requestFocus()
fun clearFocus()
}
class MyComponent(
override val children: Iterable<Component>,
val drawSurface: DrawSurface) : Component {
override fun requestFocus() {
}
override fun clearFocus() {
}
fun render() {
}
fun attachTo(container: Container) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment