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 /src/ui/controls/Popup.cpp | |
| parent | b68f9f52a3ecdd8e379dd60ac1c1366e76695464 (diff) | |
| download | cru-0f8f98b9005803ab154b43dcad0db1f292072a4d.tar.gz cru-0f8f98b9005803ab154b43dcad0db1f292072a4d.tar.bz2 cru-0f8f98b9005803ab154b43dcad0db1f292072a4d.zip | |
Refactor window host.
Diffstat (limited to 'src/ui/controls/Popup.cpp')
| -rw-r--r-- | src/ui/controls/Popup.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/ui/controls/Popup.cpp b/src/ui/controls/Popup.cpp deleted file mode 100644 index 238ddbd4..00000000 --- a/src/ui/controls/Popup.cpp +++ /dev/null @@ -1,18 +0,0 @@ -#include "cru/ui/controls/Popup.h" - -#include "cru/platform/gui/UiApplication.h" -#include "cru/ui/controls/RootControl.h" -#include "cru/ui/host/WindowHost.h" -#include "cru/ui/render/StackLayoutRenderObject.h" - -#include <memory> - -namespace cru::ui::controls { -Popup::Popup(Control* attached_control) : RootControl(attached_control) { - GetWindowHost()->GetNativeWindow()->SetStyleFlag( - cru::platform::gui::WindowStyleFlags::NoCaptionAndBorder); - SetGainFocusOnCreateAndDestroyWhenLoseFocus(true); -} - -Popup::~Popup() = default; -} // namespace cru::ui::controls |
