GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
FontInterfaceImpl Class Reference

#include <FreeType2.hh>

Inheritance diagram for FontInterfaceImpl:
Collaboration diagram for FontInterfaceImpl:

Classes

struct  Bezier2d
struct  OutlineEvent
struct  ScanLineContext
struct  ResPair

Public Member Functions

 FontInterfaceImpl (GameApi::Env &e, void *priv_, std::string ttf_filename, std::string homepage, int sx, int sy)
void Collect (CollectVisitor &vis)
void HeavyPrepare ()
virtual int Left (long idx, bool is_outline=false) const
virtual int Top (long idx, bool is_outline=false) const
virtual int SizeX (long idx, bool is_outline=false) const
virtual int SizeY (long idx, bool is_outline=false) const
virtual unsigned int Map (long idx, int x, int y, bool is_outline=false) const
virtual int AdvanceX (long idx, bool is_outline=false) const
virtual int Ascender (long idx, bool is_outline=false) const
virtual int Descender (long idx, bool is_outline=false) const
virtual int Height (long idx, bool is_outline=false) const
void gen_glyph_data (long idx, bool is_outline=false)
virtual std::vector< Bezier2d > outlines (char idx) const
virtual std::vector< Bezier2d > make_monotonic (std::vector< Bezier2d > vec)
std::vector< Bezier2d > gen_outline_data (long idx)
virtual std::vector< OutlineEvent > convert_to_events (std::vector< Bezier2d > vec)
ScanLineContext ScanLineContextCreate () const
void ScanLineStep (std::vector< int > &active, const std::vector< OutlineEvent > &events, float y, ScanLineContext &ctx, long idx) const
std::vector< ResPair > ScanLineXCoord (const std::vector< int > &active, const std::vector< OutlineEvent > &events, const std::vector< Bezier2d > &bezi, float y, long idx) const
int IsPixelInside (const std::vector< ResPair > &vec, float x, long idx) const
Public Member Functions inherited from FontInterface
virtual ~FontInterface ()
virtual void Prepare ()
Public Member Functions inherited from CollectInterface
virtual ~CollectInterface ()
virtual int NumBlocks () const
virtual void FirstFrame ()

Constructor & Destructor Documentation

◆ FontInterfaceImpl()

FontInterfaceImpl::FontInterfaceImpl ( GameApi::Env & e,
void * priv_,
std::string ttf_filename,
std::string homepage,
int sx,
int sy )
Here is the caller graph for this function:

Member Function Documentation

◆ AdvanceX()

int FontInterfaceImpl::AdvanceX ( long idx,
bool is_outline = false ) const
virtual

Implements FontInterface.

Here is the caller graph for this function:

◆ Ascender()

int FontInterfaceImpl::Ascender ( long idx,
bool is_outline = false ) const
virtual

Implements FontInterface.

◆ Collect()

void FontInterfaceImpl::Collect ( CollectVisitor & vis)
inlinevirtual

Implements CollectInterface.

◆ convert_to_events()

std::vector< FontInterfaceImpl::OutlineEvent > FontInterfaceImpl::convert_to_events ( std::vector< Bezier2d > vec)
virtual

◆ Descender()

int FontInterfaceImpl::Descender ( long idx,
bool is_outline = false ) const
virtual

Implements FontInterface.

Here is the caller graph for this function:

◆ gen_glyph_data()

void FontInterfaceImpl::gen_glyph_data ( long idx,
bool is_outline = false )
Here is the caller graph for this function:

◆ gen_outline_data()

std::vector< FontInterfaceImpl::Bezier2d > FontInterfaceImpl::gen_outline_data ( long idx)
Here is the caller graph for this function:

◆ HeavyPrepare()

void FontInterfaceImpl::HeavyPrepare ( )
inlinevirtual

Implements CollectInterface.

◆ Height()

int FontInterfaceImpl::Height ( long idx,
bool is_outline = false ) const
virtual

Implements FontInterface.

◆ IsPixelInside()

int FontInterfaceImpl::IsPixelInside ( const std::vector< ResPair > & vec,
float x,
long idx ) const

◆ Left()

int FontInterfaceImpl::Left ( long idx,
bool is_outline = false ) const
virtual

Implements FontInterface.

Here is the caller graph for this function:

◆ make_monotonic()

std::vector< FontInterfaceImpl::Bezier2d > FontInterfaceImpl::make_monotonic ( std::vector< Bezier2d > vec)
virtual

◆ Map()

unsigned int FontInterfaceImpl::Map ( long idx,
int x,
int y,
bool is_outline = false ) const
virtual

Implements FontInterface.

◆ outlines()

std::vector< typename FontInterfaceImpl::Bezier2d > FontInterfaceImpl::outlines ( char idx) const
virtual

◆ ScanLineContextCreate()

FontInterfaceImpl::ScanLineContext FontInterfaceImpl::ScanLineContextCreate ( ) const

◆ ScanLineStep()

void FontInterfaceImpl::ScanLineStep ( std::vector< int > & active,
const std::vector< OutlineEvent > & events,
float y,
FontInterfaceImpl::ScanLineContext & ctx,
long idx ) const

◆ ScanLineXCoord()

std::vector< FontInterfaceImpl::ResPair > FontInterfaceImpl::ScanLineXCoord ( const std::vector< int > & active,
const std::vector< OutlineEvent > & events,
const std::vector< Bezier2d > & bezi,
float y,
long idx ) const

◆ SizeX()

int FontInterfaceImpl::SizeX ( long idx,
bool is_outline = false ) const
virtual

Implements FontInterface.

Here is the caller graph for this function:

◆ SizeY()

int FontInterfaceImpl::SizeY ( long idx,
bool is_outline = false ) const
virtual

Implements FontInterface.

Here is the caller graph for this function:

◆ Top()

int FontInterfaceImpl::Top ( long idx,
bool is_outline = false ) const
virtual

Implements FontInterface.

Here is the caller graph for this function:

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