FastUIDraw
Public Member Functions | Public Attributes | List of all members
fastuidraw::GlyphSource Class Reference

#include <glyph_source.hpp>

Public Member Functions

 GlyphSource (void)
 
 GlyphSource (const FontBase *f, uint32_t g)
 
 GlyphSource (uint32_t g, const FontBase *f)
 
bool operator< (const GlyphSource &rhs) const
 

Public Attributes

const FontBasem_font
 
uint32_t m_glyph_code
 

Detailed Description

Class to specify the source for a glyph.

Definition at line 34 of file glyph_source.hpp.

Constructor & Destructor Documentation

◆ GlyphSource() [1/3]

fastuidraw::GlyphSource::GlyphSource ( void  )
inline

Ctor. Initialize m_glyph_code as 0 and m_font as nullptr.

Definition at line 41 of file glyph_source.hpp.

◆ GlyphSource() [2/3]

fastuidraw::GlyphSource::GlyphSource ( const FontBase f,
uint32_t  g 
)
inline

Ctor.

Parameters
fvalue to assign to m_font
gvalue to assign to m_glyph_code

Definition at line 50 of file glyph_source.hpp.

◆ GlyphSource() [3/3]

fastuidraw::GlyphSource::GlyphSource ( uint32_t  g,
const FontBase f 
)
inline

Ctor.

Parameters
fvalue to assign to m_font
gvalue to assign to m_glyph_code

Definition at line 61 of file glyph_source.hpp.

Member Function Documentation

◆ operator<()

bool fastuidraw::GlyphSource::operator< ( const GlyphSource rhs) const
inline

Comparison operator

Parameters
rhsvalue to compare against

Definition at line 72 of file glyph_source.hpp.

Member Data Documentation

◆ m_font

const FontBase* fastuidraw::GlyphSource::m_font

Font of a Glyph

Definition at line 86 of file glyph_source.hpp.

◆ m_glyph_code

uint32_t fastuidraw::GlyphSource::m_glyph_code

Glyph code of a Glyph

Definition at line 81 of file glyph_source.hpp.


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