14#include "core/Logging_p.h"
19Window::Window(std::shared_ptr<Core::View> rootView)
21 , m_rootView(rootView)
24 setGeometry(rootView->geometry());
27Window::~Window() =
default;
29std::shared_ptr<Core::View> Window::rootView()
const
34Core::Window::Ptr Window::transientParent()
const
39void Window::setGeometry(Rect r)
44void Window::setVisible(
bool is)
46 if (is == m_isVisible)
54bool Window::supportsHonouringLayoutMinSize()
const
62 KDDW_WARN(
"Window::setWindowState: Not implemented yet");
65Rect Window::geometry()
const
70bool Window::isVisible()
const
80bool Window::equals(std::shared_ptr<Core::Window> w)
const
85 auto window = std::static_pointer_cast<flutter::Window>(w);
86 return window->handle() == handle();
89void Window::setFramePosition(Point pt)
91 m_geometry.moveTopLeft(pt);
92 m_rootView->setGeometry(m_geometry);
95Rect Window::frameGeometry()
const
101void Window::resize(
int w,
int h)
103 Rect geo = geometry();
104 geo.setSize({ w, h });
108bool Window::isActive()
const
110 KDDW_WARN(
"Window::isActive: Not implemented yet");
116 KDDW_WARN(
"Window::windowState: Not implemented yet");
120Point Window::mapFromGlobal(Point)
const
122 KDDW_WARN(
"Window::mapFromGlobal: Not implemented yet");
126Point Window::mapToGlobal(Point)
const
128 KDDW_WARN(
"Window::mapToGlobal: Not implemented yet");
132void Window::destroy()
134 KDDW_WARN(
"Window::destroy: Not implemented yet");
137Size Window::minSize()
const
139 KDDW_WARN(
"Window::minSize: Not implemented yet");
143Size Window::maxSize()
const
145 KDDW_WARN(
"Window::maxSize: Not implemented yet");
149Point Window::fromNativePixels(Point)
const
151 KDDW_WARN(
"Window::fromNativePixels: Not implemented yet");
155bool Window::isFullScreen()
const
157 KDDW_WARN(
"Window::isFullScreen: Not implemented yet");
161Core::Screen::Ptr Window::screen()
const
163 KDDW_WARN(
"Window::screen: Not implemented yet");
167void Window::onScreenChanged(Core::Object *, WindowScreenChangedCallback)
169 KDDW_WARN(
"Window::onScreenChange: Not implemented yet");