An element class that accepts multiple child elements and acts as a container.
Handled by the GUI/layers/windows as a single element
Children are positioned relative to the parent.
Parent events are propagated to the children.
When the parent is asked to update it updates the children, passing the state into them so things like _elmupdated can be set and passed back up appropriately.
The parent can use the child elements' before/after hooks to manage its own state and update the other children
To figure out
How to track the mouse position relative to child elements.
Maybe have containsPoint return a tuple of the coordinates relative to the elm?
Do elements' drag methods use the existing relative state values?
How to draw children at a relative position. Would need to intercept drawing requests or something.
Require elements' draw methods to accept an x/y offset. Could also be used to allow layer-based positioning.
How to manage any references to the child elements' .layer.
An element class that accepts multiple child elements and acts as a container.
To figure out
containsPoint
return a tuple of the coordinates relative to the elm?.layer
.