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_CPVT_LINEINFO_H_
8 #define CORE_FPDFDOC_CPVT_LINEINFO_H_
9 
10 #include "core/fxcrt/include/fx_system.h"
11 
12 struct CPVT_LineInfo {
CPVT_LineInfoCPVT_LineInfo13   CPVT_LineInfo()
14       : nTotalWord(0),
15         nBeginWordIndex(-1),
16         nEndWordIndex(-1),
17         fLineX(0.0f),
18         fLineY(0.0f),
19         fLineWidth(0.0f),
20         fLineAscent(0.0f),
21         fLineDescent(0.0f) {}
22 
23   int32_t nTotalWord;
24   int32_t nBeginWordIndex;
25   int32_t nEndWordIndex;
26   FX_FLOAT fLineX;
27   FX_FLOAT fLineY;
28   FX_FLOAT fLineWidth;
29   FX_FLOAT fLineAscent;
30   FX_FLOAT fLineDescent;
31 };
32 
33 #endif  // CORE_FPDFDOC_CPVT_LINEINFO_H_
34