TGPicturePool


class description - source file - inheritance tree

class TGPicturePool : public TObject


    public:
TGPicturePool TGPicturePool(TGClient* client, char* path) TGPicturePool TGPicturePool(TGPicturePool&) virtual void ~TGPicturePool() TClass* Class() void FreePicture(TGPicture* pic) const char* GetPath() const TGPicture* GetPicture(char* name) const TGPicture* GetPicture(char* name, UInt_t new_width, UInt_t new_height) virtual TClass* IsA() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
static 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

Class Description

                                                                      
 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(TGClient* client, char* path)
          const char* GetPath()
              TClass* Class()
              TClass* IsA()
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
        TGPicturePool TGPicturePool(TGPicturePool&)


Author: Fons Rademakers 01/01/98
Last update: 2.00/07 18/05/98 21.06.58 by Fons Rademakers
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


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.