ComputerGraphik TU WIEN
Public Member Functions | Public Attributes | List of all members
Glyph Struct Reference

Glyph is used by Legend and contains positional information about characters. More...

#include <legend.hpp>

Public Member Functions

 Glyph (FT_Pos _ax, FT_Pos _ay, unsigned int _bw, unsigned int _bh, FT_Int _bl, FT_Int _bt)
 

Public Attributes

FT_Pos ax
 
FT_Pos ay
 
unsigned int bw
 
unsigned int bh
 
FT_Int bl
 
FT_Int bt
 

Detailed Description

Glyph is used by Legend and contains positional information about characters.

Author
Felix
Implementation
The Glyph struct holds the most important parameters from FT_GlyphSlot. This struct is used in std::map<char, Glyph> charGlyphMap; in order to look up the corresponding Glyph for a character. The memory in FT_GlyphSlot is automatically deallocated so we need an additional container, that is the reason why this struct exists.

Constructor & Destructor Documentation

Glyph::Glyph ( FT_Pos  _ax,
FT_Pos  _ay,
unsigned int  _bw,
unsigned int  _bh,
FT_Int  _bl,
FT_Int  _bt 
)
inline

Member Data Documentation

FT_Pos Glyph::ax
FT_Pos Glyph::ay
unsigned int Glyph::bh
FT_Int Glyph::bl
FT_Int Glyph::bt
unsigned int Glyph::bw

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