class TGGC: public TObject, public TRefCnt


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

Function Members (Methods)

voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Int_tGetArcMode() const
const GCValues_t*GetAttributes() const
Pixel_tGetBackground() const
Int_tGetCapStyle() const
Pixmap_tGetClipMask() const
Int_tGetClipXOrigin() const
Int_tGetClipYOrigin() const
const char*GetDashes() const
Int_tGetDashLen() const
Int_tGetDashOffset() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Int_tGetFillRule() const
Int_tGetFillStyle() const
FontH_tGetFont() const
Pixel_tGetForeground() const
EGraphicsFunctionGetFunction() const
GContext_tGetGC() const
Bool_tGetGraphicsExposures() const
virtual const char*TObject::GetIconName() const
Int_tGetJoinStyle() const
Int_tGetLineStyle() const
Int_tGetLineWidth() const
Mask_tGetMask() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
ULong_tGetPlaneMask() const
Pixmap_tGetStipple() const
Int_tGetSubwindowMode() const
Pixmap_tGetTile() const
Int_tGetTileStipXOrigin() const
Int_tGetTileStipYOrigin() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
GContext_toperator()() const
TGGC&operator=(const TGGC& rhs)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
UInt_tTRefCnt::References() const
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidSavePrimitive(ostream& out, Option_t* option = "")
voidSetArcMode(Int_t v)
voidSetAttributes(GCValues_t* values)
voidSetBackground(Pixel_t v)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetCapStyle(Int_t v)
voidSetClipMask(Pixmap_t v)
voidSetClipXOrigin(Int_t v)
voidSetClipYOrigin(Int_t v)
voidSetDashList(const char[] v, Int_t len)
voidSetDashOffset(Int_t v)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetFillRule(Int_t v)
voidSetFillStyle(Int_t v)
voidSetFont(FontH_t v)
voidSetForeground(Pixel_t v)
voidSetFunction(EGraphicsFunction v)
voidSetGraphicsExposures(Bool_t v)
voidSetJoinStyle(Int_t v)
voidSetLineStyle(Int_t v)
voidSetLineWidth(Int_t v)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetPlaneMask(ULong_t v)
voidTRefCnt::SetRefCount(UInt_t r)
voidSetStipple(Pixmap_t v)
voidSetSubwindowMode(Int_t v)
voidSetTile(Pixmap_t v)
voidSetTileStipXOrigin(Int_t v)
voidSetTileStipYOrigin(Int_t v)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
TGGC(GCValues_t* values = 0)
TGGC(const TGGC& g)
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
TStringGetMaskString() const
TGGC(GCValues_t* values, Bool_t calledByGCPool)
voidUpdateValues(GCValues_t* v)

Data Members

static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TRefCnt::EReferenceFlagTRefCnt::kStaticInit
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
GContext_tfContextgraphics context handle
UInt_tTRefCnt::fRefs(1 less than) number of references
GCValues_tfValuesgraphics context values + mask

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGGC(GCValues_t* values, Bool_t calledByGCPool)
 Create a graphics context (only called via TGGCPool::GetGC()).
TGGC(GCValues_t* values = 0)
 Create a graphics context, registers GC in GCPool.
TGGC(const TGGC& g)
 Copy a graphics context.
 Delete graphics context.
TGGC & operator=(const TGGC& rhs)
 Graphics context assignment operator.
GContext_t operator()() const
 Not inline due to a bug in g++ 2.96 20000731 (Red Hat Linux 7.0).
void UpdateValues(GCValues_t* v)
 Update values + mask.
void SetAttributes(GCValues_t* values)
 Set attributes as specified in the values structure.
void SetFunction(EGraphicsFunction v)
 Set graphics context drawing function.
void SetPlaneMask(ULong_t v)
 Set plane mask.
void SetForeground(Pixel_t v)
 Set foreground color.
void SetBackground(Pixel_t v)
 Set background color.
void SetLineWidth(Int_t v)
 Set line width.
