TGPicturePool
class description - source file - inheritance tree
public:
TGPicturePool TGPicturePool(const TGClient* client, const char* path)
TGPicturePool TGPicturePool(const TGPicturePool&)
virtual void ~TGPicturePool()
static TClass* Class()
void FreePicture(const TGPicture* pic)
const char* GetPath() const
const TGPicture* GetPicture(const char* name) const
const TGPicture* GetPicture(const char* name, UInt_t new_width, UInt_t new_height) const
virtual TClass* IsA() const
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
const TGClient* fClient client for which we keep icon pool
TString fPath icon search path
THashTable* fPicList hash table containing the icons
static Colormap_t fgDefaultColormap
TGPicture & TGPicturePool
The TGPicture class implements pictures and icons used in the
different GUI elements and widgets. The TGPicturePool class
implements a TGPicture cache. TGPictures are created, managed and
destroyed by the TGPicturePool.
const TGPicture* GetPicture(const char *name)
Get a picture from the picture pool. Picture must be freed using
TGPicturePool::FreePicture(). If picture is not found 0 is returned.
const TGPicture* GetPicture(const char *name,
UInt_t new_width, UInt_t new_height)
Get picture with specified size from pool (picture will be scaled if
necessary). Picture must be freed using TGPicturePool::FreePicture(). If
picture is not found 0 is returned.
void FreePicture(const TGPicture *fpic)
Remove picture from cache if nobody is using it anymore.
~TGPicturePool()
Delete picture cache.
Inline Functions
TGPicturePool TGPicturePool(const TGClient* client, const char* path)
const char* GetPath() const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TGPicturePool TGPicturePool(const TGPicturePool&)
Author: Fons Rademakers 01/01/98
Last update: root/gui:$Name: $:$Id: TGPicture.cxx,v 1.3 2001/11/28 16:05:41 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.