Changeset View
Changeset View
Standalone View
Standalone View
plugins/kdecorations/aurorae/src/aurorae.h
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 68 | protected: | |||
---|---|---|---|---|---|
74 | void mouseReleaseEvent(QMouseEvent *event) override; | 74 | void mouseReleaseEvent(QMouseEvent *event) override; | ||
75 | 75 | | |||
76 | private: | 76 | private: | ||
77 | void setupBorders(QQuickItem *item); | 77 | void setupBorders(QQuickItem *item); | ||
78 | void updateBorders(); | 78 | void updateBorders(); | ||
79 | QMouseEvent translatedMouseEvent(QMouseEvent *orig); | 79 | QMouseEvent translatedMouseEvent(QMouseEvent *orig); | ||
80 | QScopedPointer<QOpenGLFramebufferObject> m_fbo; | 80 | QScopedPointer<QOpenGLFramebufferObject> m_fbo; | ||
81 | QImage m_buffer; | 81 | QImage m_buffer; | ||
82 | QRect m_contentRect; //the geometry of the part of the buffer that is not a shadow when buffer was created. | ||||
82 | QPointer<QQuickWindow> m_view; | 83 | QPointer<QQuickWindow> m_view; | ||
83 | QQuickItem *m_item; | 84 | QQuickItem *m_item; | ||
84 | KWin::Borders *m_borders; | 85 | KWin::Borders *m_borders; | ||
85 | KWin::Borders *m_maximizedBorders; | 86 | KWin::Borders *m_maximizedBorders; | ||
86 | KWin::Borders *m_extendedBorders; | 87 | KWin::Borders *m_extendedBorders; | ||
87 | KWin::Borders *m_padding; | 88 | KWin::Borders *m_padding; | ||
88 | QString m_themeName; | 89 | QString m_themeName; | ||
89 | QQuickRenderControl *m_renderControl = nullptr; | 90 | QQuickRenderControl *m_renderControl = nullptr; | ||
90 | QScopedPointer<QTimer> m_updateTimer; | 91 | QScopedPointer<QTimer> m_updateTimer; | ||
91 | QScopedPointer<QOpenGLContext> m_context; | 92 | QScopedPointer<QOpenGLContext> m_context; | ||
92 | QScopedPointer<QOffscreenSurface> m_offscreenSurface; | 93 | QScopedPointer<QOffscreenSurface> m_offscreenSurface; | ||
93 | QSharedPointer<KDecoration2::DecorationShadow> m_scheduledShadow; | | |||
94 | QElapsedTimer m_doubleClickTimer; | 94 | QElapsedTimer m_doubleClickTimer; | ||
95 | }; | 95 | }; | ||
96 | 96 | | |||
97 | class ThemeFinder : public QObject | 97 | class ThemeFinder : public QObject | ||
98 | { | 98 | { | ||
99 | Q_OBJECT | 99 | Q_OBJECT | ||
100 | Q_PROPERTY(QVariantMap themes READ themes) | 100 | Q_PROPERTY(QVariantMap themes READ themes) | ||
101 | public: | 101 | public: | ||
Show All 34 Lines |