VTK  9.7.20260927
vtkFreeTypeTools::FTThreadLocalData Struct Reference

#include <vtkFreeTypeToolsPrivate.h>

Detailed Description

Private implementation details shared between vtkFreeTypeTools and subclasses that need access to the complete FTThreadLocalData type.

This header is intentionally NOT installed. Per-thread RAII wrapper for a FreeType library instance and its associated FTC caches. One instance is created the first time a thread calls vtkFreeTypeTools::GetThreadLocalData(), and is automatically destroyed when the thread exits.

Definition at line 27 of file vtkFreeTypeToolsPrivate.h.

Public Member Functions

 FTThreadLocalData ()
 ~FTThreadLocalData ()
 FTThreadLocalData (const FTThreadLocalData &)=delete
FTThreadLocalData & operator= (const FTThreadLocalData &)=delete
bool InitLibrary ()
 Initialise the FT_Library for this thread.
void ReleaseCaches ()
 Release all FreeType cache objects owned by this thread.

Public Attributes

FT_Library Library
FTC_Manager * CacheManager
FTC_ImageCache * ImageCache
FTC_CMapCache * CMapCache

Constructor & Destructor Documentation

◆ FTThreadLocalData() [1/2]

vtkFreeTypeTools::FTThreadLocalData::FTThreadLocalData ( )

◆ ~FTThreadLocalData()

vtkFreeTypeTools::FTThreadLocalData::~FTThreadLocalData ( )

◆ FTThreadLocalData() [2/2]

vtkFreeTypeTools::FTThreadLocalData::FTThreadLocalData ( const FTThreadLocalData & )
delete

Member Function Documentation

◆ InitLibrary()

bool vtkFreeTypeTools::FTThreadLocalData::InitLibrary ( )

Initialise the FT_Library for this thread.

Returns true on success.

◆ ReleaseCaches()

void vtkFreeTypeTools::FTThreadLocalData::ReleaseCaches ( )

Release all FreeType cache objects owned by this thread.

◆ operator=()

FTThreadLocalData & vtkFreeTypeTools::FTThreadLocalData::operator= ( const FTThreadLocalData & )
delete

Member Data Documentation

◆ Library

FT_Library vtkFreeTypeTools::FTThreadLocalData::Library

Definition at line 29 of file vtkFreeTypeToolsPrivate.h.

◆ CacheManager

FTC_Manager* vtkFreeTypeTools::FTThreadLocalData::CacheManager

Definition at line 30 of file vtkFreeTypeToolsPrivate.h.

◆ ImageCache

FTC_ImageCache* vtkFreeTypeTools::FTThreadLocalData::ImageCache

Definition at line 31 of file vtkFreeTypeToolsPrivate.h.

◆ CMapCache

FTC_CMapCache* vtkFreeTypeTools::FTThreadLocalData::CMapCache

Definition at line 32 of file vtkFreeTypeToolsPrivate.h.


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