TGPicturePool


class description - source file - inheritance tree

class TGPicturePool : public TObject


    public:
TGPicturePool TGPicturePool(const TGClient* client, const char* path) TGPicturePool TGPicturePool(TGPicturePool&) virtual void ~TGPicturePool() 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)

Data Members

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

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(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)
        TGPicturePool TGPicturePool(TGPicturePool&)


Author: Fons Rademakers 01/01/98
Last update: 2.23/02 02/09/99 15.54.27 by Rene Brun
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.