library: libGui #include "TGResourcePool.h"

# TGResourcePool

class description - source file - inheritance tree (.pdf)

## class TGResourcePool : public TGObject

| Inheritance Chart:
`TObject`
| <- | `TGObject`
| <- | `TGResourcePool` |

        public:

                           TGResourcePool(TGClient* client)
                           TGResourcePool(const TGResourcePool&)
                   virtual ~TGResourcePool()
            static TClass* Class()
                   Pixel_t GetBlackColor() const
               const TGGC* GetBlackGC() const
                  Pixmap_t GetCheckeredBitmap() const
                  Pixmap_t GetCheckeredPixmap() const
                    Atom_t GetClipboard() const
                Colormap_t GetDefaultColormap() const
                  Cursor_t GetDefaultCursor() const
             const TGFont* GetDefaultFont() const
               const TGGC* GetDocumentBckgndGC() const
          const TGPicture* GetDocumentBckgndPicture() const
                   Pixel_t GetDocumentBgndColor() const
                   Pixel_t GetDocumentFgndColor() const
             const TGFont* GetDocumentFixedFont() const
               const TGGC* GetDocumentGC() const
             const TGFont* GetDocumentPropFont() const
               const TGGC* GetFocusHiliteGC() const
               TGFontPool* GetFontPool() const
               const TGGC* GetFrameBckgndGC() const
          const TGPicture* GetFrameBckgndPicture() const
                   Pixel_t GetFrameBgndColor() const
                   Pixel_t GetFrameFgndColor() const
               const TGGC* GetFrameGC() const
                   Pixel_t GetFrameHiliteColor() const
               const TGGC* GetFrameHiliteGC() const
                   Pixel_t GetFrameShadowColor() const
               const TGGC* GetFrameShadowGC() const
                 TGGCPool* GetGCPool() const
                  Cursor_t GetGrabCursor() const
             const TGFont* GetIconFont() const
             const TGFont* GetMenuFont() const
             const TGFont* GetMenuHiliteFont() const
              TGMimeTypes* GetMimeTypes() const
            TGPicturePool* GetPicturePool() const
               const TGGC* GetSelectedBckgndGC() const
                   Pixel_t GetSelectedBgndColor() const
                   Pixel_t GetSelectedFgndColor() const
               const TGGC* GetSelectedGC() const
             const TGFont* GetStatusFont() const
                  Cursor_t GetTextCursor() const
                   Pixel_t GetTipBgndColor() const
                   Pixel_t GetTipFgndColor() const
               const TGGC* GetTipGC() const
                  Cursor_t GetWaitCursor() const
                   Pixel_t GetWhiteColor() const
               const TGGC* GetWhiteGC() const
           virtual TClass* IsA() const
              virtual void ShowMembers(TMemberInspector& insp, char* parent)
              virtual void Streamer(TBuffer& b)
                      void StreamerNVirtual(TBuffer& b)

### Data Members

        private:

                   Pixel_t fBackColor              default background color
                   Pixel_t fForeColor              default foreground color
                   Pixel_t fHilite                 default hilite color
                   Pixel_t fShadow                 default shadow color
                   Pixel_t fSelBackColor           default selection background color
                   Pixel_t fSelForeColor           default selection foreground color
                   Pixel_t fDocBackColor           default document background color
                   Pixel_t fDocForeColor           default document foreground color
                   Pixel_t fTipBackColor           default tip background color
                   Pixel_t fTipForeColor           default tip foreground color
                   Pixel_t fWhite                  white color index
                   Pixel_t fBlack                  black color index
               TGFontPool* fFontPool               font pool manager
                   TGFont* fDefaultFont            default font
                   TGFont* fMenuFont               menu font
                   TGFont* fMenuHiFont             menu highlight font
                   TGFont* fDocFixedFont           document fixed font
                   TGFont* fDocPropFont            document proportional font
                   TGFont* fIconFont               icon font
                   TGFont* fStatusFont             status bar font
            TGPicturePool* fPicturePool            picture pool manager
          const TGPicture* fDefaultBackPicture     default background picture
          const TGPicture* fDefaultDocBackPicture  default document background picture
                 TGGCPool* fGCPool                 graphics drawing context pool manager
                     TGGC* fWhiteGC                white gc
                     TGGC* fBlackGC                black gc
                     TGGC* fFrameGC                frame gc
                     TGGC* fBckgndGC               frame background gc
                     TGGC* fHiliteGC               frame hilite gc
                     TGGC* fShadowGC               frame shadow gc
                     TGGC* fFocusGC                frame focus gc
                     TGGC* fDocGC                  document gc
                     TGGC* fDocbgndGC              document background gc
                     TGGC* fSelGC                  selection gc
                     TGGC* fSelbgndGC              selection background gc
                     TGGC* fTipGC                  tooltip gc
                  Pixmap_t fCheckered              checkered pixmap
                  Pixmap_t fCheckeredBitmap        checkered bitmap
                  Cursor_t fDefaultCursor          default cursor
                  Cursor_t fGrabCursor             grab cursor
                  Cursor_t fTextCursor             text cursor
                  Cursor_t fWaitCursor             wait cursor
                Colormap_t fDefaultColormap        default colormap
                    Atom_t fClipboardAtom          handle to clipboard
              TGMimeTypes* fMimeTypeList           list of mime types

