载入中...
搜索中...
未找到
ScenePanel.cpp
浏览该文件的文档.
Scene graph query/mutation surface (provided by the scene module).
Definition SceneQuery.h:30
UIHostHandle host() const noexcept
Returns the mounted scene host handle, or an empty handle until open().
Definition ScenePanel.h:43
bool selectNode(const std::string &id)
Selects a node by id; false when unknown or no scene module.
Definition ScenePanel.cpp:46
void setPickHandler(std::function< void(const std::string &)> handler)
Registers the pick handler for the Pick button.
Definition ScenePanel.cpp:56
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 collapsingHeader(std::string label, std::vector< WidgetDesc > children, std::string id, bool defaultOpen)
Collapsible header containing child widgets.
Definition Widget.cpp:623
WidgetDesc checkbox(std::string label, bool checked, std::string id, std::function< void(bool)> onToggle)
Checkbox with a label; fires onToggle.
Definition Widget.cpp:353
WidgetDesc inputText(std::string label, std::string value, std::string id, std::function< void(const std::string &)> onChange)
Editable text field; fires onTextChange.
Definition Widget.cpp:453
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 button(std::string label, std::string id, std::function< void()> onClick)
Clickable button; fires onClick.
Definition Widget.cpp:311
WidgetDesc row(std::vector< WidgetDesc > children, std::string id)
Horizontal elastic layout row.
Definition Widget.cpp:679
Serializable snapshot of one scene node (value type, no scene types).
Definition SceneQuery.h:17
Declarative widget description (build once / on dirty → flatten into UIHost::Tree).
Definition Widget.h:15