OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 CORE_FPDFDOC_INCLUDE_CPVT_WORD_H_ | 7 #ifndef CORE_FPDFDOC_INCLUDE_CPVT_WORD_H_ |
8 #define CORE_FPDFDOC_INCLUDE_CPVT_WORD_H_ | 8 #define CORE_FPDFDOC_INCLUDE_CPVT_WORD_H_ |
9 | 9 |
10 #include "core/fpdfdoc/include/cpvt_wordplace.h" | 10 #include "core/fpdfdoc/include/cpvt_wordplace.h" |
11 #include "core/fpdfdoc/include/cpvt_wordprops.h" | 11 #include "core/fpdfdoc/include/cpvt_wordprops.h" |
12 #include "core/fxcrt/include/fx_system.h" | 12 #include "core/fxcrt/include/fx_system.h" |
13 | 13 |
14 struct CPVT_Word { | 14 struct CPVT_Word { |
15 CPVT_Word() | 15 CPVT_Word(); |
16 : Word(0), | |
17 nCharset(0), | |
18 ptWord(0, 0), | |
19 fAscent(0.0f), | |
20 fDescent(0.0f), | |
21 fWidth(0.0f), | |
22 fFontSize(0), | |
23 WordProps() {} | |
24 | 16 |
25 uint16_t Word; | 17 uint16_t Word; |
26 int32_t nCharset; | 18 int32_t nCharset; |
27 CPVT_WordPlace WordPlace; | 19 CPVT_WordPlace WordPlace; |
28 CFX_FloatPoint ptWord; | 20 CFX_FloatPoint ptWord; |
29 FX_FLOAT fAscent; | 21 FX_FLOAT fAscent; |
30 FX_FLOAT fDescent; | 22 FX_FLOAT fDescent; |
31 FX_FLOAT fWidth; | 23 FX_FLOAT fWidth; |
32 int32_t nFontIndex; | 24 int32_t nFontIndex; |
33 FX_FLOAT fFontSize; | 25 FX_FLOAT fFontSize; |
34 CPVT_WordProps WordProps; | 26 CPVT_WordProps WordProps; |
35 }; | 27 }; |
36 | 28 |
| 29 inline CPVT_Word::CPVT_Word() |
| 30 : Word(0), |
| 31 nCharset(0), |
| 32 ptWord(0.0f, 0.0f), |
| 33 fAscent(0.0f), |
| 34 fDescent(0.0f), |
| 35 fWidth(0.0f), |
| 36 nFontIndex(-1), |
| 37 fFontSize(0.0f) {} |
| 38 |
37 #endif // CORE_FPDFDOC_INCLUDE_CPVT_WORD_H_ | 39 #endif // CORE_FPDFDOC_INCLUDE_CPVT_WORD_H_ |
OLD | NEW |