载入中...
搜索中...
未找到
EditorShell.cpp
浏览该文件的文档.
bool togglePanel(const std::string &name)
Toggles one panel without hiding the other docked panels.
Definition EditorShell.cpp:96
bool selectPanel(const std::string &name)
Shows one panel and hides the others.
Definition EditorShell.cpp:66
UIHostHandle host() const noexcept
Returns the menu-bar host handle, or an empty handle until open().
Definition EditorShell.h:42
void open(UIHostHandle inspector, UIHostHandle database, UIHostHandle scene)
Mounts the menu bar and docks the given panel hosts.
Definition EditorShell.cpp:22
ECS mount point for one UI panel/screen. Subclass to attach UI to game entities, e....
Definition UIHost.h:243
static UIHostHandle createHost(const std::string &name="")
Creates an ECS-owned UI host.
Definition UIHost.cpp:48
static eve::OptionalRef< UIHost > resolve(UIHostHandle handle) noexcept
Resolves a UI host handle with ECS generation checking.
Definition UIHost.cpp:61
Definition Component.cpp:5
WidgetDesc badge(std::string label, std::string id)
Compact status/category pill. Tint controls its background color.
Definition Widget.cpp:489
@ EyeSlash
@ Layers
@ Sliders
@ Database
@ Cubes
WidgetDesc window(std::string title, std::vector< WidgetDesc > children, std::string id)
Top-level window widget with a title bar.
Definition Widget.cpp:292
WidgetDesc spacer(std::string id, float grow)
Flexible empty space; default flexGrow=1 so it absorbs free space in a Flex parent.
Definition Widget.cpp:697
WidgetDesc toolbar(std::vector< WidgetDesc > children, std::string id)
Horizontal editor command strip; Spacer children absorb free width.
Definition Widget.cpp:563
WidgetDesc iconButton(Icon value, std::string label, std::string id, std::function< void()> onClick)
Button containing a semantic icon and optional visible label.
Definition Widget.cpp:323
Declarative widget description (build once / on dirty → flatten into UIHost::Tree).
Definition Widget.h:15