deploy: d27760adc2
This commit is contained in:
@@ -20,6 +20,8 @@ This is the base frame class. It is the root element of all elements and the onl
|
||||
|Method|Returns|Description|
|
||||
|---|---|---|
|
||||
|[BaseFrame:dispatchEvent](#baseframe-dispatchevent)|-|
|
||||
|[BaseFrame:drawBg](#baseframe-drawbg)|-|
|
||||
|[BaseFrame:drawFg](#baseframe-drawfg)|-|
|
||||
|[BaseFrame:setCursor](#baseframe-setcursor)|-|Sets the cursor position
|
||||
|
||||
|
||||
@@ -29,6 +31,7 @@ This is the base frame class. It is the root element of all elements and the onl
|
||||
|---|---|---|
|
||||
|BaseFrame:blit|-|Renders a text with a foreground and background color to the render Object
|
||||
|BaseFrame:char|-|Handles character events
|
||||
|BaseFrame:drawText|-|Renders a text with a background color to the render Object
|
||||
|BaseFrame:init|table|Initializes the Frame instance
|
||||
|BaseFrame:key|-|Handles key events
|
||||
|BaseFrame:key_up|-|Handles key up events
|
||||
@@ -43,6 +46,10 @@ This is the base frame class. It is the root element of all elements and the onl
|
||||
|
||||
## BaseFrame:dispatchEvent()
|
||||
|
||||
## BaseFrame:drawBg()
|
||||
|
||||
## BaseFrame:drawFg()
|
||||
|
||||
## BaseFrame:setCursor(x, y, blink)
|
||||
Sets the cursor position
|
||||
|
||||
|
||||
@@ -30,6 +30,9 @@ like Frames, BaseFrames, and more.
|
||||
|[Container:addChild](#container-addchild)|Container|Adds a child to the container
|
||||
|[Container:callChildrenEvent](#container-callchildrenevent)|boolean|Calls a event on all children
|
||||
|[Container:clear](#container-clear)|Container|Clears the container
|
||||
|[Container:drawBg](#container-drawbg)|-|
|
||||
|[Container:drawFg](#container-drawfg)|-|
|
||||
|[Container:drawText](#container-drawtext)|-|
|
||||
|[Container:getChild](#container-getchild)|Container?|Removes a child from the container
|
||||
|[Container:isChildVisible](#container-ischildvisible)|boolean|Returns whether a child is visible
|
||||
|[Container:registerChildEvent](#container-registerchildevent)|Container|Registers the children events of the container
|
||||
@@ -89,6 +92,12 @@ Clears the container
|
||||
### Returns
|
||||
* `Container` `self` The container instance
|
||||
|
||||
## Container:drawBg()
|
||||
|
||||
## Container:drawFg()
|
||||
|
||||
## Container:drawText()
|
||||
|
||||
## Container:getChild(path)
|
||||
Removes a child from the container
|
||||
|
||||
|
||||
@@ -50,6 +50,9 @@ and provides core functionality for positioning, sizing, colors, and rendering.
|
||||
|Method|Returns|Description|
|
||||
|---|---|---|
|
||||
|[VisualElement:calculatePosition](#visualelement-calculateposition)|number|Calculates the position of the element
|
||||
|[VisualElement:drawBg](#visualelement-drawbg)|-|
|
||||
|[VisualElement:drawFg](#visualelement-drawfg)|-|
|
||||
|[VisualElement:drawText](#visualelement-drawtext)|-|
|
||||
|[VisualElement:getAbsolutePosition](#visualelement-getabsoluteposition)|number|Returns the absolute position of the element
|
||||
|[VisualElement:getRelativePosition](#visualelement-getrelativeposition)|number|Returns the relative position of the element
|
||||
|[VisualElement:isInBounds](#visualelement-isinbounds)|boolean|Checks if point is within bounds
|
||||
@@ -74,6 +77,7 @@ and provides core functionality for positioning, sizing, colors, and rendering.
|
||||
|VisualElement:mouse_scroll|boolean|Handles a mouse scroll event
|
||||
|VisualElement:mouse_up|boolean|Handles a mouse up event
|
||||
|VisualElement:multiBlit|-|Multi-character drawing with colors
|
||||
|VisualElement:postRender|-|Post-rendering function for the element
|
||||
|VisualElement:render|-|Renders the element
|
||||
|VisualElement:setCursor|VisualElement|Sets the cursor position
|
||||
|VisualElement:textBg|-|Draws text with background color
|
||||
@@ -86,6 +90,12 @@ Calculates the position of the element relative to its parent
|
||||
* `number` `x` The x position
|
||||
* `number` `y` The y position
|
||||
|
||||
## VisualElement:drawBg()
|
||||
|
||||
## VisualElement:drawFg()
|
||||
|
||||
## VisualElement:drawText()
|
||||
|
||||
## VisualElement:getAbsolutePosition(x?, y?)
|
||||
Returns the absolute position of the element or the given coordinates.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user