kumarashishg | 826308d | 2023-06-23 13:21:22 +0000 | [diff] [blame] | 1 | // Copyright 2016 The PDFium Authors |
Philip P. Moltmann | 4d3acf4 | 2017-03-20 11:05:52 -0700 | [diff] [blame] | 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_CPVT_WORDINFO_H_ |
| 8 | #define CORE_FPDFDOC_CPVT_WORDINFO_H_ |
| 9 | |
kumarashishg | 826308d | 2023-06-23 13:21:22 +0000 | [diff] [blame] | 10 | #include <stdint.h> |
| 11 | |
| 12 | #include "core/fxcrt/fx_codepage_forward.h" |
Philip P. Moltmann | 4d3acf4 | 2017-03-20 11:05:52 -0700 | [diff] [blame] | 13 | |
| 14 | struct CPVT_WordInfo { |
| 15 | CPVT_WordInfo(); |
kumarashishg | 826308d | 2023-06-23 13:21:22 +0000 | [diff] [blame] | 16 | CPVT_WordInfo(uint16_t word, FX_Charset charset, int32_t fontIndex); |
Philip P. Moltmann | 4d3acf4 | 2017-03-20 11:05:52 -0700 | [diff] [blame] | 17 | CPVT_WordInfo(const CPVT_WordInfo& word); |
| 18 | ~CPVT_WordInfo(); |
| 19 | |
Haibo Huang | 49cc930 | 2020-04-27 16:14:24 -0700 | [diff] [blame] | 20 | CPVT_WordInfo& operator=(const CPVT_WordInfo& word); |
Philip P. Moltmann | 4d3acf4 | 2017-03-20 11:05:52 -0700 | [diff] [blame] | 21 | |
| 22 | uint16_t Word; |
kumarashishg | 826308d | 2023-06-23 13:21:22 +0000 | [diff] [blame] | 23 | FX_Charset nCharset; |
Philip P. Moltmann | d904c1e | 2018-03-19 09:26:45 -0700 | [diff] [blame] | 24 | float fWordX; |
| 25 | float fWordY; |
| 26 | float fWordTail; |
Philip P. Moltmann | 4d3acf4 | 2017-03-20 11:05:52 -0700 | [diff] [blame] | 27 | int32_t nFontIndex; |
Philip P. Moltmann | 4d3acf4 | 2017-03-20 11:05:52 -0700 | [diff] [blame] | 28 | }; |
| 29 | |
| 30 | #endif // CORE_FPDFDOC_CPVT_WORDINFO_H_ |