mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-12-01 16:56:34 +01:00
- add the window API and lifecycle design specs - lcui_init no longer creates a window; settings loading is explicit - add lcui_window_* create/bind/geometry/state/show/close api - replace display modes with window options and quit-on-last-window - add per-window event scopes and window-based pointer/keyboard routing - keep pending updates for widgets appended during a frame - migrate examples, tests, previews and internals docs - remove default-scope focus and mouseover getters
27 lines
669 B
C
27 lines
669 B
C
/*
|
|
* tests/previews/preview_breadcrumb.c
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#include <LCUI.h>
|
|
#include "preview_window.h"
|
|
#include <ptk/main.h>
|
|
#include "../scenes/breadcrumb_scene.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
breadcrumb_scene_t scene;
|
|
|
|
lcui_init();
|
|
breadcrumb_scene_build(&scene);
|
|
ui_widget_set_title(ui_root(), L"breadcrumb preview");
|
|
preview_show_default_window();
|
|
return lcui_main();
|
|
}
|