xref: /aosp_15_r20/external/pdfium/core/fpdfdoc/cpvt_line.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2016 The PDFium Authors
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_LINE_H_
8 #define CORE_FPDFDOC_CPVT_LINE_H_
9 
10 #include "core/fpdfdoc/cpvt_wordplace.h"
11 #include "core/fxcrt/fx_coordinates.h"
12 
13 class CPVT_Line {
14  public:
15   CPVT_Line();
16 
17   CPVT_WordPlace lineplace;
18   CPVT_WordPlace lineEnd;
19   CFX_PointF ptLine;
20   float fLineWidth;
21   float fLineAscent;
22   float fLineDescent;
23 };
24 
CPVT_Line()25 inline CPVT_Line::CPVT_Line()
26     : fLineWidth(0.0f), fLineAscent(0.0f), fLineDescent(0.0f) {}
27 
28 #endif  // CORE_FPDFDOC_CPVT_LINE_H_
29