47class WINDOWMANAGERQML_EXPORT Window : public QObject
64 Q_PROPERTY(Mir::State
state READ
state NOTIFY stateChanged)
91 Q_PROPERTY(
int id READ
id CONSTANT)
99 Q_PROPERTY(lomiri::shell::application::MirSurfaceInterface*
surface READ
surface NOTIFY surfaceChanged)
109 Window(
int id, QObject *parent =
nullptr);
113 void setRequestedPosition(const QPoint &);
114 Mir::State
state() const;
119 lomiri::shell::application::MirSurfaceInterface*
surface() const;
121 void setSurface(lomiri::shell::application::MirSurfaceInterface *
surface);
122 void setFocused(
bool value);
123 void setConstrained(
bool value);
126 void setAllowClientResize(
bool);
128 QString toString() const;
148 void closeRequested();
149 void emptyWindowActivated();
151 void positionChanged(QPoint
position);
152 void requestedPositionChanged(QPoint
position);
153 void stateChanged(Mir::State value);
154 void focusedChanged(
bool value);
155 void confinesMousePointerChanged(
bool value);
156 void constrainedChanged(
bool value);
157 void surfaceChanged(lomiri::shell::application::MirSurfaceInterface *
surface);
158 void allowClientResizeChanged(
bool value);
159 void liveChanged(
bool value);
167 void updatePosition();
169 void updateFocused();
172 QPoint m_requestedPosition;
173 bool m_positionRequested{
false};
174 bool m_focused{
false};
175 bool m_constrained{
false};
177 Mir::State m_state{Mir::RestoredState};
178 bool m_stateRequested{
false};
179 lomiri::shell::application::MirSurfaceInterface *m_surface{
nullptr};
181 bool m_allowClientResize{
true};