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 #include "xfa/src/fde/fde_object.h" | |
8 | |
9 IFDE_Pen* IFDE_Pen::Create() { | |
10 return new CFDE_Pen(); | |
11 } | |
12 IFDE_Brush* IFDE_Brush::Create(int32_t iType) { | |
13 switch (iType) { | |
14 case FDE_BRUSHTYPE_Solid: | |
15 return new CFDE_SolidBrush; | |
16 case FDE_BRUSHTYPE_Hatch: | |
17 return new CFDE_HatchBrush; | |
18 case FDE_BRUSHTYPE_Texture: | |
19 return new CFDE_TextureBrush; | |
20 case FDE_BRUSHTYPE_LinearGradient: | |
21 return new CFDE_LinearBrush; | |
22 default: | |
23 return NULL; | |
24 } | |
25 } | |
OLD | NEW |