趣带

与趣带(LiteGFX)合作,基于 HoneyGUI 推出了各种酷炫的小部件和智能手表表盘。

使用方法

HoneyGUI 已经做好了趣带特效控件层的封装,因此不需要单独创建和配置控件。只需调用特效创建的 API 即可。如果要在模拟器上运行 LiteGFX,请在 menu_config.h 中启用宏 CONFIG_REALTEK_BUILD_LITE_GFX

示例

通知




static void design_app_watch_ui(gui_app_t *app)
{
    extern void design_tab_app_notifications(void *parent);
    design_tab_app_notifications(&(app->screen));
}

能量盒




static void design_app_watch_ui(gui_app_t *app)
{
    extern void design_tab_app_energybox(void *parent);
    design_tab_app_energybox(&(app->screen));
}

棱镜




static void design_app_watch_ui(gui_app_t *app)
{
    extern void design_tab_app_prsim_refl(void *parent);
    design_tab_app_prsim_refl(&(app->screen));
}

数字时钟




static void design_app_watch_ui(gui_app_t *app)
{
    gui_tabview_t *tv = gui_tabview_create(&(app->screen), "tabview", 0, 0, 0, 0);
    gui_tab_t *tab0 = gui_tab_create(tv, "tab0", 0, 0, 0, 0, 0, 0);

    extern void design_tab_watchface_digit_clock(void *parent);
    design_tab_watchface_digit_clock(tab0);
}

蝴蝶




static void design_app_watch_ui(gui_app_t *app)
{
    gui_tabview_t *tv = gui_tabview_create(&(app->screen), "tabview", 0, 0, 0, 0);
    gui_tab_t *tab0 = gui_tab_create(tv, "tab0", 0, 0, 0, 0, 0, 0);

    gui_font_mem_init(SIMKAI_SIZE32_BITS2_FONT_BIN);
    extern void design_tab_watchface_butterfly(void *parent);
    design_tab_watchface_butterfly(tab0);

}

落樱




static void design_app_watch_ui(gui_app_t *app)
{
    gui_tabview_t *tv = gui_tabview_create(&(app->screen), "tabview", 0, 0, 0, 0);
    gui_tab_t *tab0 = gui_tab_create(tv, "tab0", 0, 0, 0, 0, 0, 0);

    extern void design_tab_watchface_flowerfall(void *parent);
    design_tab_watchface_flowerfall(tab0);
}

风车




static void design_app_watch_ui(gui_app_t *app)
{
    gui_tabview_t *tv = gui_tabview_create(&(app->screen), "tabview", 0, 0, 0, 0);
    gui_tab_t *tab0 = gui_tab_create(tv, "tab0", 0, 0, 0, 0, 0, 0);

    extern void design_tab_watchface_windmill(void *parent);
    design_tab_watchface_windmill(tab0);
}

API

参考上述示例,建议用户直接使用上层提供的特效 API,而非控件层 API。

警告

doxygenfile: Cannot find file “gui_widget_litegfx.h