Files
Basalt/docs/objects/Container.md
Robert Jelic bb1b1beb79 Basalt 1.7 Update
- New Objects (Flexbox, Graph, Treeview)
- Pluginsystem to add/remove functionality
- Reworked the entire Object system, instead of one big Object Class we have multiple classes: Object, VisualObject, ChangeableObject
- Instead of one big Frame Class we have multiple Frame Classes: BaseFrame, Frame, MovableFrame, ScrollableFrame, MonitorFrame, Flexbox
- Removed the Animation Object, and added a animation plugin instead
- Removed the Graphic Object and merged it's functionality with the image object
- Updated currently existing objects
2023-04-30 17:05:34 +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:

addObject Adds a new object to the container
getObject Returns an object in the container by its ID
getDeepObject Returns an object in the container or its sub-containers by its ID
removeObject Removes an object from the container by its ID
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
removeFocusedObject Removes focus from an object in the container
setFocusedObject Sets focus on a specific object in the container

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