Changeset View
Changeset View
Standalone View
Standalone View
src/server/outputdevice_interface.h
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 72 | enum class Transform { | |||
---|---|---|---|---|---|
78 | Flipped90, | 78 | Flipped90, | ||
79 | Flipped180, | 79 | Flipped180, | ||
80 | Flipped270 | 80 | Flipped270 | ||
81 | }; | 81 | }; | ||
82 | enum class Enablement { | 82 | enum class Enablement { | ||
83 | Disabled = 0, | 83 | Disabled = 0, | ||
84 | Enabled = 1 | 84 | Enabled = 1 | ||
85 | }; | 85 | }; | ||
86 | | ||||
romangg: rm | |||||
86 | enum class ModeFlag { | 87 | enum class ModeFlag { | ||
87 | Current = 1, | 88 | Current = 1, | ||
88 | Preferred = 2 | 89 | Preferred = 2 | ||
89 | }; | 90 | }; | ||
90 | Q_DECLARE_FLAGS(ModeFlags, ModeFlag) | 91 | Q_DECLARE_FLAGS(ModeFlags, ModeFlag) | ||
91 | struct Mode { | 92 | struct Mode { | ||
92 | QSize size = QSize(); | 93 | QSize size = QSize(); | ||
93 | int refreshRate = 60000; | 94 | int refreshRate = 60000; | ||
Show All 23 Lines | 117 | #endif | |||
117 | /// @since 5.50 | 118 | /// @since 5.50 | ||
118 | qreal scaleF() const; | 119 | qreal scaleF() const; | ||
119 | SubPixel subPixel() const; | 120 | SubPixel subPixel() const; | ||
120 | Transform transform() const; | 121 | Transform transform() const; | ||
121 | ColorCurves colorCurves() const; | 122 | ColorCurves colorCurves() const; | ||
122 | QList<Mode> modes() const; | 123 | QList<Mode> modes() const; | ||
123 | int currentModeId() const; | 124 | int currentModeId() const; | ||
124 | 125 | | |||
126 | /** | ||||
127 | * Current explicitly set size in compositor space. An invalid size is returned in case no size | ||||
128 | * was explicitly set. In this case the output siez in compositor space should be computed | ||||
129 | * from pixelSize() and scaleF(). | ||||
130 | * | ||||
131 | * @return explicitly set logical size | ||||
132 | * | ||||
133 | * @see globalSize | ||||
134 | * | ||||
135 | * @since 5.66 | ||||
136 | */ | ||||
137 | QSizeF logicalSize() const; | ||||
138 | | ||||
125 | QByteArray edid() const; | 139 | QByteArray edid() const; | ||
126 | OutputDeviceInterface::Enablement enabled() const; | 140 | OutputDeviceInterface::Enablement enabled() const; | ||
127 | QByteArray uuid() const; | 141 | QByteArray uuid() const; | ||
128 | 142 | | |||
129 | void setPhysicalSize(const QSize &size); | 143 | void setPhysicalSize(const QSize &size); | ||
130 | void setGlobalPosition(const QPoint &pos); | 144 | void setGlobalPosition(const QPoint &pos); | ||
145 | | ||||
146 | /** | ||||
147 | * Explicitly sets the logical size. | ||||
148 | * | ||||
149 | * @param size the explicitly set logical size | ||||
150 | * @see logicalSize | ||||
151 | * | ||||
152 | * @since 5.66 | ||||
153 | */ | ||||
154 | void setLogicalSize(const QSizeF &size); | ||||
131 | void setManufacturer(const QString &manufacturer); | 155 | void setManufacturer(const QString &manufacturer); | ||
132 | void setModel(const QString &model); | 156 | void setModel(const QString &model); | ||
133 | void setSerialNumber(const QString &serialNumber); | 157 | void setSerialNumber(const QString &serialNumber); | ||
134 | void setEisaId(const QString &eisaId); | 158 | void setEisaId(const QString &eisaId); | ||
135 | #if KWAYLANDSERVER_ENABLE_DEPRECATED_SINCE(5, 50) | 159 | #if KWAYLANDSERVER_ENABLE_DEPRECATED_SINCE(5, 50) | ||
136 | /// @deprecated Since 5.50, use setScale(qreal) | 160 | /// @deprecated Since 5.50, use setScale(qreal) | ||
137 | KWAYLANDSERVER_DEPRECATED_VERSION(5, 50, "Use OutputDeviceInterface::setScale(qreal)") | 161 | KWAYLANDSERVER_DEPRECATED_VERSION(5, 50, "Use OutputDeviceInterface::setScale(qreal)") | ||
138 | void setScale(int scale); | 162 | void setScale(int scale); | ||
Show All 18 Lines | 163 | #endif | |||
157 | void setUuid(const QByteArray &uuid); | 181 | void setUuid(const QByteArray &uuid); | ||
158 | 182 | | |||
159 | static OutputDeviceInterface *get(wl_resource *native); | 183 | static OutputDeviceInterface *get(wl_resource *native); | ||
160 | static QList<OutputDeviceInterface *>list(); | 184 | static QList<OutputDeviceInterface *>list(); | ||
161 | 185 | | |||
162 | Q_SIGNALS: | 186 | Q_SIGNALS: | ||
163 | void physicalSizeChanged(const QSize&); | 187 | void physicalSizeChanged(const QSize&); | ||
164 | void globalPositionChanged(const QPoint&); | 188 | void globalPositionChanged(const QPoint&); | ||
189 | void logicalSizeChanged(); | ||||
165 | void manufacturerChanged(const QString&); | 190 | void manufacturerChanged(const QString&); | ||
166 | void modelChanged(const QString&); | 191 | void modelChanged(const QString&); | ||
167 | void serialNumberChanged(const QString&); | 192 | void serialNumberChanged(const QString&); | ||
168 | void eisaIdChanged(const QString &); | 193 | void eisaIdChanged(const QString &); | ||
169 | void pixelSizeChanged(const QSize&); | 194 | void pixelSizeChanged(const QSize&); | ||
170 | void refreshRateChanged(int); | 195 | void refreshRateChanged(int); | ||
171 | #if KWAYLANDSERVER_ENABLE_DEPRECATED_SINCE(5, 50) | 196 | #if KWAYLANDSERVER_ENABLE_DEPRECATED_SINCE(5, 50) | ||
172 | /// @deprecated Since 5.50, use scaleFChanged(qreal) | 197 | /// @deprecated Since 5.50, use scaleFChanged(qreal) | ||
Show All 32 Lines |
rm