28 :
public QWaylandCompositorExtensionPrivate
29 ,
public QtWaylandServer::zxdg_output_manager_v1
31 Q_DECLARE_PUBLIC(QWaylandXdgOutputManagerV1)
33 explicit QWaylandXdgOutputManagerV1Private() =
default;
35 void registerXdgOutput(QWaylandOutput *output, QWaylandXdgOutputV1 *xdgOutput);
36 void unregisterXdgOutput(QWaylandOutput *output);
37 QWaylandXdgOutputV1 *xdgOutput(QWaylandOutput *output)
const;
39 static QWaylandXdgOutputManagerV1Private *get(QWaylandXdgOutputManagerV1 *manager) {
return manager ? manager->d_func() :
nullptr; }
42 void zxdg_output_manager_v1_get_xdg_output(Resource *resource, uint32_t id,
43 wl_resource *outputResource) override;
46 QHash<QWaylandOutput *, QWaylandXdgOutputV1 *> xdgOutputs;
50 :
public QObjectPrivate
51 ,
public QtWaylandServer::zxdg_output_v1
53 Q_DECLARE_PUBLIC(QWaylandXdgOutputV1)
55 explicit QWaylandXdgOutputV1Private() =
default;
57 void sendLogicalPosition(
const QPoint &position);
58 void sendLogicalSize(
const QSize &size);
61 void setManager(QWaylandXdgOutputManagerV1 *manager);
62 void setOutput(QWaylandOutput *output);
64 static QWaylandXdgOutputV1Private *get(QWaylandXdgOutputV1 *xdgOutput) {
return xdgOutput ? xdgOutput->d_func() :
nullptr; }
66 bool initialized =
false;
67 QWaylandOutput *output =
nullptr;
68 QWaylandXdgOutputManagerV1 *manager =
nullptr;
75 void zxdg_output_v1_bind_resource(Resource *resource) override;
76 void zxdg_output_v1_destroy(Resource *resource) override;