1 // Copyright 2019 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_FXGE_CFX_GLYPHBITMAP_H_
8 #define CORE_FXGE_CFX_GLYPHBITMAP_H_
9 
10 #include <vector>
11 
12 #include "core/fxcrt/retain_ptr.h"
13 
14 class CFX_DIBitmap;
15 
16 class CFX_GlyphBitmap {
17  public:
18   CFX_GlyphBitmap(int left, int top);
19   ~CFX_GlyphBitmap();
20 
21   CFX_GlyphBitmap(const CFX_GlyphBitmap&) = delete;
22   CFX_GlyphBitmap& operator=(const CFX_GlyphBitmap&) = delete;
23 
GetBitmap()24   const RetainPtr<CFX_DIBitmap>& GetBitmap() const { return m_pBitmap; }
left()25   int left() const { return m_Left; }
top()26   int top() const { return m_Top; }
27 
28  private:
29   const int m_Left;
30   const int m_Top;
31   RetainPtr<CFX_DIBitmap> m_pBitmap;
32 };
33 
34 #endif  // CORE_FXGE_CFX_GLYPHBITMAP_H_
35