Files
Basalt/docs/objects/Container.md
Robert Jelic 47a4706a14 Updated Container docs
updated docs for container (child instead of object)
2023-05-18 13:02:04 +02:00

1.4 KiB

Container is the base class for all frame types. It provides the basic structure and functionality for all frame objects. Container objects can contain other container objects, thus forming the foundation for the hierarchy of frame objects.

In addition to the Object and VisualObject methods, container objects have the following methods:

addChild Adds a new object to the container
getChild Returns an object in the container by its ID
getDeepChild Returns an object in the container or its sub-containers by its ID
removeChild Removes an object from the container by its ID
removeChildren Removes all children object's
updateZIndex Updates the Z-index of an object in the container
setImportant Marks an object as important, so it is displayed on top if needed
sortElementOrder Sorts the order of elements in the container based on their Z-indices
clearFocusedChild Removes focus from an object in the container
setFocusedChild Sets focus on a specific object in the container

A Container Object inherits from VisualObject, but won't draw children objects.