| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
| 6 | |
| 7 #ifndef XFA_FDE_FDE_BRUSH_H_ | |
| 8 #define XFA_FDE_FDE_BRUSH_H_ | |
| 9 | |
| 10 #include "core/fxcrt/include/fx_system.h" | |
| 11 #include "core/fxge/include/fx_dib.h" | |
| 12 | |
| 13 #define FDE_BRUSHTYPE_Unknown -1 | |
| 14 #define FDE_BRUSHTYPE_Solid 0 | |
| 15 #define FDE_BRUSHTYPE_MAX 0 | |
| 16 | |
| 17 class IFDE_Brush { | |
| 18 public: | |
| 19 static IFDE_Brush* Create(int32_t iType); | |
| 20 virtual ~IFDE_Brush() {} | |
| 21 virtual void Release() = 0; | |
| 22 virtual int32_t GetType() const = 0; | |
| 23 }; | |
| 24 | |
| 25 class IFDE_SolidBrush : public IFDE_Brush { | |
| 26 public: | |
| 27 virtual FX_ARGB GetColor() const = 0; | |
| 28 virtual void SetColor(FX_ARGB color) = 0; | |
| 29 virtual const CFX_Matrix& GetMatrix() const = 0; | |
| 30 virtual void ResetMatrix() = 0; | |
| 31 virtual void TranslateMatrix(FX_FLOAT dx, FX_FLOAT dy) = 0; | |
| 32 virtual void RotateMatrix(FX_FLOAT fRadian) = 0; | |
| 33 virtual void ScaleMatrix(FX_FLOAT sx, FX_FLOAT sy) = 0; | |
| 34 virtual void ConcatMatrix(const CFX_Matrix& matrix) = 0; | |
| 35 virtual void SetMatrix(const CFX_Matrix& matrix) = 0; | |
| 36 }; | |
| 37 | |
| 38 #endif // XFA_FDE_FDE_BRUSH_H_ | |
| OLD | NEW |