TGGCPool Class Reference

#include <TGGC.h>

Inheritance diagram for TGGCPool:

TGObject TGObject TObject TObject TObject TObject List of all members.

Public Member Functions

 TGGCPool (TGClient *client)
virtual ~TGGCPool ()
TGGCGetGC (GCValues_t *values, Bool_t rw=kFALSE)
TGGCGetGC (GContext_t gct)
void FreeGC (const TGGC *gc)
void FreeGC (GContext_t gc)
TGGCFindGC (const TGGC *gc)
TGGCFindGC (GContext_t gc)
void Print (Option_t *option="") const
 TGGCPool (TGClient *client)
virtual ~TGGCPool ()
TGGCGetGC (GCValues_t *values, Bool_t rw=kFALSE)
TGGCGetGC (GContext_t gct)
void FreeGC (const TGGC *gc)
void FreeGC (GContext_t gc)
TGGCFindGC (const TGGC *gc)
TGGCFindGC (GContext_t gc)
void Print (Option_t *option="") const

Protected Member Functions

 TGGCPool (const TGGCPool &gp)
TGGCPooloperator= (const TGGCPool &gp)
 TGGCPool (const TGGCPool &gp)
TGGCPooloperator= (const TGGCPool &gp)

Private Member Functions

void ForceFreeGC (const TGGC *gc)
Int_t MatchGC (const TGGC *gc, GCValues_t *values)
void UpdateGC (TGGC *gc, GCValues_t *values)
void ForceFreeGC (const TGGC *gc)
Int_t MatchGC (const TGGC *gc, GCValues_t *values)
void UpdateGC (TGGC *gc, GCValues_t *values)

Private Attributes

THashTablefList
THashTablefList

Friends

class TGGC

Detailed Description

Definition at line 116 of file TGGC.h.


Constructor & Destructor Documentation

TGGCPool::TGGCPool ( const TGGCPool gp  )  [inline, protected]

Definition at line 128 of file TGGC.h.

TGGCPool::TGGCPool ( TGClient client  ) 

TGGCPool::~TGGCPool (  )  [virtual]

Definition at line 891 of file TGGC.cxx.

References fList.

TGGCPool::TGGCPool ( const TGGCPool gp  )  [inline, protected]

Definition at line 128 of file TGGC.h.

TGGCPool::TGGCPool ( TGClient client  ) 

virtual TGGCPool::~TGGCPool (  )  [virtual]


Member Function Documentation

void TGGCPool::ForceFreeGC ( const TGGC gc  )  [private]

Definition at line 899 of file TGGC.cxx.

References TObject::Error(), THashTable::FindObject(), fList, TRefCnt::References(), and THashTable::Remove().

Referenced by TGGC::~TGGC().

Int_t TGGCPool::MatchGC ( const TGGC gc,
GCValues_t values 
) [private]

Definition at line 1033 of file TGGC.cxx.

References bit, GCValues_t::fArcMode, GCValues_t::fBackground, GCValues_t::fCapStyle, GCValues_t::fClipMask, GCValues_t::fClipXOrigin, GCValues_t::fClipYOrigin, GCValues_t::fDashes, GCValues_t::fDashLen, GCValues_t::fDashOffset, GCValues_t::fFillRule, GCValues_t::fFillStyle, GCValues_t::fFont, GCValues_t::fForeground, GCValues_t::fFunction, GCValues_t::fGraphicsExposures, GCValues_t::fJoinStyle, GCValues_t::fLineStyle, GCValues_t::fLineWidth, GCValues_t::fMask, GCValues_t::fPlaneMask, GCValues_t::fStipple, GCValues_t::fSubwindowMode, GCValues_t::fTile, GCValues_t::fTsXOrigin, GCValues_t::fTsYOrigin, TGGC::fValues, kFALSE, kGCArcMode, kGCBackground, kGCCapStyle, kGCClipMask, kGCClipXOrigin, kGCClipYOrigin, kGCDashList, kGCDashOffset, kGCFillRule, kGCFillStyle, kGCFont, kGCForeground, kGCFunction, kGCGraphicsExposures, kGCJoinStyle, kGCLineStyle, kGCLineWidth, kGCPlaneMask, kGCStipple, kGCSubwindowMode, kGCTile, kGCTileStipXOrigin, kGCTileStipYOrigin, kNone, and match().

Referenced by GetGC().

void TGGCPool::UpdateGC ( TGGC gc,
GCValues_t values 
) [private]

Definition at line 1149 of file TGGC.cxx.

References TGGC::SetAttributes().

Referenced by GetGC().

TGGCPool& TGGCPool::operator= ( const TGGCPool gp  )  [inline, protected]

Definition at line 129 of file TGGC.h.

References fList, and TGObject::operator=().

TGGC * TGGCPool::GetGC ( GCValues_t values,
Bool_t  rw = kFALSE 
)

