https://kotlinlang.org logo
c

carlw

03/28/2017, 2:06 PM
@ron That makes the example cleaner, but it's not what is done in TornadoFX. Everything is an Extension Function of EventTarget (the Builder class in my example). It just so happens that when we call a label{}, it usually has a layout component like hbox{} as the receiver object (but as an EventTarget).