A physical display device. More...
#include <Device.h>
Public Member Functions | |
virtual | ~Device () |
virtual String | getName () const =0 |
Get name of display. More... | |
virtual bool | setOrientation (Orientation orientation)=0 |
Set display orientation. More... | |
virtual Size | getNativeSize () const =0 |
Get physical size of display. More... | |
Orientation | getOrientation () |
Get current display orientation. More... | |
virtual bool | setScrollMargins (uint16_t top, uint16_t bottom)=0 |
Set margins for hardware scrolling. More... | |
virtual bool | scroll (int16_t y)=0 |
Scroll region of display up or down using hardware scrolling. More... | |
Protected Attributes | |
Orientation | orientation {} |
Detailed Description
A physical display device.
Constructor & Destructor Documentation
◆ ~Device()
|
inlinevirtual |
Member Function Documentation
◆ getName()
|
pure virtual |
Get name of display.
Implemented in Graphics::Display::ST7789V, Graphics::Display::NullDevice, Graphics::Display::ILI9341, and Graphics::Display::Virtual.
◆ getNativeSize()
|
pure virtual |
Get physical size of display.
- Return values
-
Size Dimensions for NORMAL orientation
Implemented in Graphics::MipiDisplay, Graphics::Display::NullDevice, and Graphics::Display::Virtual.
◆ getOrientation()
|
inline |
Get current display orientation.
◆ scroll()
|
pure virtual |
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.
Implemented in Graphics::MipiDisplay, Graphics::Display::NullDevice, and Graphics::Display::Virtual.
◆ setOrientation()
|
pure virtual |
Set display orientation.
Implemented in Graphics::MipiDisplay, Graphics::Display::NullDevice, and Graphics::Display::Virtual.
◆ setScrollMargins()
|
pure virtual |
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.
Implemented in Graphics::MipiDisplay, Graphics::Display::NullDevice, and Graphics::Display::Virtual.
Member Data Documentation
◆ orientation
|
protected |
The documentation for this class was generated from the following file: