Rishka
RISC-V virtual runtime in C/C++ made for ESP32-WROVER
Display Class Referencefinal

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...
 

Detailed Description

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.

Member Function Documentation

◆ screen_height()

i32 Display::screen_height ( )
static

Get the height of the screen.

Returns
The height of the screen in pixels.

This method retrieves the height of the entire screen. The value returned is in pixels and represents the total vertical resolution of the display.

◆ screen_width()

i32 Display::screen_width ( )
static

Get the width of the screen.

Returns
The width of the screen in pixels.

This method retrieves the width of the entire screen. The value returned is in pixels and represents the total horizontal resolution of the display.

◆ supported_colors()

i32 Display::supported_colors ( )
static

Get the number of supported colors.

Returns
The number of colors supported by the display.

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.

◆ viewport_height()

i32 Display::viewport_height ( )
static

Get the height of the viewport.

Returns
The height of the viewport in pixels.

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.

◆ viewport_width()

i32 Display::viewport_width ( )
static

Get the width of the viewport.

Returns
The width of the viewport in pixels.

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.


The documentation for this class was generated from the following files: