KWayland
7 #ifndef WAYLAND_OUTPUTDEVICE_H
8 #define WAYLAND_OUTPUTDEVICE_H
15 #include "KWayland/Client/kwaylandclient_export.h"
17 struct org_kde_kwin_outputdevice;
70 enum class Transform {
81 enum class Enablement {
92 Q_DECLARE_FLAGS(Flags, Flag)
105 Flags flags = Flag::None;
117 bool operator==(
const Mode &m)
const;
122 bool operator==(
const ColorCurves &cc)
const;
123 bool operator!=(
const ColorCurves &cc)
const;
125 enum class Capability {
130 enum class VrrPolicy {
144 void setup(org_kde_kwin_outputdevice *output);
149 bool isValid()
const;
150 operator org_kde_kwin_outputdevice *();
151 operator org_kde_kwin_outputdevice *()
const;
152 org_kde_kwin_outputdevice *output();
156 QSize physicalSize()
const;
160 QPoint globalPosition()
const;
180 QSize pixelSize()
const;
187 QRect geometry()
const;
191 int refreshRate()
const;
193 #if KWAYLANDCLIENT_ENABLE_DEPRECATED_SINCE(5, 50)
202 KWAYLANDCLIENT_DEPRECATED_VERSION(5, 50,
"Use OutputDevice::scaleF()")
214 qreal scaleF()
const;
218 SubPixel subPixel()
const;
226 Transform transform()
const;
231 ColorCurves colorCurves()
const;
238 KWayland::Client::OutputDevice::Mode currentMode()
const;
257 OutputDevice::Enablement enabled()
const;
274 uint32_t overscan()
const;
280 VrrPolicy vrrPolicy()
const;
306 void enabledChanged(OutputDevice::Enablement enabled);
318 void modeAdded(
const KWayland::Client::OutputDevice::Mode &mode);
324 void modeChanged(
const KWayland::Client::OutputDevice::Mode &mode);
330 void colorCurvesChanged();
336 void capabilitiesChanged(
const Capabilities &capabilities);
342 void overscanChanged(uint32_t overscan);
348 void vrrPolicyChanged(VrrPolicy vrrPolicy);
369 Q_DECLARE_METATYPE(KWayland::Client::OutputDevice::SubPixel)
370 Q_DECLARE_METATYPE(KWayland::Client::OutputDevice::Transform)
371 Q_DECLARE_METATYPE(KWayland::Client::OutputDevice::Enablement)
372 Q_DECLARE_METATYPE(KWayland::Client::OutputDevice::Mode)
373 Q_DECLARE_METATYPE(KWayland::Client::OutputDevice::ColorCurves)
Wrapper for the org_kde_kwin_outputdevice interface.
Wrapper class for wl_event_queue interface.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Jan 30 2023 03:56:24 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.