Cut workspace panel factory out of windowing

This commit is contained in:
2026-04-28 00:05:10 +08:00
parent 03967b152d
commit 43a71bd09c
11 changed files with 50 additions and 30 deletions

View File

@@ -96,8 +96,14 @@ void EditorShellRuntime::ClearExternalDockHostDropPreview() {
.dockHostState.dropPreview = {};
}
EditorWorkspacePanelCursorKind EditorShellRuntime::GetHostedContentCursorKind() const {
return m_workspacePanels.GetHostedContentCursorKind();
EditorWorkspaceShellCursorKind EditorShellRuntime::GetHostedContentCursorKind() const {
switch (m_workspacePanels.GetHostedContentCursorKind()) {
case EditorWorkspacePanelCursorKind::ResizeEW:
return EditorWorkspaceShellCursorKind::ResizeEW;
case EditorWorkspacePanelCursorKind::Arrow:
default:
return EditorWorkspaceShellCursorKind::Arrow;
}
}
Widgets::UIEditorDockHostCursorKind EditorShellRuntime::GetDockCursorKind() const {