#include <TGFont.h>
Inheritance diagram for TGFontPool:
Definition at line 230 of file TGFont.h.
TGFontPool::TGFontPool | ( | const TGFontPool & | fp | ) | [private] |
TGFontPool::TGFontPool | ( | TGClient * | client | ) |
Definition at line 1508 of file TGFont.cxx.
References TGObject::fClient, fList, fNamedTable, fUidTable, and TCollection::SetOwner().
TGFontPool::~TGFontPool | ( | ) | [virtual] |
TGFontPool::TGFontPool | ( | const TGFontPool & | fp | ) | [private] |
TGFontPool::TGFontPool | ( | TGClient * | client | ) |
virtual TGFontPool::~TGFontPool | ( | ) | [virtual] |
TGFontPool& TGFontPool::operator= | ( | const TGFontPool & | fp | ) | [private] |
const char * TGFontPool::GetUid | ( | const char * | string | ) | [protected] |
Definition at line 1756 of file TGFont.cxx.
References THashTable::Add(), THashTable::FindObject(), and fUidTable.
Referenced by MakeFont(), ParseFontName(), and ParseXLFD().
Bool_t TGFontPool::ParseXLFD | ( | const char * | string, | |
XLFDAttributes_t * | xa | |||
) | [protected] |
Definition at line 2017 of file TGFont.cxx.
References TString::Append(), TString::Data(), XLFDAttributes_t::fFA, FontAttributes_t::fFamily, XLFDAttributes_t::fFoundry, FieldSpecified(), FindStateNum(), FontAttributes_t::fSlant, XLFDAttributes_t::fSlant, FontAttributes_t::fWeight, GetUid(), gXlfdgWeightMap, gXlfdSlantMap, i, j, kFALSE, kFontSlantItalic, kFontSlantRoman, str, XLFD_ADD_STYLE, XLFD_FAMILY, XLFD_FOUNDRY, XLFD_NUMFIELDS, XLFD_SLANT, and XLFD_WEIGHT.
Referenced by GetFontFromAttributes(), MakeFont(), and ParseFontName().
TGFont * TGFontPool::GetFontFromAttributes | ( | FontAttributes_t * | fa, | |
TGFont * | fontPtr | |||
) | [protected] |
Definition at line 2317 of file TGFont.cxx.
References buf, d, XLFDAttributes_t::fFA, FontAttributes_t::fFamily, XLFDAttributes_t::fFoundry, TString::Format(), FontAttributes_t::fPointsize, gVirtualX, i, int, kMaxInt, ParseXLFD(), and strcasecmp.
Referenced by GetFont().
Int_t TGFontPool::FindStateNum | ( | const FontStateMap_t * | map, | |
const char * | strKey | |||
) | [protected] |
Definition at line 2171 of file TGFont.cxx.
References FontStateMap_t::fStrKey, m, and strcasecmp.
Referenced by ParseFontName(), and ParseXLFD().
const char * TGFontPool::FindStateString | ( | const FontStateMap_t * | map, | |
int | numKey | |||
) | [protected] |
Definition at line 2195 of file TGFont.cxx.
References FontStateMap_t::fNumKey, and FontStateMap_t::fStrKey.
Referenced by GetAttributeInfo(), and GetFont().
Bool_t TGFontPool::FieldSpecified | ( | const char * | field | ) | [protected] |
Definition at line 2528 of file TGFont.cxx.
References TGObject::fClient, TGClient::GetFontByName(), and MakeFont().
Referenced by GetFont().
TGFont * TGFontPool::MakeFont | ( | TGFont * | font, | |
FontStruct_t | fontStruct, | |||
const char * | fontName | |||
) | [protected] |
Definition at line 2550 of file TGFont.cxx.
References buf, d, FontMetrics_t::fAscent, FontMetrics_t::fDescent, TGFont::fFA, XLFDAttributes_t::fFA, FontAttributes_t::fFamily, FontMetrics_t::fFixed, TGFont::fFM, TGFont::fFontH, TGFont::fFontStruct, FontMetrics_t::fLinespace, FontMetrics_t::fMaxWidth, FontAttributes_t::fPointsize, TGFont::fTypes, TGFont::fWidths, GetUid(), gVirtualX, i, int, kCharNormal, kCharReplace, kFALSE, kTRUE, n, p, ParseXLFD(), and width.
Referenced by GetFont(), and GetNativeFont().
Definition at line 1532 of file TGFont.cxx.
References THashTable::Add(), TObject::Error(), THashTable::FindObject(), fList, fNamedTable, gErrorIgnoreLevel, GetFontFromAttributes(), GetNativeFont(), kFatal, nf, and ParseFontName().
Referenced by GetFont(), TGClient::GetFont(), TGTextButton::Init(), TGSplitButton::Layout(), TGTextButton::Layout(), TGSplitButton::SetText(), TGLabel::SetTextFont(), and TGSplitButton::TGSplitButton().
TGFont * TGFontPool::GetFont | ( | FontStruct_t | font | ) |
Definition at line 1648 of file TGFont.cxx.
References THashTable::Add(), FindFont(), fList, TString::Format(), i, and MakeFont().
Definition at line 1668 of file TGFont.cxx.
References TString::Data(), FindStateString(), TString::Format(), GetFont(), gSlantMap, gWeightMap, and s.
void TGFontPool::FreeFont | ( | const TGFont * | font | ) |
Definition at line 1696 of file TGFont.cxx.
References THashTable::FindObject(), fList, TGFont::fNamedHash, fNamedTable, if(), nf, and THashTable::Remove().
Referenced by TGClient::FreeFont(), and TGLabel::~TGLabel().
TGFont * TGFontPool::FindFont | ( | FontStruct_t | font | ) | const |
Definition at line 1722 of file TGFont.cxx.
References fList.
Referenced by TGuiBldDragManager::ChangeProperties(), TGuiBldDragManager::ChangeTextFont(), GetFont(), TGTextButton::Init(), TGSplitButton::Layout(), TGTextButton::Layout(), TGTextEntry::SavePrimitive(), TGRadioButton::SavePrimitive(), TGTab::SavePrimitive(), TGTextButton::SavePrimitive(), TGLabel::SavePrimitive(), TGCheckButton::SavePrimitive(), TGVButtonGroup::SavePrimitive(), TGHButtonGroup::SavePrimitive(), TGButtonGroup::SavePrimitive(), TGGroupFrame::SavePrimitive(), TGSplitButton::SetText(), and TGSplitButton::TGSplitButton().
char ** TGFontPool::GetAttributeInfo | ( | const FontAttributes_t * | fa | ) |
Definition at line 1779 of file TGFont.cxx.
References FontAttributes_t::fFamily, FindStateString(), FONT_FAMILY, FONT_NUMFIELDS, FONT_OVERSTRIKE, FONT_SIZE, FONT_SLANT, FONT_UNDERLINE, FONT_WEIGHT, FontAttributes_t::fOverstrike, FontAttributes_t::fPointsize, FontAttributes_t::fSlant, FontAttributes_t::fUnderline, FontAttributes_t::fWeight, gSlantMap, gWeightMap, i, if(), num, result(), snprintf, str, and strlcpy().
void TGFontPool::FreeAttributeInfo | ( | char ** | info | ) |
char ** TGFontPool::GetFontFamilies | ( | ) |
Definition at line 2241 of file TGFont.cxx.
References THashTable::Add(), entries, THashTable::FindObject(), TCollection::GetEntries(), gVirtualX, i, p, TCollection::SetOwner(), and StrDup().
void TGFontPool::FreeFontFamilies | ( | char ** | f | ) |
Bool_t TGFontPool::ParseFontName | ( | const char * | string, | |
FontAttributes_t * | fa | |||
) |
Definition at line 1928 of file TGFont.cxx.
References XLFDAttributes_t::fFA, FontAttributes_t::fFamily, FindStateNum(), FontAttributes_t::fOverstrike, FontAttributes_t::fPointsize, FontAttributes_t::fSlant, FontAttributes_t::fUnderline, FontAttributes_t::fWeight, GetToken(), GetUid(), gOverstrikeMap, gSlantMap, gUnderlineMap, gWeightMap, kFALSE, kFontSlantUnknown, kFontWeightUnknown, kTRUE, n, ParseXLFD(), result(), s, str, strlcpy(), and strtol().
Referenced by GetFont().
const char * TGFontPool::NameOfFont | ( | TGFont * | font | ) |
void TGFontPool::Print | ( | Option_t * | option = "" |
) | const [virtual] |
Reimplemented from TObject.
Definition at line 1853 of file TGFont.cxx.
References fList, and TCollection::Print().
TGFontPool& TGFontPool::operator= | ( | const TGFontPool & | fp | ) | [private] |
const char* TGFontPool::GetUid | ( | const char * | string | ) | [protected] |
Bool_t TGFontPool::ParseXLFD | ( | const char * | string, | |
XLFDAttributes_t * | xa | |||
) | [protected] |
TGFont* TGFontPool::GetFontFromAttributes | ( | FontAttributes_t * | fa, | |
TGFont * | fontPtr | |||
) | [protected] |
int TGFontPool::FindStateNum | ( | const FontStateMap_t * | map, | |
const char * | strKey | |||
) | [protected] |
const char* TGFontPool::FindStateString | ( | const FontStateMap_t * | map, | |
int | numKey | |||
) | [protected] |
Bool_t TGFontPool::FieldSpecified | ( | const char * | field | ) | [protected] |
TGFont* TGFontPool::MakeFont | ( | TGFont * | font, | |
FontStruct_t | fontStruct, | |||
const char * | fontName | |||
) | [protected] |
TGFont* TGFontPool::GetFont | ( | FontStruct_t | font | ) |
void TGFontPool::FreeFont | ( | const TGFont * | font | ) |
TGFont* TGFontPool::FindFont | ( | FontStruct_t | font | ) | const |
char** TGFontPool::GetAttributeInfo | ( | const FontAttributes_t * | fa | ) |
void TGFontPool::FreeAttributeInfo | ( | char ** | info | ) |
char** TGFontPool::GetFontFamilies | ( | ) |
void TGFontPool::FreeFontFamilies | ( | char ** | f | ) |
Bool_t TGFontPool::ParseFontName | ( | const char * | string, | |
FontAttributes_t * | fa | |||
) |
const char* TGFontPool::NameOfFont | ( | TGFont * | font | ) |
THashTable* TGFontPool::fList [private] |
Definition at line 233 of file TGFont.h.
Referenced by FindFont(), FindFontByHandle(), FreeFont(), GetFont(), Print(), TGFontPool(), and ~TGFontPool().
THashTable* TGFontPool::fUidTable [private] |
THashTable* TGFontPool::fNamedTable [private] |
THashTable* TGFontPool::fList [private] |
THashTable* TGFontPool::fUidTable [private] |
THashTable* TGFontPool::fNamedTable [private] |