#include <TGFont.h>
Inheritance diagram for TGFont:
Definition at line 153 of file TGFont.h.
TGFont::TGFont | ( | const char * | name | ) | [inline, protected] |
TGFont::TGFont | ( | const TGFont & | font | ) | [protected] |
TGFont::~TGFont | ( | ) | [virtual] |
TGFont::TGFont | ( | const char * | name | ) | [inline, protected] |
TGFont::TGFont | ( | const TGFont & | font | ) | [protected] |
virtual TGFont::~TGFont | ( | ) | [virtual] |
void TGFont::operator= | ( | const TGFont & | font | ) | [protected] |
LayoutChunk_t * TGFont::NewChunk | ( | TGTextLayout * | layout, | |
int * | maxPtr, | |||
const char * | start, | |||
int | numChars, | |||
int | curX, | |||
int | newX, | |||
int | y | |||
) | const [protected] |
Definition at line 1382 of file TGFont.cxx.
References chunk, TGTextLayout::fChunks, TGTextLayout::fNumChunks, and i.
Referenced by ComputeTextLayout().
FontH_t TGFont::GetFontHandle | ( | ) | const [inline] |
Definition at line 196 of file TGFont.h.
References fFontH.
Referenced by EntryTestDlg::EntryTestDlg(), TGLVEntry::GetDefaultGC(), TGTextView::GetDefaultGC(), TGStatusBar::GetDefaultGC(), TGListView::GetDefaultGC(), TGTextView::GetDefaultSelectedGC(), TGListTree::GetDrawGC(), TGListTree::GetHighlightGC(), TGListTree::GetLineGC(), LabelsWindow::LabelsWindow(), NumberEntryWindow::NumberEntryWindow(), and TGLabel::SetTextFont().
FontStruct_t TGFont::GetFontStruct | ( | ) | const [inline] |
Definition at line 197 of file TGFont.h.
References fFontStruct.
Referenced by TGSpeedo::Build(), TGLabel::DoRedraw(), EntryTestDlg::EntryTestDlg(), TGListTree::GetDefaultFontStruct(), TGLabel::GetDefaultFontStruct(), TGCheckButton::GetDefaultFontStruct(), TGTextButton::GetDefaultFontStruct(), TGProgressBar::GetDefaultFontStruct(), TGMenuTitle::GetDefaultFontStruct(), TGTreeLBEntry::GetDefaultFontStruct(), TGPopupMenu::GetDefaultFontStruct(), TGTextLBEntry::GetDefaultFontStruct(), TGGroupFrame::GetDefaultFontStruct(), TGListView::GetDefaultFontStruct(), TGRadioButton::GetDefaultFontStruct(), TGTab::GetDefaultFontStruct(), TGStatusBar::GetDefaultFontStruct(), TGLVEntry::GetDefaultFontStruct(), TGTableCell::GetDefaultFontStruct(), TGTextView::GetDefaultFontStruct(), TGTextEntry::GetDefaultFontStruct(), TGLabel::GetFontStruct(), TGPopupMenu::GetHilightFontStruct(), TGTextButton::Init(), LabelsWindow::LabelsWindow(), TGSplitButton::Layout(), TGTextButton::Layout(), NumberEntryWindow::NumberEntryWindow(), TGRootIDE::ProcessMessage(), TGTextEditor::ProcessMessage(), TGLabel::SavePrimitive(), TGTextEntry::SetFont(), TGTableCell::SetFont(), TGTextButton::SetFont(), TGSplitButton::SetFont(), TGSplitButton::SetText(), TGGroupFrame::SetTextFont(), and TGSplitButton::TGSplitButton().
FontStruct_t TGFont::operator() | ( | ) | const |
void TGFont::GetFontMetrics | ( | FontMetrics_t * | m | ) | const |
Definition at line 272 of file TGFont.cxx.
References TObject::Error(), FontMetrics_t::fAscent, FontMetrics_t::fDescent, fFM, and m.
Referenced by TGListTree::FontAscent(), TGHtmlLayoutContext::Paragraph(), and TGHtml::Sizer().
FontAttributes_t TGFont::GetFontAttributes | ( | ) | const [inline] |
Definition at line 311 of file TGFont.cxx.
References fFA, FontAttributes_t::fFamily, FontAttributes_t::fPointsize, FontAttributes_t::fSlant, FontAttributes_t::fWeight, TString::IsNull(), kFontSlantRoman, kFontWeightNormal, len, and strcasecmp.
Definition at line 554 of file TGFont.cxx.
References MeasureChars(), and width.
Referenced by TGHtml::BlockDraw(), TGHtml::DrawSelectionBackground(), and TGListTree::TextWidth().
Int_t TGFont::TextHeight | ( | ) | const [inline] |
Definition at line 205 of file TGFont.h.
References fFM, and FontMetrics_t::fLinespace.
Referenced by TGListTree::FontHeight().
void TGFont::UnderlineChars | ( | Drawable_t | dst, | |
GContext_t | gc, | |||
const char * | string, | |||
Int_t | x, | |||
Int_t | y, | |||
Int_t | firstChar, | |||
Int_t | lastChar | |||
) | const |
Definition at line 591 of file TGFont.cxx.
References fUnderlineHeight, fUnderlinePos, gVirtualX, and MeasureChars().
Referenced by TGHtml::BlockDraw().
TGTextLayout * TGFont::ComputeTextLayout | ( | const char * | string, | |
Int_t | numChars, | |||
Int_t | wrapLength, | |||
Int_t | justify, | |||
Int_t | flags, | |||
UInt_t * | width, | |||
UInt_t * | height | |||
) | const |
Definition at line 620 of file TGFont.cxx.
References chunk, curX, extra, FontMetrics_t::fAscent, TGTextLayout::fChunks, FontMetrics_t::fDescent, fFM, TGTextLayout::fFont, TGTextLayout::fNumChunks, TGTextLayout::fString, fTabWidth, h, kTextAtLeastOne, kTextCenterX, kTextIgnoreNewlines, kTextIgnoreTabs, kTextRight, kTextWholeWords, MAX_LINES, MeasureChars(), n, NewChunk(), start, and y.
Referenced by TGTextButton::Init(), TGLabel::Layout(), TGSplitButton::Layout(), TGTextButton::Layout(), TGSplitButton::SetText(), and TGSplitButton::TGSplitButton().
Int_t TGFont::MeasureChars | ( | const char * | source, | |
Int_t | numChars, | |||
Int_t | maxLength, | |||
Int_t | flags, | |||
Int_t * | length | |||
) | const |
Definition at line 454 of file TGFont.cxx.
References c, curX, fWidths, kTextAtLeastOne, kTextPartialOK, kTextWholeWords, and p.
Referenced by TGTextLayout::CharBbox(), ComputeTextLayout(), DrawChars(), TGTextLayout::DrawText(), TGHtml::FindIndexInBlock(), TGTextLayout::PointToChar(), TextWidth(), and UnderlineChars().
void TGFont::DrawCharsExp | ( | Drawable_t | dst, | |
GContext_t | gc, | |||
const char * | source, | |||
Int_t | numChars, | |||
Int_t | x, | |||
Int_t | y | |||
) | const |
Definition at line 1430 of file TGFont.cxx.
References buf, DrawChars(), fFontStruct, fTypes, fWidths, GetControlCharSubst(), gVirtualX, i, kCharNormal, kCharReplace, p, and type.
void TGFont::DrawChars | ( | Drawable_t | dst, | |
GContext_t | gc, | |||
const char * | source, | |||
Int_t | numChars, | |||
Int_t | x, | |||
Int_t | y | |||
) | const |
Definition at line 1472 of file TGFont.cxx.
References FontMetrics_t::fAscent, fBarHeight, FontMetrics_t::fDescent, fFA, fFM, fFontStruct, FontAttributes_t::fOverstrike, FontAttributes_t::fUnderline, fUnderlinePos, gVirtualX, length, and MeasureChars().
Referenced by TGHtml::BlockDraw(), DrawCharsExp(), and TGTextLayout::DrawText().
void TGFont::Print | ( | Option_t * | option = "" |
) | const [virtual] |
Reimplemented from TNamed.
Definition at line 294 of file TGFont.cxx.
References TString::Data(), FontMetrics_t::fFixed, fFM, TNamed::fName, fNamedHash, TObjString::GetName(), Printf(), and TRefCnt::References().
void TGFont::SavePrimitive | ( | ostream & | out, | |
Option_t * | = "" | |||
) | [virtual] |
Reimplemented from TObject.
Definition at line 1861 of file TGFont.cxx.
References xmlio::Class, TROOT::ClassSaved(), TNamed::GetName(), and gROOT.
Referenced by TGTextEntry::SavePrimitive(), TGRadioButton::SavePrimitive(), TGTab::SavePrimitive(), TGTextButton::SavePrimitive(), TGLabel::SavePrimitive(), TGCheckButton::SavePrimitive(), TGVButtonGroup::SavePrimitive(), TGHButtonGroup::SavePrimitive(), TGButtonGroup::SavePrimitive(), and TGGroupFrame::SavePrimitive().
void TGFont::operator= | ( | const TGFont & | font | ) | [protected] |
LayoutChunk_t* TGFont::NewChunk | ( | TGTextLayout * | layout, | |
int * | maxPtr, | |||
const char * | start, | |||
int | numChars, | |||
int | curX, | |||
int | newX, | |||
int | y | |||
) | const [protected] |
FontH_t TGFont::GetFontHandle | ( | ) | const [inline] |
FontStruct_t TGFont::GetFontStruct | ( | ) | const [inline] |
FontStruct_t TGFont::operator() | ( | ) | const |
void TGFont::GetFontMetrics | ( | FontMetrics_t * | m | ) | const |
FontAttributes_t TGFont::GetFontAttributes | ( | ) | const [inline] |
Int_t TGFont::TextHeight | ( | ) | const [inline] |
void TGFont::UnderlineChars | ( | Drawable_t | dst, | |
GContext_t | gc, | |||
const char * | string, | |||
Int_t | x, | |||
Int_t | y, | |||
Int_t | firstChar, | |||
Int_t | lastChar | |||
) | const |
TGTextLayout* TGFont::ComputeTextLayout | ( | const char * | string, | |
Int_t | numChars, | |||
Int_t | wrapLength, | |||
Int_t | justify, | |||
Int_t | flags, | |||
UInt_t * | width, | |||
UInt_t * | height | |||
) | const |
Int_t TGFont::MeasureChars | ( | const char * | source, | |
Int_t | numChars, | |||
Int_t | maxLength, | |||
Int_t | flags, | |||
Int_t * | length | |||
) | const |
void TGFont::DrawCharsExp | ( | Drawable_t | dst, | |
GContext_t | gc, | |||
const char * | source, | |||
Int_t | numChars, | |||
Int_t | x, | |||
Int_t | y | |||
) | const |
void TGFont::DrawChars | ( | Drawable_t | dst, | |
GContext_t | gc, | |||
const char * | source, | |||
Int_t | numChars, | |||
Int_t | x, | |||
Int_t | y | |||
) | const |
virtual void TGFont::SavePrimitive | ( | ostream & | out, | |
Option_t * | = "" | |||
) | [virtual] |
Reimplemented from TObject.
TGFontPool [friend] |
TGTextLayout [friend] |
FontStruct_t TGFont::fFontStruct [private] |
Definition at line 159 of file TGFont.h.
Referenced by DrawChars(), DrawCharsExp(), GetFontStruct(), TGFontPool::MakeFont(), operator()(), XTextWidth(), and ~TGFont().
FontH_t TGFont::fFontH [private] |
FontMetrics_t TGFont::fFM [private] |
Definition at line 161 of file TGFont.h.
Referenced by ComputeTextLayout(), TGTextLayout::DistanceToText(), DrawChars(), GetFontMetrics(), TGTextLayout::IntersectText(), TGFontPool::MakeFont(), Print(), TextHeight(), and TGTextLayout::UnderlineChar().
FontAttributes_t TGFont::fFA [private] |
Definition at line 162 of file TGFont.h.
Referenced by DrawChars(), GetFontAttributes(), TGFontPool::MakeFont(), and PostscriptFontName().
TObjString* TGFont::fNamedHash [private] |
Int_t TGFont::fTabWidth [private] |
Int_t TGFont::fUnderlinePos [private] |
Definition at line 165 of file TGFont.h.
Referenced by DrawChars(), TGTextLayout::UnderlineChar(), and UnderlineChars().
Int_t TGFont::fUnderlineHeight [private] |
Definition at line 167 of file TGFont.h.
Referenced by TGTextLayout::UnderlineChar(), and UnderlineChars().
char TGFont::fTypes [private] |
Definition at line 169 of file TGFont.h.
Referenced by DrawCharsExp(), TGFontPool::MakeFont(), and TGFont().
Int_t TGFont::fWidths [private] |
Definition at line 171 of file TGFont.h.
Referenced by DrawCharsExp(), TGFontPool::MakeFont(), MeasureChars(), and TGFont().
Int_t TGFont::fBarHeight [private] |
TObjString* TGFont::fNamedHash [private] |