import{_ as t,a,b as r,ag as n}from"./chunks/framework.BcrMLAmg.js";const m=JSON.parse('{"title":"Container","description":"","frontmatter":{},"headers":[],"relativePath":"references/elements/Container.md","filePath":"references/elements/Container.md","lastUpdated":1757844696000}'),i={name:"references/elements/Container.md"};function d(o,e,l,h,c,s){return r(),a("div",null,e[0]||(e[0]=[n('

Container

The Container class serves as a fundamental building block for organizing UI elements. It acts as a parent element that can hold and manage child elements.

Extends: VisualElement

Properties

PropertyTypeDefaultDescription
childrentable{}The children of the container
childrenSortedbooleantrueWhether the children are sorted
childrenEventsSortedbooleantrueWhether the children events are sorted
childrenEventstable{}The children events of the container
eventListenerCounttable{}The event listener count of the container
focusedChildtablenilThe focused child of the container
visibleChildrentable{}The visible children of the container
visibleChildrenEventstable{}The visible children events of the container
offsetXnumber0Horizontal content offset
offsetYnumber0Vertical content offset

Functions

MethodReturnsDescription
Container:isChildVisiblebooleanReturns whether a child is visible
Container:addChildContainerAdds a child to the container
Container:clearContainerClears the container
Container:sortChildrenContainerSorts the children of the container
Container:sortChildrenEventsContainerSorts the children events of the container
Container:registerChildrenEventsContainerRegisters the children events of the container
Container:registerChildEventContainerRegisters the children events of the container
Container:removeChildrenEventsContainerUnregisters the children events of the container
Container:unregisterChildEventContainerUnregisters the children events of the container
Container:removeChildContainerRemoves a child from the container
Container:getChildselfRemoves a child from the container
Container:callChildrenEventboolean, childCalls a event on all children

Container:isChildVisible(child)

Returns whether a child is visible

Parameters

Returns

Container:addChild(child)

Adds a child to the container

Parameters

Returns

Container:clear()

Clears the container

Returns

Container:sortChildren()

Sorts the children of the container

Returns

Container:sortChildrenEvents(eventName)

Sorts the children events of the container

Parameters

Returns

Container:registerChildrenEvents(child)

Registers the children events of the container

Parameters

Returns

Container:registerChildEvent(child, eventName)

Registers the children events of the container

Parameters

Returns

Container:removeChildrenEvents(child)

Unregisters the children events of the container

Parameters

Returns

Container:unregisterChildEvent(child, eventName)

Unregisters the children events of the container

Parameters

Returns

Container:removeChild(child)

Removes a child from the container

Parameters

Returns

Container:getChild(path)

Removes a child from the container

Parameters

Returns

Container:callChildrenEvent(visibleOnly, event)

Calls a event on all children

Parameters

Returns

',75)]))}const b=t(i,[["render",d]]);export{m as __pageData,b as default};