Refine editor window host structure and utility chrome

This commit is contained in:
2026-04-25 18:20:17 +08:00
parent 41b912933d
commit 7335def3fd
31 changed files with 241 additions and 61 deletions

View File

@@ -0,0 +1,45 @@
#pragma once
#include "Windowing/Content/EditorWindowContentController.h"
#include <XCEditor/Shell/UIEditorShellInteraction.h>
#include <XCEngine/UI/Types.h>
#include <memory>
namespace XCEngine::UI::Editor::App {
class EditorUtilityWindowPanel;
struct EditorUtilityWindowDescriptor;
class EditorUtilityWindowContentController final
: public EditorWindowContentController {
public:
EditorUtilityWindowContentController(
std::unique_ptr<EditorUtilityWindowPanel> panel,
const ::XCEngine::UI::UISize& minimumOuterSize);
~EditorUtilityWindowContentController() override;
EditorWindowContentCapabilities GetCapabilities() const override;
void Shutdown() override;
void ResetInteractionState() override;
EditorWindowFrameTransferRequests UpdateAndAppend(
const EditorWindowContentFrameContext& context,
::XCEngine::UI::UIDrawData& drawData) override;
const UIEditorShellInteractionFrame& GetShellFrame() const override;
const UIEditorShellInteractionState& GetShellInteractionState() const override;
::XCEngine::UI::UISize ResolveMinimumOuterSize() const override;
private:
std::unique_ptr<EditorUtilityWindowPanel> m_panel = {};
::XCEngine::UI::UISize m_minimumOuterSize = {};
UIEditorShellInteractionState m_shellInteractionState = {};
UIEditorShellInteractionFrame m_shellFrame = {};
bool m_windowFocused = true;
};
std::unique_ptr<EditorWindowContentController> CreateEditorUtilityWindowContentController(
const EditorUtilityWindowDescriptor& descriptor);
} // namespace XCEngine::UI::Editor::App