Krita Source Code Documentation
Loading...
Searching...
No Matches
KoFontLibraryResourceUtils.h File Reference
#include <ft2build.h>
#include <fontconfig/fontconfig.h>
#include <hb-ft.h>
#include <hb-ot.h>
#include <hb.h>
#include <QSharedPointer>
#include <kis_debug.h>

Go to the source code of this file.

Classes

struct  KisLibraryResourcePointer< T, P >
 

Namespaces

namespace  detail
 

Typedefs

using FcCharSetSP = KisLibraryResourcePointer<FcCharSet, FcCharSetDestroy>
 
using FcConfigSP = KisLibraryResourcePointer<FcConfig, FcConfigDestroy>
 
using FcFontSetSP = KisLibraryResourcePointer<FcFontSet, FcFontSetDestroy>
 
using FcPatternSP = KisLibraryResourcePointer<FcPattern, FcPatternDestroy>
 
using FT_FaceSP
 
using FT_LibrarySP
 
using hb_blob_t_sp = KisLibraryResourcePointer<hb_blob_t, hb_blob_destroy>
 
using hb_face_t_sp = KisLibraryResourcePointer<hb_face_t, hb_face_destroy>
 
using hb_font_t_sp = KisLibraryResourcePointer<hb_font_t, hb_font_destroy>
 
using hb_set_t_sp = KisLibraryResourcePointer<hb_set_t, hb_set_destroy>
 
template<typename T , int(*)(T *) P>
using KisLibraryResourcePointerWithSanityCheck = KisLibraryResourcePointer<T, detail::checkCStyleResultWrapper<T, P>>
 

Functions

template<typename T , int(*)(T *) P>
void detail::checkCStyleResultWrapper (T *ptr)
 

Typedef Documentation

◆ FcCharSetSP

using FcCharSetSP = KisLibraryResourcePointer<FcCharSet, FcCharSetDestroy>

Definition at line 90 of file KoFontLibraryResourceUtils.h.

◆ FcConfigSP

using FcConfigSP = KisLibraryResourcePointer<FcConfig, FcConfigDestroy>

Definition at line 89 of file KoFontLibraryResourceUtils.h.

◆ FcFontSetSP

using FcFontSetSP = KisLibraryResourcePointer<FcFontSet, FcFontSetDestroy>

Definition at line 92 of file KoFontLibraryResourceUtils.h.

◆ FcPatternSP

using FcPatternSP = KisLibraryResourcePointer<FcPattern, FcPatternDestroy>

Definition at line 91 of file KoFontLibraryResourceUtils.h.

◆ FT_FaceSP

◆ FT_LibrarySP

◆ hb_blob_t_sp

using hb_blob_t_sp = KisLibraryResourcePointer<hb_blob_t, hb_blob_destroy>

Definition at line 103 of file KoFontLibraryResourceUtils.h.

◆ hb_face_t_sp

using hb_face_t_sp = KisLibraryResourcePointer<hb_face_t, hb_face_destroy>

Definition at line 101 of file KoFontLibraryResourceUtils.h.

◆ hb_font_t_sp

using hb_font_t_sp = KisLibraryResourcePointer<hb_font_t, hb_font_destroy>

Definition at line 100 of file KoFontLibraryResourceUtils.h.

◆ hb_set_t_sp

using hb_set_t_sp = KisLibraryResourcePointer<hb_set_t, hb_set_destroy>

Definition at line 102 of file KoFontLibraryResourceUtils.h.

◆ KisLibraryResourcePointerWithSanityCheck

A special version of a class for resource types whose destructor returns integer value reporting if destruction was successful or now. We wrap this destructor to spit a warning in case of a trouble to release the type.

Definition at line 86 of file KoFontLibraryResourceUtils.h.