Changeset View
Changeset View
Standalone View
Standalone View
scene.h
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 63 | public: | |||
---|---|---|---|---|---|
71 | virtual CompositingType compositingType() const = 0; | 71 | virtual CompositingType compositingType() const = 0; | ||
72 | 72 | | |||
73 | virtual bool hasPendingFlush() const { return false; } | 73 | virtual bool hasPendingFlush() const { return false; } | ||
74 | 74 | | |||
75 | // Repaints the given screen areas, windows provides the stacking order. | 75 | // Repaints the given screen areas, windows provides the stacking order. | ||
76 | // The entry point for the main part of the painting pass. | 76 | // The entry point for the main part of the painting pass. | ||
77 | // returns the time since the last vblank signal - if there's one | 77 | // returns the time since the last vblank signal - if there's one | ||
78 | // ie. "what of this frame is lost to painting" | 78 | // ie. "what of this frame is lost to painting" | ||
79 | virtual qint64 paint(QRegion damage, ToplevelList windows) = 0; | 79 | virtual qint64 paint(QRegion damage, QList<Toplevel *> windows) = 0; | ||
80 | 80 | | |||
81 | /** | 81 | /** | ||
82 | * Adds the Toplevel to the Scene. | 82 | * Adds the Toplevel to the Scene. | ||
83 | * | 83 | * | ||
84 | * If the toplevel gets deleted, then the scene will try automatically | 84 | * If the toplevel gets deleted, then the scene will try automatically | ||
85 | * to re-bind an underlying scene window to the corresponding Deleted. | 85 | * to re-bind an underlying scene window to the corresponding Deleted. | ||
86 | * | 86 | * | ||
87 | * @param toplevel The window to be added. | 87 | * @param toplevel The window to be added. | ||
▲ Show 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | |||||
202 | 202 | | |||
203 | public Q_SLOTS: | 203 | public Q_SLOTS: | ||
204 | // shape/size of a window changed | 204 | // shape/size of a window changed | ||
205 | void windowGeometryShapeChanged(KWin::Toplevel* c); | 205 | void windowGeometryShapeChanged(KWin::Toplevel* c); | ||
206 | // a window has been closed | 206 | // a window has been closed | ||
207 | void windowClosed(KWin::Toplevel* c, KWin::Deleted* deleted); | 207 | void windowClosed(KWin::Toplevel* c, KWin::Deleted* deleted); | ||
208 | protected: | 208 | protected: | ||
209 | virtual Window *createWindow(Toplevel *toplevel) = 0; | 209 | virtual Window *createWindow(Toplevel *toplevel) = 0; | ||
210 | void createStackingOrder(ToplevelList toplevels); | 210 | void createStackingOrder(QList<Toplevel *> toplevels); | ||
211 | void clearStackingOrder(); | 211 | void clearStackingOrder(); | ||
212 | // shared implementation, starts painting the screen | 212 | // shared implementation, starts painting the screen | ||
213 | void paintScreen(int *mask, const QRegion &damage, const QRegion &repaint, | 213 | void paintScreen(int *mask, const QRegion &damage, const QRegion &repaint, | ||
214 | QRegion *updateRegion, QRegion *validRegion, const QMatrix4x4 &projection = QMatrix4x4(), const QRect &outputGeometry = QRect()); | 214 | QRegion *updateRegion, QRegion *validRegion, const QMatrix4x4 &projection = QMatrix4x4(), const QRect &outputGeometry = QRect()); | ||
215 | // Render cursor texture in case hardware cursor is disabled/non-applicable | 215 | // Render cursor texture in case hardware cursor is disabled/non-applicable | ||
216 | virtual void paintCursor() = 0; | 216 | virtual void paintCursor() = 0; | ||
217 | friend class EffectsHandlerImpl; | 217 | friend class EffectsHandlerImpl; | ||
218 | // called after all effects had their paintScreen() called | 218 | // called after all effects had their paintScreen() called | ||
▲ Show 20 Lines • Show All 480 Lines • Show Last 20 Lines |