15#define ICON_DECOMPRESSOR_BUFFER_SIZE (128u * 64 / 8)
21typedef void (*CanvasCommitCallback)(
28 CanvasCommitCallback callback;
34#define M_OPL_CanvasCallbackPairArray_t() ARRAY_OPLIST(CanvasCallbackPairArray, M_POD_OPLIST)
36ALGO_DEF(CanvasCallbackPairArray, CanvasCallbackPairArray_t);
48 CanvasCallbackPairArray_t canvas_callback_pair;
126 const uint8_t* bitmap,
147 CanvasCommitCallback callback,
CanvasOrientation
Canvas Orientation.
Definition canvas.h:45
IconRotation
Icon rotation.
Definition canvas.h:77
void canvas_remove_framebuffer_callback(Canvas *canvas, CanvasCommitCallback callback, void *context)
Remove canvas commit callback.
Definition canvas.c:582
void canvas_add_framebuffer_callback(Canvas *canvas, CanvasCommitCallback callback, void *context)
Add canvas commit callback.
Definition canvas.c:571
void canvas_set_orientation(Canvas *canvas, CanvasOrientation orientation)
Set canvas orientation.
Definition canvas.c:531
void canvas_free(Canvas *canvas)
Free canvas memory.
Definition canvas.c:41
size_t canvas_get_buffer_size(const Canvas *canvas)
Get canvas buffer size.
Definition canvas.c:91
CanvasOrientation canvas_get_orientation(const Canvas *canvas)
Get canvas orientation.
Definition canvas.c:567
void canvas_draw_u8g2_bitmap(u8g2_t *u8g2, int32_t x, int32_t y, size_t width, size_t height, const uint8_t *bitmap, IconRotation rotation)
Draw a u8g2 bitmap.
Definition canvas.c:351
void canvas_frame_set(Canvas *canvas, int32_t offset_x, int32_t offset_y, size_t width, size_t height)
Set drawing region relative to real screen buffer.
Definition canvas.c:96
Canvas * canvas_init(void)
Allocate memory and initialize canvas.
Definition canvas.c:16
uint8_t * canvas_get_buffer(Canvas *canvas)
Get canvas buffer.
Definition canvas.c:86
LZSS based compression HAL API.
Canvas structure.
Definition canvas_i.h:40