diff options
Diffstat (limited to 'include/cru/ui/controls/RootControl.hpp')
-rw-r--r-- | include/cru/ui/controls/RootControl.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 |