|
| | Canvas (ProductVariant variant=ProductVariant::Isf15acp4) noexcept |
| | Construct a canvas for the given product geometry.
|
| |
| void | Clear (Color565 color) noexcept |
| | Clear the framebuffer to a solid color.
|
| |
| void | SetPixel (uint8_t x, uint8_t y, Color565 color) noexcept |
| | Set one pixel if in bounds.
|
| |
| Color565 | GetPixel (uint8_t x, uint8_t y) const noexcept |
| | Get one pixel; returns black when out of bounds.
|
| |
| void | DrawHLine (uint8_t x0, uint8_t x1, uint8_t y, Color565 color) noexcept |
| | Draw a horizontal line inclusive of both endpoints.
|
| |
| void | DrawVLine (uint8_t x, uint8_t y0, uint8_t y1, Color565 color) noexcept |
| | Draw a vertical line inclusive of both endpoints.
|
| |
| void | DrawRect (const Rect &rect, Color565 color) noexcept |
| | Draw rectangle outline.
|
| |
| void | FillRect (const Rect &rect, Color565 color) noexcept |
| | Fill a solid rectangle.
|
| |
| void | DrawChar (uint8_t x, uint8_t y, char ch, Color565 color, Color565 bg=colors::Black) noexcept |
| | Draw a single character using the built-in 5x7 font.
|
| |
| void | DrawString (uint8_t x, uint8_t y, const char *text, Color565 color, Color565 bg=colors::Black) noexcept |
| | Draw a null-terminated string.
|
| |
| void | BlitRgb565 (uint8_t x, uint8_t y, uint8_t src_width, uint8_t src_height, const Color565 *src) noexcept |
| | Blit a contiguous RGB565 buffer into the canvas.
|
| |
| uint8_t | Width () const noexcept |
| |
| uint8_t | Height () const noexcept |
| |
| std::size_t | ByteSize () const noexcept |
| |
| const Color565 * | Data () const noexcept |
| |
| Color565 * | Data () noexcept |
| |
CPU-side RGB565 framebuffer with basic drawing operations.
The canvas stores pixels in row-major RGB565 order matching the SSD1331 download format for the selected product variant.