33 Q_PROPERTY(
Output *screen READ screen CONSTANT)
34 Q_PROPERTY(QQuickItem *rootItem READ rootItem CONSTANT)
43 QQuickItem *rootItem() const;
44 void setRootItem(QQuickItem *item);
54 void scheduleRepaint();
59 std::unique_ptr<QQuickItem> m_rootItem;
78 Q_PROPERTY(
QuickSceneView *activeView READ activeView NOTIFY activeViewChanged)
79 Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged)
88 bool isRunning() const;
93 void setRunning(
bool running);
121 QQmlComponent *delegate() const;
122 void setDelegate(QQmlComponent *delegate);
138 void setSource(const QUrl &url);
140 bool eventFilter(QObject *watched, QEvent *event) override;
142 void prePaintScreen(
ScreenPrePaintData &data, std::chrono::milliseconds presentTime) override;
144 bool isActive() const override;
146 void windowInputMouseEvent(QEvent *event) override;
147 void grabbedKeyboardEvent(QKeyEvent *keyEvent) override;
149 bool touchDown(qint32
id, const QPointF &pos, std::chrono::microseconds time) override;
150 bool touchMotion(qint32
id, const QPointF &pos, std::chrono::microseconds time) override;
151 bool touchUp(qint32
id, std::chrono::microseconds time) override;
153 static
bool supported();
155 Q_INVOKABLE
void checkItemDraggedOutOfScreen(QQuickItem *item);
156 Q_INVOKABLE
void checkItemDroppedOutOfScreen(const QPointF &globalPos, QQuickItem *item);
159 void itemDraggedOutOfScreen(QQuickItem *item, QList<
Output *> screens);
160 void itemDroppedOutOfScreen(const QPointF &globalPos, QQuickItem *item,
Output *screen);
162 void delegateChanged();
171 virtual QVariantMap initialProperties(
Output *screen);
174 void handleScreenAdded(
Output *screen);
175 void handleScreenRemoved(
Output *screen);
177 void addScreen(
Output *screen);
178 void startInternal();