blob: 238ddbd4996d61af8fd797b88fc1610d1956bcad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#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
|