diff options
Diffstat (limited to 'include/cru/ui')
-rw-r--r-- | include/cru/ui/controls/Popup.hpp | 1 | ||||
-rw-r--r-- | include/cru/ui/controls/RootControl.hpp | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/cru/ui/controls/Popup.hpp b/include/cru/ui/controls/Popup.hpp index d76e1211..321bbbc6 100644 --- a/include/cru/ui/controls/Popup.hpp +++ b/include/cru/ui/controls/Popup.hpp @@ -1,7 +1,6 @@ #pragma once #include "RootControl.hpp" -#include "cru/ui/Base.hpp" #include "cru/platform/gui/Base.hpp" #include <memory> diff --git a/include/cru/ui/controls/RootControl.hpp b/include/cru/ui/controls/RootControl.hpp index 53e69e7c..a795f322 100644 --- a/include/cru/ui/controls/RootControl.hpp +++ b/include/cru/ui/controls/RootControl.hpp @@ -32,6 +32,8 @@ class RootControl : public LayoutControl { gsl::not_null<host::WindowHost*> host, platform::gui::INativeWindow* parent) = 0; + void SetGainFocusOnCreateAndDestroyWhenLoseFocus(bool value); + private: platform::gui::INativeWindow* GetNativeWindow(bool create); @@ -41,5 +43,7 @@ class RootControl : public LayoutControl { std::unique_ptr<render::StackLayoutRenderObject> render_object_; Control* attached_control_; + + bool gain_focus_on_create_and_destroy_when_lose_focus_ = false; }; } // namespace cru::ui::controls |