mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
- add the breadcrumb family: root, list, item, link, page, separator, ellipsis - build from a path with a per-call label provider, append_item/append, or explicit data-path items - collapse overflowing items while keeping as many trailing nodes as fit; the ellipsis opens a Portal-based dropdown - emit change with the clicked node key; pages, disabled items, and custom append content never emit - add theme rules, integration tests, a preview scene, and zh-CN docs with C/XML/TSX demos
27 lines
687 B
C
27 lines
687 B
C
/*
|
|
* tests/scenes/breadcrumb_scene.h
|
|
*
|
|
* Copyright (c) 2026, Liu Chao <hello@lcui.dev> All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
* This file is part of LCUI, distributed under the MIT License found in the
|
|
* LICENSE.TXT file in the root directory of this source tree.
|
|
*/
|
|
|
|
#ifndef LCUI_TESTS_SCENES_BREADCRUMB_SCENE_H
|
|
#define LCUI_TESTS_SCENES_BREADCRUMB_SCENE_H
|
|
|
|
#include <ui.h>
|
|
|
|
typedef struct breadcrumb_scene {
|
|
ui_widget_t *wide;
|
|
ui_widget_t *narrow;
|
|
ui_widget_t *custom;
|
|
ui_widget_t *explicit_mode;
|
|
} breadcrumb_scene_t;
|
|
|
|
void breadcrumb_scene_build(breadcrumb_scene_t *scene);
|
|
|
|
#endif /* LCUI_TESTS_SCENES_BREADCRUMB_SCENE_H */
|