Changeset View
Changeset View
Standalone View
Standalone View
platform.h
Show All 14 Lines | |||||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #ifndef KWIN_PLATFORM_H | 20 | #ifndef KWIN_PLATFORM_H | ||
21 | #define KWIN_PLATFORM_H | 21 | #define KWIN_PLATFORM_H | ||
22 | #include <kwin_export.h> | 22 | #include <kwin_export.h> | ||
23 | #include <kwinglobals.h> | ||||
23 | #include <epoxy/egl.h> | 24 | #include <epoxy/egl.h> | ||
24 | #include <fixx11h.h> | 25 | #include <fixx11h.h> | ||
25 | #include <QImage> | 26 | #include <QImage> | ||
26 | #include <QObject> | 27 | #include <QObject> | ||
27 | 28 | | |||
28 | namespace KWayland { | 29 | namespace KWayland { | ||
29 | namespace Server { | 30 | namespace Server { | ||
30 | class OutputConfigurationInterface; | 31 | class OutputConfigurationInterface; | ||
▲ Show 20 Lines • Show All 125 Lines • ▼ Show 20 Line(s) | 48 | public: | |||
156 | 157 | | |||
157 | bool usesSoftwareCursor() const { | 158 | bool usesSoftwareCursor() const { | ||
158 | return m_softWareCursor; | 159 | return m_softWareCursor; | ||
159 | } | 160 | } | ||
160 | QImage softwareCursor() const; | 161 | QImage softwareCursor() const; | ||
161 | QPoint softwareCursorHotspot() const; | 162 | QPoint softwareCursorHotspot() const; | ||
162 | void markCursorAsRendered(); | 163 | void markCursorAsRendered(); | ||
163 | 164 | | |||
165 | /** | ||||
166 | * Returns a PlatformCursorImage. By default this is created by softwareCursor and | ||||
167 | * softwareCursorHotspot. An implementing subclass can use this to provide a better | ||||
168 | * suited PlatformCursorImage. | ||||
169 | * | ||||
170 | * @see softwareCursor | ||||
171 | * @see softwareCursorHotspot | ||||
172 | * @since 5.9 | ||||
173 | **/ | ||||
174 | virtual PlatformCursorImage cursorImage() const; | ||||
175 | | ||||
164 | bool handlesOutputs() const { | 176 | bool handlesOutputs() const { | ||
165 | return m_handlesOutputs; | 177 | return m_handlesOutputs; | ||
166 | } | 178 | } | ||
167 | bool isReady() const { | 179 | bool isReady() const { | ||
168 | return m_ready; | 180 | return m_ready; | ||
169 | } | 181 | } | ||
170 | void setInitialWindowSize(const QSize &size) { | 182 | void setInitialWindowSize(const QSize &size) { | ||
171 | m_initialWindowSize = size; | 183 | m_initialWindowSize = size; | ||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |