关键节点

This commit is contained in:
2026-04-25 16:46:01 +08:00
parent 6002d86a7e
commit ef41c44464
516 changed files with 6175 additions and 12401 deletions

View File

@@ -0,0 +1,48 @@
#pragma once
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include "UtilityWindows/EditorUtilityWindowKind.h"
#include <windows.h>
#include <optional>
#include <string>
namespace XCEngine::UI::Editor::App {
struct EditorWindowPanelTransferRequest {
std::string nodeId = {};
std::string panelId = {};
POINT screenPoint = {};
bool IsValid() const {
return !nodeId.empty() && !panelId.empty();
}
};
struct EditorWindowOpenUtilityWindowRequest {
EditorUtilityWindowKind kind = EditorUtilityWindowKind::None;
POINT screenPoint = {};
bool useCursorPlacement = false;
bool IsValid() const {
return kind != EditorUtilityWindowKind::None;
}
};
struct EditorWindowFrameTransferRequests {
std::optional<EditorWindowPanelTransferRequest> beginGlobalTabDrag = {};
std::optional<EditorWindowPanelTransferRequest> detachPanel = {};
std::optional<EditorWindowOpenUtilityWindowRequest> openUtilityWindow = {};
bool HasPendingRequests() const {
return beginGlobalTabDrag.has_value() ||
detachPanel.has_value() ||
openUtilityWindow.has_value();
}
};
} // namespace XCEngine::UI::Editor::App