| 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 XFA_FDE_FDE_GEDEVICE_H_ | 7 #ifndef XFA_FDE_FDE_GEDEVICE_H_ |
| 8 #define XFA_FDE_FDE_GEDEVICE_H_ | 8 #define XFA_FDE_FDE_GEDEVICE_H_ |
| 9 | 9 |
| 10 #include "xfa/fde/fde_renderdevice.h" | 10 #include "xfa/fde/fde_renderdevice.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 virtual const CFX_RectF& GetClipRect(); | 26 virtual const CFX_RectF& GetClipRect(); |
| 27 | 27 |
| 28 virtual FX_FLOAT GetDpiX() const; | 28 virtual FX_FLOAT GetDpiX() const; |
| 29 virtual FX_FLOAT GetDpiY() const; | 29 virtual FX_FLOAT GetDpiY() const; |
| 30 | 30 |
| 31 virtual FX_BOOL DrawImage(CFX_DIBSource* pDib, | 31 virtual FX_BOOL DrawImage(CFX_DIBSource* pDib, |
| 32 const CFX_RectF* pSrcRect, | 32 const CFX_RectF* pSrcRect, |
| 33 const CFX_RectF& dstRect, | 33 const CFX_RectF& dstRect, |
| 34 const CFX_Matrix* pImgMatrix = NULL, | 34 const CFX_Matrix* pImgMatrix = NULL, |
| 35 const CFX_Matrix* pDevMatrix = NULL); | 35 const CFX_Matrix* pDevMatrix = NULL); |
| 36 virtual FX_BOOL DrawString(IFDE_Brush* pBrush, | 36 virtual FX_BOOL DrawString(CFDE_Brush* pBrush, |
| 37 IFX_Font* pFont, | 37 IFX_Font* pFont, |
| 38 const FXTEXT_CHARPOS* pCharPos, | 38 const FXTEXT_CHARPOS* pCharPos, |
| 39 int32_t iCount, | 39 int32_t iCount, |
| 40 FX_FLOAT fFontSize, | 40 FX_FLOAT fFontSize, |
| 41 const CFX_Matrix* pMatrix = NULL); | 41 const CFX_Matrix* pMatrix = NULL); |
| 42 virtual FX_BOOL DrawBezier(IFDE_Pen* pPen, | 42 virtual FX_BOOL DrawBezier(CFDE_Pen* pPen, |
| 43 FX_FLOAT fPenWidth, | 43 FX_FLOAT fPenWidth, |
| 44 const CFX_PointF& pt1, | 44 const CFX_PointF& pt1, |
| 45 const CFX_PointF& pt2, | 45 const CFX_PointF& pt2, |
| 46 const CFX_PointF& pt3, | 46 const CFX_PointF& pt3, |
| 47 const CFX_PointF& pt4, | 47 const CFX_PointF& pt4, |
| 48 const CFX_Matrix* pMatrix = NULL); | 48 const CFX_Matrix* pMatrix = NULL); |
| 49 virtual FX_BOOL DrawCurve(IFDE_Pen* pPen, | 49 virtual FX_BOOL DrawCurve(CFDE_Pen* pPen, |
| 50 FX_FLOAT fPenWidth, | 50 FX_FLOAT fPenWidth, |
| 51 const CFX_PointsF& points, | 51 const CFX_PointsF& points, |
| 52 FX_BOOL bClosed, | 52 FX_BOOL bClosed, |
| 53 FX_FLOAT fTension = 0.5f, | 53 FX_FLOAT fTension = 0.5f, |
| 54 const CFX_Matrix* pMatrix = NULL); | 54 const CFX_Matrix* pMatrix = NULL); |
| 55 virtual FX_BOOL DrawEllipse(IFDE_Pen* pPen, | 55 virtual FX_BOOL DrawEllipse(CFDE_Pen* pPen, |
| 56 FX_FLOAT fPenWidth, | 56 FX_FLOAT fPenWidth, |
| 57 const CFX_RectF& rect, | 57 const CFX_RectF& rect, |
| 58 const CFX_Matrix* pMatrix = NULL); | 58 const CFX_Matrix* pMatrix = NULL); |
| 59 virtual FX_BOOL DrawLines(IFDE_Pen* pPen, | 59 virtual FX_BOOL DrawLines(CFDE_Pen* pPen, |
| 60 FX_FLOAT fPenWidth, | 60 FX_FLOAT fPenWidth, |
| 61 const CFX_PointsF& points, | 61 const CFX_PointsF& points, |
| 62 const CFX_Matrix* pMatrix = NULL); | 62 const CFX_Matrix* pMatrix = NULL); |
| 63 virtual FX_BOOL DrawLine(IFDE_Pen* pPen, | 63 virtual FX_BOOL DrawLine(CFDE_Pen* pPen, |
| 64 FX_FLOAT fPenWidth, | 64 FX_FLOAT fPenWidth, |
| 65 const CFX_PointF& pt1, | 65 const CFX_PointF& pt1, |
| 66 const CFX_PointF& pt2, | 66 const CFX_PointF& pt2, |
| 67 const CFX_Matrix* pMatrix = NULL); | 67 const CFX_Matrix* pMatrix = NULL); |
| 68 virtual FX_BOOL DrawPath(IFDE_Pen* pPen, | 68 virtual FX_BOOL DrawPath(CFDE_Pen* pPen, |
| 69 FX_FLOAT fPenWidth, | 69 FX_FLOAT fPenWidth, |
| 70 const IFDE_Path* pPath, | 70 const IFDE_Path* pPath, |
| 71 const CFX_Matrix* pMatrix = NULL); | 71 const CFX_Matrix* pMatrix = NULL); |
| 72 virtual FX_BOOL DrawPolygon(IFDE_Pen* pPen, | 72 virtual FX_BOOL DrawPolygon(CFDE_Pen* pPen, |
| 73 FX_FLOAT fPenWidth, | 73 FX_FLOAT fPenWidth, |
| 74 const CFX_PointsF& points, | 74 const CFX_PointsF& points, |
| 75 const CFX_Matrix* pMatrix = NULL); | 75 const CFX_Matrix* pMatrix = NULL); |
| 76 virtual FX_BOOL DrawRectangle(IFDE_Pen* pPen, | 76 virtual FX_BOOL DrawRectangle(CFDE_Pen* pPen, |
| 77 FX_FLOAT fPenWidth, | 77 FX_FLOAT fPenWidth, |
| 78 const CFX_RectF& rect, | 78 const CFX_RectF& rect, |
| 79 const CFX_Matrix* pMatrix = NULL); | 79 const CFX_Matrix* pMatrix = NULL); |
| 80 virtual FX_BOOL FillClosedCurve(IFDE_Brush* pBrush, | 80 virtual FX_BOOL FillClosedCurve(CFDE_Brush* pBrush, |
| 81 const CFX_PointsF& points, | 81 const CFX_PointsF& points, |
| 82 FX_FLOAT fTension = 0.5f, | 82 FX_FLOAT fTension = 0.5f, |
| 83 const CFX_Matrix* pMatrix = NULL); | 83 const CFX_Matrix* pMatrix = NULL); |
| 84 virtual FX_BOOL FillEllipse(IFDE_Brush* pBrush, | 84 virtual FX_BOOL FillEllipse(CFDE_Brush* pBrush, |
| 85 const CFX_RectF& rect, | 85 const CFX_RectF& rect, |
| 86 const CFX_Matrix* pMatrix = NULL); | 86 const CFX_Matrix* pMatrix = NULL); |
| 87 virtual FX_BOOL FillPath(IFDE_Brush* pBrush, | 87 virtual FX_BOOL FillPath(CFDE_Brush* pBrush, |
| 88 const IFDE_Path* pPath, | 88 const IFDE_Path* pPath, |
| 89 const CFX_Matrix* pMatrix = NULL); | 89 const CFX_Matrix* pMatrix = NULL); |
| 90 virtual FX_BOOL FillPolygon(IFDE_Brush* pBrush, | 90 virtual FX_BOOL FillPolygon(CFDE_Brush* pBrush, |
| 91 const CFX_PointsF& points, | 91 const CFX_PointsF& points, |
| 92 const CFX_Matrix* pMatrix = NULL); | 92 const CFX_Matrix* pMatrix = NULL); |
| 93 virtual FX_BOOL FillRectangle(IFDE_Brush* pBrush, | 93 virtual FX_BOOL FillRectangle(CFDE_Brush* pBrush, |
| 94 const CFX_RectF& rect, | 94 const CFX_RectF& rect, |
| 95 const CFX_Matrix* pMatrix = NULL); | 95 const CFX_Matrix* pMatrix = NULL); |
| 96 FX_BOOL FillSolidPath(IFDE_Brush* pBrush, | |
| 97 const CFX_PathData* pPath, | |
| 98 const CFX_Matrix* pMatrix); | |
| 99 | 96 |
| 100 FX_BOOL DrawSolidString(IFDE_Brush* pBrush, | 97 FX_BOOL DrawSolidString(CFDE_Brush* pBrush, |
| 101 IFX_Font* pFont, | 98 IFX_Font* pFont, |
| 102 const FXTEXT_CHARPOS* pCharPos, | 99 const FXTEXT_CHARPOS* pCharPos, |
| 103 int32_t iCount, | 100 int32_t iCount, |
| 104 FX_FLOAT fFontSize, | 101 FX_FLOAT fFontSize, |
| 105 const CFX_Matrix* pMatrix); | 102 const CFX_Matrix* pMatrix); |
| 106 FX_BOOL DrawStringPath(IFDE_Brush* pBrush, | 103 FX_BOOL DrawStringPath(CFDE_Brush* pBrush, |
| 107 IFX_Font* pFont, | 104 IFX_Font* pFont, |
| 108 const FXTEXT_CHARPOS* pCharPos, | 105 const FXTEXT_CHARPOS* pCharPos, |
| 109 int32_t iCount, | 106 int32_t iCount, |
| 110 FX_FLOAT fFontSize, | 107 FX_FLOAT fFontSize, |
| 111 const CFX_Matrix* pMatrix); | 108 const CFX_Matrix* pMatrix); |
| 112 | 109 |
| 113 protected: | 110 protected: |
| 114 FX_BOOL CreatePen(IFDE_Pen* pPen, | 111 FX_BOOL CreatePen(CFDE_Pen* pPen, |
| 115 FX_FLOAT fPenWidth, | 112 FX_FLOAT fPenWidth, |
| 116 CFX_GraphStateData& graphState); | 113 CFX_GraphStateData& graphState); |
| 117 | 114 |
| 118 CFX_RenderDevice* m_pDevice; | 115 CFX_RenderDevice* m_pDevice; |
| 119 CFX_RectF m_rtClip; | 116 CFX_RectF m_rtClip; |
| 120 FX_BOOL m_bOwnerDevice; | 117 FX_BOOL m_bOwnerDevice; |
| 121 FXTEXT_CHARPOS* m_pCharPos; | 118 FXTEXT_CHARPOS* m_pCharPos; |
| 122 int32_t m_iCharCount; | 119 int32_t m_iCharCount; |
| 123 }; | 120 }; |
| 124 | 121 |
| 125 #endif // XFA_FDE_FDE_GEDEVICE_H_ | 122 #endif // XFA_FDE_FDE_GEDEVICE_H_ |
| OLD | NEW |