Kanzi  3.9.9
Kanzi Engine C++ API
kanzi::FontFile::GlyphData Class Reference

GlyphData contains the metrics for an individual rendered glyph and its bitmap. More...

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

Inheritance diagram for kanzi::FontFile::GlyphData:
[legend]

Public Member Functions

const bytegetBitmapData () const
 Returns the pointer to bitmap data. More...
 
unsigned int getHeight () const
 Returns the height of a bitmap. More...
 
unsigned int getWidth () const
 Returns the width of a bitmap. More...
 
 GlyphData (unsigned int width, unsigned int height, const byte *bitmap)
 Constructor. More...
 
virtual ~GlyphData ()
 Destructor. More...
 

Detailed Description

GlyphData contains the metrics for an individual rendered glyph and its bitmap.

On destruction the derived GlyphData classes release the data resources held by their rasterizer.

Constructor & Destructor Documentation

kanzi::FontFile::GlyphData::GlyphData ( unsigned int  width,
unsigned int  height,
const byte bitmap 
)
explicit

Constructor.

Parameters
widthWidth of the bitmap.
heightHeight of the bitmap.
bitmapPointer to the bitmap data.
virtual kanzi::FontFile::GlyphData::~GlyphData ( )
virtual

Destructor.

Member Function Documentation

unsigned int kanzi::FontFile::GlyphData::getWidth ( ) const

Returns the width of a bitmap.

Returns
Width of the bitmap.
unsigned int kanzi::FontFile::GlyphData::getHeight ( ) const

Returns the height of a bitmap.

Returns
Height of the bitmap.
const byte* kanzi::FontFile::GlyphData::getBitmapData ( ) const

Returns the pointer to bitmap data.

Returns
Pointer to the bitmap data.

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