Changeset View
Changeset View
Standalone View
Standalone View
platform.h
Show First 20 Lines • Show All 424 Lines • ▼ Show 20 Line(s) | 81 | public: | |||
---|---|---|---|---|---|
425 | * A string of information to include in kwin debug output | 425 | * A string of information to include in kwin debug output | ||
426 | * It should not be translated. | 426 | * It should not be translated. | ||
427 | * | 427 | * | ||
428 | * The base implementation prints the name. | 428 | * The base implementation prints the name. | ||
429 | * @since 5.12 | 429 | * @since 5.12 | ||
430 | **/ | 430 | **/ | ||
431 | virtual QString supportInformation() const; | 431 | virtual QString supportInformation() const; | ||
432 | 432 | | |||
433 | /** | ||||
434 | * The compositor plugin which got selected from @link{supportedCompositors}. | ||||
zzag: The link command should be ended with an endlink command, or just be enclosed in braces. | |||||
435 | * Prior to selecting a compositor this returns @c NoCompositing. | ||||
436 | * | ||||
437 | * This method allows the platforms to limit the offerings in @link{supportedCompositors} | ||||
438 | * in case they do not support runtime compositor switching | ||||
439 | **/ | ||||
440 | CompositingType selectedCompositor() const | ||||
441 | { | ||||
442 | return m_selectedCompositor; | ||||
443 | } | ||||
444 | /** | ||||
445 | * Used by Compositor to set the used compositor. | ||||
446 | **/ | ||||
447 | void setSelectedCompositor(CompositingType type) | ||||
448 | { | ||||
449 | m_selectedCompositor = type; | ||||
450 | } | ||||
451 | | ||||
433 | public Q_SLOTS: | 452 | public Q_SLOTS: | ||
434 | void pointerMotion(const QPointF &position, quint32 time); | 453 | void pointerMotion(const QPointF &position, quint32 time); | ||
435 | void pointerButtonPressed(quint32 button, quint32 time); | 454 | void pointerButtonPressed(quint32 button, quint32 time); | ||
436 | void pointerButtonReleased(quint32 button, quint32 time); | 455 | void pointerButtonReleased(quint32 button, quint32 time); | ||
437 | void pointerAxisHorizontal(qreal delta, quint32 time); | 456 | void pointerAxisHorizontal(qreal delta, quint32 time); | ||
438 | void pointerAxisVertical(qreal delta, quint32 time); | 457 | void pointerAxisVertical(qreal delta, quint32 time); | ||
439 | void keyboardKeyPressed(quint32 key, quint32 time); | 458 | void keyboardKeyPressed(quint32 key, quint32 time); | ||
440 | void keyboardKeyReleased(quint32 key, quint32 time); | 459 | void keyboardKeyReleased(quint32 key, quint32 time); | ||
▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | 532 | private: | |||
526 | qreal m_initialOutputScale = 1; | 545 | qreal m_initialOutputScale = 1; | ||
527 | EGLDisplay m_eglDisplay; | 546 | EGLDisplay m_eglDisplay; | ||
528 | EGLConfig m_eglConfig = nullptr; | 547 | EGLConfig m_eglConfig = nullptr; | ||
529 | EGLContext m_context = EGL_NO_CONTEXT; | 548 | EGLContext m_context = EGL_NO_CONTEXT; | ||
530 | EGLSurface m_surface = EGL_NO_SURFACE; | 549 | EGLSurface m_surface = EGL_NO_SURFACE; | ||
531 | int m_hideCursorCounter = 0; | 550 | int m_hideCursorCounter = 0; | ||
532 | ColorCorrect::Manager *m_colorCorrect = nullptr; | 551 | ColorCorrect::Manager *m_colorCorrect = nullptr; | ||
533 | bool m_supportsGammaControl = false; | 552 | bool m_supportsGammaControl = false; | ||
553 | CompositingType m_selectedCompositor = NoCompositing; | ||||
534 | }; | 554 | }; | ||
535 | 555 | | |||
536 | } | 556 | } | ||
537 | 557 | | |||
538 | Q_DECLARE_INTERFACE(KWin::Platform, "org.kde.kwin.Platform") | 558 | Q_DECLARE_INTERFACE(KWin::Platform, "org.kde.kwin.Platform") | ||
539 | 559 | | |||
540 | #endif | 560 | #endif |
The link command should be ended with an endlink command, or just be enclosed in braces.