Desktop SDL2 window standing in for a physical LCD board. Window size is set at construction time (default 320x240) since - unlike the hardware boards in LCDBoardsESP32.h - there is no fixed panel to match.
More...
#include <LCDBoardsSDL.h>
|
| | LCDBoardDesktopSDL (size_t width=320, size_t height=240) |
| |
| void | setScale (float scale) |
| |
| void | setTitle (const char *title) |
| | Title of the window (before begin()).
|
| |
| bool | begin () override |
| | Opens the SDL window and starts mouse-as-touch tracking.
|
| |
| size_t | width () const override |
| | Window width in pixels.
|
| |
| size_t | height () const override |
| | Window height in pixels.
|
| |
| DisplayDriverSDL< RGB565 > & | display () override |
| | The board's display driver.
|
| |
| TouchDriver * | touch () override |
| | The board's touch controller (mouse-mapped).
|
| |
| const I2SPins & | i2s () const override |
| | No I2S bus on this backend - every field is -1.
|
| |
| const LEDPins & | led () const override |
| | No LED on this backend - every field is -1.
|
| |
| virtual | ~LCDBoard ()=default |
| |
| virtual bool | begin ()=0 |
| |
| virtual size_t | width () const =0 |
| | Panel width in pixels.
|
| |
| virtual size_t | height () const =0 |
| | Panel height in pixels.
|
| |
| virtual DisplayDriver< RGB565 > & | display ()=0 |
| | The board's display driver.
|
| |
| virtual TouchDriver * | touch ()=0 |
| | The board's touch controller, or nullptr if none is wired up.
|
| |
| virtual const I2SPins & | i2s () const =0 |
| | The board's I2S/PA pin assignment.
|
| |
| virtual const LEDPins & | led () const =0 |
| | The board's LED pin assignment.
|
| |
| virtual int8_t | backlightPin () const |
| |
| template<typename I2SConfig > |
| void | setI2SPins (I2SConfig &cfg) |
| |
Desktop SDL2 window standing in for a physical LCD board. Window size is set at construction time (default 320x240) since - unlike the hardware boards in LCDBoardsESP32.h - there is no fixed panel to match.
The left mouse button stands in for a finger (see TouchDriverSDL). There is no backlight/I2S/LED hardware on this backend, so i2s()/led() report "not present" (every field -1) and backlightPin() is -1.
◆ LCDBoardDesktopSDL()
◆ begin()
Opens the SDL window and starts mouse-as-touch tracking.
Implements LCDBoard.
◆ display()
The board's display driver.
Implements LCDBoard.
◆ height()
Window height in pixels.
Implements LCDBoard.
◆ i2s()
No I2S bus on this backend - every field is -1.
Implements LCDBoard.
◆ led()
No LED on this backend - every field is -1.
Implements LCDBoard.
◆ setScale()
| void setScale |
( |
float |
scale | ) |
|
|
inline |
Size of the window as a multiple of the display, e.g. 1.5 or 2 (before begin()); the environment variable TINYGPU_SDL_SCALE takes precedence.
◆ setTitle()
| void setTitle |
( |
const char * |
title | ) |
|
|
inline |
Title of the window (before begin()).
◆ touch()
The board's touch controller (mouse-mapped).
Implements LCDBoard.
◆ width()
Window width in pixels.
Implements LCDBoard.
The documentation for this class was generated from the following file: