Refactor new_editor window architecture and routing

This commit is contained in:
2026-04-23 14:11:33 +08:00
parent 5c0a878aa0
commit af5690395d
121 changed files with 1647 additions and 1592 deletions

View File

@@ -0,0 +1,27 @@
#pragma once
#include "UtilityWindows/EditorUtilityWindowKind.h"
#include "UtilityWindows/EditorUtilityWindowPanel.h"
#include <XCEngine/UI/Types.h>
#include <memory>
#include <string_view>
namespace XCEngine::UI::Editor::App {
struct EditorUtilityWindowDescriptor {
EditorUtilityWindowKind kind = EditorUtilityWindowKind::None;
std::string_view windowId = {};
const wchar_t* title = L"";
::XCEngine::UI::UISize preferredOuterSize = {};
::XCEngine::UI::UISize minimumOuterSize = {};
};
const EditorUtilityWindowDescriptor* ResolveEditorUtilityWindowDescriptor(
EditorUtilityWindowKind kind);
std::unique_ptr<EditorUtilityWindowPanel> CreateEditorUtilityWindowPanel(
EditorUtilityWindowKind kind);
} // namespace XCEngine::UI::Editor::App