new_editor: reduce app shell capture plumbing

This commit is contained in:
2026-04-22 16:34:28 +08:00
parent 2c2a8b8669
commit c42fd4d48b
12 changed files with 101 additions and 174 deletions

View File

@@ -3,13 +3,27 @@
#include <XCEditor/Shell/UIEditorShellInteraction.h>
namespace XCEngine::UI {
struct UIInputEvent;
struct UIPoint;
}
namespace XCEngine::UI::Editor {
bool HasActiveUIEditorShellInteractiveCapture(
const UIEditorShellInteractionState& shellInteractionState);
bool ShouldStartImmediateUIEditorShellPointerCapture(
const UIEditorShellInteractionFrame& shellFrame,
const ::XCEngine::UI::UIPoint& clientPoint);
bool ShouldYieldUIEditorHostedContentPointerStream(
const UIEditorShellInteractionFrame& shellFrame,
bool shellInteractiveCaptureActive);
std::vector<::XCEngine::UI::UIInputEvent> FilterUIEditorHostedContentInputEvents(
const std::vector<::XCEngine::UI::UIInputEvent>& inputEvents,
bool shellOwnsPointerStream);
} // namespace XCEngine::UI::Editor