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_SRC_FDP_INCLUDE_FDE_RDV_H_ | 7 #ifndef XFA_SRC_FDP_INCLUDE_FDE_RDV_H_ |
8 #define XFA_SRC_FDP_INCLUDE_FDE_RDV_H_ | 8 #define XFA_SRC_FDP_INCLUDE_FDE_RDV_H_ |
9 | 9 |
10 #include "core/include/fxcrt/fx_coordinates.h" | 10 #include "core/include/fxcrt/fx_coordinates.h" |
11 #include "core/include/fxge/fx_font.h" | 11 #include "core/include/fxge/fx_font.h" |
12 #include "core/include/fxge/fx_ge.h" | 12 #include "core/include/fxge/fx_ge.h" |
13 #include "xfa/src/fdp/include/fde_pth.h" | 13 #include "xfa/src/fdp/include/fde_pth.h" |
14 #include "xfa/src/fgas/include/fx_fnt.h" | 14 #include "xfa/src/fgas/include/fx_fnt.h" |
15 | 15 |
16 class IFDE_Pen; | 16 class IFDE_Pen; |
17 class IFDE_Brush; | 17 class IFDE_Brush; |
18 class IFDE_Image; | 18 class IFDE_Image; |
19 class CFX_DIBitmap; | 19 class CFX_DIBitmap; |
20 class CFX_DIBSource; | 20 class CFX_DIBSource; |
21 | 21 |
22 typedef struct _FDE_HDEVICESTATE { void* pData; } * FDE_HDEVICESTATE; | 22 typedef struct FDE_HDEVICESTATE_ { void* pData; } * FDE_HDEVICESTATE; |
23 | 23 |
24 class IFDE_RenderDevice { | 24 class IFDE_RenderDevice { |
25 public: | 25 public: |
26 static IFDE_RenderDevice* Create(CFX_DIBitmap* pBitmap, | 26 static IFDE_RenderDevice* Create(CFX_DIBitmap* pBitmap, |
27 FX_BOOL bRgbByteOrder = FALSE); | 27 FX_BOOL bRgbByteOrder = FALSE); |
28 static IFDE_RenderDevice* Create(CFX_RenderDevice* pDevice); | 28 static IFDE_RenderDevice* Create(CFX_RenderDevice* pDevice); |
29 virtual ~IFDE_RenderDevice() {} | 29 virtual ~IFDE_RenderDevice() {} |
30 virtual void Release() = 0; | 30 virtual void Release() = 0; |
31 | 31 |
32 virtual int32_t GetWidth() const = 0; | 32 virtual int32_t GetWidth() const = 0; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 const CFX_Matrix* pMatrix = NULL) = 0; | 102 const CFX_Matrix* pMatrix = NULL) = 0; |
103 virtual FX_BOOL FillPolygon(IFDE_Brush* pBrush, | 103 virtual FX_BOOL FillPolygon(IFDE_Brush* pBrush, |
104 const CFX_PointsF& points, | 104 const CFX_PointsF& points, |
105 const CFX_Matrix* pMatrix = NULL) = 0; | 105 const CFX_Matrix* pMatrix = NULL) = 0; |
106 virtual FX_BOOL FillRectangle(IFDE_Brush* pBrush, | 106 virtual FX_BOOL FillRectangle(IFDE_Brush* pBrush, |
107 const CFX_RectF& rect, | 107 const CFX_RectF& rect, |
108 const CFX_Matrix* pMatrix = NULL) = 0; | 108 const CFX_Matrix* pMatrix = NULL) = 0; |
109 }; | 109 }; |
110 | 110 |
111 #endif // XFA_SRC_FDP_INCLUDE_FDE_RDV_H_ | 111 #endif // XFA_SRC_FDP_INCLUDE_FDE_RDV_H_ |
OLD | NEW |