28 lines
714 B
C++
28 lines
714 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace XCEngine::UI::Editor::App {
|
|
|
|
enum class EditorShellPointerOwner : std::uint8_t {
|
|
None = 0,
|
|
DockHost,
|
|
SceneViewport,
|
|
GameViewport,
|
|
HierarchyPanel,
|
|
ProjectPanel,
|
|
};
|
|
|
|
constexpr bool IsShellPointerOwner(EditorShellPointerOwner owner) {
|
|
return owner == EditorShellPointerOwner::DockHost ||
|
|
owner == EditorShellPointerOwner::SceneViewport ||
|
|
owner == EditorShellPointerOwner::GameViewport;
|
|
}
|
|
|
|
constexpr bool IsHostedContentPointerOwner(EditorShellPointerOwner owner) {
|
|
return owner == EditorShellPointerOwner::HierarchyPanel ||
|
|
owner == EditorShellPointerOwner::ProjectPanel;
|
|
}
|
|
|
|
} // namespace XCEngine::UI::Editor::App
|