blob: 98ef9f2fcf678aa0ce1a795f48c700f3522952de [file] [log] [blame]
kumarashishg826308d2023-06-23 13:21:22 +00001// Copyright 2016 The PDFium Authors
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -07002// 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
kumarashishg826308d2023-06-23 13:21:22 +000010#include <stdint.h>
11
12#include "core/fxcrt/fx_codepage_forward.h"
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070013
14struct CPVT_WordInfo {
15 CPVT_WordInfo();
kumarashishg826308d2023-06-23 13:21:22 +000016 CPVT_WordInfo(uint16_t word, FX_Charset charset, int32_t fontIndex);
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070017 CPVT_WordInfo(const CPVT_WordInfo& word);
18 ~CPVT_WordInfo();
19
Haibo Huang49cc9302020-04-27 16:14:24 -070020 CPVT_WordInfo& operator=(const CPVT_WordInfo& word);
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070021
22 uint16_t Word;
kumarashishg826308d2023-06-23 13:21:22 +000023 FX_Charset nCharset;
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070024 float fWordX;
25 float fWordY;
26 float fWordTail;
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070027 int32_t nFontIndex;
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070028};
29
30#endif // CORE_FPDFDOC_CPVT_WORDINFO_H_