TGPicturePool Class Reference

#include <TGPicture.h>

Inheritance diagram for TGPicturePool:

TObject TObject List of all members.

Public Member Functions

 TGPicturePool (const TGClient *client, const char *path)
virtual ~TGPicturePool ()
const char * GetPath () const
const TGPictureGetPicture (const char *name)
const TGPictureGetPicture (const char *name, char **xpm)
const TGPictureGetPicture (const char *name, UInt_t new_width, UInt_t new_height)
const TGPictureGetPicture (const char *name, Pixmap_t pxmap, Pixmap_t mask=0)
void FreePicture (const TGPicture *pic)
void Print (Option_t *option="") const
 TGPicturePool (const TGClient *client, const char *path)
virtual ~TGPicturePool ()
const char * GetPath () const
const TGPictureGetPicture (const char *name)
const TGPictureGetPicture (const char *name, char **xpm)
const TGPictureGetPicture (const char *name, UInt_t new_width, UInt_t new_height)
const TGPictureGetPicture (const char *name, Pixmap_t pxmap, Pixmap_t mask=0)
void FreePicture (const TGPicture *pic)
void Print (Option_t *option="") const

Protected Member Functions

 TGPicturePool (const TGPicturePool &)
TGPicturePooloperator= (const TGPicturePool &)
 TGPicturePool (const TGPicturePool &)
TGPicturePooloperator= (const TGPicturePool &)

Protected Attributes

const TGClientfClient
TString fPath
THashTablefPicList
const TGClientfClient
THashTablefPicList

Detailed Description

Definition at line 110 of file TGPicture.h.


Constructor & Destructor Documentation

TGPicturePool::TGPicturePool ( const TGPicturePool  )  [protected]

TGPicturePool::TGPicturePool ( const TGClient client,
const char *  path 
) [inline]

Definition at line 121 of file TGPicture.h.

TGPicturePool::~TGPicturePool (  )  [virtual]

Definition at line 288 of file TGPicture.cxx.

References THashTable::Delete(), and fPicList.

TGPicturePool::TGPicturePool ( const TGPicturePool  )  [protected]

TGPicturePool::TGPicturePool ( const TGClient client,
const char *  path 
) [inline]

Definition at line 121 of file TGPicture.h.

virtual TGPicturePool::~TGPicturePool (  )  [virtual]


Member Function Documentation

TGPicturePool & TGPicturePool::operator= ( const TGPicturePool  )  [protected]

Definition at line 61 of file TGPicture.cxx.

References fClient, fPath, fPicList, and TObject::operator=().

const char* TGPicturePool::GetPath (  )  const [inline]

Definition at line 125 of file TGPicture.h.

References fPath.

const TGPicture * TGPicturePool::GetPicture ( const char *  name  ) 

Definition at line 74 of file TGPicture.cxx.

References THashTable::Add(), TRefCnt::AddReference(), TSystem::ExpandPathName(), TGPicture::fAttributes, fClient, PictureAttributes_t::fCloseness, PictureAttributes_t::fColormap, THashTable::FindObject(), PictureAttributes_t::fMask, fPath, TGPicture::fPic, fPicList, TGClient::GetDefaultColormap(), gSystem, TGPicture::IsScaled(), kNone, kPACloseness, kPAColormap, kPASize, kReadPermission, TString::Length(), TImage::Open(), TString::ToLower(), TSystem::UnixPathName(), and TSystem::Which().

Referenced by TRootGuiBuilder::AddMacro(), TGSpeedo::Build(), ClassImp(), TGSlider::CreateDisabledPicture(), TGPictureButton::CreateDisabledPicture(), DNDMainFrame::DataDropped(), DNDMainFrame::DNDMainFrame(), TRootBrowserLite::ExecuteDefaultAction(), TGFileContainer::GetFilePictures(), TGFileBrowser::GetObjPicture(), TRootIconBox::GetObjPictures(), TGClient::GetPicture(), TGIcon::Resize(), and TGScrollBarElement::SetEnabled().

