Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwincompositing/compositing.h
Show All 32 Lines | |||||
33 | class Compositing : public QObject | 33 | class Compositing : public QObject | ||
34 | { | 34 | { | ||
35 | 35 | | |||
36 | Q_OBJECT | 36 | Q_OBJECT | ||
37 | Q_PROPERTY(int animationSpeed READ animationSpeed WRITE setAnimationSpeed NOTIFY animationSpeedChanged) | 37 | Q_PROPERTY(int animationSpeed READ animationSpeed WRITE setAnimationSpeed NOTIFY animationSpeedChanged) | ||
38 | Q_PROPERTY(int windowThumbnail READ windowThumbnail WRITE setWindowThumbnail NOTIFY windowThumbnailChanged) | 38 | Q_PROPERTY(int windowThumbnail READ windowThumbnail WRITE setWindowThumbnail NOTIFY windowThumbnailChanged) | ||
39 | Q_PROPERTY(int glScaleFilter READ glScaleFilter WRITE setGlScaleFilter NOTIFY glScaleFilterChanged) | 39 | Q_PROPERTY(int glScaleFilter READ glScaleFilter WRITE setGlScaleFilter NOTIFY glScaleFilterChanged) | ||
40 | Q_PROPERTY(bool xrScaleFilter READ xrScaleFilter WRITE setXrScaleFilter NOTIFY xrScaleFilterChanged) | 40 | Q_PROPERTY(bool xrScaleFilter READ xrScaleFilter WRITE setXrScaleFilter NOTIFY xrScaleFilterChanged) | ||
41 | Q_PROPERTY(bool unredirectFullscreen READ unredirectFullscreen WRITE setUnredirectFullscreen NOTIFY unredirectFullscreenChanged) | | |||
42 | Q_PROPERTY(int glSwapStrategy READ glSwapStrategy WRITE setGlSwapStrategy NOTIFY glSwapStrategyChanged) | 41 | Q_PROPERTY(int glSwapStrategy READ glSwapStrategy WRITE setGlSwapStrategy NOTIFY glSwapStrategyChanged) | ||
43 | Q_PROPERTY(bool glColorCorrection READ glColorCorrection WRITE setGlColorCorrection NOTIFY glColorCorrectionChanged) | 42 | Q_PROPERTY(bool glColorCorrection READ glColorCorrection WRITE setGlColorCorrection NOTIFY glColorCorrectionChanged) | ||
44 | Q_PROPERTY(int compositingType READ compositingType WRITE setCompositingType NOTIFY compositingTypeChanged) | 43 | Q_PROPERTY(int compositingType READ compositingType WRITE setCompositingType NOTIFY compositingTypeChanged) | ||
45 | Q_PROPERTY(bool compositingEnabled READ compositingEnabled WRITE setCompositingEnabled NOTIFY compositingEnabledChanged) | 44 | Q_PROPERTY(bool compositingEnabled READ compositingEnabled WRITE setCompositingEnabled NOTIFY compositingEnabledChanged) | ||
46 | Q_PROPERTY(KWin::Compositing::OpenGLPlatformInterfaceModel *openGLPlatformInterfaceModel READ openGLPlatformInterfaceModel CONSTANT) | 45 | Q_PROPERTY(KWin::Compositing::OpenGLPlatformInterfaceModel *openGLPlatformInterfaceModel READ openGLPlatformInterfaceModel CONSTANT) | ||
47 | Q_PROPERTY(int openGLPlatformInterface READ openGLPlatformInterface WRITE setOpenGLPlatformInterface NOTIFY openGLPlatformInterfaceChanged) | 46 | Q_PROPERTY(int openGLPlatformInterface READ openGLPlatformInterface WRITE setOpenGLPlatformInterface NOTIFY openGLPlatformInterfaceChanged) | ||
48 | public: | 47 | public: | ||
49 | explicit Compositing(QObject *parent = 0); | 48 | explicit Compositing(QObject *parent = 0); | ||
50 | 49 | | |||
51 | Q_INVOKABLE bool OpenGLIsUnsafe() const; | 50 | Q_INVOKABLE bool OpenGLIsUnsafe() const; | ||
52 | Q_INVOKABLE bool OpenGLIsBroken(); | 51 | Q_INVOKABLE bool OpenGLIsBroken(); | ||
53 | Q_INVOKABLE void reenableOpenGLDetection(); | 52 | Q_INVOKABLE void reenableOpenGLDetection(); | ||
54 | int animationSpeed() const; | 53 | int animationSpeed() const; | ||
55 | int windowThumbnail() const; | 54 | int windowThumbnail() const; | ||
56 | int glScaleFilter() const; | 55 | int glScaleFilter() const; | ||
57 | bool xrScaleFilter() const; | 56 | bool xrScaleFilter() const; | ||
58 | bool unredirectFullscreen() const; | | |||
59 | int glSwapStrategy() const; | 57 | int glSwapStrategy() const; | ||
60 | bool glColorCorrection() const; | 58 | bool glColorCorrection() const; | ||
61 | int compositingType() const; | 59 | int compositingType() const; | ||
62 | bool compositingEnabled() const; | 60 | bool compositingEnabled() const; | ||
63 | int openGLPlatformInterface() const; | 61 | int openGLPlatformInterface() const; | ||
64 | 62 | | |||
65 | OpenGLPlatformInterfaceModel *openGLPlatformInterfaceModel() const; | 63 | OpenGLPlatformInterfaceModel *openGLPlatformInterfaceModel() const; | ||
66 | 64 | | |||
67 | void setAnimationSpeed(int speed); | 65 | void setAnimationSpeed(int speed); | ||
68 | void setWindowThumbnail(int index); | 66 | void setWindowThumbnail(int index); | ||
69 | void setGlScaleFilter(int index); | 67 | void setGlScaleFilter(int index); | ||
70 | void setXrScaleFilter(bool filter); | 68 | void setXrScaleFilter(bool filter); | ||
71 | void setUnredirectFullscreen(bool unredirect); | | |||
72 | void setGlSwapStrategy(int strategy); | 69 | void setGlSwapStrategy(int strategy); | ||
73 | void setGlColorCorrection(bool correction); | 70 | void setGlColorCorrection(bool correction); | ||
74 | void setCompositingType(int index); | 71 | void setCompositingType(int index); | ||
75 | void setCompositingEnabled(bool enalbed); | 72 | void setCompositingEnabled(bool enalbed); | ||
76 | void setOpenGLPlatformInterface(int interface); | 73 | void setOpenGLPlatformInterface(int interface); | ||
77 | 74 | | |||
78 | void save(); | 75 | void save(); | ||
79 | 76 | | |||
80 | public Q_SLOTS: | 77 | public Q_SLOTS: | ||
81 | void reset(); | 78 | void reset(); | ||
82 | void defaults(); | 79 | void defaults(); | ||
83 | 80 | | |||
84 | Q_SIGNALS: | 81 | Q_SIGNALS: | ||
85 | void changed(); | 82 | void changed(); | ||
86 | void animationSpeedChanged(int); | 83 | void animationSpeedChanged(int); | ||
87 | void windowThumbnailChanged(int); | 84 | void windowThumbnailChanged(int); | ||
88 | void glScaleFilterChanged(int); | 85 | void glScaleFilterChanged(int); | ||
89 | void xrScaleFilterChanged(int); | 86 | void xrScaleFilterChanged(int); | ||
90 | void unredirectFullscreenChanged(bool); | | |||
91 | void glSwapStrategyChanged(int); | 87 | void glSwapStrategyChanged(int); | ||
92 | void glColorCorrectionChanged(bool); | 88 | void glColorCorrectionChanged(bool); | ||
93 | void compositingTypeChanged(int); | 89 | void compositingTypeChanged(int); | ||
94 | void compositingEnabledChanged(bool); | 90 | void compositingEnabledChanged(bool); | ||
95 | void openGLPlatformInterfaceChanged(int); | 91 | void openGLPlatformInterfaceChanged(int); | ||
96 | 92 | | |||
97 | private: | 93 | private: | ||
98 | int m_animationSpeed; | 94 | int m_animationSpeed; | ||
99 | int m_windowThumbnail; | 95 | int m_windowThumbnail; | ||
100 | int m_glScaleFilter; | 96 | int m_glScaleFilter; | ||
101 | bool m_xrScaleFilter; | 97 | bool m_xrScaleFilter; | ||
102 | bool m_unredirectFullscreen; | | |||
103 | int m_glSwapStrategy; | 98 | int m_glSwapStrategy; | ||
104 | bool m_glColorCorrection; | 99 | bool m_glColorCorrection; | ||
105 | int m_compositingType; | 100 | int m_compositingType; | ||
106 | bool m_compositingEnabled; | 101 | bool m_compositingEnabled; | ||
107 | bool m_changed; | 102 | bool m_changed; | ||
108 | OpenGLPlatformInterfaceModel *m_openGLPlatformInterfaceModel; | 103 | OpenGLPlatformInterfaceModel *m_openGLPlatformInterfaceModel; | ||
109 | int m_openGLPlatformInterface; | 104 | int m_openGLPlatformInterface; | ||
110 | }; | 105 | }; | ||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |