OLD | NEW |
| (Empty) |
1 // Copyright 2016 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 CORE_FPDFDOC_INCLUDE_CPVT_WORDPROPS_H_ | |
8 #define CORE_FPDFDOC_INCLUDE_CPVT_WORDPROPS_H_ | |
9 | |
10 #include "core/fpdfdoc/include/cpdf_variabletext.h" | |
11 #include "core/fxcrt/include/fx_system.h" | |
12 #include "core/fxge/include/fx_dib.h" | |
13 | |
14 struct CPVT_WordProps { | |
15 CPVT_WordProps() | |
16 : nFontIndex(-1), | |
17 fFontSize(0.0f), | |
18 dwWordColor(0), | |
19 nScriptType(CPDF_VariableText::ScriptType::Normal), | |
20 nWordStyle(0), | |
21 fCharSpace(0.0f), | |
22 nHorzScale(0) {} | |
23 | |
24 CPVT_WordProps(int32_t fontIndex, | |
25 FX_FLOAT fontSize, | |
26 FX_COLORREF wordColor = 0, | |
27 CPDF_VariableText::ScriptType scriptType = | |
28 CPDF_VariableText::ScriptType::Normal, | |
29 int32_t wordStyle = 0, | |
30 FX_FLOAT charSpace = 0, | |
31 int32_t horzScale = 100) | |
32 : nFontIndex(fontIndex), | |
33 fFontSize(fontSize), | |
34 dwWordColor(wordColor), | |
35 nScriptType(scriptType), | |
36 nWordStyle(wordStyle), | |
37 fCharSpace(charSpace), | |
38 nHorzScale(horzScale) {} | |
39 | |
40 CPVT_WordProps(const CPVT_WordProps& other) | |
41 : nFontIndex(other.nFontIndex), | |
42 fFontSize(other.fFontSize), | |
43 dwWordColor(other.dwWordColor), | |
44 nScriptType(other.nScriptType), | |
45 nWordStyle(other.nWordStyle), | |
46 fCharSpace(other.fCharSpace), | |
47 nHorzScale(other.nHorzScale) {} | |
48 | |
49 int32_t nFontIndex; | |
50 FX_FLOAT fFontSize; | |
51 FX_COLORREF dwWordColor; | |
52 CPDF_VariableText::ScriptType nScriptType; | |
53 int32_t nWordStyle; | |
54 FX_FLOAT fCharSpace; | |
55 int32_t nHorzScale; | |
56 }; | |
57 | |
58 #endif // CORE_FPDFDOC_INCLUDE_CPVT_WORDPROPS_H_ | |
OLD | NEW |