Home | History | Annotate | Download | only in fpdfdoc
      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_WORD_H_
      8 #define CORE_FPDFDOC_CPVT_WORD_H_
      9 
     10 #include "core/fpdfdoc/cpvt_wordplace.h"
     11 #include "core/fpdfdoc/cpvt_wordprops.h"
     12 #include "core/fxcrt/fx_system.h"
     13 
     14 class CPVT_Word {
     15  public:
     16   CPVT_Word();
     17 
     18   uint16_t Word;
     19   int32_t nCharset;
     20   CPVT_WordPlace WordPlace;
     21   CFX_PointF ptWord;
     22   FX_FLOAT fAscent;
     23   FX_FLOAT fDescent;
     24   FX_FLOAT fWidth;
     25   int32_t nFontIndex;
     26   FX_FLOAT fFontSize;
     27   CPVT_WordProps WordProps;
     28 };
     29 
     30 inline CPVT_Word::CPVT_Word()
     31     : Word(0),
     32       nCharset(0),
     33       fAscent(0.0f),
     34       fDescent(0.0f),
     35       fWidth(0.0f),
     36       nFontIndex(-1),
     37       fFontSize(0.0f) {}
     38 
     39 #endif  // CORE_FPDFDOC_CPVT_WORD_H_
     40