Rishka
RISC-V virtual runtime in C/C++ made for ESP32-WROVER
|
Final class to interact with display hardware. More...
#include <display.h>
Static Public Member Functions | |
static i32 | screen_height () |
Get the height of the screen. More... | |
static i32 | screen_width () |
Get the width of the screen. More... | |
static i32 | viewport_height () |
Get the height of the viewport. More... | |
static i32 | viewport_width () |
Get the width of the viewport. More... | |
static i32 | supported_colors () |
Get the number of supported colors. More... | |
Final class to interact with display hardware.
The Display
class contains only static methods and cannot be instantiated. It provides methods to get the screen and viewport dimensions as well as the number of supported colors. This class serves as a utility for querying display properties, allowing developers to adapt their applications based on the display characteristics.
|
static |
Get the height of the screen.
This method retrieves the height of the entire screen. The value returned is in pixels and represents the total vertical resolution of the display.
|
static |
Get the width of the screen.
This method retrieves the width of the entire screen. The value returned is in pixels and represents the total horizontal resolution of the display.
|
static |
Get the number of supported colors.
This method retrieves the number of colors that the display hardware is capable of showing. This is an important characteristic for applications that need to adapt to differentdisplay capabilities and provide appropriate visual elements.
|
static |
Get the height of the viewport.
This method retrieves the height of the viewport, which is the area of the screen currently visible to the user. The value returned is in pixels and represents the vertical resolution of the viewport.
|
static |
Get the width of the viewport.
This method retrieves the width of the viewport, which is the area of the screen currently visible to the user. The value returned is in pixels and represents the horizontal resolution of the viewport.