TGFontPool


class description - source file - inheritance tree

class TGFontPool : public TGObject


    public:
TGFontPool(TGClient* client) TGFontPool(const TGFontPool&) virtual ~TGFontPool() static TClass* Class() TGFont* FindFont(FontStruct_t font) const TGFont* FindFontByHandle(FontH_t font) const void FreeFont(const TGFont* font) TGFont* GetFont(const char* font) TGFont* GetFont(const TGFont* font) virtual TClass* IsA() const virtual void Print(Option_t* option) const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
THashTable* fList

Class Description

                                                                      
 TGFont and TGFontPool                                                
                                                                      
 Encapsulate fonts used in the GUI system.                            
 TGFontPool provides a pool of fonts.                                 
                                                                      


TGFontPool(TGClient *client)
 Create a font pool.

~TGFontPool()
 Cleanup font pool.

TGFont* GetFont(const char *font)
 Get the specified font. Returns 0 if error or no font can be found.

TGFont* GetFont(const TGFont *font)
 Use font, i.e. increases ref count of specified font. Returns 0
 if font is not found.

void FreeFont(const TGFont *font)
 Free font. If ref count is 0 delete font.

TGFont* FindFont(FontStruct_t font) const
 Find font based on its font struct. Returns 0 if font is not found.

TGFont* FindFontByHandle(FontH_t font) const
 Find font based on its font handle. Returns 0 if font is not found.

void Print(Option_t *) const
 List all fonts in the pool.



Inline Functions


            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
         TGFontPool TGFontPool(const TGFontPool&)


Author: Fons Rademakers 20/5/2003
Last update: root/gui:$Name: $:$Id: TGFont.cxx,v 1.2 2003/11/05 13:08:25 rdm Exp $
Copyright (C) 1995-2003, 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.