void SetLineStyle(Int_t v)
 Set line style (kLineSolid, kLineOnOffDash, kLineDoubleDash).
void SetCapStyle(Int_t v)
 Set cap style (kCapNotLast, kCapButt, kCapRound, kCapProjecting).
void SetJoinStyle(Int_t v)
 Set line join style (kJoinMiter, kJoinRound, kJoinBevel).
void SetFillStyle(Int_t v)
 Set fill style (kFillSolid, kFillTiled, kFillStippled,
void SetFillRule(Int_t v)
 Set fill rule (kEvenOddRule, kWindingRule).
void SetTile(Pixmap_t v)
 Set tile pixmap for tiling operations.
void SetStipple(Pixmap_t v)
 Set 1 plane pixmap for stippling.
void SetTileStipXOrigin(Int_t v)
 X offset for tile or stipple operations.
void SetTileStipYOrigin(Int_t v)
 Y offset for tile or stipple operations.
void SetFont(FontH_t v)
 Set font.
void SetSubwindowMode(Int_t v)
 Set sub window mode (kClipByChildren, kIncludeInferiors).
void SetGraphicsExposures(Bool_t v)
 True if graphics exposure should be generated.
void SetClipXOrigin(Int_t v)
 X origin for clipping.
void SetClipYOrigin(Int_t v)
 Y origin for clipping.
void SetClipMask(Pixmap_t v)
 Bitmap for clipping.
void SetDashOffset(Int_t v)
 Patterned/dashed line offset.
void SetDashList(const char[] v, Int_t len)
 Set dash pattern. First use SetDashOffset() if not 0.
void SetArcMode(Int_t v)
 Set arc mode (kArcChord, kArcPieSlice).
void Print(Option_t* option = "") const
 Print graphics contexts info.
TString GetMaskString() const
 Returns GC mask as a string - used in SavePrimitive().
void SavePrimitive(ostream& out, Option_t* option = "")
 Save graphics context info as a C++ statement(s) on output stream out
GContext_t GetGC() const
{ return fContext; }
const GCValues_t * GetAttributes() const
{ return &fValues; }
Mask_t GetMask() const
{ return fValues.fMask; }
EGraphicsFunction GetFunction() const
{ return fValues.fFunction; }
ULong_t GetPlaneMask() const
{ return fValues.fPlaneMask; }
Pixel_t GetForeground() const
{ return fValues.fForeground; }
Pixel_t GetBackground() const
{ return fValues.fBackground; }
Int_t GetLineWidth() const
{ return fValues.fLineWidth; }
Int_t GetLineStyle() const
{ return fValues.fLineStyle; }
Pixmap_t GetTile() const
{ return fValues.fTile; }
Pixmap_t GetStipple() const
{ return fValues.fStipple; }
Int_t GetTileStipXOrigin() const
{ return fValues.fTsXOrigin; }
Int_t GetTileStipYOrigin() const
{ return fValues.fTsYOrigin; }
Int_t GetSubwindowMode() const
FontH_t GetFont() const
{ return fValues.fFont; }
Bool_t GetGraphicsExposures() const
Int_t GetClipXOrigin() const
{ return fValues.fClipXOrigin; }
Int_t GetClipYOrigin() const
{ return fValues.fClipYOrigin; }
Pixmap_t GetClipMask() const
{ return fValues.fClipMask; }
Int_t GetCapStyle() const
{ return fValues.fCapStyle; }
Int_t GetJoinStyle() const
{ return fValues.fJoinStyle; }
Int_t GetFillStyle() const
{ return fValues.fFillStyle; }
Int_t GetFillRule() const
{ return fValues.fFillRule; }
Int_t GetDashOffset() const
{ return fValues.fDashOffset; }
Int_t GetDashLen() const
{ return fValues.fDashLen; }
const char * GetDashes() const
{ return fValues.fDashes; }
Int_t GetArcMode() const
{ return fValues.fArcMode; }