The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
display_driver_t Struct Reference

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

Field Documentation

◆ name

const char* display_driver_t::name

◆ max_width

uint32_t display_driver_t::max_width

◆ max_height

uint32_t display_driver_t::max_height

◆ set_mode

bool(*) display_driver_t::set_mode(uint32_t width, uint32_t height, display_surface_t *out)

set a mode.

Parameters
outreceives the framebuffer of the new mode.
Returns
false if the size is not possible (the old mode stays).

◆ preferred

bool(*) display_driver_t::preferred(uint32_t *width, uint32_t *height)

the size the screen wants (optional).

Returns
false if it does not know.

◆ flush

void(*) display_driver_t::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).

◆ cursor_set

bool(*) display_driver_t::cursor_set(const uint32_t *pixels, uint32_t x, uint32_t y)

show a pointer over the framebuffer, drawn by the card (optional).

Parameters
pixelsFB_CURSOR_SIZE x FB_CURSOR_SIZE a8r8g8b8, or NULL to hide the pointer.
xwhere its top left corner goes.
Returns
false if the card refused.

◆ cursor_move

void(*) display_driver_t::cursor_move(uint32_t x, uint32_t y)

move the pointer's top left corner to x, y (with cursor_set).


The documentation for this struct was generated from the following file: