关键节点
This commit is contained in:
27
editor/app/UtilityWindows/EditorUtilityWindowRegistry.h
Normal file
27
editor/app/UtilityWindows/EditorUtilityWindowRegistry.h
Normal 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
|
||||
Reference in New Issue
Block a user