diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-16 14:09:50 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-16 14:09:50 +0800 |
| commit | 07d662aafc25b145eb20e4123ebc82b5736cdeb7 (patch) | |
| tree | 0b94baddd3235623beac4997ac09a503a00645e7 /include/cru/platform/gui/win/GodWindow.h | |
| parent | faf73c4af74bdae1abf394a33b573149b98ec2b1 (diff) | |
| download | cru-07d662aafc25b145eb20e4123ebc82b5736cdeb7.tar.gz cru-07d662aafc25b145eb20e4123ebc82b5736cdeb7.tar.bz2 cru-07d662aafc25b145eb20e4123ebc82b5736cdeb7.zip | |
New timer impl on Windows. Add Event test. Fix delete later.
Diffstat (limited to 'include/cru/platform/gui/win/GodWindow.h')
| -rw-r--r-- | include/cru/platform/gui/win/GodWindow.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/include/cru/platform/gui/win/GodWindow.h b/include/cru/platform/gui/win/GodWindow.h deleted file mode 100644 index 22068ff5..00000000 --- a/include/cru/platform/gui/win/GodWindow.h +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once -#include "Base.h" -#include "WindowNativeMessageEventArgs.h" - -#include <cru/base/Event.h> - -#include <memory> - -namespace cru::platform::gui::win { -class CRU_WIN_GUI_API GodWindow : public Object { - CRU_DEFINE_CLASS_LOG_TAG("GodWindow") - - public: - explicit GodWindow(WinUiApplication* application); - ~GodWindow() override; - - HWND GetHandle() const { return hwnd_; } - - bool HandleGodWindowMessage(HWND hwnd, UINT msg, WPARAM w_param, - LPARAM l_param, LRESULT* result); - - IEvent<WindowNativeMessageEventArgs&>* MessageEvent() { - return &message_event_; - } - - private: - WinUiApplication* application_; - - std::unique_ptr<WindowClass> god_window_class_; - HWND hwnd_; - - Event<WindowNativeMessageEventArgs&> message_event_; -}; -} // namespace cru::platform::gui::win |