## Class Description

     TGResourcePool

     This class implements a pool for the default GUI resource set,
     like GC's, colors, fonts, etc..

TGResourcePool(TGClient *client)

     Create the global GUI resource pool manager.

~TGResourcePool()

     Cleanup the resource pool...

### Inline Functions

                   TGGCPool* GetGCPool() const
                 TGFontPool* GetFontPool() const
              TGPicturePool* GetPicturePool() const
                     Pixel_t GetWhiteColor() const
                     Pixel_t GetBlackColor() const
                     Pixel_t GetFrameFgndColor() const
                     Pixel_t GetFrameBgndColor() const
                     Pixel_t GetFrameHiliteColor() const
                     Pixel_t GetFrameShadowColor() const
                     Pixel_t GetDocumentFgndColor() const
                     Pixel_t GetDocumentBgndColor() const
                     Pixel_t GetSelectedFgndColor() const
                     Pixel_t GetSelectedBgndColor() const
                     Pixel_t GetTipFgndColor() const
                     Pixel_t GetTipBgndColor() const
               const TGFont* GetDefaultFont() const
               const TGFont* GetMenuFont() const
               const TGFont* GetMenuHiliteFont() const
               const TGFont* GetDocumentFixedFont() const
               const TGFont* GetDocumentPropFont() const
               const TGFont* GetIconFont() const
               const TGFont* GetStatusFont() const
                 const TGGC* GetWhiteGC() const
                 const TGGC* GetBlackGC() const
                 const TGGC* GetFrameGC() const
                 const TGGC* GetFrameBckgndGC() const
                 const TGGC* GetFrameHiliteGC() const
                 const TGGC* GetFrameShadowGC() const
                 const TGGC* GetFocusHiliteGC() const
                 const TGGC* GetDocumentGC() const
                 const TGGC* GetDocumentBckgndGC() const
                 const TGGC* GetSelectedGC() const
                 const TGGC* GetSelectedBckgndGC() const
                 const TGGC* GetTipGC() const
                    Pixmap_t GetCheckeredPixmap() const
                    Pixmap_t GetCheckeredBitmap() const
            const TGPicture* GetFrameBckgndPicture() const
            const TGPicture* GetDocumentBckgndPicture() const
                    Cursor_t GetDefaultCursor() const
                    Cursor_t GetGrabCursor() const
                    Cursor_t GetTextCursor() const
                    Cursor_t GetWaitCursor() const
                  Colormap_t GetDefaultColormap() const
                TGMimeTypes* GetMimeTypes() const
                      Atom_t GetClipboard() const
                     TClass* Class()
                     TClass* IsA() const
                        void ShowMembers(TMemberInspector& insp, char* parent)
                        void Streamer(TBuffer& b)
                        void StreamerNVirtual(TBuffer& b)
              TGResourcePool TGResourcePool(const TGResourcePool&)

Author: Fons Rademakers 19/5/2003
Last update: root/gui:$Name: $:$Id: TGResourcePool.cxx,v 1.5 2005/06/18 09:58:57 brun Exp $
Copyright (C) 1995-2003, Rene Brun and Fons Rademakers. *