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