ISF15ACP4 Driver 1.0.0
API reference
Loading...
Searching...
No Matches
Public Attributes | List of all members
isf15acp4::DisplayPresenter Struct Reference

Type-erased presenter used by HardwareDirect backend. More...

#include <isf15acp4_graphics_context.hpp>

Public Attributes

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}
 

Detailed Description

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.

Member Data Documentation

◆ 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: