25 using Core::View::close;
26 using Core::View::resize;
33 Size minSize()
const override;
34 Size maxSizeHint()
const override;
35 Rect geometry()
const override;
36 Rect normalGeometry()
const override;
37 void setNormalGeometry(Rect geo);
38 void setGeometry(Rect geometry)
override;
39 void setMaximumSize(Size sz)
override;
41 bool isVisible()
const override;
42 void setVisible(
bool visible)
override;
43 bool isExplicitlyHidden()
const override;
45 void move(
int x,
int y)
override;
46 void setSize(
int w,
int h)
override;
48 void setWidth(
int w)
override;
49 void setHeight(
int h)
override;
50 void setFixedWidth(
int w)
override;
51 void setFixedHeight(
int h)
override;
54 void updateGeometry();
55 void update()
override;
57 void raiseAndActivate()
override;
58 void activateWindow()
override;
59 void raise()
override;
60 bool isRootView()
const override;
61 Point mapToGlobal(Point localPt)
const override;
62 Point mapFromGlobal(Point globalPt)
const override;
63 Point mapTo(
Core::View *parent, Point pos)
const override;
64 void setWindowOpacity(
double v)
override;
70 bool onFlutterWidgetResized(
int w,
int h);
72 bool close()
override;
78 void setWindowTitle(
const QString &title)
override;
79 void setWindowIcon(
const Icon &icon)
override;
80 bool isActiveWindow()
const override;
82 void showNormal()
override;
83 void showMinimized()
override;
84 void showMaximized()
override;
86 bool isMinimized()
const override;
87 bool isMaximized()
const override;
89 std::shared_ptr<Core::Window> window()
const override;
90 std::shared_ptr<Core::View> childViewAt(Point p)
const override;
91 std::shared_ptr<Core::View> rootView()
const override;
92 std::shared_ptr<Core::View> parentView()
const override;
93 std::shared_ptr<Core::View> asWrapper()
override;
95 void setViewName(
const QString &name)
override;
96 void grabMouse()
override;
97 void releaseMouse()
override;
98 void releaseKeyboard()
override;
101 bool hasFocus()
const override;
103 QString viewName()
const override;
104 void setMinimumSize(Size sz)
override;
107 void setMouseTracking(
bool enable)
override;
109 void setZOrder(
int z)
override;
112 virtual void onChildAdded(
Core::View *childView);
113 virtual void onChildRemoved(
Core::View *childView);
114 virtual void onChildVisibilityChanged(
Core::View *childView);
115 virtual void raiseChild(
Core::View *childView);
116 virtual void raiseWindow(
Core::View *rootView);
117 virtual void onGeometryChanged();
121 virtual bool isMounted()
const;
124 void onMouseEvent(Event::Type eventType, Point localPos, Point globalPos,
bool leftIsPressed);
132 virtual void onRebuildRequested();
135 View *m_parentView =
nullptr;
140 std::optional<bool> m_visible;
141 bool m_inCtor =
true;