library: libGui #include "TGGC.h" |
TGGCPool
class description - header file - source file - inheritance tree (.pdf)
private:
void ForceFreeGC(const TGGC* gc)
Int_t MatchGC(const TGGC* gc, GCValues_t* values)
void UpdateGC(TGGC* gc, GCValues_t* values)
protected:
TGGCPool(const TGGCPool& gp)
TGGCPool& operator=(const TGGCPool& gp)
public:
TGGCPool(TGClient* client)
virtual ~TGGCPool()
static TClass* Class()
TGGC* FindGC(const TGGC* gc)
TGGC* FindGC(GContext_t gc)
void FreeGC(const TGGC* gc)
void FreeGC(GContext_t gc)
TGGC* GetGC(GCValues_t* values, Bool_t rw = kFALSE)
TGGC* GetGC(GContext_t gct)
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)
private:
THashTable* fList hash table of graphics contexts in pool
TGGC and TGGCPool
Encapsulate a graphics context used in the low level graphics.
TGGCPool provides a pool of graphics contexts.
void ForceFreeGC(const TGGC *gct)
Force remove graphics context from list. Is only called via ~TGGC().
TGGC * FindGC(const TGGC *gct)
Find graphics context. Returns 0 in case gc is not found.
TGGC * GetGC(GCValues_t *values, Bool_t rw)
Get the best matching graphics context depending on values.
If rw is false only a readonly, not modifiable graphics context
is returned. If rw is true a new modifiable graphics context is
returned.
Int_t MatchGC(const 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.
Author: Fons Rademakers 20/9/2000
Last update: root/gui:$Name: $:$Id: TGGC.cxx,v 1.14 2006/07/03 16:10:45 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - 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.