ROOT
6.07/01
Reference Guide
|
Public Member Functions | |
TGGC (GCValues_t *values=0) | |
Create a graphics context, registers GC in GCPool. More... | |
TGGC (const TGGC &g) | |
Copy a graphics context. More... | |
virtual | ~TGGC () |
Delete graphics context. More... | |
TGGC & | operator= (const TGGC &rhs) |
Graphics context assignment operator. More... | |
GContext_t | GetGC () const |
GContext_t | operator() () const |
Not inline due to a bug in g++ 2.96 20000731 (Red Hat Linux 7.0). More... | |
void | SetAttributes (GCValues_t *values) |
Set attributes as specified in the values structure. More... | |
void | SetFunction (EGraphicsFunction v) |
Set graphics context drawing function. More... | |
void | SetPlaneMask (ULong_t v) |
Set plane mask. More... | |
void | SetForeground (Pixel_t v) |
Set foreground color. More... | |
void | SetBackground (Pixel_t v) |
Set background color. More... | |
void | SetLineWidth (Int_t v) |
Set line width. More... | |
void | SetLineStyle (Int_t v) |
Set line style (kLineSolid, kLineOnOffDash, kLineDoubleDash). More... | |
void | SetCapStyle (Int_t v) |
Set cap style (kCapNotLast, kCapButt, kCapRound, kCapProjecting). More... | |
void | SetJoinStyle (Int_t v) |
Set line join style (kJoinMiter, kJoinRound, kJoinBevel). More... | |
void | SetFillStyle (Int_t v) |
Set fill style (kFillSolid, kFillTiled, kFillStippled, kFillOpaeueStippled). More... | |
void | SetFillRule (Int_t v) |
Set fill rule (kEvenOddRule, kWindingRule). More... | |
void | SetTile (Pixmap_t v) |
Set tile pixmap for tiling operations. More... | |
void | SetStipple (Pixmap_t v) |
Set 1 plane pixmap for stippling. More... | |
void | SetTileStipXOrigin (Int_t v) |
X offset for tile or stipple operations. More... | |
void | SetTileStipYOrigin (Int_t v) |
Y offset for tile or stipple operations. More... | |
void | SetFont (FontH_t v) |
Set font. More... | |
void | SetSubwindowMode (Int_t v) |
Set sub window mode (kClipByChildren, kIncludeInferiors). More... | |
void | SetGraphicsExposures (Bool_t v) |
True if graphics exposure should be generated. More... | |
void | SetClipXOrigin (Int_t v) |
X origin for clipping. More... | |
void | SetClipYOrigin (Int_t v) |
Y origin for clipping. More... | |
void | SetClipMask (Pixmap_t v) |
Bitmap for clipping. More... | |
void | SetDashOffset (Int_t v) |
Patterned/dashed line offset. More... | |
void | SetDashList (const char v[], Int_t len) |
Set dash pattern. First use SetDashOffset() if not 0. More... | |
void | SetArcMode (Int_t v) |
Set arc mode (kArcChord, kArcPieSlice). More... | |
const GCValues_t * | GetAttributes () const |
Mask_t | GetMask () const |
EGraphicsFunction | GetFunction () const |
ULong_t | GetPlaneMask () const |
Pixel_t | GetForeground () const |
Pixel_t | GetBackground () const |
Int_t | GetLineWidth () const |
Int_t | GetLineStyle () const |
Pixmap_t | GetTile () const |
Pixmap_t | GetStipple () const |
Int_t | GetTileStipXOrigin () const |
Int_t | GetTileStipYOrigin () const |
Int_t | GetSubwindowMode () const |
FontH_t | GetFont () const |
Bool_t | GetGraphicsExposures () const |
Int_t | GetClipXOrigin () const |
Int_t | GetClipYOrigin () const |
Pixmap_t | GetClipMask () const |
Int_t | GetCapStyle () const |
Int_t | GetJoinStyle () const |
Int_t | GetFillStyle () const |
Int_t | GetFillRule () const |
Int_t | GetDashOffset () const |
Int_t | GetDashLen () const |
const char * | GetDashes () const |
Int_t | GetArcMode () const |
void | Print (Option_t *option="") const |
Print graphics contexts info. More... | |
void | SavePrimitive (std::ostream &out, Option_t *option="") |
Save graphics context info as a C++ statement(s) on output stream out. More... | |
Public Member Functions inherited from TObject | |
TObject () | |
TObject (const TObject &object) | |
TObject copy ctor. More... | |
TObject & | operator= (const TObject &rhs) |
TObject assignment operator. More... | |
virtual | ~TObject () |
TObject destructor. More... | |
virtual void | AppendPad (Option_t *option="") |
Append graphics object to current pad. More... | |
virtual void | Browse (TBrowser *b) |
Browse object. May be overridden for another default action. More... | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. More... | |
virtual void | Clear (Option_t *="") |
virtual TObject * | Clone (const char *newname="") const |
Make a clone of an object using the Streamer facility. More... | |
virtual Int_t | Compare (const TObject *obj) const |
Compare abstract method. More... | |
virtual void | Copy (TObject &object) const |
Copy this to obj. More... | |
virtual void | Delete (Option_t *option="") |
Delete this object. More... | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Computes distance from point (px,py) to the object. More... | |
virtual void | Draw (Option_t *option="") |
Default Draw method for all objects. More... | |
virtual void | DrawClass () const |
Draw class inheritance tree of the class to which this object belongs. More... | |
virtual TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current pad. More... | |
virtual void | Dump () const |
Dump contents of object on stdout. More... | |
virtual void | Execute (const char *method, const char *params, Int_t *error=0) |
Execute method on this object with the given parameter string, e.g. More... | |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=0) |
Execute method on this object with parameters stored in the TObjArray. More... | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to an event at (px,py). More... | |
virtual TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. More... | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. More... | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. More... | |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. More... | |
virtual const char * | GetName () const |
Returns name of object. More... | |
virtual const char * | GetIconName () const |
Returns mime type name of object. More... | |
virtual Option_t * | GetOption () const |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). More... | |
virtual const char * | GetTitle () const |
Returns title of object. More... | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. More... | |
virtual ULong_t | Hash () const |
Return hash value for this object. More... | |
virtual Bool_t | InheritsFrom (const char *classname) const |
Returns kTRUE if object inherits from class "classname". More... | |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
Returns kTRUE if object inherits from TClass cl. More... | |
virtual void | Inspect () const |
Dump contents of this object in a graphics canvas. More... | |
virtual Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More... | |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). More... | |
virtual Bool_t | IsSortable () const |
Bool_t | IsOnHeap () const |
Bool_t | IsZombie () const |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification. More... | |
virtual void | ls (Option_t *option="") const |
The ls function lists the contents of a class on stdout. More... | |
virtual void | Paint (Option_t *option="") |
This method must be overridden if a class wants to paint itself. More... | |
virtual void | Pop () |
Pop on object drawn in a pad to the top of the display list. More... | |
virtual Int_t | Read (const char *name) |
Read contents of object with specified name from the current directory. More... | |
virtual void | RecursiveRemove (TObject *obj) |
Recursively remove this object from a list. More... | |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
Save this object in the file specified by filename. More... | |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. More... | |
virtual void | SetUniqueID (UInt_t uid) |
Set the unique object id. More... | |
virtual void | UseCurrentStyle () |
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) |
Write this object to the current directory. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const |
Write this object to the current directory. More... | |
void * | operator new (size_t sz) |
void * | operator new[] (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz, void *vp) |
void | operator delete (void *ptr) |
Operator delete. More... | |
void | operator delete[] (void *ptr) |
Operator delete []. More... | |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. More... | |
void | SetBit (UInt_t f) |
void | ResetBit (UInt_t f) |
Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
void | InvertBit (UInt_t f) |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. More... | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. More... | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. More... | |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. More... | |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. More... | |
void | AbstractMethod (const char *method) const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract. More... | |
void | MayNotUse (const char *method) const |
Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More... | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. More... | |
Public Member Functions inherited from TRefCnt | |
TRefCnt (Int_t initRef=0) | |
TRefCnt (EReferenceFlag) | |
Leave fRefs alone. More... | |
virtual | ~TRefCnt () |
UInt_t | References () const |
void | SetRefCount (UInt_t r) |
void | AddReference () |
UInt_t | RemoveReference () |
Protected Member Functions | |
TGGC (GCValues_t *values, Bool_t calledByGCPool) | |
void | UpdateValues (GCValues_t *v) |
Update values + mask. More... | |
TString | GetMaskString () const |
Returns GC mask as a string - used in SavePrimitive(). More... | |
Protected Member Functions inherited from TObject | |
void | MakeZombie () |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
Interface to ErrorHandler (protected). More... | |
Protected Attributes | |
GCValues_t | fValues |
GContext_t | fContext |
Protected Attributes inherited from TRefCnt | |
UInt_t | fRefs |
Friends | |
class | TGGCPool |
Additional Inherited Members | |
Public Types inherited from TObject | |
enum | EStatusBits { kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4), kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13) } |
enum | { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff } |
enum | { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) } |
Public Types inherited from TRefCnt | |
enum | EReferenceFlag { kStaticInit } |
Static Public Member Functions inherited from TObject | |
static Long_t | GetDtorOnly () |
Return destructor only flag. More... | |
static void | SetDtorOnly (void *obj) |
Set destructor only flag. More... | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. More... | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. More... | |
#include <TGGC.h>
|
protected |
TGGC::TGGC | ( | GCValues_t * | values = 0 | ) |
|
inline |
Definition at line 107 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 82 of file TGGC.h.
Referenced by TGTableCell::SetFont(), TGTextButton::SetFont(), TGSplitButton::SetFont(), TGLabel::SetTextColor(), TGTextButton::SetTextColor(), TGGroupFrame::SetTextColor(), TGLabel::SetTextFont(), and TGGroupFrame::SetTextFont().
|
inline |
Definition at line 87 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 100 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 99 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 97 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 98 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 106 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 105 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 104 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 103 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 102 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 86 of file TGGC.h.
Referenced by TGuiBldDragManager::ChangeProperties(), TGuiBldDragManager::ChangeTextColor(), TGuiBldDragManager::ChangeTextFont(), TGLabel::DoRedraw(), TGTextButton::DoRedraw(), TGCheckButton::DoRedraw(), TGRadioButton::DoRedraw(), TGSplitButton::DoRedraw(), TGListTree::GetActiveGC(), TGProgressBar::GetBarColor(), TGTextEntry::GetForeground(), TGTextEntry::GetTextColor(), TGProgressBar::SavePrimitive(), and SavePrimitive().
|
inline |
Definition at line 84 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 54 of file TGGC.h.
Referenced by TGHtml::AddStyle(), TGLabel::DoRedraw(), TGedMarkerSelect::DoRedraw(), TGedPatternSelect::DoRedraw(), TGTextButton::DoRedraw(), TGCheckButton::DoRedraw(), TGRadioButton::DoRedraw(), TGSplitButton::DoRedraw(), TGMdiWinResizer::DrawBox(), TGuiBldHintsButton::DrawCenterX(), TGuiBldHintsButton::DrawCenterY(), TGLineLBEntry::DrawCopy(), TGuiBldHintsButton::DrawExpandX(), TGuiBldHintsButton::DrawExpandY(), TGHtml::Redraw(), TGTextEntry::SavePrimitive(), TGTableCell::SetFont(), TGTextButton::SetFont(), TGSplitButton::SetFont(), TGProgressBar::SetForegroundColor(), TGLabel::SetTextColor(), TGTextButton::SetTextColor(), TGGroupFrame::SetTextColor(), TGLabel::SetTextFont(), TGGroupFrame::SetTextFont(), TGFontTypeComboBox::TGFontTypeComboBox(), and TGLabel::TGLabel().
|
inline |
Definition at line 96 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 101 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 89 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 88 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 83 of file TGGC.h.
Referenced by GetMaskString(), and SavePrimitive().
|
protected |
Returns GC mask as a string - used in SavePrimitive().
Definition at line 521 of file TGGC.cxx.
Referenced by SavePrimitive().
|
inline |
Definition at line 85 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 91 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 94 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 90 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 92 of file TGGC.h.
Referenced by SavePrimitive().
|
inline |
Definition at line 93 of file TGGC.h.
Referenced by SavePrimitive().
GContext_t TGGC::operator() | ( | ) | const |
Save graphics context info as a C++ statement(s) on output stream out.
Reimplemented from TObject.
Definition at line 625 of file TGGC.cxx.
Referenced by TGButtonGroup::SavePrimitive(), TGVButtonGroup::SavePrimitive(), TGTab::SavePrimitive(), TGLabel::SavePrimitive(), TGHButtonGroup::SavePrimitive(), TGTextEntry::SavePrimitive(), TGTextButton::SavePrimitive(), TGPictureButton::SavePrimitive(), TGCheckButton::SavePrimitive(), TGRadioButton::SavePrimitive(), and TGGroupFrame::SavePrimitive().
void TGGC::SetAttributes | ( | GCValues_t * | values | ) |
Set attributes as specified in the values structure.
Definition at line 233 of file TGGC.cxx.
Referenced by SetArcMode(), SetBackground(), SetCapStyle(), SetClipMask(), SetClipXOrigin(), SetClipYOrigin(), SetDashList(), SetDashOffset(), SetFillRule(), SetFillStyle(), SetFont(), SetForeground(), SetFunction(), SetGraphicsExposures(), SetJoinStyle(), SetLineStyle(), SetLineWidth(), SetPlaneMask(), SetStipple(), SetSubwindowMode(), SetTile(), SetTileStipXOrigin(), SetTileStipYOrigin(), TGSelectedPicture::TGSelectedPicture(), and TGGCPool::UpdateGC().
Set background color.
Definition at line 287 of file TGGC.cxx.
Referenced by TGView::ChangeBackground(), TRootGuiBuilder::GetBgndGC(), TRootGuiBuilder::GetPopupBgndGC(), TRootGuiBuilder::GetPopupHlghtGC(), TGSelectedPicture::GetSelectedGC(), TGTextView::SetBackground(), TGView::SetBackgroundColor(), TGTextView::SetForegroundColor(), TGTextView::SetSelectBack(), and TGTextView::SetSelectFore().
Set cap style (kCapNotLast, kCapButt, kCapRound, kCapProjecting).
Definition at line 320 of file TGGC.cxx.
Referenced by TGLineLBEntry::SetLineStyle().
Bitmap for clipping.
Definition at line 464 of file TGGC.cxx.
Referenced by TGSelectedPicture::TGSelectedPicture().
Set dash pattern. First use SetDashOffset() if not 0.
Definition at line 486 of file TGGC.cxx.
Referenced by TGContainer::GetLineGC(), TGListTree::GetLineGC(), and TGLineLBEntry::SetLineStyle().
Patterned/dashed line offset.
Definition at line 475 of file TGGC.cxx.
Referenced by TGContainer::GetLineGC(), and TGListTree::GetLineGC().
Set fill style (kFillSolid, kFillTiled, kFillStippled, kFillOpaeueStippled).
Definition at line 343 of file TGGC.cxx.
Referenced by TGSelectedPicture::GetSelectedGC(), and TGedPatternFrame::SetFillStyle().
Set font.
Definition at line 409 of file TGGC.cxx.
Referenced by TGLabel::DoRedraw(), TGStatusBar::GetDefaultGC(), TGTextView::GetDefaultGC(), TGLVEntry::GetDefaultGC(), TGListView::GetDefaultGC(), TGTextView::GetDefaultSelectedGC(), TGTableCell::SetFont(), TGTextView::SetFont(), TGTextEntry::SetFont(), TGTextButton::SetFont(), TGSplitButton::SetFont(), TGLabel::SetTextFont(), and TGGroupFrame::SetTextFont().
Set foreground color.
Definition at line 276 of file TGGC.cxx.
Referenced by TGView::ChangeBackground(), ClassImp(), TGLabel::DoRedraw(), TGColorPalette::DoRedraw(), TGedPatternSelect::DoRedraw(), TGTextButton::DoRedraw(), TGCheckButton::DoRedraw(), TGRadioButton::DoRedraw(), TGSplitButton::DoRedraw(), TRootGuiBuilder::GetBgndGC(), TRootGuiBuilder::GetPopupBgndGC(), TRootGuiBuilder::GetPopupHlghtGC(), TGSelectedPicture::GetSelectedGC(), TGTextView::SetBackground(), TGView::SetBackgroundColor(), TGProgressBar::SetBarColor(), TGColorSelect::SetColor(), TGProgressBar::SetForegroundColor(), TGTextView::SetForegroundColor(), TGTextView::SetSelectBack(), TGTextView::SetSelectFore(), TGLabel::SetTextColor(), TGTextEntry::SetTextColor(), TGTextButton::SetTextColor(), TGGroupFrame::SetTextColor(), and TestMsgBox::TestMsgBox().
void TGGC::SetFunction | ( | EGraphicsFunction | v | ) |
Set graphics context drawing function.
Definition at line 254 of file TGGC.cxx.
Referenced by TGTextEdit::GetCursor0GC(), and TGTextEdit::GetCursor1GC().
Set line style (kLineSolid, kLineOnOffDash, kLineDoubleDash).
Definition at line 309 of file TGGC.cxx.
Referenced by TGLineLBEntry::SetLineStyle().
Set line width.
Definition at line 298 of file TGGC.cxx.
Referenced by TGLineLBEntry::SetLineWidth().
Set 1 plane pixmap for stippling.
Definition at line 376 of file TGGC.cxx.
Referenced by TGSelectedPicture::GetSelectedGC(), and TGedPatternFrame::SetFillStyle().
X offset for tile or stipple operations.
Definition at line 387 of file TGGC.cxx.
Referenced by TGHtml::Redraw(), and TGView::UpdateBackgroundStart().
Y offset for tile or stipple operations.
Definition at line 398 of file TGGC.cxx.
Referenced by TGHtml::Redraw(), and TGView::UpdateBackgroundStart().
|
protected |
|
protected |
Definition at line 41 of file TGGC.h.
Referenced by GetGC(), operator()(), operator=(), Print(), SetAttributes(), TGGC(), and ~TGGC().
|
protected |
Definition at line 40 of file TGGC.h.
Referenced by GetArcMode(), GetAttributes(), GetBackground(), GetCapStyle(), GetClipMask(), GetClipXOrigin(), GetClipYOrigin(), GetDashes(), GetDashLen(), GetDashOffset(), GetFillRule(), GetFillStyle(), GetFont(), GetForeground(), GetFunction(), TGGCPool::GetGC(), GetGraphicsExposures(), GetJoinStyle(), GetLineStyle(), GetLineWidth(), GetMask(), GetPlaneMask(), GetStipple(), GetSubwindowMode(), GetTile(), GetTileStipXOrigin(), GetTileStipYOrigin(), TGGCPool::MatchGC(), operator=(), Print(), SetAttributes(), TGGC(), and UpdateValues().