#include <TGPicture.h>
Inheritance diagram for TGPicturePool:
Public Member Functions | |
TGPicturePool (const TGClient *client, const char *path) | |
virtual | ~TGPicturePool () |
const char * | GetPath () const |
const TGPicture * | GetPicture (const char *name) |
const TGPicture * | GetPicture (const char *name, char **xpm) |
const TGPicture * | GetPicture (const char *name, UInt_t new_width, UInt_t new_height) |
const TGPicture * | GetPicture (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 TGPicture * | GetPicture (const char *name) |
const TGPicture * | GetPicture (const char *name, char **xpm) |
const TGPicture * | GetPicture (const char *name, UInt_t new_width, UInt_t new_height) |
const TGPicture * | GetPicture (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 &) | |
TGPicturePool & | operator= (const TGPicturePool &) |
TGPicturePool (const TGPicturePool &) | |
TGPicturePool & | operator= (const TGPicturePool &) |
Protected Attributes | |
const TGClient * | fClient |
TString | fPath |
THashTable * | fPicList |
const TGClient * | fClient |
THashTable * | fPicList |
Definition at line 110 of file TGPicture.h.
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] |
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] |
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] |
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] |
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 | |||
) |
void TGPicturePool::FreePicture | ( | const TGPicture * | pic | ) |
const TGClient* TGPicturePool::fClient [protected] |
TString TGPicturePool::fPath [protected] |
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.