Aether
SDL2 based UI Framework for NX
|
Class storing metrics for a font's character. Designed to be read-only as it is only able to return values passed at construction. More...
#include <GlyphMetrics.hpp>
Public Member Functions | |
GlyphMetrics () | |
Recommended height of a line containing the glyph. More... | |
GlyphMetrics (const uint16_t ch, const int width, const int height, const int lineHeight) | |
Create a new GlyphMetrics object. More... | |
uint16_t | character () |
Returns character referenced by metrics. More... | |
int | width () |
Return the width of the glyph. More... | |
int | height () |
Return the height of the glyph. More... | |
int | lineHeight () |
Return the recommend line height for the glyph. More... | |
Class storing metrics for a font's character. Designed to be read-only as it is only able to return values passed at construction.
Aether::GlyphMetrics::GlyphMetrics | ( | ) |
Recommended height of a line containing the glyph.
Default constructor to initialize with blank values
Aether::GlyphMetrics::GlyphMetrics | ( | const uint16_t | ch, |
const int | width, | ||
const int | height, | ||
const int | lineHeight | ||
) |
Create a new GlyphMetrics object.
ch | Character metrics are for |
width | Width of glyph |
height | Height of glyph |
lineHeight | Height of line containing glyph |
uint16_t Aether::GlyphMetrics::character | ( | ) |
Returns character referenced by metrics.
int Aether::GlyphMetrics::height | ( | ) |
Return the height of the glyph.
int Aether::GlyphMetrics::lineHeight | ( | ) |
Return the recommend line height for the glyph.
int Aether::GlyphMetrics::width | ( | ) |
Return the width of the glyph.