Virtual.h
Go to the documentation of this file.
#define F(string_literal)
Wrap a string literal stored in flash and access it using a String object.
Definition: WString.h:113
Definition: Display.h:22
Definition: AbstractDisplay.h:31
Orientation orientation
Definition: Libraries/Graphics/src/include/Graphics/Device.h:79
bool begin(uint16_t width=240, uint16_t height=320)
Size getNativeSize() const override
Get physical size of display.
Definition: Virtual.h:73
Surface * createSurface(size_t bufferSize=0) override
Create a surface for use with this render target.
bool setScrollMargins(uint16_t top, uint16_t bottom) override
Set margins for hardware scrolling.
bool scroll(int16_t y) override
Scroll region of display up or down using hardware scrolling.
@ Debug
Use standard software renderers, may run slower and less smoothly.
Virtual()
String getName() const override
Get name of display.
Definition: Virtual.h:69
PixelFormat getPixelFormat() const override
All surfaces support the same pixel format.
Definition: Virtual.h:86
~Virtual()
Size getSize() const override
Get target dimensions.
Definition: Virtual.h:81
bool setOrientation(Orientation orientation) override
Set display orientation.
Delegate< void(const void *buffer, size_t len)> TouchCallback
Definition: Virtual.h:49
bool begin(const String &ipaddr, uint16_t port, uint16_t width=240, uint16_t height=320)
Definition: Virtual.h:31
Orientation
Defines orientation of display.
Definition: Libraries/Graphics/src/include/Graphics/Types.h:47
constexpr Size rotate(Size size, Orientation orientation)
Definition: Libraries/Graphics/src/include/Graphics/Types.h:122
Size of rectangular area (width x height)
Definition: Libraries/Graphics/src/include/Graphics/Types.h:105