OLD | NEW |
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 _FX_GE_H_ | 7 #ifndef _FX_GE_H_ |
8 #define _FX_GE_H_ | 8 #define _FX_GE_H_ |
9 #ifndef _FX_DIB_H_ | 9 #ifndef _FX_DIB_H_ |
10 #include "fx_dib.h" | 10 #include "fx_dib.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 return m_pPoints[index].m_PointY; | 179 return m_pPoints[index].m_PointY; |
180 } | 180 } |
181 | 181 |
182 | 182 |
183 | 183 |
184 FX_PATHPOINT* GetPoints() const | 184 FX_PATHPOINT* GetPoints() const |
185 { | 185 { |
186 return m_pPoints; | 186 return m_pPoints; |
187 } | 187 } |
188 | 188 |
189 void SetPointCount(int nPoints); | 189 FX_BOOL» » » » SetPointCount(int nPoints); |
190 void AllocPointCount(int nPoints); | 190 |
191 void AddPointCount(int addPoints); | 191 FX_BOOL» » » » AllocPointCount(int nPoints); |
| 192 |
| 193 FX_BOOL» » » » AddPointCount(int addPoints); |
192 | 194 |
193 CFX_FloatRect GetBoundingBox() const; | 195 CFX_FloatRect GetBoundingBox() const; |
194 | 196 |
195 CFX_FloatRect GetBoundingBox(FX_FLOAT line_width, FX_FLOAT mit
er_limit) const; | 197 CFX_FloatRect GetBoundingBox(FX_FLOAT line_width, FX_FLOAT mit
er_limit) const; |
196 | 198 |
197 void Transform(const CFX_AffineMatrix* pMatri
x); | 199 void Transform(const CFX_AffineMatrix* pMatri
x); |
198 | 200 |
199 FX_BOOL IsRect() const; | 201 FX_BOOL IsRect() const; |
200 | 202 |
201 FX_BOOL GetZeroAreaPath(CFX_PathData& NewPath, C
FX_AffineMatrix* pMatrix, FX_BOOL&bThin, FX_BOOL bAdjust) const; | 203 FX_BOOL GetZeroAreaPath(CFX_PathData& NewPath, C
FX_AffineMatrix* pMatrix, FX_BOOL&bThin, FX_BOOL bAdjust) const; |
202 | 204 |
203 FX_BOOL IsRect(const CFX_AffineMatrix* pMatrix,
CFX_FloatRect* rect) const; | 205 FX_BOOL IsRect(const CFX_AffineMatrix* pMatrix,
CFX_FloatRect* rect) const; |
204 | 206 |
205 void Append(const CFX_PathData* pSrc, const CFX_AffineMatrix* pMatrix); | 207 FX_BOOL» » » » Append(const CFX_PathData* pSrc, const C
FX_AffineMatrix* pMatrix); |
206 void AppendRect(FX_FLOAT left, FX_FLOAT bottom, FX_FLOAT right, FX_FLOAT top
); | 208 |
| 209 FX_BOOL» » » » AppendRect(FX_FLOAT left, FX_FLOAT botto
m, FX_FLOAT right, FX_FLOAT top); |
207 | 210 |
208 void SetPoint(int index, FX_FLOAT x, FX_FLOAT
y, int flag); | 211 void SetPoint(int index, FX_FLOAT x, FX_FLOAT
y, int flag); |
209 | 212 |
210 void TrimPoints(int nPoints); | 213 void TrimPoints(int nPoints); |
211 | 214 |
212 void Copy(const CFX_PathData &src); | 215 FX_BOOL» » » » Copy(const CFX_PathData &src); |
213 protected: | 216 protected: |
214 friend class CPDF_Path; | 217 friend class CPDF_Path; |
215 | 218 |
216 int m_PointCount; | 219 int m_PointCount; |
217 | 220 |
218 FX_PATHPOINT* m_pPoints; | 221 FX_PATHPOINT* m_pPoints; |
219 | 222 |
220 int m_AllocCount; | 223 int m_AllocCount; |
221 }; | 224 }; |
222 class CFX_GraphStateData | 225 class CFX_GraphStateData |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 | 726 |
724 void SetGraphState(const CFX_GraphStateData* pGraphSt
ate); | 727 void SetGraphState(const CFX_GraphStateData* pGraphSt
ate); |
725 | 728 |
726 void SetColor(FX_DWORD color, int alpha_flag, void* p
IccTransform); | 729 void SetColor(FX_DWORD color, int alpha_flag, void* p
IccTransform); |
727 | 730 |
728 void FindPSFontGlyph(CFX_FaceCache* pFaceCache, CFX_F
ont* pFont, const FXTEXT_CHARPOS& charpos, int& ps_fontnum, int &ps_glyphindex); | 731 void FindPSFontGlyph(CFX_FaceCache* pFaceCache, CFX_F
ont* pFont, const FXTEXT_CHARPOS& charpos, int& ps_fontnum, int &ps_glyphindex); |
729 | 732 |
730 void WritePSBinary(FX_LPCBYTE data, int len); | 733 void WritePSBinary(FX_LPCBYTE data, int len); |
731 }; | 734 }; |
732 #endif | 735 #endif |
OLD | NEW |