TinyGPU
Loading...
Searching...
No Matches
Public Member Functions | List of all members
LCDBoardDesktopSDL Class Reference

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>

Inheritance diagram for LCDBoardDesktopSDL:
Inheritance graph
[legend]
Collaboration diagram for LCDBoardDesktopSDL:
Collaboration graph
[legend]

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ LCDBoardDesktopSDL()

LCDBoardDesktopSDL ( size_t  width = 320,
size_t  height = 240 
)
inline

Member Function Documentation

◆ begin()

bool begin ( )
inlineoverridevirtual

Opens the SDL window and starts mouse-as-touch tracking.

Implements LCDBoard.

◆ display()

DisplayDriverSDL< RGB565 > & display ( )
inlineoverridevirtual

The board's display driver.

Implements LCDBoard.

◆ height()

size_t height ( ) const
inlineoverridevirtual

Window height in pixels.

Implements LCDBoard.

◆ i2s()

const I2SPins & i2s ( ) const
inlineoverridevirtual

No I2S bus on this backend - every field is -1.

Implements LCDBoard.

◆ led()

const LEDPins & led ( ) const
inlineoverridevirtual

No LED on this backend - every field is -1.

Implements LCDBoard.

◆ touch()

TouchDriver * touch ( )
inlineoverridevirtual

The board's touch controller (mouse-mapped).

Implements LCDBoard.

◆ width()

size_t width ( ) const
inlineoverridevirtual

Window width in pixels.

Implements LCDBoard.


The documentation for this class was generated from the following file: