HBox layout

A HBox is very similar to a VBox. It stacks all controls or nodes horizontally, left to right, in the order declared in its block. Take a look at the following example:

    hbox {
      button("Button A")
      button("Button B")
    }

This image illustrates the hbox  shown in the preceding code:

Get Kotlin Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.