PanelNode
Defined in: ui/src/UIPanel.ts:72
Internal panel node used by both root UIPanel (Component) and nested child panels. Manages a Yoga container node, a PixiJS Container, optional background, and an ordered list of UIElement children.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PanelNode(
opts):PanelNode
Defined in: ui/src/UIPanel.ts:95
Parameters
Section titled “Parameters”Returns
Section titled “Returns”PanelNode
Properties
Section titled “Properties”container
Section titled “container”
readonlycontainer:Container
Defined in: ui/src/UIPanel.ts:73
yogaNode
Section titled “yogaNode”
readonlyyogaNode:Node
Defined in: ui/src/UIPanel.ts:74
Implementation of
Section titled “Implementation of”Accessors
Section titled “Accessors”children
Section titled “children”Get Signature
Section titled “Get Signature”get children(): readonly
UIElement[]
Defined in: ui/src/UIPanel.ts:108
Returns
Section titled “Returns”readonly UIElement[]
Implementation of
Section titled “Implementation of”displayObject
Section titled “displayObject”Get Signature
Section titled “Get Signature”get displayObject():
Container
Defined in: ui/src/UIPanel.ts:76
Returns
Section titled “Returns”Container
Implementation of
Section titled “Implementation of”UIContainerElement.displayObject
visible
Section titled “visible”Get Signature
Section titled “Get Signature”get visible():
boolean
Defined in: ui/src/UIPanel.ts:183
Returns
Section titled “Returns”boolean
Set Signature
Section titled “Set Signature”set visible(
v):void
Defined in: ui/src/UIPanel.ts:187
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”addElement()
Section titled “addElement()”addElement(
child):void
Defined in: ui/src/UIPanel.ts:112
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”applyLayout()
Section titled “applyLayout()”applyLayout():
void
Defined in: ui/src/UIPanel.ts:200
Recursively apply Yoga computed layout to PixiJS positions. Call this after yogaNode.calculateLayout() on the root.
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”UIContainerElement.applyLayout
button()
Section titled “button()”button(
label,opts):UIButton
Defined in: ui/src/UIPanel.ts:159
Add a button element.
Parameters
Section titled “Parameters”string
Omit<UIButtonProps, "children">
Returns
Section titled “Returns”destroy()
Section titled “destroy()”destroy():
void
Defined in: ui/src/UIPanel.ts:314
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”insertElementBefore()
Section titled “insertElementBefore()”insertElementBefore(
child,before):void
Defined in: ui/src/UIPanel.ts:126
Parameters
Section titled “Parameters”before
Section titled “before”Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”UIContainerElement.insertElementBefore
panel()
Section titled “panel()”panel(
opts?):PanelNode
Defined in: ui/src/UIPanel.ts:166
Add a nested child panel.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”PanelNode
removeElement()
Section titled “removeElement()”removeElement(
child):void
Defined in: ui/src/UIPanel.ts:118
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”UIContainerElement.removeElement
scrollView()
Section titled “scrollView()”scrollView(
opts?):ScrollViewNode
Defined in: ui/src/UIPanel.ts:173
Add a nested scrollable viewport.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”text()
Section titled “text()”text(
content,style?):UIText
Defined in: ui/src/UIPanel.ts:150
Add a text element.
Parameters
Section titled “Parameters”content
Section titled “content”string
style?
Section titled “style?”Partial<TextStyleOptions>
Returns
Section titled “Returns”update()
Section titled “update()”update(
props):void
Defined in: ui/src/UIPanel.ts:226
Parameters
Section titled “Parameters”Partial<PanelProps>
Returns
Section titled “Returns”void