Virtual display device for Host.
More...
#include <Virtual.h>
Virtual display device for Host.
Talks to python virtual screen application via TCP
◆ TouchCallback
◆ Mode
Enumerator |
---|
Normal | Aim to produce similar performance to real display.
|
Debug | Use standard software renderers, may run slower and less smoothly.
|
◆ Virtual()
Graphics::Display::Virtual::Virtual |
( |
| ) |
|
◆ ~Virtual()
Graphics::Display::Virtual::~Virtual |
( |
| ) |
|
◆ begin() [1/2]
bool Graphics::Display::Virtual::begin |
( |
const String & |
ipaddr, |
|
|
uint16_t |
port, |
|
|
uint16_t |
width = 240 , |
|
|
uint16_t |
height = 320 |
|
) |
| |
◆ begin() [2/2]
bool Graphics::Display::Virtual::begin |
( |
uint16_t |
width = 240 , |
|
|
uint16_t |
height = 320 |
|
) |
| |
◆ createSurface()
Surface* Graphics::Display::Virtual::createSurface |
( |
size_t |
bufferSize = 0 | ) |
|
|
overridevirtual |
Create a surface for use with this render target.
- Parameters
-
bufferSize | Size of internal command/data buffer |
- Return values
-
Surface* | The surface to use |
Caller is responsible for destroying the surface when no longer required.
Implements Graphics::RenderTarget.
◆ getMode()
Mode Graphics::Display::Virtual::getMode |
( |
| ) |
const |
|
inline |
◆ getName()
String Graphics::Display::Virtual::getName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getNativeSize()
Size Graphics::Display::Virtual::getNativeSize |
( |
| ) |
const |
|
inlineoverridevirtual |
Get physical size of display.
- Return values
-
Size | Dimensions for NORMAL orientation |
Implements Graphics::Device.
◆ getPixelFormat()
PixelFormat Graphics::Display::Virtual::getPixelFormat |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getSize()
Size Graphics::Display::Virtual::getSize |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ onTouch()
void Graphics::Display::Virtual::onTouch |
( |
TouchCallback |
callback | ) |
|
|
inline |
◆ scroll()
bool Graphics::Display::Virtual::scroll |
( |
int16_t |
y | ) |
|
|
overridevirtual |
Scroll region of display up or down using hardware scrolling.
- Parameters
-
y | Number of lines to scroll. Positive values scroll content down, negative values scroll up. |
Implements Graphics::Device.
◆ setMode()
void Graphics::Display::Virtual::setMode |
( |
Mode |
mode | ) |
|
|
inline |
◆ setOrientation()
bool Graphics::Display::Virtual::setOrientation |
( |
Orientation |
orientation | ) |
|
|
overridevirtual |
◆ setScrollMargins()
bool Graphics::Display::Virtual::setScrollMargins |
( |
uint16_t |
top, |
|
|
uint16_t |
bottom |
|
) |
| |
|
overridevirtual |
Set margins for hardware scrolling.
- Parameters
-
top | Number of fixed pixels at top of screen |
bottom | Number of fixed pixels at bottom of screen |
Area between top/bottom can be scrolled using scroll()
method.
Implements Graphics::Device.
The documentation for this class was generated from the following file: