Files
XCEngine/new_editor/app/Composition/EditorShellPointerInteraction.h

28 lines
714 B
C
Raw Normal View History

#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