KiCad PCB EDA Suite
Loading...
Searching...
No Matches
FONT_LIST_MANAGER Class Reference
Inheritance diagram for FONT_LIST_MANAGER:

Public Member Functions

wxArrayString GetFonts () const
 
void Register (FONT_CHOICE *aCtrl)
 
void Unregister (FONT_CHOICE *aCtrl)
 

Static Public Member Functions

static FONT_LIST_MANAGERGet ()
 

Private Member Functions

 FONT_LIST_MANAGER ()
 
 ~FONT_LIST_MANAGER ()
 
void Poll ()
 
void UpdateFonts ()
 

Private Attributes

std::thread m_thread
 
std::mutex m_mutex
 
std::condition_variable m_cv
 
wxArrayString m_fonts
 
std::vector< FONT_CHOICE * > m_controls
 
std::atomic< bool > m_quit
 

Detailed Description

Definition at line 42 of file font_choice.cpp.

Constructor & Destructor Documentation

◆ FONT_LIST_MANAGER()

FONT_LIST_MANAGER::FONT_LIST_MANAGER ( )
private

Definition at line 91 of file font_choice.cpp.

References m_quit, m_thread, Poll(), and UpdateFonts().

Referenced by Get().

◆ ~FONT_LIST_MANAGER()

FONT_LIST_MANAGER::~FONT_LIST_MANAGER ( )
private

Definition at line 103 of file font_choice.cpp.

References m_cv, m_mutex, m_quit, and m_thread.

Member Function Documentation

◆ Get()

FONT_LIST_MANAGER & FONT_LIST_MANAGER::Get ( )
static

◆ GetFonts()

wxArrayString FONT_LIST_MANAGER::GetFonts ( ) const

Definition at line 70 of file font_choice.cpp.

References m_fonts, and m_mutex.

Referenced by FONT_CHOICE::RefreshFonts().

◆ Poll()

void FONT_LIST_MANAGER::Poll ( )
private

Definition at line 118 of file font_choice.cpp.

References m_cv, m_mutex, m_quit, and UpdateFonts().

Referenced by FONT_LIST_MANAGER().

◆ Register()

void FONT_LIST_MANAGER::Register ( FONT_CHOICE * aCtrl)

Definition at line 76 of file font_choice.cpp.

References m_controls, and m_mutex.

Referenced by FONT_CHOICE::FONT_CHOICE().

◆ Unregister()

void FONT_LIST_MANAGER::Unregister ( FONT_CHOICE * aCtrl)

Definition at line 82 of file font_choice.cpp.

References m_controls, and m_mutex.

Referenced by FONT_CHOICE::~FONT_CHOICE().

◆ UpdateFonts()

void FONT_LIST_MANAGER::UpdateFonts ( )
private

Definition at line 137 of file font_choice.cpp.

References Fontconfig(), m_controls, m_fonts, m_mutex, name, and Pgm().

Referenced by FONT_LIST_MANAGER(), and Poll().

Member Data Documentation

◆ m_controls

std::vector<FONT_CHOICE*> FONT_LIST_MANAGER::m_controls
private

Definition at line 60 of file font_choice.cpp.

Referenced by Register(), Unregister(), and UpdateFonts().

◆ m_cv

std::condition_variable FONT_LIST_MANAGER::m_cv
private

Definition at line 58 of file font_choice.cpp.

Referenced by Poll(), and ~FONT_LIST_MANAGER().

◆ m_fonts

wxArrayString FONT_LIST_MANAGER::m_fonts
private

Definition at line 59 of file font_choice.cpp.

Referenced by GetFonts(), and UpdateFonts().

◆ m_mutex

std::mutex FONT_LIST_MANAGER::m_mutex
mutableprivate

Definition at line 57 of file font_choice.cpp.

Referenced by GetFonts(), Poll(), Register(), Unregister(), UpdateFonts(), and ~FONT_LIST_MANAGER().

◆ m_quit

std::atomic<bool> FONT_LIST_MANAGER::m_quit
private

Definition at line 61 of file font_choice.cpp.

Referenced by FONT_LIST_MANAGER(), Poll(), and ~FONT_LIST_MANAGER().

◆ m_thread

std::thread FONT_LIST_MANAGER::m_thread
private

Definition at line 56 of file font_choice.cpp.

Referenced by FONT_LIST_MANAGER(), and ~FONT_LIST_MANAGER().


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