• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/fx_system.h"
11 
12 class CPVT_LineInfo {
13  public:
14   CPVT_LineInfo();
15 
16   int32_t nTotalWord;
17   int32_t nBeginWordIndex;
18   int32_t nEndWordIndex;
19   float fLineX;
20   float fLineY;
21   float fLineWidth;
22   float fLineAscent;
23   float fLineDescent;
24 };
25 
CPVT_LineInfo()26 inline CPVT_LineInfo::CPVT_LineInfo()
27     : nTotalWord(0),
28       nBeginWordIndex(-1),
29       nEndWordIndex(-1),
30       fLineX(0.0f),
31       fLineY(0.0f),
32       fLineWidth(0.0f),
33       fLineAscent(0.0f),
34       fLineDescent(0.0f) {}
35 
36 #endif  // CORE_FPDFDOC_CPVT_LINEINFO_H_
37