KWayland
6 #ifndef WAYLAND_SERVER_OUTPUT_INTERFACE_H 7 #define WAYLAND_SERVER_OUTPUT_INTERFACE_H 13 #include <KWayland/Server/kwaylandserver_export.h> 25 class ClientConnection;
35 Q_PROPERTY(
QSize physicalSize READ physicalSize WRITE setPhysicalSize NOTIFY physicalSizeChanged)
36 Q_PROPERTY(
QPoint globalPosition READ globalPosition WRITE setGlobalPosition NOTIFY globalPositionChanged)
37 Q_PROPERTY(
QString manufacturer READ manufacturer WRITE setManufacturer NOTIFY manufacturerChanged)
38 Q_PROPERTY(
QString model READ model WRITE setModel NOTIFY modelChanged)
39 Q_PROPERTY(
QSize pixelSize READ pixelSize NOTIFY pixelSizeChanged)
40 Q_PROPERTY(
int refreshRate READ refreshRate NOTIFY refreshRateChanged)
41 Q_PROPERTY(
int scale READ scale WRITE setScale NOTIFY scaleChanged)
51 enum class Transform {
68 int refreshRate = 60000;
79 QSize physicalSize()
const;
80 QPoint globalPosition()
const;
83 QSize pixelSize()
const;
84 int refreshRate()
const;
86 SubPixel subPixel()
const;
87 Transform transform()
const;
89 bool isDpmsSupported()
const;
90 DpmsMode dpmsMode()
const;
92 void setPhysicalSize(
const QSize &size);
93 void setGlobalPosition(
const QPoint &pos);
94 void setManufacturer(
const QString &manufacturer);
95 void setModel(
const QString &model);
96 void setScale(
int scale);
97 void setSubPixel(SubPixel subPixel);
98 void setTransform(Transform transform);
100 void setCurrentMode(
const QSize &size,
int refreshRate = 60000);
107 void setDpmsSupported(
bool supported);
113 void setDpmsMode(DpmsMode mode);
124 void physicalSizeChanged(
const QSize&);
125 void globalPositionChanged(
const QPoint&);
126 void manufacturerChanged(
const QString&);
127 void modelChanged(
const QString&);
128 void pixelSizeChanged(
const QSize&);
129 void refreshRateChanged(
int);
130 void scaleChanged(
int);
131 void subPixelChanged(SubPixel);
132 void transformChanged(Transform);
134 void currentModeChanged();
135 void dpmsModeChanged();
136 void dpmsSupportedChanged();
143 void dpmsModeRequested(KWayland::Server::OutputInterface::DpmsMode mode);
149 Private *d_func()
const;
157 Q_DECLARE_METATYPE(KWayland::Server::OutputInterface::SubPixel)
158 Q_DECLARE_METATYPE(KWayland::Server::OutputInterface::Transform)
159 Q_DECLARE_METATYPE(KWayland::Server::OutputInterface::DpmsMode)
Global for the wl_output interface.
Class holding the Wayland server display loop.
Base class for all Globals.
Convenient Class which represents a wl_client.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 27 2021 22:49:45 by
doxygen 1.8.11 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.