|
ginnOS
The reference: libc, the libraries and the kernel
|
#include </home/runner/work/ginnOS-docs/ginnOS-docs/ginnOS/src/drivers/video/display.h>
Data Fields | |
| const char * | name |
| uint32_t | max_width |
| uint32_t | max_height |
| bool(*) | set_mode (uint32_t width, uint32_t height, display_surface_t *out) |
| set a mode. | |
| bool(*) | preferred (uint32_t *width, uint32_t *height) |
| the size the screen wants (optional). | |
| void(*) | flush (uint32_t x, uint32_t y, uint32_t width, uint32_t height) |
| copy a rect of the framebuffer to the screen (optional: NULL when the screen shows the memory by itself). | |
| bool(*) | cursor_set (const uint32_t *pixels, uint32_t x, uint32_t y) |
| show a pointer over the framebuffer, drawn by the card (optional). | |
| void(*) | cursor_move (uint32_t x, uint32_t y) |
| move the pointer's top left corner to x, y (with cursor_set). | |
| const char* display_driver_t::name |
| uint32_t display_driver_t::max_width |
| uint32_t display_driver_t::max_height |
| bool(*) display_driver_t::set_mode(uint32_t width, uint32_t height, display_surface_t *out) |
set a mode.
| out | receives the framebuffer of the new mode. |
the size the screen wants (optional).
copy a rect of the framebuffer to the screen (optional: NULL when the screen shows the memory by itself).
show a pointer over the framebuffer, drawn by the card (optional).
| pixels | FB_CURSOR_SIZE x FB_CURSOR_SIZE a8r8g8b8, or NULL to hide the pointer. |
| x | where its top left corner goes. |
move the pointer's top left corner to x, y (with cursor_set).