feat(bar): 实现 bar_draw 渲染骨架及文字排版绘制接口

This commit is contained in:
2026-06-08 22:57:34 +08:00
parent 62f6bab611
commit 8c145fb1b4
5 changed files with 126 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
#include <cairo.h>
#include <stddef.h>
#include <stdint.h>
#include <zdwm/bar.h>
#include <zdwm/types.h>
@@ -13,6 +14,8 @@ typedef struct bar_output_t {
cairo_t *cr;
zdwm_window_id_t window_id;
zdwm_output_id_t output_id;
int32_t width;
int32_t height;
bar_side_t sides[ZDWM_BAR_SIDE_COUNT];
} bar_output_t;
@@ -33,3 +36,4 @@ typedef struct bar_t {
void bar_init(bar_t *bar);
void bar_cleanup(bar_t *bar);
void bar_draw(bar_t *bar);