From 0f8f98b9005803ab154b43dcad0db1f292072a4d Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Mon, 17 Nov 2025 12:54:55 +0800 Subject: Refactor window host. --- include/cru/ui/controls/RootControl.h | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 include/cru/ui/controls/RootControl.h (limited to 'include/cru/ui/controls/RootControl.h') diff --git a/include/cru/ui/controls/RootControl.h b/include/cru/ui/controls/RootControl.h deleted file mode 100644 index e662b655..00000000 --- a/include/cru/ui/controls/RootControl.h +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once -#include "LayoutControl.h" - -#include "cru/base/Event.h" -#include "cru/platform/gui/Window.h" -#include "cru/ui/host/WindowHost.h" -#include "cru/ui/render/StackLayoutRenderObject.h" - -namespace cru::ui::controls { -class CRU_UI_API RootControl - : public LayoutControl { - protected: - explicit RootControl(Control* attached_control); - - public: - CRU_DELETE_COPY(RootControl) - CRU_DELETE_MOVE(RootControl) - ~RootControl() override; - - public: - platform::gui::INativeWindow* GetNativeWindow(); - - protected: - void SetGainFocusOnCreateAndDestroyWhenLoseFocus(bool value); - - private: - std::unique_ptr window_host_; - - Control* attached_control_; - - EventHandlerRevokerListGuard - gain_focus_on_create_and_destroy_when_lose_focus_event_guard_; -}; -} // namespace cru::ui::controls -- cgit v1.2.3