Definition at line 980 of file TGGC.cxx.

References THashTable::Add(), TRefCnt::AddReference(), exact(), fList, GCValues_t::fMask, TGGC::fValues, gDebug, kFALSE, kTRUE, MatchGC(), Printf(), TGGC, and UpdateGC().

Referenced by TGClient::GetGC(), GetGC(), TGTableCell::SetFont(), TGTextButton::SetFont(), TGSplitButton::SetFont(), TGLabel::SetTextColor(), TGTextButton::SetTextColor(), TGGroupFrame::SetTextColor(), TGGroupFrame::SetTextFont(), and TGLabel::SetTextFont().

TGGC * TGGCPool::GetGC ( GContext_t  gct  ) 

Definition at line 970 of file TGGC.cxx.

References GetGC(), gval, gVirtualX, and kTRUE.

void TGGCPool::FreeGC ( const TGGC gc  ) 

Definition at line 914 of file TGGC.cxx.

References THashTable::FindObject(), fList, THashTable::Remove(), and TRefCnt::RemoveReference().

Referenced by TGClient::FreeGC(), TGGroupFrame::~TGGroupFrame(), TGLabel::~TGLabel(), and TGTextButton::~TGTextButton().

void TGGCPool::FreeGC ( GContext_t  gc  ) 

Definition at line 929 of file TGGC.cxx.

References fList, and THashTable::Remove().

TGGC * TGGCPool::FindGC ( const TGGC gc  ) 

Definition at line 947 of file TGGC.cxx.

References THashTable::FindObject(), and fList.

Referenced by TGuiBldDragManager::ChangeProperties(), TGuiBldDragManager::ChangeTextColor(), TGuiBldDragManager::ChangeTextFont(), TGCheckButton::DoRedraw(), TGLabel::DoRedraw(), TGTextButton::DoRedraw(), TGRadioButton::DoRedraw(), TGSplitButton::DoRedraw(), TGGC::operator=(), TGTextEntry::SavePrimitive(), TGRadioButton::SavePrimitive(), TGTab::SavePrimitive(), TGTextButton::SavePrimitive(), TGLabel::SavePrimitive(), TGCheckButton::SavePrimitive(), TGVButtonGroup::SavePrimitive(), TGHButtonGroup::SavePrimitive(), TGPictureButton::SavePrimitive(), TGButtonGroup::SavePrimitive(), TGGroupFrame::SavePrimitive(), TGGC::SetAttributes(), TGTableCell::SetFont(), TGTextButton::SetFont(), TGSplitButton::SetFont(), TGProgressBar::SetForegroundColor(), TGLabel::SetTextColor(), TGTextButton::SetTextColor(), TGGroupFrame::SetTextColor(), TGGroupFrame::SetTextFont(), TGLabel::SetTextFont(), TGGroupFrame::~TGGroupFrame(), TGLabel::~TGLabel(), and TGTextButton::~TGTextButton().

TGGC * TGGCPool::FindGC ( GContext_t  gc  ) 

Definition at line 955 of file TGGC.cxx.

References fList.

void TGGCPool::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TObject.

Definition at line 1157 of file TGGC.cxx.

References fList, and TCollection::Print().

void TGGCPool::ForceFreeGC ( const TGGC gc  )  [private]

Int_t TGGCPool::MatchGC ( const TGGC gc,
GCValues_t values 
) [private]

void TGGCPool::UpdateGC ( TGGC gc,
GCValues_t values 
) [private]

TGGCPool& TGGCPool::operator= ( const TGGCPool gp  )  [inline, protected]

Definition at line 129 of file TGGC.h.

References fList, and TGObject::operator=().

TGGC* TGGCPool::GetGC ( GCValues_t values,
Bool_t  rw = kFALSE 
)

TGGC* TGGCPool::GetGC ( GContext_t  gct  ) 

void TGGCPool::FreeGC ( const TGGC gc  ) 

void TGGCPool::FreeGC ( GContext_t  gc  ) 

TGGC* TGGCPool::FindGC ( const TGGC gc  ) 

TGGC* TGGCPool::FindGC ( GContext_t  gc  ) 

void TGGCPool::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TObject.


Friends And Related Function Documentation

TGGC [friend]

Definition at line 118 of file TGGC.h.

Referenced by GetGC().


Member Data Documentation

THashTable* TGGCPool::fList [private]

Definition at line 121 of file TGGC.h.

Referenced by FindGC(), ForceFreeGC(), FreeGC(), GetGC(), TGGC::operator=(), operator=(), Print(), TGGC::SetAttributes(), TGGC::TGGC(), and ~TGGCPool().

THashTable* TGGCPool::fList [private]

Definition at line 121 of file TGGC.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:39:17 2011 for ROOT_528-00b_version by  doxygen 1.5.1