const TGPicture * TGPicturePool::GetPicture ( const char *  name,
char **  xpm 
)

Definition at line 225 of file TGPicture.cxx.

References THashTable::Add(), TRefCnt::AddReference(), TGPicture::fAttributes, fClient, PictureAttributes_t::fCloseness, PictureAttributes_t::fColormap, PictureAttributes_t::fHeight, THashTable::FindObject(), PictureAttributes_t::fMask, fPicList, PictureAttributes_t::fWidth, TGClient::GetDefaultColormap(), h, TGPicture::HashName(), kPACloseness, kPAColormap, kPASize, kTRUE, TImage::Open(), ptr, and w.

const TGPicture * TGPicturePool::GetPicture ( const char *  name,
UInt_t  new_width,
UInt_t  new_height 
)

Definition at line 130 of file TGPicture.cxx.

References THashTable::Add(), TRefCnt::AddReference(), TSystem::ExpandPathName(), TGPicture::fAttributes, fClient, PictureAttributes_t::fCloseness, PictureAttributes_t::fColormap, PictureAttributes_t::fHeight, THashTable::FindObject(), PictureAttributes_t::fMask, fPath, TGPicture::fPic, fPicList, PictureAttributes_t::fWidth, TGClient::GetDefaultColormap(), TGPicture::GetHeight(), TGPicture::GetWidth(), gSystem, TGPicture::HashName(), kNone, kPACloseness, kPAColormap, kPASize, kReadPermission, kTRUE, TString::Length(), TImage::Open(), TString::ToLower(), TSystem::UnixPathName(), and TSystem::Which().

const TGPicture * TGPicturePool::GetPicture ( const char *  name,
Pixmap_t  pxmap,
Pixmap_t  mask = 0 
)

Definition at line 195 of file TGPicture.cxx.

References THashTable::Add(), TRefCnt::AddReference(), THashTable::FindObject(), fPicList, gVirtualX, h, TGPicture::HashName(), w, and xy.

void TGPicturePool::FreePicture ( const TGPicture pic  ) 

Definition at line 272 of file TGPicture.cxx.

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

Referenced by TGClient::FreePicture(), and TGFileContainer::~TGFileContainer().

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

Reimplemented from TObject.

Definition at line 299 of file TGPicture.cxx.

References fPicList, TObject::Info(), and TCollection::Print().

TGPicturePool& TGPicturePool::operator= ( const TGPicturePool  )  [protected]

const char* TGPicturePool::GetPath (  )  const [inline]

Definition at line 125 of file TGPicture.h.

References fPath.

const TGPicture* TGPicturePool::GetPicture ( const char *  name  ) 

const TGPicture* TGPicturePool::GetPicture ( const char *  name,
char **  xpm 
)

const TGPicture* TGPicturePool::GetPicture ( const char *  name,
UInt_t  new_width,
UInt_t  new_height 
)

const TGPicture* TGPicturePool::GetPicture ( const char *  name,
Pixmap_t  pxmap,
Pixmap_t  mask = 0 
)

void TGPicturePool::FreePicture ( const TGPicture pic  ) 

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

Reimplemented from TObject.


Member Data Documentation

const TGClient* TGPicturePool::fClient [protected]

Definition at line 113 of file TGPicture.h.

Referenced by GetPicture(), and operator=().

TString TGPicturePool::fPath [protected]

Definition at line 114 of file TGPicture.h.

Referenced by GetPath(), GetPicture(), and operator=().

THashTable* TGPicturePool::fPicList [protected]

Definition at line 115 of file TGPicture.h.

Referenced by FreePicture(), GetPicture(), operator=(), Print(), and ~TGPicturePool().

const TGClient* TGPicturePool::fClient [protected]

Definition at line 113 of file TGPicture.h.

THashTable* TGPicturePool::fPicList [protected]

Definition at line 115 of file TGPicture.h.


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