38 lines
833 B
Markdown
38 lines
833 B
Markdown
## VisualElement.new()
|
|
@diagnostic disable-next-line: duplicate-set-field
|
|
|
|
## VisualElement:getAbsolutePosition(x?, y?)
|
|
Returns the absolute position of the element or the given coordinates.
|
|
|
|
### Parameters
|
|
* `x` *(optional)* `number` -- x position
|
|
* `y` *(optional)* `number` -- y position
|
|
|
|
## VisualElement:getRelativePosition(x?, y?)
|
|
Returns the relative position of the element or the given coordinates.
|
|
|
|
### Parameters
|
|
* `x` *(optional)* `number` -- x position
|
|
* `y` *(optional)* `number` -- y position
|
|
|
|
### Returns
|
|
* `nil` `nil` nil
|
|
|
|
## VisualElement:handleEvent()
|
|
|
|
## VisualElement:isInBounds()
|
|
|
|
## VisualElement:mouse_click()
|
|
|
|
## VisualElement:mouse_release()
|
|
|
|
## VisualElement:mouse_up()
|
|
|
|
## VisualElement:multiBlit()
|
|
|
|
## VisualElement:render()
|
|
@diagnostic disable-next-line: duplicate-set-field
|
|
|
|
## VisualElement:textFg()
|
|
|