feat(bar): 实现 bar 布局排版和渲染绘制流程

This commit is contained in:
2026-06-09 20:01:11 +08:00
parent fa2f058032
commit 4535e171a0
13 changed files with 318 additions and 109 deletions

View File

@@ -98,7 +98,7 @@ void draw_text(
cairo_t *cr,
text_context_t *context,
const char *text,
color_t *color,
const color_t *color,
zdwm_rect_t area
) {
assert(cr);
@@ -127,7 +127,7 @@ void draw_text(
pango_cairo_show_layout(cr, layout);
}
void draw_background(cairo_t *cr, color_t *color, zdwm_rect_t area) {
void draw_background(cairo_t *cr, const color_t *color, zdwm_rect_t area) {
cairo_move_to(cr, area.x, area.y);
cairo_set_source_rgba(
cr,