Files
Basalt2/docs/references/elements/Frame.md
2025-02-24 22:13:57 +00:00

676 B

Frame : Container

This is the frame class. It serves as a grouping container for other elements.

Functions

Method Returns Description
Frame.new Frame Creates a new Frame instance
Frame:init Frame Initializes the Frame instance

Frame.new()

Creates a new Frame instance

Returns

  • Frame self The newly created Frame instance

Usage

local frame = Frame.new()

Frame:init(props, basalt)

Initializes the Frame instance

Parameters

  • props table The properties to initialize the element with
  • basalt table The basalt instance

Returns

  • Frame self The initialized instance