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