refactor(new_editor): centralize win32 frame execution
This commit is contained in:
22
new_editor/app/Platform/Win32/EditorWindowFrameRequest.h
Normal file
22
new_editor/app/Platform/Win32/EditorWindowFrameRequest.h
Normal 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
|
||||
Reference in New Issue
Block a user