1.7 KiB
1.7 KiB
Frame
This is the frame class. It serves as a grouping container for other elements.
Extends: Container
Properties
| Property | Type | Default | Description |
|---|---|---|---|
| draggable | boolean | false | Whether the frame is draggable |
| draggingMap | table | {} | The map of dragging positions |
Functions
| Method | Returns | Description |
|---|---|---|
| Frame.new | Frame | Creates a new Frame instance |
| Frame:Frame | Frame | Initializes the Frame instance |
| Frame:Frame | boolean | Handles mouse click events |
| Frame:Frame | boolean | Handles mouse release events |
| Frame:Frame | boolean | Handles mouse drag events |
Frame.new()
Creates a new Frame instance
Returns
FrameselfThe newly created Frame instance
Frame:Frame(props, basalt)
Parameters
propstableThe properties to initialize the element withbasalttableThe basalt instance
Returns
FrameselfThe initialized instance
Frame:Frame(button, x, y)
Parameters
buttonnumberThe button that was clickedxnumberThe x position of the clickynumberThe y position of the click
Returns
booleanhandledWhether the event was handled
Frame:Frame(button, x, y)
Parameters
buttonnumberThe button that was releasedxnumberThe x position of the releaseynumberThe y position of the release
Returns
booleanhandledWhether the event was handled
Frame:Frame(button, x, y)
Parameters
buttonnumberThe button that was clickedxnumberThe x position of the drag positionynumberThe y position of the drag position
Returns
booleanhandledWhether the event was handled