Seal editor host content binding boundary
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include "Windowing/Frame/EditorWindowTransferRequests.h"
|
||||
#include "Windowing/Host/EditorWindowContentBindings.h"
|
||||
|
||||
#include <XCEditor/Docking/UIEditorDockHostTransfer.h>
|
||||
#include <XCEditor/Foundation/UIEditorTextMeasurement.h>
|
||||
#include <XCEditor/Windowing/Presentation/EditorWorkspaceWindowProjection.h>
|
||||
|
||||
#include <cstdint>
|
||||
#include <filesystem>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
@@ -35,10 +33,6 @@ namespace XCEngine::UI::Editor {
|
||||
struct UIEditorShellInteractionFrame;
|
||||
struct UIEditorShellInteractionState;
|
||||
|
||||
namespace Widgets {
|
||||
struct UIEditorDockHostDropPreviewState;
|
||||
}
|
||||
|
||||
} // namespace XCEngine::UI::Editor
|
||||
|
||||
namespace XCEngine::UI::Editor::Rendering::Host {
|
||||
@@ -52,12 +46,6 @@ namespace XCEngine::UI::Editor::App {
|
||||
|
||||
class EditorContext;
|
||||
|
||||
enum class EditorWindowContentCursorKind : std::uint8_t {
|
||||
Arrow = 0,
|
||||
ResizeEW,
|
||||
ResizeNS,
|
||||
};
|
||||
|
||||
struct EditorWindowContentCapabilities {
|
||||
bool workspace = false;
|
||||
bool dockHost = false;
|
||||
@@ -67,51 +55,6 @@ struct EditorWindowContentCapabilities {
|
||||
bool utilityPanel = false;
|
||||
};
|
||||
|
||||
class EditorWindowWorkspaceBinding {
|
||||
public:
|
||||
virtual ~EditorWindowWorkspaceBinding() = default;
|
||||
|
||||
virtual const EditorWorkspaceWindowProjection* TryGetWorkspaceProjection() const = 0;
|
||||
virtual void RefreshWorkspaceProjection(EditorWorkspaceWindowProjection projection) = 0;
|
||||
};
|
||||
|
||||
class EditorWindowDockHostBinding {
|
||||
public:
|
||||
virtual ~EditorWindowDockHostBinding() = default;
|
||||
|
||||
virtual void SetExternalDockHostDropPreview(
|
||||
const Widgets::UIEditorDockHostDropPreviewState& preview) = 0;
|
||||
virtual void ClearExternalDockHostDropPreview() = 0;
|
||||
virtual bool TryResolveDockTabDragHotspot(
|
||||
std::string_view nodeId,
|
||||
std::string_view panelId,
|
||||
const ::XCEngine::UI::UIPoint& point,
|
||||
::XCEngine::UI::UIPoint& outHotspot) const = 0;
|
||||
virtual UIEditorDockHostTabDropTarget ResolveDockTabDropTarget(
|
||||
const ::XCEngine::UI::UIPoint& point) const = 0;
|
||||
};
|
||||
|
||||
class EditorWindowInputFeedbackBinding {
|
||||
public:
|
||||
virtual ~EditorWindowInputFeedbackBinding() = default;
|
||||
|
||||
virtual bool HasHostedContentCapture() const = 0;
|
||||
virtual bool HasShellInteractiveCapture() const = 0;
|
||||
virtual bool HasInteractiveCapture() const = 0;
|
||||
virtual EditorWindowContentCursorKind GetHostedContentCursorKind() const = 0;
|
||||
virtual EditorWindowContentCursorKind GetDockCursorKind() const = 0;
|
||||
};
|
||||
|
||||
class EditorWindowTitleBarBinding {
|
||||
public:
|
||||
virtual ~EditorWindowTitleBarBinding() = default;
|
||||
|
||||
virtual bool ShouldUseDetachedTitleBarTabStrip() const = 0;
|
||||
virtual std::string ResolveTabStripTitleText(std::string_view fallbackTitle) const = 0;
|
||||
virtual std::string ResolveDetachedWindowTitleText(
|
||||
std::string_view fallbackWindowTitle) const = 0;
|
||||
};
|
||||
|
||||
struct EditorWindowContentInitializationContext {
|
||||
const std::filesystem::path& repoRoot;
|
||||
EditorContext& editorContext;
|
||||
|
||||
Reference in New Issue
Block a user