Virtual display device for Host. More...
#include <Virtual.h>
Public Types | |
| enum | Mode { Mode::Normal, Mode::Debug } |
| using | TouchCallback = Delegate< void(const void *buffer, size_t len)> |
Public Member Functions | |
| Virtual () | |
| ~Virtual () | |
| bool | begin (uint16_t width=240, uint16_t height=320) |
| bool | begin (const String &ipaddr, uint16_t port, uint16_t width=240, uint16_t height=320) |
| void | setMode (Mode mode) |
| Mode | getMode () const |
| String | getName () const override |
| Get name of display. More... | |
| Size | getNativeSize () const override |
| Get physical size of display. More... | |
| bool | setOrientation (Orientation orientation) override |
| Set display orientation. More... | |
| Size | getSize () const override |
| Get target dimensions. More... | |
| PixelFormat | getPixelFormat () const override |
| All surfaces support the same pixel format. More... | |
| bool | setScrollMargins (uint16_t top, uint16_t bottom) override |
| Set margins for hardware scrolling. More... | |
| bool | scroll (int16_t y) override |
| Scroll region of display up or down using hardware scrolling. More... | |
| Surface * | createSurface (size_t bufferSize=0) override |
| Create a surface for use with this render target. More... | |
| void | onTouch (TouchCallback callback) |
Public Member Functions inherited from Graphics::AbstractDisplay | |
| virtual | ~AbstractDisplay () |
Public Member Functions inherited from Graphics::Device | |
| virtual | ~Device () |
| Orientation | getOrientation () |
| Get current display orientation. More... | |
Public Member Functions inherited from Graphics::RenderTarget | |
| virtual | ~RenderTarget () |
| PackedColor | getColor (Color color) const |
Additional Inherited Members | |
Protected Attributes inherited from Graphics::Device | |
| Orientation | orientation {} |
Detailed Description
Virtual display device for Host.
Talks to python virtual screen application via TCP
Member Typedef Documentation
◆ TouchCallback
| using Graphics::Display::Virtual::TouchCallback = Delegate<void(const void* buffer, size_t len)> |
Member Enumeration Documentation
◆ Mode
|
strong |
Constructor & Destructor Documentation
◆ Virtual()
| Graphics::Display::Virtual::Virtual | ( | ) |
◆ ~Virtual()
| Graphics::Display::Virtual::~Virtual | ( | ) |
Member Function Documentation
◆ 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]
◆ createSurface()
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()
|
inline |
◆ getName()
|
inlineoverridevirtual |
Get name of display.
Implements Graphics::Device.
◆ getNativeSize()
|
inlineoverridevirtual |
Get physical size of display.
- Return values
-
Size Dimensions for NORMAL orientation
Implements Graphics::Device.
◆ getPixelFormat()
|
inlineoverridevirtual |
All surfaces support the same pixel format.
Implements Graphics::RenderTarget.
◆ getSize()
|
inlineoverridevirtual |
Get target dimensions.
Implements Graphics::RenderTarget.
◆ onTouch()
|
inline |
◆ scroll()
|
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()
|
inline |
◆ setOrientation()
|
overridevirtual |
Set display orientation.
Implements Graphics::Device.
◆ setScrollMargins()
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:
Public Member Functions inherited from
1.8.17