Changeset View
Changeset View
Standalone View
Standalone View
plugins/scenes/qpainter/scene_qpainter.h
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | |||||
86 | }; | 86 | }; | ||
87 | 87 | | |||
88 | class QPainterWindowPixmap : public WindowPixmap | 88 | class QPainterWindowPixmap : public WindowPixmap | ||
89 | { | 89 | { | ||
90 | public: | 90 | public: | ||
91 | explicit QPainterWindowPixmap(Scene::Window *window); | 91 | explicit QPainterWindowPixmap(Scene::Window *window); | ||
92 | ~QPainterWindowPixmap() override; | 92 | ~QPainterWindowPixmap() override; | ||
93 | void create() override; | 93 | void create() override; | ||
94 | void update() override; | ||||
94 | bool isValid() const override; | 95 | bool isValid() const override; | ||
95 | 96 | | |||
96 | void updateBuffer() override; | | |||
97 | const QImage &image(); | 97 | const QImage &image(); | ||
98 | 98 | | |||
99 | protected: | 99 | protected: | ||
100 | WindowPixmap *createChild(const QPointer<KWayland::Server::SubSurfaceInterface> &subSurface) override; | 100 | WindowPixmap *createChild(const QPointer<KWayland::Server::SubSurfaceInterface> &subSurface) override; | ||
101 | private: | 101 | private: | ||
102 | explicit QPainterWindowPixmap(const QPointer<KWayland::Server::SubSurfaceInterface> &subSurface, WindowPixmap *parent); | 102 | explicit QPainterWindowPixmap(const QPointer<KWayland::Server::SubSurfaceInterface> &subSurface, WindowPixmap *parent); | ||
103 | QImage m_image; | 103 | QImage m_image; | ||
104 | }; | 104 | }; | ||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |