Rishka
RISC-V virtual runtime in C/C++ made for ESP32-WROVER
display.h
Go to the documentation of this file.
1/*
2 * This file is part of the Rishka distribution (https://github.com/nthnn/rishka).
3 * Copyright (c) 2024 Nathanne Isip.
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
33#ifndef LIBRISHKA_DRIVERS_DISPLAY_H
34#define LIBRISHKA_DRIVERS_DISPLAY_H
35
36#include <librishka/types.h>
37
52class Display final {
53public:
63 static i32 screen_height();
64
74 static i32 screen_width();
75
85 static i32 viewport_height();
86
96 static i32 viewport_width();
97
109 static i32 supported_colors();
110};
111
112#endif
Final class to interact with display hardware.
Definition: display.h:52
static i32 viewport_width()
Get the width of the viewport.
Definition: librishka_drivers_display.cpp:16
static i32 supported_colors()
Get the number of supported colors.
Definition: librishka_drivers_display.cpp:20
static i32 screen_height()
Get the height of the screen.
Definition: librishka_drivers_display.cpp:4
static i32 viewport_height()
Get the height of the viewport.
Definition: librishka_drivers_display.cpp:12
static i32 screen_width()
Get the width of the screen.
Definition: librishka_drivers_display.cpp:8
Header file for common data types used in Rishka applications.
signed int i32
Alias for the signed 32-bit integer type.
Definition: types.h:58