Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: xfa/fde/fde_object.h

Issue 1866333003: Remove IFDE_Image, IFDE_PathSet, IFDE_ImageSet, and IFDE_WidgetSet. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FDE_FDE_OBJECT_H_ 7 #ifndef XFA_FDE_FDE_OBJECT_H_
8 #define XFA_FDE_FDE_OBJECT_H_ 8 #define XFA_FDE_FDE_OBJECT_H_
9 9
10 #include <cstdint> 10 #include <cstdint>
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 m_iStyle = iHatchStyle; 148 m_iStyle = iHatchStyle;
149 return m_iStyle >= FDE_HATCHSTYLE_Min && m_iStyle <= FDE_HATCHSTYLE_Max; 149 return m_iStyle >= FDE_HATCHSTYLE_Min && m_iStyle <= FDE_HATCHSTYLE_Max;
150 } 150 }
151 int32_t m_iStyle; 151 int32_t m_iStyle;
152 FX_ARGB m_BackColor; 152 FX_ARGB m_BackColor;
153 FX_ARGB m_ForeColor; 153 FX_ARGB m_ForeColor;
154 CFX_Matrix m_Matrix; 154 CFX_Matrix m_Matrix;
155 }; 155 };
156 class CFDE_TextureBrush : public IFDE_TextureBrush, public CFX_Target { 156 class CFDE_TextureBrush : public IFDE_TextureBrush, public CFX_Target {
157 public: 157 public:
158 CFDE_TextureBrush() : m_iWrap(0), m_pImage(NULL), m_bAutoRelease(FALSE) { 158 CFDE_TextureBrush() : m_iWrap(0), m_bAutoRelease(FALSE) {
159 m_Matrix.SetIdentity(); 159 m_Matrix.SetIdentity();
160 } 160 }
161 161
162 virtual void Release() { delete this; } 162 virtual void Release() { delete this; }
163 virtual int32_t GetType() const { return FDE_BRUSHTYPE_Texture; } 163 virtual int32_t GetType() const { return FDE_BRUSHTYPE_Texture; }
164 virtual const CFX_Matrix& GetMatrix() const { return m_Matrix; } 164 virtual const CFX_Matrix& GetMatrix() const { return m_Matrix; }
165 virtual void ResetMatrix() { m_Matrix.SetIdentity(); } 165 virtual void ResetMatrix() { m_Matrix.SetIdentity(); }
166 virtual void TranslateMatrix(FX_FLOAT dx, FX_FLOAT dy) { 166 virtual void TranslateMatrix(FX_FLOAT dx, FX_FLOAT dy) {
167 m_Matrix.Translate(dx, dy); 167 m_Matrix.Translate(dx, dy);
168 } 168 }
169 virtual void RotateMatrix(FX_FLOAT fRadian) { m_Matrix.Rotate(fRadian); } 169 virtual void RotateMatrix(FX_FLOAT fRadian) { m_Matrix.Rotate(fRadian); }
170 virtual void ScaleMatrix(FX_FLOAT sx, FX_FLOAT sy) { m_Matrix.Scale(sx, sy); } 170 virtual void ScaleMatrix(FX_FLOAT sx, FX_FLOAT sy) { m_Matrix.Scale(sx, sy); }
171 virtual void ConcatMatrix(const CFX_Matrix& matrix) { 171 virtual void ConcatMatrix(const CFX_Matrix& matrix) {
172 m_Matrix.Concat(matrix); 172 m_Matrix.Concat(matrix);
173 } 173 }
174 virtual void SetMatrix(const CFX_Matrix& matrix) { m_Matrix = matrix; } 174 virtual void SetMatrix(const CFX_Matrix& matrix) { m_Matrix = matrix; }
175 virtual IFDE_Image* GetImage() const { return m_pImage; } 175
176 virtual void SetImage(IFDE_Image* pImage, FX_BOOL bAutoRelease) {
177 m_pImage = pImage;
178 m_bAutoRelease = bAutoRelease;
179 }
180 virtual int32_t GetWrapMode() const { return m_iWrap; } 176 virtual int32_t GetWrapMode() const { return m_iWrap; }
181 virtual void SetWrapMode(int32_t iWrapMode) { m_iWrap = iWrapMode; } 177 virtual void SetWrapMode(int32_t iWrapMode) { m_iWrap = iWrapMode; }
182 int32_t m_iWrap; 178 int32_t m_iWrap;
183 IFDE_Image* m_pImage;
184 FX_BOOL m_bAutoRelease; 179 FX_BOOL m_bAutoRelease;
185 CFX_Matrix m_Matrix; 180 CFX_Matrix m_Matrix;
186 }; 181 };
187 class CFDE_LinearBrush : public IFDE_LinearGradientBrush, public CFX_Target { 182 class CFDE_LinearBrush : public IFDE_LinearGradientBrush, public CFX_Target {
188 public: 183 public:
189 CFDE_LinearBrush() : m_EndColor(0), m_StartColor(0), m_iWrapMode(0) { 184 CFDE_LinearBrush() : m_EndColor(0), m_StartColor(0), m_iWrapMode(0) {
190 m_StartPoint.x = m_StartPoint.y = m_EndPoint.x = m_EndPoint.y = 0; 185 m_StartPoint.x = m_StartPoint.y = m_EndPoint.x = m_EndPoint.y = 0;
191 m_Matrix.SetIdentity(); 186 m_Matrix.SetIdentity();
192 } 187 }
193 188
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 CFX_PointF m_EndPoint; 232 CFX_PointF m_EndPoint;
238 CFX_PointF m_StartPoint; 233 CFX_PointF m_StartPoint;
239 FX_ARGB m_EndColor; 234 FX_ARGB m_EndColor;
240 FX_ARGB m_StartColor; 235 FX_ARGB m_StartColor;
241 CFDE_GradientColors m_GradColors; 236 CFDE_GradientColors m_GradColors;
242 int32_t m_iWrapMode; 237 int32_t m_iWrapMode;
243 CFX_Matrix m_Matrix; 238 CFX_Matrix m_Matrix;
244 }; 239 };
245 240
246 #endif // XFA_FDE_FDE_OBJECT_H_ 241 #endif // XFA_FDE_FDE_OBJECT_H_
OLDNEW
« xfa/fde/fde_iterator.cpp ('K') | « xfa/fde/fde_iterator.cpp ('k') | xfa/fde/fde_render.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698