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_INCLUDE_CFX_GRAPHICS_H_ | 7 #ifndef XFA_FXGRAPHICS_INCLUDE_CFX_GRAPHICS_H_ |
8 #define XFA_FXGRAPHICS_INCLUDE_CFX_GRAPHICS_H_ | 8 #define XFA_FXGRAPHICS_INCLUDE_CFX_GRAPHICS_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_system.h" | 10 #include "core/fxcrt/include/fx_system.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 FWL_Error SetStrokeAlignment(FX_StrokeAlignment strokeAlignment); | 135 FWL_Error SetStrokeAlignment(FX_StrokeAlignment strokeAlignment); |
136 FWL_Error SetStrokeColor(CFX_Color* color); | 136 FWL_Error SetStrokeColor(CFX_Color* color); |
137 FWL_Error SetFillColor(CFX_Color* color); | 137 FWL_Error SetFillColor(CFX_Color* color); |
138 FWL_Error SetClipRect(const CFX_RectF& rect); | 138 FWL_Error SetClipRect(const CFX_RectF& rect); |
139 FWL_Error SetFont(CFX_Font* font); | 139 FWL_Error SetFont(CFX_Font* font); |
140 FWL_Error SetFontSize(const FX_FLOAT size); | 140 FWL_Error SetFontSize(const FX_FLOAT size); |
141 FWL_Error SetFontHScale(const FX_FLOAT scale); | 141 FWL_Error SetFontHScale(const FX_FLOAT scale); |
142 FWL_Error SetCharSpacing(const FX_FLOAT spacing); | 142 FWL_Error SetCharSpacing(const FX_FLOAT spacing); |
143 FWL_Error SetTextDrawingMode(const int32_t mode); | 143 FWL_Error SetTextDrawingMode(const int32_t mode); |
144 | 144 |
145 FWL_Error StrokePath(CFX_Path* path, CFX_Matrix* matrix = NULL); | 145 FWL_Error StrokePath(CFX_Path* path, CFX_Matrix* matrix = nullptr); |
146 FWL_Error FillPath(CFX_Path* path, | 146 FWL_Error FillPath(CFX_Path* path, |
147 FX_FillMode fillMode = FXFILL_WINDING, | 147 FX_FillMode fillMode = FXFILL_WINDING, |
148 CFX_Matrix* matrix = NULL); | 148 CFX_Matrix* matrix = nullptr); |
149 FWL_Error ClipPath(CFX_Path* path, | 149 FWL_Error ClipPath(CFX_Path* path, |
150 FX_FillMode fillMode = FXFILL_WINDING, | 150 FX_FillMode fillMode = FXFILL_WINDING, |
151 CFX_Matrix* matrix = NULL); | 151 CFX_Matrix* matrix = nullptr); |
152 FWL_Error DrawImage(CFX_DIBSource* source, | 152 FWL_Error DrawImage(CFX_DIBSource* source, |
153 const CFX_PointF& point, | 153 const CFX_PointF& point, |
154 CFX_Matrix* matrix = NULL); | 154 CFX_Matrix* matrix = nullptr); |
155 FWL_Error StretchImage(CFX_DIBSource* source, | 155 FWL_Error StretchImage(CFX_DIBSource* source, |
156 const CFX_RectF& rect, | 156 const CFX_RectF& rect, |
157 CFX_Matrix* matrix = NULL); | 157 CFX_Matrix* matrix = nullptr); |
158 FWL_Error ConcatMatrix(const CFX_Matrix* matrix); | 158 FWL_Error ConcatMatrix(const CFX_Matrix* matrix); |
159 FWL_Error ClearClip(); | 159 FWL_Error ClearClip(); |
160 FWL_Error ShowText(const CFX_PointF& point, | 160 FWL_Error ShowText(const CFX_PointF& point, |
161 const CFX_WideString& text, | 161 const CFX_WideString& text, |
162 CFX_Matrix* matrix = NULL); | 162 CFX_Matrix* matrix = nullptr); |
163 FWL_Error CalcTextRect(CFX_RectF& rect, | 163 FWL_Error CalcTextRect(CFX_RectF& rect, |
164 const CFX_WideString& text, | 164 const CFX_WideString& text, |
165 FX_BOOL isMultiline = FALSE, | 165 FX_BOOL isMultiline = FALSE, |
166 CFX_Matrix* matrix = NULL); | 166 CFX_Matrix* matrix = nullptr); |
167 FWL_Error Transfer(CFX_Graphics* graphics, const CFX_Matrix* matrix); | 167 FWL_Error Transfer(CFX_Graphics* graphics, const CFX_Matrix* matrix); |
168 FWL_Error Transfer(CFX_Graphics* graphics, | 168 FWL_Error Transfer(CFX_Graphics* graphics, |
169 FX_FLOAT srcLeft, | 169 FX_FLOAT srcLeft, |
170 FX_FLOAT srcTop, | 170 FX_FLOAT srcTop, |
171 const CFX_RectF& dstRect, | 171 const CFX_RectF& dstRect, |
172 const CFX_Matrix* matrix); | 172 const CFX_Matrix* matrix); |
173 | 173 |
174 FWL_Error InverseRect(const CFX_RectF& rect); | 174 FWL_Error InverseRect(const CFX_RectF& rect); |
175 FWL_Error XorDIBitmap(const CFX_DIBitmap* srcBitmap, const CFX_RectF& rect); | 175 FWL_Error XorDIBitmap(const CFX_DIBitmap* srcBitmap, const CFX_RectF& rect); |
176 FWL_Error EqvDIBitmap(const CFX_DIBitmap* srcBitmap, const CFX_RectF& rect); | 176 FWL_Error EqvDIBitmap(const CFX_DIBitmap* srcBitmap, const CFX_RectF& rect); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 FXTEXT_CHARPOS* charPos, | 228 FXTEXT_CHARPOS* charPos, |
229 CFX_RectF& rect); | 229 CFX_RectF& rect); |
230 | 230 |
231 CFX_RenderDevice* m_renderDevice; | 231 CFX_RenderDevice* m_renderDevice; |
232 CFX_ArrayTemplate<TInfo*> m_infoStack; | 232 CFX_ArrayTemplate<TInfo*> m_infoStack; |
233 CAGG_Graphics* m_aggGraphics; | 233 CAGG_Graphics* m_aggGraphics; |
234 friend class CAGG_Graphics; | 234 friend class CAGG_Graphics; |
235 }; | 235 }; |
236 | 236 |
237 #endif // XFA_FXGRAPHICS_INCLUDE_CFX_GRAPHICS_H_ | 237 #endif // XFA_FXGRAPHICS_INCLUDE_CFX_GRAPHICS_H_ |
OLD | NEW |