Skip to content

PixelUI.Frame

Extends: PixelUI.Widget

A container widget that can hold child widgets. Serves as the base for layout organization and hierarchy.

Properties

NameTypeDescription
private_children
private_orderCounter
titlestring?Optional frame title

Methods

new

lua
new()

addChild

Since: 0.1.0

lua
addChild(child)

Parameters:

NameTypeDescription
childPixelUI.Widget

_applyConstraintsToChildren

lua
_applyConstraintsToChildren()

setSize

lua
setSize()

removeChild

lua
removeChild(child)

Parameters:

NameTypeDescription
childPixelUI.Widget

getChildren

Since: 0.1.0

lua
getChildren()

Returns:

  • PixelUI.Widget[]

setTitle

Since: 0.1.0

lua
setTitle(title)

Parameters:

NameTypeDescription
titlestring?

draw

lua
draw(textLayer, pixelLayer)

Parameters:

NameTypeDescription
textLayerLayer
pixelLayerLayer

handleEvent

Since: 0.1.0

lua
handleEvent(event)

Parameters:

NameTypeDescription
eventstring

Released under the MIT License.