refactor(new_editor/app): reorganize host structure and add smoke test
This commit is contained in:
26
new_editor/app/Platform/Win32/WindowMessageDispatcher.cpp
Normal file
26
new_editor/app/Platform/Win32/WindowMessageDispatcher.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
#include "WindowMessageDispatcher.h"
|
||||
|
||||
#include "WindowMessageDispatchHandlers.h"
|
||||
|
||||
namespace XCEngine::UI::Editor::Host {
|
||||
|
||||
bool WindowMessageDispatcher::TryDispatch(
|
||||
HWND hwnd,
|
||||
WindowMessageHost& windowHost,
|
||||
App::EditorWindow& window,
|
||||
UINT message,
|
||||
WPARAM wParam,
|
||||
LPARAM lParam,
|
||||
LRESULT& outResult) {
|
||||
const WindowMessageDispatchContext context = {
|
||||
.hwnd = hwnd,
|
||||
.windowHost = windowHost,
|
||||
.window = window,
|
||||
};
|
||||
|
||||
return TryDispatchWindowChromeMessage(context, message, wParam, lParam, outResult) ||
|
||||
TryDispatchWindowLifecycleMessage(context, message, wParam, lParam, outResult) ||
|
||||
TryDispatchWindowInputMessage(context, message, wParam, lParam, outResult);
|
||||
}
|
||||
|
||||
} // namespace XCEngine::UI::Editor::Host
|
||||
Reference in New Issue
Block a user