feat(bar): bar item 扩展钩子功能 bar cell 添加 fixed_width 属性与操作接口

- item type 加入可为空的 after_layout 和 after_draw 钩子
- cell 加 fixed_width 属性, cell api 添加 cell_set_fixed_width 和
  cell_get_region 两个接口
- cell api 改为 const 避免外部修改
This commit is contained in:
2026-06-28 02:04:20 +08:00
parent 27aab6f0e9
commit 6b75cda128
5 changed files with 134 additions and 32 deletions

View File

@@ -12,4 +12,4 @@ void bar_cell_set_region(
bar_x_region_t region
);
extern zdwm_bar_cell_api_t bar_cell_api;
extern const zdwm_bar_cell_api_t bar_cell_api;