46 CanvasOrientationHorizontal,
47 CanvasOrientationHorizontalFlip,
48 CanvasOrientationVertical,
49 CanvasOrientationVerticalFlip,
54 CanvasDirectionLeftToRight,
55 CanvasDirectionTopToBottom,
56 CanvasDirectionRightToLeft,
57 CanvasDirectionBottomToTop,
62 uint8_t leading_default;
234 const uint8_t* compressed_bitmap_data);
288 const uint8_t* bitmap);
307 const uint8_t* bitmap_data);
void canvas_draw_xbm_ex(Canvas *canvas, int32_t x, int32_t y, size_t width, size_t height, IconRotation rotation, const uint8_t *bitmap_data)
Draw rotated XBM bitmap.
Definition canvas.c:518
void canvas_draw_triangle(Canvas *canvas, int32_t x, int32_t y, size_t base, size_t height, CanvasDirection dir)
Draw triangle with given base and height lengths and their intersection coordinate.
Definition canvas.c:480
void canvas_draw_str(Canvas *canvas, int32_t x, int32_t y, const char *str)
Draw string at position of baseline defined by x, y.
Definition canvas.c:177
void canvas_draw_dot(Canvas *canvas, int32_t x, int32_t y)
Draw dot at x,y.
Definition canvas.c:410
IconFlip
Icon flip.
Definition canvas.h:69
void canvas_set_font(Canvas *canvas, Font font)
Set drawing font.
Definition canvas.c:155
void canvas_draw_disc(Canvas *canvas, int32_t x, int32_t y, size_t radius)
Draw disc at x,y with radius r.
Definition canvas.c:473
const CanvasFontParameters * canvas_get_font_params(const Canvas *canvas, Font font)
Get font parameters.
Definition canvas.c:130
void canvas_draw_box(Canvas *canvas, int32_t x, int32_t y, size_t width, size_t height)
Draw box of width, height at x,y.
Definition canvas.c:417
CanvasDirection
Font Direction.
Definition canvas.h:53
void canvas_draw_xbm(Canvas *canvas, int32_t x, int32_t y, size_t width, size_t height, const uint8_t *bitmap)
Draw XBM bitmap.
Definition canvas.c:507
void canvas_draw_rbox(Canvas *canvas, int32_t x, int32_t y, size_t width, size_t height, size_t radius)
Draw rounded-corner box of width, height at x,y, with round value raduis.
Definition canvas.c:424
void canvas_set_bitmap_mode(Canvas *canvas, bool alpha)
Set transparency mode.
Definition canvas.c:539
Font
Fonts enumeration.
Definition canvas.h:25
void canvas_draw_line(Canvas *canvas, int32_t x1, int32_t y1, int32_t x2, int32_t y2)
Draw line from x1,y1 to x2,y2.
Definition canvas.c:457
void canvas_draw_icon_ex(Canvas *canvas, int32_t x, int32_t y, const Icon *icon, IconRotation rotation)
Draw icon at position defined by x,y with rotation and flip.
Definition canvas.c:381
void canvas_set_color(Canvas *canvas, Color color)
Set drawing color.
Definition canvas.c:141
void canvas_draw_circle(Canvas *canvas, int32_t x, int32_t y, size_t radius)
Draw circle at x,y with radius r.
Definition canvas.c:466
size_t canvas_width(const Canvas *canvas)
Get Canvas width.
Definition canvas.c:109
void canvas_invert_color(Canvas *canvas)
Invert drawing color.
Definition canvas.c:151
void canvas_draw_glyph(Canvas *canvas, int32_t x, int32_t y, uint16_t ch)
Draw glyph.
Definition canvas.c:532
void canvas_commit(Canvas *canvas)
Commit canvas.
Definition canvas.c:69
CanvasOrientation
Canvas Orientation.
Definition canvas.h:45
void canvas_reset(Canvas *canvas)
Reset canvas drawing tools configuration.
Definition canvas.c:59
size_t canvas_glyph_width(Canvas *canvas, uint16_t symbol)
Get glyph width.
Definition canvas.c:234
void canvas_draw_str_aligned(Canvas *canvas, int32_t x, int32_t y, Align horizontal, Align vertical, const char *str)
Draw aligned string defined by x, y.
Definition canvas.c:185
void canvas_draw_icon_animation(Canvas *canvas, int32_t x, int32_t y, IconAnimation *icon_animation)
Draw animation at position defined by x,y.
Definition canvas.c:255
Align
Alignment enumeration.
Definition canvas.h:36
IconRotation
Icon rotation.
Definition canvas.h:77
void canvas_draw_frame(Canvas *canvas, int32_t x, int32_t y, size_t width, size_t height)
Draw frame of width, height at x,y.
Definition canvas.c:437
Color
Color enumeration.
Definition canvas.h:18
void canvas_clear(Canvas *canvas)
Clear canvas.
Definition canvas.c:136
void canvas_set_custom_u8g2_font(Canvas *canvas, const uint8_t *font)
Set custom drawing font.
Definition canvas.c:171
void canvas_set_font_direction(Canvas *canvas, CanvasDirection dir)
Set font swap Argument String Rotation Description.
Definition canvas.c:146
uint16_t canvas_string_width(Canvas *canvas, const char *str)
Get string width.
Definition canvas.c:228
size_t canvas_current_font_height(const Canvas *canvas)
Get current font height.
Definition canvas.c:119
void canvas_draw_icon(Canvas *canvas, int32_t x, int32_t y, const Icon *icon)
Draw icon at position defined by x,y.
Definition canvas.c:398
void canvas_draw_bitmap(Canvas *canvas, int32_t x, int32_t y, size_t width, size_t height, const uint8_t *compressed_bitmap_data)
Draw bitmap picture at position defined by x,y.
Definition canvas.c:239
void canvas_draw_rframe(Canvas *canvas, int32_t x, int32_t y, size_t width, size_t height, size_t radius)
Draw rounded-corner frame of width, height at x,y, with round value radius.
Definition canvas.c:444
size_t canvas_height(const Canvas *canvas)
Get Canvas height.
Definition canvas.c:114
Font parameters.
Definition canvas.h:61
Canvas structure.
Definition canvas_i.h:40
Definition icon_animation_i.h:12