40 Rect suggestedGeometry,
MainWindow *parent =
nullptr,
41 FloatingWindowFlags requestedFlags = FloatingWindowFlag::FromGlobalConfig);
46 bool deserialize(
const LayoutSaver::FloatingWindow &);
47 LayoutSaver::FloatingWindow serialize()
const;
50 std::unique_ptr<WindowBeingDragged> makeWindow()
override;
52 bool isWindow()
const override;
62 bool isUtilityWindow()
const;
64 static void ensureRectIsOnScreen(Rect &geometry);
66#ifdef KDDW_FRONTEND_QT_WINDOWS
67 void setLastHitTest(
int hitTest)
69 m_lastHitTest = hitTest;
90 void setSuggestedGeometry(Rect suggestedRect,
91 SuggestedGeometryHints = SuggestedGeometryHint_None);
93 bool anyNonClosable()
const;
94 bool anyNonDockable()
const;
103 bool hasSingleGroup()
const;
111 bool hasSingleDockWidget()
const;
119 bool beingDeleted()
const;
124 void scheduleDeleteLater();
140 bool isInDragArea(Point globalPoint)
const;
142 bool isMDI()
const override;
145 void updateTitleAndIcon();
146 void updateTitleBarVisibility();
155 Rect dragRect()
const;
176 MainWindow *mainWindow()
const;
179 Margins contentMargins()
const;
194 bool supportsMinimizeButton()
const;
197 bool supportsMaximizeButton()
const;
199 void maybeCreateResizeHandler();
201 FloatingWindowFlags floatingWindowFlags()
const;
206 Private *dptr()
const;
217 Size maxSizeHint()
const;
218 void onFrameCountChanged(
int count);
219 void onVisibleFrameCountChanged(
int count);
220 void onCloseEvent(CloseEvent *);
221 void updateSizeConstraints();
223 bool m_disableSetVisible =
false;
224 bool m_deleteScheduled =
false;
225 bool m_inDtor =
false;
226 bool m_updatingTitleBarVisibility =
false;
228#ifdef KDDW_FRONTEND_QT_WINDOWS
230 int m_lastHitTest = 0;