refactor(new_editor): centralize win32 frame execution

This commit is contained in:
2026-04-22 14:37:25 +08:00
parent 4a42b757c7
commit b44f5ca9fc
10 changed files with 114 additions and 44 deletions

View File

@@ -0,0 +1,22 @@
#pragma once
#include <cstdint>
namespace XCEngine::UI::Editor::App {
enum class EditorWindowFrameRequestReason : std::uint32_t {
None = 0u,
Initial = 1u << 0u,
PaintMessage = 1u << 1u,
Resize = 1u << 2u,
DpiChanged = 1u << 3u,
ExitSizeMove = 1u << 4u,
BorderlessTransition = 1u << 5u,
ManualScreenshot = 1u << 6u
};
constexpr std::uint32_t ToFrameRequestMask(EditorWindowFrameRequestReason reason) {
return static_cast<std::uint32_t>(reason);
}
} // namespace XCEngine::UI::Editor::App