EHS
ehs::FontAtlas Class Reference

#include <FontAtlas.h>

Inheritance diagram for ehs::FontAtlas:
ehs::BaseObj

Public Member Functions

 ~FontAtlas () override
 
 FontAtlas ()
 
 FontAtlas (const Str_8 &filePath)
 
 FontAtlas (FontAtlas &&fa) noexcept
 
 FontAtlas (const FontAtlas &fa)
 
FontAtlasoperator= (FontAtlas &&fa) noexcept
 
FontAtlasoperator= (const FontAtlas &fa)
 
 operator Byte * () const
 
void Release ()
 
UInt_64 GetHashId () const
 
Str_8 GetId () const
 
UInt_64 GetGlyphScale () const
 
const Array< Glyph > & GetGlyphs () const
 
Glyph GetGlyph (Char_32 code) const
 
Vec2_u64 GetResolution () const
 
UInt_64 GetSize () const
 
bool IsValid () const
 
Vec2_f CalculateSize (const Str_8 &text) const
 
float CalculateWidth (const Str_8 &text) const
 
float CalculateHeight (const Str_8 &text) const
 
UInt_64 CalculateIndexAtPoint (const Str_8 &text, const Vec2_f &point) const
 
Mesh Generate (Anchor anchor, const Str_8 &text) const
 
- Public Member Functions inherited from ehs::BaseObj
virtual ~BaseObj ()
 
 BaseObj ()
 
 BaseObj (BaseObj &&base) noexcept
 
 BaseObj (const BaseObj &base)
 
BaseObjoperator= (BaseObj &&base) noexcept
 
BaseObjoperator= (const BaseObj &base)
 
bool operator== (const BaseObj &base) const
 
bool operator!= (const BaseObj &base) const
 
const TypeGetHierarchy () const
 
UInt_64 GetHierarchySize () const
 
bool HasType (UInt_64 typeHashId) const
 
bool HasType (const Char_8 *typeId) const
 
Type GetType () const
 
UInt_64 GetTypeIdSize () const
 
const Char_8GetTypeId () const
 
UInt_64 GetTypeHashId () const
 
virtual BaseObjClone () const
 

Additional Inherited Members

- Protected Member Functions inherited from ehs::BaseObj
void AddType (const Char_8 *id)
 

Constructor & Destructor Documentation

◆ ~FontAtlas()

ehs::FontAtlas::~FontAtlas ( )
override

◆ FontAtlas() [1/4]

ehs::FontAtlas::FontAtlas ( )

◆ FontAtlas() [2/4]

ehs::FontAtlas::FontAtlas ( const Str_8 filePath)

◆ FontAtlas() [3/4]

ehs::FontAtlas::FontAtlas ( FontAtlas &&  fa)
noexcept

◆ FontAtlas() [4/4]

ehs::FontAtlas::FontAtlas ( const FontAtlas fa)

Member Function Documentation

◆ CalculateHeight()

float ehs::FontAtlas::CalculateHeight ( const Str_8 text) const

◆ CalculateIndexAtPoint()

UInt_64 ehs::FontAtlas::CalculateIndexAtPoint ( const Str_8 text,
const Vec2_f point 
) const

◆ CalculateSize()

Vec2_f ehs::FontAtlas::CalculateSize ( const Str_8 text) const

◆ CalculateWidth()

float ehs::FontAtlas::CalculateWidth ( const Str_8 text) const

◆ Generate()

Mesh ehs::FontAtlas::Generate ( Anchor  anchor,
const Str_8 text 
) const

◆ GetGlyph()

Glyph ehs::FontAtlas::GetGlyph ( Char_32  code) const

◆ GetGlyphs()

const Array< Glyph > & ehs::FontAtlas::GetGlyphs ( ) const

◆ GetGlyphScale()

UInt_64 ehs::FontAtlas::GetGlyphScale ( ) const

◆ GetHashId()

UInt_64 ehs::FontAtlas::GetHashId ( ) const

◆ GetId()

Str_8 ehs::FontAtlas::GetId ( ) const

◆ GetResolution()

Vec2_u64 ehs::FontAtlas::GetResolution ( ) const

◆ GetSize()

UInt_64 ehs::FontAtlas::GetSize ( ) const

◆ IsValid()

bool ehs::FontAtlas::IsValid ( ) const

◆ operator Byte *()

ehs::FontAtlas::operator Byte * ( ) const

◆ operator=() [1/2]

FontAtlas & ehs::FontAtlas::operator= ( const FontAtlas fa)

◆ operator=() [2/2]

FontAtlas & ehs::FontAtlas::operator= ( FontAtlas &&  fa)
noexcept

◆ Release()

void ehs::FontAtlas::Release ( )

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