diff options
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 |
