FastUIDraw
glyph_atlas_proxy.hpp
Go to the documentation of this file.
1 /*!
2  * \file glyph_atlas_proxy.hpp
3  * \brief file glyph_atlas_proxy.hpp
4  *
5  * Copyright 2016 by Intel.
6  *
7  * Contact: kevin.rogovin@gmail.com
8  *
9  * This Source Code Form is subject to the
10  * terms of the Mozilla Public License, v. 2.0.
11  * If a copy of the MPL was not distributed with
12  * this file, You can obtain one at
13  * http://mozilla.org/MPL/2.0/.
14  *
15  * \author Kevin Rogovin <kevin.rogovin@gmail.com>
16  *
17  */
18 
19 
22 
23 namespace fastuidraw
24 {
25 /*!\addtogroup Glyph
26  * @{
27  */
28  class Glyph;
29  class GlyphCache;
30 
31  /*!
32  * !\brief
33  * An \ref GlyphAtlasProxy is a proxy for a GlyphAtlas; one can allocate
34  * through it. Internally it tracks all that was allocated with it.
35  */
37  {
38  public:
39  /*!
40  * Negative return value indicates failure.
41  */
42  int
44 
45  /*!
46  * Returns the total amount allocated thorugh this
47  * GlyphAtlasProxy.
48  */
49  unsigned int
50  total_allocated(void) const;
51 
52  private:
53  friend class Glyph;
54  friend class GlyphCache;
55 
56  GlyphAtlasProxy(void *d):
57  m_d(d)
58  {}
59 
60  void *m_d;
61  };
62 /*! @} */
63 }
all classes and functions of FastUIDraw are in the namespace fastuidraw.
Definition: colorstop.hpp:28
A GlyphCache represents a cache of glyphs and manages the uploading of the data to a GlyphAtlas...
Definition: glyph_cache.hpp:43
An GlyphAtlasProxy is a proxy for a GlyphAtlas; one can allocate through it. Internally it tracks all...
file glyph_atlas.hpp
unsigned int total_allocated(void) const
int allocate_data(c_array< const uint32_t > pdata)
A Glyph is essentially an opaque pointer to data for rendering and performing layout of a glyph...
Definition: glyph.hpp:48
Class for which copy ctor and assignment operator are private functions.
Definition: util.hpp:505
file reference_counted.hpp