载入中...
搜索中...
未找到
WorkspaceLayoutShell.cpp
浏览该文件的文档.
28WidgetDesc fillPanel(const WorkspacePanelDescriptor &panel, WorkspaceLayoutShell::ContentBuilder content) {
135 WidgetDesc frame = ui::appFrame(std::move(body), std::move(toolbar), std::move(statusBar), "app-frame");
Composition model shared by project-specific developer and runtime editors.
Definition EditorWorkspace.h:43
Result< WorkspacePanelDescriptor > panelAt(std::size_t index) const
Return an owning panel snapshot instead of an ambiguous empty field.
Definition EditorVolumeTarget.cpp:190
int getPanelCount() const
Number of registered panels in deterministic region/order/id order.
Definition EditorWorkspace.h:93
const std::string & getActivePanel() const
Active panel id, or an empty string.
Definition EditorWorkspace.h:90
static std::vector< editor::WorkspacePanelDescriptor > panelsInRegion(const editor::EditorWorkspace &workspace, std::string_view region)
Collect visible panels for one region in deterministic order.
Definition WorkspaceLayoutShell.cpp:68
static ui::WidgetDesc buildDockBody(const editor::EditorWorkspace &workspace, ContentBuilder content={}, WorkspaceShellOptions options={})
Compose only the dock body (SplitPane + DockArea tree) without a Window. Useful when the caller alrea...
Definition WorkspaceLayoutShell.cpp:88
std::function< std::vector< ui::WidgetDesc >(const editor::WorkspacePanelDescriptor &panel)> ContentBuilder
Build panel body content for one workspace descriptor.
Definition WorkspaceLayoutShell.h:56
static ui::WidgetDesc buildWindow(const editor::EditorWorkspace &workspace, ContentBuilder content={}, WorkspaceShellOptions options={})
Compose a full Window tree for the workspace.
Definition WorkspaceLayoutShell.cpp:128
Definition UiEditorModule.cpp:17
WidgetDesc panelFrame(std::string title, std::vector< WidgetDesc > children, std::string id)
Fixed titled panel chrome for dock regions (not a free-floating Window host).
Definition Widget.cpp:767
@ Column
WidgetDesc tabContainer(std::vector< WidgetDesc > pages, std::string activePageId, std::string id, std::function< void(const std::string &)> onSelect)
Tab strip plus page bodies; only the active page is visible.
Definition Widget.cpp:739
WidgetDesc window(std::string title, std::vector< WidgetDesc > children, std::string id)
Top-level window widget with a title bar.
Definition Widget.cpp:326
WidgetDesc appFrame(WidgetDesc body, WidgetDesc toolbarWidget, WidgetDesc statusBarWidget, std::string id)
Fixed editor frame: optional toolbar, growing body, optional status bar. Place as a Window child (Men...
Definition Widget.cpp:793
WidgetDesc splitPane(FlexDirection direction, WidgetDesc first, WidgetDesc second, float ratio, std::string id, std::function< void(float)> onResize)
Two resizable panes separated by a drag handle.
Definition Widget.cpp:699
WidgetDesc dockArea(std::string region, std::vector< WidgetDesc > children, std::string id)
Named dock fill slot; region name is stored in valueText (left/right/top/bottom/center)....
Definition Widget.cpp:780
Definition Container.h:602
UI-neutral description of one composable editor panel.
Definition EditorWorkspace.h:23
Declarative widget description (build once / on dirty → flatten into UIHost::Tree).
Definition Widget.h:15
Options that control the fixed IDE chrome produced by WorkspaceLayoutShell.
Definition WorkspaceLayoutShell.h:17