• 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_FPDFAPI_RENDER_CPDF_CHARPOSLIST_H_
8 #define CORE_FPDFAPI_RENDER_CPDF_CHARPOSLIST_H_
9 
10 #include <vector>
11 
12 #include "core/fxcrt/fx_system.h"
13 
14 class CPDF_Font;
15 class TextCharPos;
16 
17 class CPDF_CharPosList {
18  public:
19   CPDF_CharPosList(const std::vector<uint32_t>& charCodes,
20                    const std::vector<float>& charPos,
21                    CPDF_Font* pFont,
22                    float font_size);
23   ~CPDF_CharPosList();
24 
Get()25   const std::vector<TextCharPos>& Get() const { return m_CharPos; }
26 
27  private:
28   std::vector<TextCharPos> m_CharPos;
29 };
30 
31 #endif  // CORE_FPDFAPI_RENDER_CPDF_CHARPOSLIST_H_
32