diff options
author | crupest <crupest@outlook.com> | 2020-06-22 01:09:24 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-22 01:09:24 +0800 |
commit | 4f0a2f32c273780c32cc3937615c2a8bbd993aab (patch) | |
tree | 6e1f45447854a40fe2d16ef9bec79f3c0fef030a /src/ui/UiHost.cpp | |
parent | d86a71f79afe0e4dac768f61d6bff690567aca5b (diff) | |
download | cru-4f0a2f32c273780c32cc3937615c2a8bbd993aab.tar.gz cru-4f0a2f32c273780c32cc3937615c2a8bbd993aab.tar.bz2 cru-4f0a2f32c273780c32cc3937615c2a8bbd993aab.zip |
...
Diffstat (limited to 'src/ui/UiHost.cpp')
-rw-r--r-- | src/ui/UiHost.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/ui/UiHost.cpp b/src/ui/UiHost.cpp index 069e68de..7047d43f 100644 --- a/src/ui/UiHost.cpp +++ b/src/ui/UiHost.cpp @@ -1,12 +1,12 @@ #include "cru/ui/UiHost.hpp" +#include "RoutedEventDispatch.hpp" #include "cru/common/Logger.hpp" #include "cru/platform/graph/Painter.hpp" #include "cru/platform/native/UiApplication.hpp" #include "cru/platform/native/Window.hpp" -#include "cru/ui/render/WindowRenderObject.hpp" #include "cru/ui/Window.hpp" -#include "RoutedEventDispatch.hpp" +#include "cru/ui/render/WindowRenderObject.hpp" namespace cru::ui { using platform::native::INativeWindow; @@ -28,7 +28,6 @@ CRU_DEFINE_EVENT_NAME(MouseDown) CRU_DEFINE_EVENT_NAME(MouseUp) CRU_DEFINE_EVENT_NAME(KeyDown) CRU_DEFINE_EVENT_NAME(KeyUp) -CRU_DEFINE_EVENT_NAME(Char) #undef CRU_DEFINE_EVENT_NAME } // namespace event_names @@ -93,10 +92,10 @@ inline void BindNativeEvent( } // namespace UiHost::UiHost(Window* window) - : mouse_hover_control_(nullptr), + : window_control_(window), + mouse_hover_control_(nullptr), focus_control_(window), - mouse_captured_control_(nullptr), - window_control_(window) { + mouse_captured_control_(nullptr) { native_window_resolver_ = IUiApplication::GetInstance()->CreateWindow(nullptr); |