Represents a terminal display for BindCanvas. More...
#include <BindTerminal.hpp>
Public Member Functions | |
uint16_t | getBytes (uint8_t *out) override |
Generates and returns the byte data representing the terminal's configuration. | |
uint16_t | getDataBytes (uint8_t *out, const char *str, int32_t textColor, bool autoScroll, bool newLine, bool bold, bool italic) |
Generates and returns the byte data representing text to be displayed in the terminal. | |
Public Attributes | |
int16_t | x = 0 |
X-coordinate position of the terminal. | |
int16_t | y = 0 |
Y-coordinate position of the terminal. | |
uint8_t | cmdId = 0 |
Command ID for the terminal. See the notes for possible cmdId values. | |
int16_t | width = 200 |
Width of the terminal. | |
int16_t | height = 100 |
Height of the terminal. | |
int16_t | textSize = 10 |
Text size of the displayed text. | |
int32_t | backColor = UBUNTU |
Background color of the terminal. | |
![]() | |
int16_t | tag |
Represents a terminal display for BindCanvas.
The BindTerminal
class is designed to create and display a terminal-like text interface within a BindCanvas UI. This terminal can be used for displaying text data, log messages, or other textual information and provides various customization options.
|
inlineoverridevirtual |
Generates and returns the byte data representing the terminal's configuration.
This function is meant for internal use by the Bind framework and should not be called directly by users. It serializes the terminal's configuration properties into a byte array for communication with BindCanvas.
out | Pointer to the output byte array. |
Reimplemented from BindView.
|
inline |
Generates and returns the byte data representing text to be displayed in the terminal.
Use this method to send text data to the terminal for display. It serializes the text properties including color, formatting, and scrolling behavior into a byte array.
out | Pointer to the output byte array. |
str | The text data to be displayed. |
textColor | The color of the text. |
autoScroll | Whether the terminal should automatically scroll to show new text. |
newLine | Whether a new line should be added after the text. |
bold | Whether the text should be displayed in bold. |
italic | Whether the text should be displayed in italic. |