Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: xfa/fde/fde_brush.h

Issue 1881803003: Remove IFDE_Pen and IFDE_Brush. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa.gyp ('k') | xfa/fde/fde_gedevice.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « xfa.gyp ('k') | xfa/fde/fde_gedevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698