Created
January 11, 2019 23:36
-
-
Save adam-arold/0a4dc0ab04a17604940b1bcbef43ddff 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 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