|
TinyGPU
|
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>


Public Member Functions | |
| LCDBoardDesktopSDL (size_t width=320, size_t height=240) | |
| 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. | |
Public Member Functions inherited from LCDBoard | |
| 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.
|
inline |
|
inlineoverridevirtual |
Opens the SDL window and starts mouse-as-touch tracking.
Implements LCDBoard.
|
inlineoverridevirtual |
The board's display driver.
Implements LCDBoard.
|
inlineoverridevirtual |
Window height in pixels.
Implements LCDBoard.
|
inlineoverridevirtual |
No I2S bus on this backend - every field is -1.
Implements LCDBoard.
|
inlineoverridevirtual |
No LED on this backend - every field is -1.
Implements LCDBoard.
|
inlineoverridevirtual |
The board's touch controller (mouse-mapped).
Implements LCDBoard.
|
inlineoverridevirtual |
Window width in pixels.
Implements LCDBoard.