GUI Components

[中文]

GUI components define the backend-neutral document model used by ESP-Brookesia applications and the LVGL backend that renders the resolved model.

flowchart TD
    A["GUI Packages / System UI"]
    B["**brookesia_gui_interface**<br/>· JSON UI document model<br/>· Runtime resources and bindings<br/>· Backend-neutral rendering contract"]
    C["**brookesia_gui_lvgl**<br/>· LVGL object mapping<br/>· Event and animation bridge<br/>· Image packaging helpers"]
    D["**LVGL / Display Service**<br/>· Display driver and screen refresh<br/>· Input event dispatch<br/>· Device-specific rendering entry"]

    A -->|"Declares UI resources"| B
    B -->|"Parses and adapts backend"| C
    C -->|"Creates and updates objects"| D

Component Roles

  • brookesia_gui_interface defines JSON UI documents, runtime resources, bindings, actions, and backend contracts.

  • brookesia_gui_lvgl maps resolved GUI documents to LVGL objects and provides image packaging helpers.

  • System components normally combine both layers so applications can load UI resources without depending on LVGL details.