6 #ifndef WAYLAND_SERVER_OUTPUTDEVICE_INTERFACE_H 7 #define WAYLAND_SERVER_OUTPUTDEVICE_INTERFACE_H 14 #include <KWayland/Server/kwaylandserver_export.h> 37 Q_PROPERTY(
QSize physicalSize READ physicalSize WRITE setPhysicalSize NOTIFY physicalSizeChanged)
38 Q_PROPERTY(
QPoint globalPosition READ globalPosition WRITE setGlobalPosition NOTIFY globalPositionChanged)
39 Q_PROPERTY(
QString manufacturer READ manufacturer WRITE setManufacturer NOTIFY manufacturerChanged)
40 Q_PROPERTY(
QString model READ model WRITE setModel NOTIFY modelChanged)
41 Q_PROPERTY(
QString serialNumber READ serialNumber WRITE setSerialNumber NOTIFY serialNumberChanged)
42 Q_PROPERTY(
QString eisaId READ eisaId WRITE setEisaId NOTIFY eisaIdChanged)
43 Q_PROPERTY(
QSize pixelSize READ pixelSize NOTIFY pixelSizeChanged)
44 Q_PROPERTY(
int refreshRate READ refreshRate NOTIFY refreshRateChanged)
45 Q_PROPERTY(qreal scale READ scaleF WRITE setScaleF NOTIFY scaleFChanged)
46 Q_PROPERTY(
QByteArray edid READ edid WRITE setEdid NOTIFY edidChanged)
47 Q_PROPERTY(OutputDeviceInterface::Enablement enabled READ enabled WRITE setEnabled NOTIFY enabledChanged)
48 Q_PROPERTY(
QByteArray uuid READ uuid WRITE setUuid NOTIFY uuidChanged)
58 enum class Transform {
68 enum class Enablement {
79 int refreshRate = 60000;
85 bool operator==(
const ColorCurves &cc)
const;
86 bool operator!=(
const ColorCurves &cc)
const;
90 QSize physicalSize()
const;
91 QPoint globalPosition()
const;
96 QSize pixelSize()
const;
97 int refreshRate()
const;
98 #if KWAYLANDSERVER_ENABLE_DEPRECATED_SINCE(5, 50) 99 KWAYLANDSERVER_DEPRECATED_VERSION(5, 50,
"Use OutputDeviceInterface::scaleF()")
103 qreal scaleF()
const;
105 SubPixel subPixel()
const;
106 Transform transform()
const;
107 ColorCurves colorCurves()
const;
109 int currentModeId()
const;
112 OutputDeviceInterface::Enablement enabled()
const;
115 void setPhysicalSize(
const QSize &size);
116 void setGlobalPosition(
const QPoint &pos);
117 void setManufacturer(
const QString &manufacturer);
118 void setModel(
const QString &model);
119 void setSerialNumber(
const QString &serialNumber);
120 void setEisaId(
const QString &eisaId);
121 #if KWAYLANDSERVER_ENABLE_DEPRECATED_SINCE(5, 50) 122 KWAYLANDSERVER_DEPRECATED_VERSION(5, 50,
"Use OutputDeviceInterface::setScale(qreal)")
124 void setScale(
int scale);
126 void setScaleF(qreal scale);
128 void setSubPixel(SubPixel subPixel);
129 void setTransform(Transform transform);
130 void setColorCurves(
const ColorCurves &colorCurves);
138 void addMode(Mode &mode);
139 void setCurrentMode(
const int modeId);
142 void setEnabled(OutputDeviceInterface::Enablement enabled);
149 void physicalSizeChanged(
const QSize&);
150 void globalPositionChanged(
const QPoint&);
151 void manufacturerChanged(
const QString&);
152 void modelChanged(
const QString&);
153 void serialNumberChanged(
const QString&);
154 void eisaIdChanged(
const QString &);
155 void pixelSizeChanged(
const QSize&);
156 void refreshRateChanged(
int);
157 #if KWAYLANDSERVER_ENABLE_DEPRECATED_SINCE(5, 50) 158 KWAYLANDSERVER_DEPRECATED_VERSION(5, 50,
"Use OutputDeviceInterface::scaleFChanged(qreal)")
160 void scaleChanged(
int);
162 void scaleFChanged(qreal);
164 void subPixelChanged(SubPixel);
165 void transformChanged(Transform);
166 void colorCurvesChanged(ColorCurves);
168 void currentModeChanged();
171 void enabledChanged();
178 Private *d_func()
const;
186 Q_DECLARE_METATYPE(KWayland::Server::OutputDeviceInterface::Enablement)
187 Q_DECLARE_METATYPE(KWayland::Server::OutputDeviceInterface::SubPixel)
188 Q_DECLARE_METATYPE(KWayland::Server::OutputDeviceInterface::Transform)
189 Q_DECLARE_METATYPE(KWayland::Server::OutputDeviceInterface::ColorCurves)
Class holding the Wayland server display loop.
Base class for all Globals.
Represents an output device, the difference to Output is that this output can be disabled, so not currently used to display content.