Changeset View
Changeset View
Standalone View
Standalone View
plugins/scenes/qpainter/scene_qpainter.h
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Line(s) | 117 | private: | |||
---|---|---|---|---|---|
118 | SceneQPainter *m_scene; | 118 | SceneQPainter *m_scene; | ||
119 | }; | 119 | }; | ||
120 | 120 | | |||
121 | class SceneQPainterShadow : public Shadow | 121 | class SceneQPainterShadow : public Shadow | ||
122 | { | 122 | { | ||
123 | public: | 123 | public: | ||
124 | SceneQPainterShadow(Toplevel* toplevel); | 124 | SceneQPainterShadow(Toplevel* toplevel); | ||
125 | virtual ~SceneQPainterShadow(); | 125 | virtual ~SceneQPainterShadow(); | ||
126 | using Shadow::ShadowElements; | 126 | | ||
127 | using Shadow::ShadowElementTop; | 127 | QImage &shadowTexture() { | ||
128 | using Shadow::ShadowElementTopRight; | 128 | return m_texture; | ||
129 | using Shadow::ShadowElementRight; | 129 | } | ||
130 | using Shadow::ShadowElementBottomRight; | 130 | | ||
131 | using Shadow::ShadowElementBottom; | | |||
132 | using Shadow::ShadowElementBottomLeft; | | |||
133 | using Shadow::ShadowElementLeft; | | |||
134 | using Shadow::ShadowElementTopLeft; | | |||
135 | using Shadow::ShadowElementsCount; | | |||
136 | using Shadow::shadowPixmap; | | |||
137 | using Shadow::topOffset; | | |||
138 | using Shadow::leftOffset; | | |||
139 | using Shadow::rightOffset; | | |||
140 | using Shadow::bottomOffset; | | |||
141 | protected: | 131 | protected: | ||
132 | virtual void buildQuads() override; | ||||
142 | virtual bool prepareBackend() override; | 133 | virtual bool prepareBackend() override; | ||
134 | | ||||
135 | private: | ||||
136 | QImage m_texture; | ||||
143 | }; | 137 | }; | ||
144 | 138 | | |||
145 | class SceneQPainterDecorationRenderer : public Decoration::Renderer | 139 | class SceneQPainterDecorationRenderer : public Decoration::Renderer | ||
146 | { | 140 | { | ||
147 | Q_OBJECT | 141 | Q_OBJECT | ||
148 | public: | 142 | public: | ||
149 | enum class DecorationPart : int { | 143 | enum class DecorationPart : int { | ||
150 | Left, | 144 | Left, | ||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |