| 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_PEN_H_ | 7 #ifndef XFA_SRC_FDP_INCLUDE_FDE_PEN_H_ |
| 8 #define XFA_SRC_FDP_INCLUDE_FDE_PEN_H_ | 8 #define XFA_SRC_FDP_INCLUDE_FDE_PEN_H_ |
| 9 | 9 |
| 10 class IFDE_Pen; | 10 class IFDE_Pen; |
| 11 |
| 11 #define FDE_PENTYPE_Unknown FDE_BRUSHTYPE_Unknown | 12 #define FDE_PENTYPE_Unknown FDE_BRUSHTYPE_Unknown |
| 12 #define FDE_PENTYPE_SolidColor FDE_BRUSHTYPE_Solid | 13 #define FDE_PENTYPE_SolidColor FDE_BRUSHTYPE_Solid |
| 13 #define FDE_PENTYPE_HatchBrush FDE_BRUSHTYPE_Hatch | 14 #define FDE_PENTYPE_HatchBrush FDE_BRUSHTYPE_Hatch |
| 14 #define FDE_PENTYPE_TextureBrush FDE_BRUSHTYPE_Texture | 15 #define FDE_PENTYPE_TextureBrush FDE_BRUSHTYPE_Texture |
| 15 #define FDE_PENTYPE_LinearGradient FDE_BRUSHTYPE_LinearGradient | 16 #define FDE_PENTYPE_LinearGradient FDE_BRUSHTYPE_LinearGradient |
| 16 #define FDE_PENTYPE_MAX FDE_BRUSHTYPE_MAX | 17 #define FDE_PENTYPE_MAX FDE_BRUSHTYPE_MAX |
| 18 |
| 17 #define FDE_DASHSTYLE_Solid 0 | 19 #define FDE_DASHSTYLE_Solid 0 |
| 18 #define FDE_DASHSTYLE_Dash 1 | 20 #define FDE_DASHSTYLE_Dash 1 |
| 19 #define FDE_DASHSTYLE_Dot 2 | 21 #define FDE_DASHSTYLE_Dot 2 |
| 20 #define FDE_DASHSTYLE_DashDot 3 | 22 #define FDE_DASHSTYLE_DashDot 3 |
| 21 #define FDE_DASHSTYLE_DashDotDot 4 | 23 #define FDE_DASHSTYLE_DashDotDot 4 |
| 22 #define FDE_DASHSTYLE_Customized 5 | 24 #define FDE_DASHSTYLE_Customized 5 |
| 25 |
| 23 #define FDE_LINEJOIN_Miter 0 | 26 #define FDE_LINEJOIN_Miter 0 |
| 24 #define FDE_LINEJOIN_Round 1 | 27 #define FDE_LINEJOIN_Round 1 |
| 25 #define FDE_LINEJOIN_Bevel 2 | 28 #define FDE_LINEJOIN_Bevel 2 |
| 29 |
| 26 #define FDE_LINECAP_Flat 0 | 30 #define FDE_LINECAP_Flat 0 |
| 27 #define FDE_LINECAP_Round 1 | 31 #define FDE_LINECAP_Round 1 |
| 28 #define FDE_LINECAP_Square 2 | 32 #define FDE_LINECAP_Square 2 |
| 29 typedef struct _FDE_COMPOUNDPATTERN { | 33 |
| 34 struct FDE_COMPOUNDPATTERN { |
| 30 FX_FLOAT pos; | 35 FX_FLOAT pos; |
| 31 FX_FLOAT width; | 36 FX_FLOAT width; |
| 32 } FDE_COMPOUNDPATTERN, *FDE_LPCOMPOUNDPATTERN; | 37 }; |
| 33 typedef FDE_COMPOUNDPATTERN const* FDE_LPCCOMPOUNDPATTERN; | |
| 34 typedef CFX_ArrayTemplate<FDE_COMPOUNDPATTERN> CFDE_CompoundPatterns; | 38 typedef CFX_ArrayTemplate<FDE_COMPOUNDPATTERN> CFDE_CompoundPatterns; |
| 35 | 39 |
| 36 class IFDE_Pen { | 40 class IFDE_Pen { |
| 37 public: | 41 public: |
| 38 static IFDE_Pen* Create(); | 42 static IFDE_Pen* Create(); |
| 39 virtual ~IFDE_Pen() {} | 43 virtual ~IFDE_Pen() {} |
| 40 virtual void Release() = 0; | 44 virtual void Release() = 0; |
| 41 virtual int32_t GetType() const = 0; | 45 virtual int32_t GetType() const = 0; |
| 42 virtual FX_ARGB GetColor() const = 0; | 46 virtual FX_ARGB GetColor() const = 0; |
| 43 virtual void SetColor(FX_ARGB color) = 0; | 47 virtual void SetColor(FX_ARGB color) = 0; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 57 virtual FX_FLOAT GetMiterLimit() const = 0; | 61 virtual FX_FLOAT GetMiterLimit() const = 0; |
| 58 virtual void SetMiterLimit(FX_FLOAT fMiterLimit) = 0; | 62 virtual void SetMiterLimit(FX_FLOAT fMiterLimit) = 0; |
| 59 virtual int32_t CountCompoundPatterns() const = 0; | 63 virtual int32_t CountCompoundPatterns() const = 0; |
| 60 virtual FX_BOOL GetCompoundPatterns( | 64 virtual FX_BOOL GetCompoundPatterns( |
| 61 CFDE_CompoundPatterns& compoundPatterns) const = 0; | 65 CFDE_CompoundPatterns& compoundPatterns) const = 0; |
| 62 virtual FX_BOOL SetCompoundPatterns( | 66 virtual FX_BOOL SetCompoundPatterns( |
| 63 const CFDE_CompoundPatterns& compoundPatterns) = 0; | 67 const CFDE_CompoundPatterns& compoundPatterns) = 0; |
| 64 }; | 68 }; |
| 65 | 69 |
| 66 #endif // XFA_SRC_FDP_INCLUDE_FDE_PEN_H_ | 70 #endif // XFA_SRC_FDP_INCLUDE_FDE_PEN_H_ |
| OLD | NEW |