1.9 KiB
1.9 KiB
BaseFrame : Container
This is the base frame class. It is the root element of all elements and the only element without a parent.
Fields
| Field | Type | Description |
|---|---|---|
| _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 |
|---|---|---|---|
| term | term | peripheral | term.current() |
Functions
| Method | Returns | Description |
|---|---|---|
| BaseFrame:dispatchEvent | - | |
| BaseFrame:drawBg | - | |
| BaseFrame:drawFg | - | |
| BaseFrame:setCursor | - | Sets the cursor position |
Protected Functions
| Method | Returns | Description |
|---|---|---|
| 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 |
| 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 |
| BaseFrame:term_resize | - | Resizes the Frame |
| 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:drawBg()
BaseFrame:drawFg()
BaseFrame:setCursor(x, y, blink)
Sets the cursor position
Parameters
xnumberThe x position to set the cursor toynumberThe y position to set the cursor toblinkbooleanWhether the cursor should blink