TGGCPool


class description - source file - inheritance tree

class TGGCPool : public TGObject

    private:
Int_t MatchGC(TGGC* gc, GCValues_t* values) void UpdateGC(TGGC* gc, GCValues_t* values) public:
TGGCPool TGGCPool(TGClient* client) TGGCPool TGGCPool(TGGCPool&) virtual void ~TGGCPool() static TClass* Class() void FreeGC(TGGC* gc) TGGC* GetGC(GCValues_t* values) virtual TClass* IsA() const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
TList* fList list of graphics contexts in pool

Class Description

                                                                      
 TGGC and TGGCPool                                                    
                                                                      
 Encapsulate a graphics context used in the low level graphics.       
 TGGCPool provides a pool of graphics contexts.                       
                                                                      


TGGCPool(TGClient *client)
 Create graphics context pool.

~TGGCPool()
 Delete graphics context pool.

void FreeGC(TGGC *gc)
 Delete graphics context if it not used anymore.

TGGC* GetGC(GCValues_t *values)
 Get the best matching graphics context depending on values.

Int_t MatchGC(TGGC *gc, GCValues_t *values)
 Try to find matching graphics context. On success returns the amount
 of matching bits (which may be zero if masks have no common bits),
 -1 on failure (when there are common bits but not a single match).

void UpdateGC(TGGC *gc, GCValues_t *values)
 Update graphics context with the values spcified in values->fMask.



Inline Functions


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


Author: Fons Rademakers 20/9/2000
Last update: root/gui:$Name: $:$Id: TGGC.cxx,v 1.3 2000/10/04 23:40:07 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.