OpenCPN Partial API docs
Loading...
Searching...
No Matches
FontMgr Class Reference

Manages the font list. More...

#include <FontMgr.h>

Public Member Functions

void SetLocale (wxString &newLocale)
 
wxFont * GetFont (const wxString &TextElement, int default_size=0)
 
wxColour GetFontColor (const wxString &TextElement) const
 
wxColour GetDefaultFontColor (const wxString &TextElement)
 
bool SetFontColor (const wxString &TextElement, const wxColour color) const
 
int GetNumFonts (void) const
 
const wxString & GetConfigString (int i) const
 
const wxString & GetDialogString (int i) const
 
const wxString & GetNativeDesc (int i) const
 
wxString GetFullConfigDesc (int i) const
 
wxArrayString & GetAuxKeyArray ()
 
bool AddAuxKey (wxString key)
 
void LoadFontNative (wxString *pConfigString, wxString *pNativeDesc)
 
bool SetFont (const wxString &TextElement, wxFont *pFont, wxColour color)
 
void ScrubList ()
 
MyFontDescFindFontByConfigString (wxString pConfigString)
 
wxFont * FindOrCreateFont (int point_size, wxFontFamily family, wxFontStyle style, wxFontWeight weight, bool underline=false, const wxString &facename=wxEmptyString, wxFontEncoding encoding=wxFONTENCODING_DEFAULT)
 
wxFont * FindOrCreateFont (int pointSize, int family, int style, int weight, bool underline=false, const wxString &face=wxEmptyString, wxFontEncoding encoding=wxFONTENCODING_DEFAULT)
 

Static Public Member Functions

static FontMgrGet ()
 
static wxString GetFontConfigKey (const wxString &description)
 
static void Shutdown ()
 

Detailed Description

Manages the font list.

Singleton.

Definition at line 41 of file FontMgr.h.

Member Function Documentation

◆ AddAuxKey()

bool FontMgr::AddAuxKey ( wxString  key)

Definition at line 590 of file FontMgr.cpp.

◆ FindFontByConfigString()

MyFontDesc * FontMgr::FindFontByConfigString ( wxString  pConfigString)

Definition at line 299 of file FontMgr.cpp.

◆ FindOrCreateFont() [1/2]

wxFont * FontMgr::FindOrCreateFont ( int  point_size,
wxFontFamily  family,
wxFontStyle  style,
wxFontWeight  weight,
bool  underline = false,
const wxString &  facename = wxEmptyString,
wxFontEncoding  encoding = wxFONTENCODING_DEFAULT 
)

Definition at line 373 of file FontMgr.cpp.

◆ FindOrCreateFont() [2/2]

wxFont * FontMgr::FindOrCreateFont ( int  pointSize,
int  family,
int  style,
int  weight,
bool  underline = false,
const wxString &  face = wxEmptyString,
wxFontEncoding  encoding = wxFONTENCODING_DEFAULT 
)
inline

Definition at line 72 of file FontMgr.h.

◆ Get()

FontMgr & FontMgr::Get ( )
static

Definition at line 67 of file FontMgr.cpp.

◆ GetAuxKeyArray()

wxArrayString & FontMgr::GetAuxKeyArray ( )
inline

Definition at line 58 of file FontMgr.h.

◆ GetConfigString()

const wxString & FontMgr::GetConfigString ( int  i) const

Definition at line 270 of file FontMgr.cpp.

◆ GetDefaultFontColor()

wxColour FontMgr::GetDefaultFontColor ( const wxString &  TextElement)

Definition at line 208 of file FontMgr.cpp.

◆ GetDialogString()

const wxString & FontMgr::GetDialogString ( int  i) const

Definition at line 275 of file FontMgr.cpp.

◆ GetFont()

wxFont * FontMgr::GetFont ( const wxString &  TextElement,
int  default_size = 0 
)

Definition at line 162 of file FontMgr.cpp.

◆ GetFontColor()

wxColour FontMgr::GetFontColor ( const wxString &  TextElement) const

Definition at line 101 of file FontMgr.cpp.

◆ GetFontConfigKey()

wxString FontMgr::GetFontConfigKey ( const wxString &  description)
static

Definition at line 137 of file FontMgr.cpp.

◆ GetFullConfigDesc()

wxString FontMgr::GetFullConfigDesc ( int  i) const

Definition at line 285 of file FontMgr.cpp.

◆ GetNativeDesc()

const wxString & FontMgr::GetNativeDesc ( int  i) const

Definition at line 280 of file FontMgr.cpp.

◆ GetNumFonts()

int FontMgr::GetNumFonts ( void  ) const

Definition at line 268 of file FontMgr.cpp.

◆ LoadFontNative()

void FontMgr::LoadFontNative ( wxString *  pConfigString,
wxString *  pNativeDesc 
)

Definition at line 315 of file FontMgr.cpp.

◆ ScrubList()

void FontMgr::ScrubList ( )

Definition at line 487 of file FontMgr.cpp.

◆ SetFont()

bool FontMgr::SetFont ( const wxString &  TextElement,
wxFont *  pFont,
wxColour  color 
)

Definition at line 237 of file FontMgr.cpp.

◆ SetFontColor()

bool FontMgr::SetFontColor ( const wxString &  TextElement,
const wxColour  color 
) const

Definition at line 118 of file FontMgr.cpp.

◆ SetLocale()

void FontMgr::SetLocale ( wxString &  newLocale)

Definition at line 99 of file FontMgr.cpp.

◆ Shutdown()

void FontMgr::Shutdown ( )
static

Definition at line 72 of file FontMgr.cpp.


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