Struct SYN_Canvas¶
Canvas instance — framebuffer + drawing state.
#include <syn_canvas.h>
Public Attributes¶
| Type | Name |
|---|---|
| uint8_t | bpp |
| size_t | buf_size |
| int16_t | clip_h |
| int16_t | clip_w |
| int16_t | clip_x |
| int16_t | clip_y |
| void * | flush_ctx |
| SYN_Canvas_FlushFn | flush_fn |
| const SYN_Font * | font |
| uint8_t * | framebuf |
| uint16_t | height |
| uint16_t | width |
Public Attributes Documentation¶
variable bpp¶
Bits per pixel (1 or 16)
variable buf_size¶
Total buffer size (bytes)
variable clip_h¶
Clip region height
variable clip_w¶
Clip region width
variable clip_x¶
Clip region left edge
variable clip_y¶
Clip region top edge
variable flush_ctx¶
Context for flush callback
variable flush_fn¶
Push framebuf to display
variable font¶
Active font
variable framebuf¶
Caller-owned pixel buffer
variable height¶
Display height in pixels
variable width¶
Display width in pixels
The documentation for this class was generated from the following file src/syntropic/display/syn_canvas.h