klyn.gui.windows.Container.childCount
property
public readonly property childCount as ULong:
Description

Number of child widgets owned by this container.

size always describes graphical dimensions on widgets; use childCount when iterating over the child widget collection.

panel = Container()
panel.add(Label("Name"))
assert panel.childCount == 1