diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-17 12:54:55 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-17 12:54:55 +0800 |
| commit | 0f8f98b9005803ab154b43dcad0db1f292072a4d (patch) | |
| tree | 0a43d5a9c4e3b747ad955fc30a143aa07ab5888d /include/cru/ui/controls/RootControl.h | |
| parent | b68f9f52a3ecdd8e379dd60ac1c1366e76695464 (diff) | |
| download | cru-0f8f98b9005803ab154b43dcad0db1f292072a4d.tar.gz cru-0f8f98b9005803ab154b43dcad0db1f292072a4d.tar.bz2 cru-0f8f98b9005803ab154b43dcad0db1f292072a4d.zip | |
Refactor window host.
Diffstat (limited to 'include/cru/ui/controls/RootControl.h')
| -rw-r--r-- | include/cru/ui/controls/RootControl.h | 34 |
1 files changed, 0 insertions, 34 deletions
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<render::StackLayoutRenderObject> { - 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<host::WindowHost> window_host_; - - Control* attached_control_; - - EventHandlerRevokerListGuard - gain_focus_on_create_and_destroy_when_lose_focus_event_guard_; -}; -} // namespace cru::ui::controls |
