Changeset View
Changeset View
Standalone View
Standalone View
abstract_wayland_output.h
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | |||||
108 | Q_SIGNALS: | 108 | Q_SIGNALS: | ||
109 | void modeChanged(); | 109 | void modeChanged(); | ||
110 | 110 | | |||
111 | protected: | 111 | protected: | ||
112 | void initWaylandOutput(); | 112 | void initWaylandOutput(); | ||
113 | void initWaylandOutputDevice(const QString &model, | 113 | void initWaylandOutputDevice(const QString &model, | ||
114 | const QString &manufacturer, | 114 | const QString &manufacturer, | ||
115 | const QByteArray &uuid, | 115 | const QByteArray &uuid, | ||
116 | const QSize &physicalSize, | ||||
116 | const QVector<KWayland::Server::OutputDeviceInterface::Mode> &modes); | 117 | const QVector<KWayland::Server::OutputDeviceInterface::Mode> &modes); | ||
117 | 118 | | |||
118 | QPointer<KWayland::Server::XdgOutputInterface> xdgOutput() const { | 119 | QPointer<KWayland::Server::XdgOutputInterface> xdgOutput() const { | ||
119 | return m_xdgOutput; | 120 | return m_xdgOutput; | ||
120 | } | 121 | } | ||
121 | void createXdgOutput(); | 122 | void createXdgOutput(); | ||
122 | 123 | | |||
123 | QPointer<KWayland::Server::OutputDeviceInterface> waylandOutputDevice() const { | 124 | QPointer<KWayland::Server::OutputDeviceInterface> waylandOutputDevice() const { | ||
124 | return m_waylandOutputDevice; | 125 | return m_waylandOutputDevice; | ||
125 | } | 126 | } | ||
126 | 127 | | |||
127 | QPoint globalPos() const; | 128 | QPoint globalPos() const; | ||
128 | 129 | | |||
129 | QSize rawPhysicalSize() const { | | |||
130 | return m_physicalSize; | | |||
131 | } | | |||
132 | void setRawPhysicalSize(const QSize &set) { | | |||
133 | m_physicalSize = set; | | |||
134 | } | | |||
135 | | ||||
136 | void setOrientation(Qt::ScreenOrientation set) { | 130 | void setOrientation(Qt::ScreenOrientation set) { | ||
137 | m_orientation = set; | 131 | m_orientation = set; | ||
138 | } | 132 | } | ||
139 | bool internal() const { | 133 | bool internal() const { | ||
140 | return m_internal; | 134 | return m_internal; | ||
141 | } | 135 | } | ||
142 | void setInternal(bool set) { | 136 | void setInternal(bool set) { | ||
143 | m_internal = set; | 137 | m_internal = set; | ||
Show All 17 Lines | |||||
161 | 155 | | |||
162 | private: | 156 | private: | ||
163 | QPointer<KWayland::Server::OutputInterface> m_waylandOutput; | 157 | QPointer<KWayland::Server::OutputInterface> m_waylandOutput; | ||
164 | QPointer<KWayland::Server::XdgOutputInterface> m_xdgOutput; | 158 | QPointer<KWayland::Server::XdgOutputInterface> m_xdgOutput; | ||
165 | QPointer<KWayland::Server::OutputDeviceInterface> m_waylandOutputDevice; | 159 | QPointer<KWayland::Server::OutputDeviceInterface> m_waylandOutputDevice; | ||
166 | 160 | | |||
167 | KWayland::Server::OutputInterface::DpmsMode m_dpms = KWayland::Server::OutputInterface::DpmsMode::On; | 161 | KWayland::Server::OutputInterface::DpmsMode m_dpms = KWayland::Server::OutputInterface::DpmsMode::On; | ||
168 | 162 | | |||
169 | QSize m_physicalSize; | | |||
170 | Qt::ScreenOrientation m_orientation = Qt::PrimaryOrientation; | 163 | Qt::ScreenOrientation m_orientation = Qt::PrimaryOrientation; | ||
171 | bool m_internal = false; | 164 | bool m_internal = false; | ||
172 | bool m_supportsDpms = false; | 165 | bool m_supportsDpms = false; | ||
173 | }; | 166 | }; | ||
174 | 167 | | |||
175 | } | 168 | } | ||
176 | 169 | | |||
177 | #endif // KWIN_OUTPUT_H | 170 | #endif // KWIN_OUTPUT_H |