KWayland
6 #ifndef WAYLAND_SERVER_OUTPUT_INTERFACE_H
7 #define WAYLAND_SERVER_OUTPUT_INTERFACE_H
14 #include <KWayland/Server/kwaylandserver_export.h>
24 class ClientConnection;
34 Q_PROPERTY(
QSize physicalSize READ physicalSize WRITE setPhysicalSize NOTIFY physicalSizeChanged)
35 Q_PROPERTY(
QPoint globalPosition READ globalPosition WRITE setGlobalPosition NOTIFY globalPositionChanged)
36 Q_PROPERTY(
QString manufacturer READ manufacturer WRITE setManufacturer NOTIFY manufacturerChanged)
37 Q_PROPERTY(
QString model READ model WRITE setModel NOTIFY modelChanged)
38 Q_PROPERTY(
QSize pixelSize READ pixelSize NOTIFY pixelSizeChanged)
39 Q_PROPERTY(
int refreshRate READ refreshRate NOTIFY refreshRateChanged)
40 Q_PROPERTY(
int scale READ scale WRITE setScale NOTIFY scaleChanged)
50 enum class Transform {
67 int refreshRate = 60000;
78 QSize physicalSize()
const;
79 QPoint globalPosition()
const;
82 QSize pixelSize()
const;
83 int refreshRate()
const;
85 SubPixel subPixel()
const;
86 Transform transform()
const;
88 bool isDpmsSupported()
const;
89 DpmsMode dpmsMode()
const;
91 void setPhysicalSize(
const QSize &size);
92 void setGlobalPosition(
const QPoint &pos);
93 void setManufacturer(
const QString &manufacturer);
94 void setModel(
const QString &model);
95 void setScale(
int scale);
96 void setSubPixel(SubPixel subPixel);
97 void setTransform(Transform transform);
99 void setCurrentMode(
const QSize &size,
int refreshRate = 60000);
106 void setDpmsSupported(
bool supported);
112 void setDpmsMode(DpmsMode mode);
123 void physicalSizeChanged(
const QSize &);
124 void globalPositionChanged(
const QPoint &);
125 void manufacturerChanged(
const QString &);
126 void modelChanged(
const QString &);
127 void pixelSizeChanged(
const QSize &);
128 void refreshRateChanged(
int);
129 void scaleChanged(
int);
130 void subPixelChanged(SubPixel);
131 void transformChanged(Transform);
133 void currentModeChanged();
134 void dpmsModeChanged();
135 void dpmsSupportedChanged();
142 void dpmsModeRequested(KWayland::Server::OutputInterface::DpmsMode mode);
148 Private *d_func()
const;
156 Q_DECLARE_METATYPE(KWayland::Server::OutputInterface::SubPixel)
157 Q_DECLARE_METATYPE(KWayland::Server::OutputInterface::Transform)
158 Q_DECLARE_METATYPE(KWayland::Server::OutputInterface::DpmsMode)
Class holding the Wayland server display loop.
Global for the wl_output interface.
Convenient Class which represents a wl_client.
Base class for all Globals.
virtual QVariant get(ScriptableExtension *callerPrincipal, quint64 objId, const QString &propName)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jan 29 2023 03:54:08 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.