载入中...
搜索中...
未找到
ScenePanel.cpp
浏览该文件的文档.
Scene graph query/mutation surface (provided by the scene module).
Definition SceneQuery.h:30
virtual std::string activeHost() const =0
Name of the currently selected host, or "" when none.
virtual bool getNode(const std::string &id, SceneNodeInfo *out) const =0
Look up one node in the active host.
virtual std::vector< SceneNodeInfo > nodes(int limit) const =0
Depth-first node list of the active host, capped at limit.
bool selectNode(const std::string &id)
Selects a node by id; false when unknown or no scene module.
Definition ScenePanel.cpp:40
void setPickHandler(std::function< void(const std::string &)> handler)
Registers the pick handler for the Pick button.
Definition ScenePanel.cpp:50
static UIHost * createHost(const std::string &name="")
Definition UIHost.cpp:11
Definition Component.cpp:5
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:439
WidgetDesc checkbox(std::string label, bool checked, std::string id, std::function< void(bool)> onToggle)
Checkbox with a label; fires onToggle.
Definition Widget.cpp:279
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:363
WidgetDesc window(std::string title, std::vector< WidgetDesc > children, std::string id)
Top-level window widget with a title bar.
Definition Widget.cpp:225
WidgetDesc collapsingHeader(std::string label, std::vector< WidgetDesc > children, std::string id, bool defaultOpen)
Collapsible header containing child widgets.
Definition Widget.cpp:375
WidgetDesc button(std::string label, std::string id, std::function< void()> onClick)
Clickable button; fires onClick.
Definition Widget.cpp:244
WidgetDesc row(std::vector< WidgetDesc > children, std::string id)
Horizontal elastic layout row.
Definition Widget.cpp:431
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:13