foldChildren

open fun <T> foldChildren(initial: T, visitor: BiFunction<GuiComponent, T, T>): T(source)

Walk over the direct children of this element. A gui element that composites other gui elements should override this method. By default, the initial element is returned without change.

Parameters

visitor

a consumer to be called for all children for this element.

initial

an initial value to be given to the function