Android-cuttlefish cvd tool
Classes | Namespaces | Macros | Typedefs | Functions
font_rendering.h File Reference
#include <ft2build.h>
#include <freetype/ftglyph.h>
#include "utils.h"
#include <tuple>
#include <type_traits>
#include "utf8range.h"
Include dependency graph for font_rendering.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  teeui::Handle< T, Deleter >
 
class  teeui::UTF8WordRange< CharIterator >
 
class  teeui::UTF8WordRange< CharIterator >::Iter
 
class  teeui::TextFace
 
class  teeui::TextContext
 

Namespaces

namespace  teeui
 

Macros

#define MAP_HANDLE_DELETER(type, deleter)
 

Typedefs

using teeui::GlyphIndex = unsigned int
 

Functions

template<typename T >
 teeui::Handle (T handle) -> Handle< T, HandleDelete< T > >
 
 teeui::MAP_HANDLE_DELETER (FT_Face, FT_Done_Face)
 
 teeui::MAP_HANDLE_DELETER (FT_Library, FT_Done_FreeType)
 
bool teeui::isBreakable (unsigned long codePoint)
 
bool teeui::isNewline (unsigned long codePoint)
 
std::tuple< Error, Box< pxs >, UTF8Range< const char * > > teeui::findLongestWordSequence (TextFace *face, const UTF8Range< const char * > &text, const Box< pxs > &boundingBox)
 
Error teeui::drawText (TextFace *face, const UTF8Range< const char * > &text, const PixelDrawer &drawPixel, PxPoint pen)
 

Macro Definition Documentation

◆ MAP_HANDLE_DELETER

#define MAP_HANDLE_DELETER (   type,
  deleter 
)
Value:
template <> struct HandleDelete<type> { \
void operator()(type h) { deleter(h); } \
}
uint8_t type
Definition: pairing_connection.h:0