Kanzi 4.0.0-beta2
kanzi::BitmapFontFile::BitmapGlyphData Class Reference

Derived GlyphData implementation for bitmap fonts. More...

#include <kanzi/core.ui/font/bitmap_font_file.hpp>

Inheritance diagram for kanzi::BitmapFontFile::BitmapGlyphData:
[legend]

Public Member Functions

 BitmapGlyphData (size_t width, size_t height, vector< byte > bitmap)
 Constructor.
 
 ~BitmapGlyphData () override
 Destructor.
 
- Public Member Functions inherited from kanzi::FontFile::GlyphData
const byte * getBitmapData () const
 Returns the pointer to bitmap data.
 
GraphicsFormat getColorFormat () const
 Returns the color format of the glyph bitmap data.
 
DataFormat getDataFormat () const
 Returns the data format of the glyph bitmap.
 
size_t getHeight () const
 Returns the height of a bitmap.
 
size_t getWidth () const
 Returns the width of a bitmap.
 
 GlyphData (size_t width, size_t height, const byte *bitmap)
 Constructor.
 
 GlyphData (size_t width, size_t height, const byte *bitmap, DataFormat dataFormat)
 Constructor.
 
virtual ~GlyphData ()
 Destructor.
 

Additional Inherited Members

- Public Types inherited from kanzi::FontFile::GlyphData
enum class  DataFormat { ALPHA8 , B8G8R8A8 , R8G8B8A8_VerticallyFlipped }
 Specifies the data format of the glyph. More...
 

Detailed Description

Derived GlyphData implementation for bitmap fonts.

Releases the bitmap data on destruction.

Constructor & Destructor Documentation

◆ BitmapGlyphData()

kanzi::BitmapFontFile::BitmapGlyphData::BitmapGlyphData ( size_t width,
size_t height,
vector< byte > bitmap )
explicit

Constructor.

Parameters
widthWidth of the bitmap.
heightHeight of the bitmap.
bitmapPointer to the bitmap.
Since
Kanzi 4.0.0 changed the type of the width and height parameters to size_t.

◆ ~BitmapGlyphData()

kanzi::BitmapFontFile::BitmapGlyphData::~BitmapGlyphData ( )
override

Destructor.


The documentation for this class was generated from the following file: