LibGUI: Add API to retrieve Window's underlying framebuffer

This commit is contained in:
Bananymous 2024-11-27 13:29:42 +02:00
parent a6fc3cf7a6
commit f985673dc3
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,8 @@ namespace LibGUI
return m_framebuffer[y * m_width + x];
}
BAN::Span<uint32_t> pixels() { return m_framebuffer.span(); }
void fill_rect(int32_t x, int32_t y, uint32_t width, uint32_t height, uint32_t color);
void fill(uint32_t color) { return fill_rect(0, 0, width(), height(), color); }