public:
/**
+ * Description of GlyphManager state
+ */
+ struct Metrics
+ {
+ uint32_t mGlyphCount; // number of glyphs being managed
+ AtlasManager::Metrics mAtlasMetrics; // metrics from the Atlas Manager
+ };
+
+ /**
* @brief Create a AtlasGlyphManager handle.
*
* Calling member functions with an uninitialised handle is not allowed.
AtlasManager::AtlasSlot& slot );
/**
+ * @brief Retrieve the size of an atlas
+ *
+ * @param[in] atlasId Id of the atlas to interrogate
+ *
+ * @return The pixel size of the atlas
+ */
+ Vector2 GetAtlasSize( uint32_t atlasId );
+
+ /**
* @brief Set the Atlas size and block size for subsequent atlas generation
*
* @param[in] size size of the atlas in pixels
* @param[in] blockSize size of a block in this atlas in pixels
*/
- void SetAtlasSize( const Vector2& size,
- const Vector2& blockSize );
+ void SetNewAtlasSize( const Vector2& size,
+ const Vector2& blockSize );
/**
* @brief Unreference an image from the atlas and remove from cache if no longer needed
/**
* @brief Get the Pixel Format used by an atlas
*
- * @param atlasId Id of atlas to check
+ * @param[in] atlasId Id of atlas to check
+ *
* @return The pixel format of the atlas
*/
Pixel::Format GetPixelFormat( uint32_t atlasId );
+ /**
+ * @brief Get Glyph Manager metrics
+ *
+ * @return const reference to glyph manager metrics
+ */
+ const Metrics& GetMetrics();
+
private:
explicit DALI_INTERNAL AtlasGlyphManager(Internal::AtlasGlyphManager *impl);