Files
LCUI/tests/scenes/breadcrumb_scene.h
Liu 263c62e531 feat(widgets): add breadcrumb widget
- 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
2026-11-08 00:20:26 +08:00

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 */