34 lines
729 B
C++
34 lines
729 B
C++
#pragma once
|
|
|
|
#ifndef NOMINMAX
|
|
#define NOMINMAX
|
|
#endif
|
|
|
|
#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 EditorWindowFrameTransferRequests {
|
|
std::optional<EditorWindowPanelTransferRequest> beginGlobalTabDrag = {};
|
|
std::optional<EditorWindowPanelTransferRequest> detachPanel = {};
|
|
|
|
bool HasPendingRequests() const {
|
|
return beginGlobalTabDrag.has_value() || detachPanel.has_value();
|
|
}
|
|
};
|
|
|
|
} // namespace XCEngine::UI::Editor::App
|