Cobbletext  0.2.0
Complex text layout and rendering engine
Public Member Functions | Public Attributes | List of all members
cobbletext::Engine Class Reference

#include <Engine.hpp>

Collaboration diagram for cobbletext::Engine:
Collaboration graph
[legend]

Public Member Functions

std::vector< TileInfotiles ()
 
std::vector< AdvanceInfoadvances ()
 
 Engine (std::shared_ptr< Library > library)
 
 ~Engine ()
 
void addText (const uint8_t *data, uint32_t length, Encoding encoding)
 
void addTextUTF8 (std::string_view text)
 
void addTextUTF8 (const char *text, int32_t length)
 
void addTextUTF16 (std::u16string_view text)
 
void addTextUTF16 (const char16_t *text, int32_t length)
 
void addTextUTF32 (std::u32string_view text)
 
void addTextUTF32 (const char32_t *text, int32_t length)
 
void addInlineObject (InlineObjectID id, uint32_t width, uint32_t height)
 
void clear ()
 
void layOut ()
 
bool tilesValid ()
 
void rasterize ()
 
bool packTiles (uint32_t width, uint32_t height)
 
void clearTiles ()
 

Public Attributes

uint32_t lineLength = 0
 
std::string locale
 
TextAlignment textAlignment = TextAlignment::NotSpecified
 
std::string language
 
std::string script
 
ScriptDirection scriptDirection = ScriptDirection::NotSpecified
 
FontID font = 0
 
double fontSize = 12
 
CustomPropertyID customProperty = 0
 
OutputInfo outputInfo
 

Constructor & Destructor Documentation

◆ Engine()

cobbletext::Engine::Engine ( std::shared_ptr< Library library)
explicit

◆ ~Engine()

cobbletext::Engine::~Engine ( )

Member Function Documentation

◆ addInlineObject()

void cobbletext::Engine::addInlineObject ( InlineObjectID  id,
uint32_t  width,
uint32_t  height 
)

◆ addText()

void cobbletext::Engine::addText ( const uint8_t *  data,
uint32_t  length,
Encoding  encoding 
)

◆ addTextUTF16() [1/2]

void cobbletext::Engine::addTextUTF16 ( const char16_t *  text,
int32_t  length 
)

◆ addTextUTF16() [2/2]

void cobbletext::Engine::addTextUTF16 ( std::u16string_view  text)

◆ addTextUTF32() [1/2]

void cobbletext::Engine::addTextUTF32 ( const char32_t *  text,
int32_t  length 
)

◆ addTextUTF32() [2/2]

void cobbletext::Engine::addTextUTF32 ( std::u32string_view  text)

◆ addTextUTF8() [1/2]

void cobbletext::Engine::addTextUTF8 ( const char *  text,
int32_t  length 
)

◆ addTextUTF8() [2/2]

void cobbletext::Engine::addTextUTF8 ( std::string_view  text)

◆ advances()

std::vector<AdvanceInfo> cobbletext::Engine::advances ( )

◆ clear()

void cobbletext::Engine::clear ( )

◆ clearTiles()

void cobbletext::Engine::clearTiles ( )

◆ layOut()

void cobbletext::Engine::layOut ( )

◆ packTiles()

bool cobbletext::Engine::packTiles ( uint32_t  width,
uint32_t  height 
)

◆ rasterize()

void cobbletext::Engine::rasterize ( )

◆ tiles()

std::vector<TileInfo> cobbletext::Engine::tiles ( )

◆ tilesValid()

bool cobbletext::Engine::tilesValid ( )

Member Data Documentation

◆ customProperty

CustomPropertyID cobbletext::Engine::customProperty = 0

◆ font

FontID cobbletext::Engine::font = 0

◆ fontSize

double cobbletext::Engine::fontSize = 12

◆ language

std::string cobbletext::Engine::language

◆ lineLength

uint32_t cobbletext::Engine::lineLength = 0

◆ locale

std::string cobbletext::Engine::locale

◆ outputInfo

OutputInfo cobbletext::Engine::outputInfo

◆ script

std::string cobbletext::Engine::script

◆ scriptDirection

ScriptDirection cobbletext::Engine::scriptDirection = ScriptDirection::NotSpecified

◆ textAlignment

TextAlignment cobbletext::Engine::textAlignment = TextAlignment::NotSpecified

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