Refine editor window architecture
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "UtilityWindows/EditorUtilityWindowKind.h"
|
||||
#include "UtilityWindows/EditorUtilityWindowPanel.h"
|
||||
#include "Platform/Win32/Windowing/EditorWindowState.h"
|
||||
|
||||
#include <XCEngine/UI/Types.h>
|
||||
|
||||
@@ -10,10 +11,18 @@
|
||||
|
||||
namespace XCEngine::UI::Editor::App {
|
||||
|
||||
enum class EditorUtilityWindowReusePolicy {
|
||||
SingleInstance = 0,
|
||||
};
|
||||
|
||||
struct EditorUtilityWindowDescriptor {
|
||||
EditorUtilityWindowKind kind = EditorUtilityWindowKind::None;
|
||||
std::string_view windowId = {};
|
||||
const wchar_t* title = L"";
|
||||
EditorUtilityWindowReusePolicy reusePolicy =
|
||||
EditorUtilityWindowReusePolicy::SingleInstance;
|
||||
EditorWindowChromePolicy chromePolicy = {};
|
||||
EditorWindowNativeStylePolicy nativeStylePolicy = {};
|
||||
::XCEngine::UI::UISize preferredOuterSize = {};
|
||||
::XCEngine::UI::UISize minimumOuterSize = {};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user