Type-erased presenter used by HardwareDirect backend.
More...
#include <isf15acp4_graphics_context.hpp>
|
| bool(* | draw_pixel )(void *ctx, uint8_t x, uint8_t y, Color565 color) noexcept |
| |
| bool(* | draw_line )(void *ctx, Point a, Point b, Color565 color) noexcept |
| |
| bool(* | draw_rect )(void *ctx, Rect r, Color565 color, bool filled) noexcept |
| |
| bool(* | fill_screen )(void *ctx, Color565 color) noexcept |
| |
| bool(* | flush_canvas )(void *ctx, const Color565 *data, std::size_t bytes) noexcept |
| |
| void * | context {nullptr} |
| |
Type-erased presenter used by HardwareDirect backend.
SmartDisplay registers itself via BindPresenter() so hardware-direct drawing can forward without virtual calls in the hot SPI path.
◆ context
| void* isf15acp4::DisplayPresenter::context {nullptr} |
◆ draw_line
| bool(* isf15acp4::DisplayPresenter::draw_line) (void *ctx, Point a, Point b, Color565 color) noexcept |
|
inlinenoexcept |
◆ draw_pixel
| bool(* isf15acp4::DisplayPresenter::draw_pixel) (void *ctx, uint8_t x, uint8_t y, Color565 color) noexcept |
|
inlinenoexcept |
◆ draw_rect
| bool(* isf15acp4::DisplayPresenter::draw_rect) (void *ctx, Rect r, Color565 color, bool filled) noexcept |
|
inlinenoexcept |
◆ fill_screen
| bool(* isf15acp4::DisplayPresenter::fill_screen) (void *ctx, Color565 color) noexcept |
|
inlinenoexcept |
◆ flush_canvas
| bool(* isf15acp4::DisplayPresenter::flush_canvas) (void *ctx, const Color565 *data, std::size_t bytes) noexcept |
|
inlinenoexcept |
The documentation for this struct was generated from the following file: