library: libGui
#include "TGGC.h"

TGGC


class description - header file - source file
viewCVS header - viewCVS source

class TGGC: public TObject, public TRefCnt

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TGGC(GCValues_t* values = 0)
TGGC(const TGGC& g)
virtual~TGGC()
voidTObject::AbstractMethod(const char* method) const
voidTRefCnt::AddReference()
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 = "")
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidTObject::Dump() const
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() const
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()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static 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
UInt_tTRefCnt::RemoveReference()
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
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 = "")
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, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& 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
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
protected:
TGGC(GCValues_t* values, Bool_t calledByGCPool)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
TStringGetMaskString() const
voidTObject::MakeZombie()
voidUpdateValues(GCValues_t* v)

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
enum TRefCnt::EReferenceFlag { kStaticInit
};
protected:
GCValues_tfValuesgraphics context values + mask
GContext_tfContextgraphics context handle
UInt_tTRefCnt::fRefs(1 less than) number of references

Class Description

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

TGGC(GCValues_t *values, Bool_t)
 Create a graphics context (only called via TGGCPool::GetGC()).
TGGC(GCValues_t *values)
 Create a graphics context, registers GC in GCPool.
TGGC(const TGGC &g)
 Copy a graphics context.
~TGGC()
 Delete graphics context.
TGGC & operator=(const TGGC &rhs)
 Graphics context assignment operator.
GContext_t operator()()
 Not inline due to a bug in g++ 2.96 20000731 (Red Hat Linux 7.0).
void UpdateValues(GCValues_t *values)
 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(ULong_t v)
 Set foreground color.
void SetBackground(ULong_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,
 kFillOpaeueStippled).
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 *)
 Print graphics contexts info.
TString GetMaskString()
 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()
{ return fContext; }
const GCValues_t * GetAttributes()
{ return &fValues; }
Mask_t GetMask()
{ return fValues.fMask; }
EGraphicsFunction GetFunction()
{ return fValues.fFunction; }
ULong_t GetPlaneMask()
{ return fValues.fPlaneMask; }
Pixel_t GetForeground()
{ return fValues.fForeground; }
Pixel_t GetBackground()
{ return fValues.fBackground; }
Int_t GetLineWidth()
{ return fValues.fLineWidth; }
Int_t GetLineStyle()
{ return fValues.fLineStyle; }
Pixmap_t GetTile()
{ return fValues.fTile; }
Pixmap_t GetStipple()
{ return fValues.fStipple; }
Int_t GetTileStipXOrigin()
{ return fValues.fTsXOrigin; }
Int_t GetTileStipYOrigin()
{ return fValues.fTsYOrigin; }
Int_t GetSubwindowMode()
{ return fValues.fSubwindowMode; }
FontH_t GetFont()
{ return fValues.fFont; }
Bool_t GetGraphicsExposures()
{ return fValues.fGraphicsExposures; }
Int_t GetClipXOrigin()
{ return fValues.fClipXOrigin; }
Int_t GetClipYOrigin()
{ return fValues.fClipYOrigin; }
Pixmap_t GetClipMask()
{ return fValues.fClipMask; }
Int_t GetCapStyle()
{ return fValues.fCapStyle; }
Int_t GetJoinStyle()
{ return fValues.fJoinStyle; }
Int_t GetFillStyle()
{ return fValues.fFillStyle; }
Int_t GetFillRule()
{ return fValues.fFillRule; }
Int_t GetDashOffset()
{ return fValues.fDashOffset; }
Int_t GetDashLen()
{ return fValues.fDashLen; }
const char * GetDashes()
{ return fValues.fDashes; }
Int_t GetArcMode()
{ return fValues.fArcMode; }

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.