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 _FDE_BRUSH | 7 #ifndef _FDE_BRUSH |
8 #define _FDE_BRUSH | 8 #define _FDE_BRUSH |
9 class IFDE_Image; | 9 class IFDE_Image; |
10 class IFDE_Path; | 10 class IFDE_Path; |
(...skipping 15 matching lines...) Expand all Loading... |
26 #define FDE_WRAPMODE_Clamp 4 | 26 #define FDE_WRAPMODE_Clamp 4 |
27 typedef struct _FDE_GRADIENTCOLOR { | 27 typedef struct _FDE_GRADIENTCOLOR { |
28 FX_FLOAT pos; | 28 FX_FLOAT pos; |
29 FX_ARGB color; | 29 FX_ARGB color; |
30 } FDE_GRADIENTCOLOR, * FDE_LPGRADIENTCOLOR; | 30 } FDE_GRADIENTCOLOR, * FDE_LPGRADIENTCOLOR; |
31 typedef FDE_GRADIENTCOLOR const * FDE_LPCGRADIENTC
OLOR; | 31 typedef FDE_GRADIENTCOLOR const * FDE_LPCGRADIENTC
OLOR; |
32 typedef CFX_ArrayTemplate<FDE_GRADIENTCOLOR> CFDE_GradientColors; | 32 typedef CFX_ArrayTemplate<FDE_GRADIENTCOLOR> CFDE_GradientColors; |
33 class IFDE_Brush | 33 class IFDE_Brush |
34 { | 34 { |
35 public: | 35 public: |
36 static IFDE_Brush*» » » Create(FX_INT32 iType); | 36 static IFDE_Brush*» » » Create(int32_t iType); |
37 virtual void Release() = 0; | 37 virtual void Release() = 0; |
38 virtual FX_INT32» » » GetType() const = 0; | 38 virtual int32_t» » » GetType() const = 0; |
39 }; | 39 }; |
40 class IFDE_SolidBrush : public IFDE_Brush | 40 class IFDE_SolidBrush : public IFDE_Brush |
41 { | 41 { |
42 public: | 42 public: |
43 virtual FX_ARGB GetColor() const = 0; | 43 virtual FX_ARGB GetColor() const = 0; |
44 virtual void SetColor(FX_ARGB color) = 0; | 44 virtual void SetColor(FX_ARGB color) = 0; |
45 virtual const CFX_Matrix& GetMatrix() const = 0; | 45 virtual const CFX_Matrix& GetMatrix() const = 0; |
46 virtual void ResetMatrix() = 0; | 46 virtual void ResetMatrix() = 0; |
47 virtual void TranslateMatrix(FX_FLOAT dx, FX_
FLOAT dy) = 0; | 47 virtual void TranslateMatrix(FX_FLOAT dx, FX_
FLOAT dy) = 0; |
48 virtual void RotateMatrix(FX_FLOAT fRadian) =
0; | 48 virtual void RotateMatrix(FX_FLOAT fRadian) =
0; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 #define FDE_HATCHSTYLE_SolidDiamond 52 | 105 #define FDE_HATCHSTYLE_SolidDiamond 52 |
106 #define FDE_HATCHSTYLE_Total 53 | 106 #define FDE_HATCHSTYLE_Total 53 |
107 #define FDE_HATCHSTYLE_LargeGrid FDE_HATCHSTYLE_C
ross | 107 #define FDE_HATCHSTYLE_LargeGrid FDE_HATCHSTYLE_C
ross |
108 #define FDE_HATCHSTYLE_Min FDE_HATC
HSTYLE_Horizontal | 108 #define FDE_HATCHSTYLE_Min FDE_HATC
HSTYLE_Horizontal |
109 #define FDE_HATCHSTYLE_Max (FDE_HAT
CHSTYLE_Total - 1) | 109 #define FDE_HATCHSTYLE_Max (FDE_HAT
CHSTYLE_Total - 1) |
110 class IFDE_HatchBrush : public IFDE_Brush | 110 class IFDE_HatchBrush : public IFDE_Brush |
111 { | 111 { |
112 public: | 112 public: |
113 virtual FX_ARGB GetColor(FX_BOOL bForegroundColor) const
= 0; | 113 virtual FX_ARGB GetColor(FX_BOOL bForegroundColor) const
= 0; |
114 virtual void SetColor(FX_ARGB color, FX_BOOL bForegro
undColor) = 0; | 114 virtual void SetColor(FX_ARGB color, FX_BOOL bForegro
undColor) = 0; |
115 virtual FX_INT32» » GetHatchStyle() const = 0; | 115 virtual int32_t» » GetHatchStyle() const = 0; |
116 virtual FX_BOOL» » » SetHatchStyle(FX_INT32 iHatchStyle) = 0; | 116 virtual FX_BOOL» » » SetHatchStyle(int32_t iHatchStyle) = 0; |
117 }; | 117 }; |
118 class IFDE_TextureBrush : public IFDE_Brush | 118 class IFDE_TextureBrush : public IFDE_Brush |
119 { | 119 { |
120 public: | 120 public: |
121 virtual IFDE_Image* GetImage() const = 0; | 121 virtual IFDE_Image* GetImage() const = 0; |
122 virtual void SetImage(IFDE_Image *pImage, FX_
BOOL bAutoRelease) = 0; | 122 virtual void SetImage(IFDE_Image *pImage, FX_
BOOL bAutoRelease) = 0; |
123 virtual FX_INT32» » » GetWrapMode() const = 0; | 123 virtual int32_t» » » GetWrapMode() const = 0; |
124 virtual void» » » » SetWrapMode(FX_INT32 iWrapMode)
= 0; | 124 virtual void» » » » SetWrapMode(int32_t iWrapMode) =
0; |
125 }; | 125 }; |
126 #define FDE_LINEARGRADIENTMODE_Horizontal 0 | 126 #define FDE_LINEARGRADIENTMODE_Horizontal 0 |
127 #define FDE_LINEARGRADIENTMODE_Vertical 1 | 127 #define FDE_LINEARGRADIENTMODE_Vertical 1 |
128 #define FDE_LINEARGRADIENTMODE_ForwardDiagonal 2 | 128 #define FDE_LINEARGRADIENTMODE_ForwardDiagonal 2 |
129 #define FDE_LINEARGRADIENTMODE_BackwardDiagonal 3 | 129 #define FDE_LINEARGRADIENTMODE_BackwardDiagonal 3 |
130 class IFDE_LinearGradientBrush : public IFDE_Brush | 130 class IFDE_LinearGradientBrush : public IFDE_Brush |
131 { | 131 { |
132 public: | 132 public: |
133 virtual void GetLinearPoints(CFX_PointF &star
tingPoint, CFX_PointF &endingPoint) const = 0; | 133 virtual void GetLinearPoints(CFX_PointF &star
tingPoint, CFX_PointF &endingPoint) const = 0; |
134 virtual void SetLinearPoints(const CFX_PointF
&startingPoint, const CFX_PointF &endingPoint) = 0; | 134 virtual void SetLinearPoints(const CFX_PointF
&startingPoint, const CFX_PointF &endingPoint) = 0; |
135 virtual void GetLinearColors(FX_ARGB &startin
gColor, FX_ARGB &endingColor) const = 0; | 135 virtual void GetLinearColors(FX_ARGB &startin
gColor, FX_ARGB &endingColor) const = 0; |
136 virtual void SetLinearColors(const FX_ARGB &s
tartingColor, const FX_ARGB &endingColor) = 0; | 136 virtual void SetLinearColors(const FX_ARGB &s
tartingColor, const FX_ARGB &endingColor) = 0; |
137 virtual FX_INT32» » » CountGradientColors() const = 0; | 137 virtual int32_t» » » CountGradientColors() const = 0; |
138 virtual FX_BOOL GetGradientColors(CFDE_GradientC
olors &colors) const = 0; | 138 virtual FX_BOOL GetGradientColors(CFDE_GradientC
olors &colors) const = 0; |
139 virtual FX_BOOL SetGradientColors(const CFDE_Gra
dientColors &colors) = 0; | 139 virtual FX_BOOL SetGradientColors(const CFDE_Gra
dientColors &colors) = 0; |
140 virtual FX_INT32» » » GetWrapMode() const = 0; | 140 virtual int32_t» » » GetWrapMode() const = 0; |
141 virtual void» » » » SetWrapMode(FX_INT32 iWrapMode)
= 0; | 141 virtual void» » » » SetWrapMode(int32_t iWrapMode) =
0; |
142 }; | 142 }; |
143 #endif | 143 #endif |
OLD | NEW |