deploy: c2507b5486
This commit is contained in:
@@ -7,17 +7,19 @@ This is the base frame class. It is the root element of all elements and the onl
|
||||
|---|---|---|
|
||||
|_render|`Render`|The render object|
|
||||
|_renderUpdate|`boolean`|Whether the render object needs to be updated|
|
||||
|_peripheralName|`string`|The name of a peripheral|
|
||||
|
||||
## Properties
|
||||
|
||||
|Property|Type|Default|Description|
|
||||
|---|---|---|---|
|
||||
|text|term|nil|The terminal object to render to
|
||||
|term|term|peripheral|term.current()|The terminal or (monitor) peripheral object to render to
|
||||
|
||||
## Functions
|
||||
|
||||
|Method|Returns|Description|
|
||||
|---|---|---|
|
||||
|[BaseFrame:dispatchEvent](#baseframe-dispatchevent)|-|
|
||||
|[BaseFrame:setCursor](#baseframe-setcursor)|-|Sets the cursor position
|
||||
|
||||
|
||||
@@ -30,6 +32,8 @@ This is the base frame class. It is the root element of all elements and the onl
|
||||
|BaseFrame:init|table|Initializes the Frame instance
|
||||
|BaseFrame:key|-|Handles key events
|
||||
|BaseFrame:key_up|-|Handles key up events
|
||||
|BaseFrame:monitor_touch|-|Handles monitor touch events
|
||||
|BaseFrame:mouse_click|-|Handles mouse click events
|
||||
|BaseFrame:mouse_up|-|Handles mouse up events
|
||||
|BaseFrame:multiBlit|-|Renders a multiBlit to the render Object
|
||||
|BaseFrame:render|-|Renders the Frame
|
||||
@@ -37,6 +41,8 @@ This is the base frame class. It is the root element of all elements and the onl
|
||||
|BaseFrame:textBg|-|Renders a text with a background color to the render Object
|
||||
|BaseFrame:textFg|-|Renders a text with a foreground color to the render Object
|
||||
|
||||
## BaseFrame:dispatchEvent()
|
||||
|
||||
## BaseFrame:setCursor(x, y, blink)
|
||||
Sets the cursor position
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ The Display is a special element where you can use the window (term) API to draw
|
||||
|Method|Returns|Description|
|
||||
|---|---|---|
|
||||
|[Display:getWindow](#display-getwindow)|table|Returns the current window object
|
||||
|[Display:write](#display-write)|Display|Writes text to the display
|
||||
|
||||
|
||||
## Protected Functions
|
||||
@@ -21,4 +22,17 @@ Returns the current window object
|
||||
### Returns
|
||||
* `table` `window` The current window object
|
||||
|
||||
## Display:write(x, y, text, fg?, bg?)
|
||||
Writes text to the display at the given position with the given foreground and background colors
|
||||
|
||||
### Parameters
|
||||
* `x` `number` The x position to write to
|
||||
* `y` `number` The y position to write to
|
||||
* `text` `string` The text to write
|
||||
* `fg` *(optional)* `colors` The foreground color (optional)
|
||||
* `bg` *(optional)* `colors` The background color (optional)
|
||||
|
||||
### Returns
|
||||
* `Display` `self` The display instance
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user