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_SRC_FDE_FDE_OBJECT_H_ | 7 #ifndef XFA_SRC_FDP_SRC_FDE_FDE_OBJECT_H_ |
8 #define XFA_SRC_FDP_SRC_FDE_FDE_OBJECT_H_ | 8 #define XFA_SRC_FDP_SRC_FDE_FDE_OBJECT_H_ |
9 | 9 |
10 #include <cstdint> | 10 #include <cstdint> |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 return bForegroundColor ? m_ForeColor : m_BackColor; | 136 return bForegroundColor ? m_ForeColor : m_BackColor; |
137 } | 137 } |
138 virtual void SetColor(FX_ARGB color, FX_BOOL bForegroundColor) { | 138 virtual void SetColor(FX_ARGB color, FX_BOOL bForegroundColor) { |
139 if (bForegroundColor) { | 139 if (bForegroundColor) { |
140 m_ForeColor = color; | 140 m_ForeColor = color; |
141 } else { | 141 } else { |
142 m_BackColor = color; | 142 m_BackColor = color; |
143 } | 143 } |
144 } | 144 } |
145 | 145 |
146 virtual int32_t GetHatchStyle() const { return m_iStyle; }; | 146 virtual int32_t GetHatchStyle() const { return m_iStyle; } |
147 virtual FX_BOOL SetHatchStyle(int32_t iHatchStyle) { | 147 virtual FX_BOOL SetHatchStyle(int32_t iHatchStyle) { |
148 m_iStyle = iHatchStyle; | 148 m_iStyle = iHatchStyle; |
149 return m_iStyle >= FDE_HATCHSTYLE_Min && m_iStyle <= FDE_HATCHSTYLE_Max; | 149 return m_iStyle >= FDE_HATCHSTYLE_Min && m_iStyle <= FDE_HATCHSTYLE_Max; |
150 } | 150 } |
151 int32_t m_iStyle; | 151 int32_t m_iStyle; |
152 FX_ARGB m_BackColor; | 152 FX_ARGB m_BackColor; |
153 FX_ARGB m_ForeColor; | 153 FX_ARGB m_ForeColor; |
154 CFX_Matrix m_Matrix; | 154 CFX_Matrix m_Matrix; |
155 }; | 155 }; |
156 class CFDE_TextureBrush : public IFDE_TextureBrush, public CFX_Target { | 156 class CFDE_TextureBrush : public IFDE_TextureBrush, public CFX_Target { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 CFX_PointF m_EndPoint; | 237 CFX_PointF m_EndPoint; |
238 CFX_PointF m_StartPoint; | 238 CFX_PointF m_StartPoint; |
239 FX_ARGB m_EndColor; | 239 FX_ARGB m_EndColor; |
240 FX_ARGB m_StartColor; | 240 FX_ARGB m_StartColor; |
241 CFDE_GradientColors m_GradColors; | 241 CFDE_GradientColors m_GradColors; |
242 int32_t m_iWrapMode; | 242 int32_t m_iWrapMode; |
243 CFX_Matrix m_Matrix; | 243 CFX_Matrix m_Matrix; |
244 }; | 244 }; |
245 | 245 |
246 #endif // XFA_SRC_FDP_SRC_FDE_FDE_OBJECT_H_ | 246 #endif // XFA_SRC_FDP_SRC_FDE_FDE_OBJECT_H_ |
OLD | NEW |