OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FXGRAPHICS_CFX_GRAPHICS_H_ | 7 #ifndef XFA_FXGRAPHICS_CFX_GRAPHICS_H_ |
8 #define XFA_FXGRAPHICS_CFX_GRAPHICS_H_ | 8 #define XFA_FXGRAPHICS_CFX_GRAPHICS_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 const CFX_PointF& point, | 158 const CFX_PointF& point, |
159 CFX_Matrix* matrix = nullptr); | 159 CFX_Matrix* matrix = nullptr); |
160 FWL_Error StretchImage(CFX_DIBSource* source, | 160 FWL_Error StretchImage(CFX_DIBSource* source, |
161 const CFX_RectF& rect, | 161 const CFX_RectF& rect, |
162 CFX_Matrix* matrix = nullptr); | 162 CFX_Matrix* matrix = nullptr); |
163 FWL_Error ConcatMatrix(const CFX_Matrix* matrix); | 163 FWL_Error ConcatMatrix(const CFX_Matrix* matrix); |
164 FWL_Error ClearClip(); | 164 FWL_Error ClearClip(); |
165 FWL_Error ShowText(const CFX_PointF& point, | 165 FWL_Error ShowText(const CFX_PointF& point, |
166 const CFX_WideString& text, | 166 const CFX_WideString& text, |
167 CFX_Matrix* matrix = nullptr); | 167 CFX_Matrix* matrix = nullptr); |
168 FWL_Error CalcTextRect(CFX_RectF& rect, | 168 void CalcTextRect(CFX_RectF& rect, |
169 const CFX_WideString& text, | 169 const CFX_WideString& text, |
170 FX_BOOL isMultiline = FALSE, | 170 FX_BOOL isMultiline = FALSE, |
171 CFX_Matrix* matrix = nullptr); | 171 CFX_Matrix* matrix = nullptr); |
172 FWL_Error Transfer(CFX_Graphics* graphics, const CFX_Matrix* matrix); | 172 FWL_Error Transfer(CFX_Graphics* graphics, const CFX_Matrix* matrix); |
173 FWL_Error Transfer(CFX_Graphics* graphics, | 173 FWL_Error Transfer(CFX_Graphics* graphics, |
174 FX_FLOAT srcLeft, | 174 FX_FLOAT srcLeft, |
175 FX_FLOAT srcTop, | 175 FX_FLOAT srcTop, |
176 const CFX_RectF& dstRect, | 176 const CFX_RectF& dstRect, |
177 const CFX_Matrix* matrix); | 177 const CFX_Matrix* matrix); |
178 | 178 |
179 FWL_Error InverseRect(const CFX_RectF& rect); | 179 FWL_Error InverseRect(const CFX_RectF& rect); |
180 FWL_Error XorDIBitmap(const CFX_DIBitmap* srcBitmap, const CFX_RectF& rect); | 180 FWL_Error XorDIBitmap(const CFX_DIBitmap* srcBitmap, const CFX_RectF& rect); |
181 FWL_Error EqvDIBitmap(const CFX_DIBitmap* srcBitmap, const CFX_RectF& rect); | 181 FWL_Error EqvDIBitmap(const CFX_DIBitmap* srcBitmap, const CFX_RectF& rect); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 FXTEXT_CHARPOS* charPos, | 233 FXTEXT_CHARPOS* charPos, |
234 CFX_RectF& rect); | 234 CFX_RectF& rect); |
235 | 235 |
236 CFX_RenderDevice* m_renderDevice; | 236 CFX_RenderDevice* m_renderDevice; |
237 CFX_ArrayTemplate<TInfo*> m_infoStack; | 237 CFX_ArrayTemplate<TInfo*> m_infoStack; |
238 std::unique_ptr<CAGG_Graphics> m_aggGraphics; | 238 std::unique_ptr<CAGG_Graphics> m_aggGraphics; |
239 friend class CAGG_Graphics; | 239 friend class CAGG_Graphics; |
240 }; | 240 }; |
241 | 241 |
242 #endif // XFA_FXGRAPHICS_CFX_GRAPHICS_H_ | 242 #endif // XFA_FXGRAPHICS_CFX_GRAPHICS_H_ |
OLD | NEW |