98 if (
pic && !
pic->IsScaled()) {
109 pic->fAttributes.fCloseness = 40000;
119 pic->fAttributes.fCloseness = 40000;
167 pic->fAttributes.fCloseness = 40000;
179 pic->fAttributes.fCloseness = 40000;
244 while (
isspace((
int)*ptr)) ++ptr;
247 while (
isspace((
int)*ptr)) ++ptr;
261 pic->fAttributes.fCloseness = 40000;
263 pic->fAttributes.fWidth =
w;
264 pic->fAttributes.fHeight =
h;
283 if (
pic->RemoveReference() == 0) {
312 Info(
"Print",
"no pictures in picture pool");
348 gcv.fClipXOrigin =
x;
349 gcv.fClipYOrigin =
y;
417 gcv.fClipMask =
p->GetMask();
418 gcv.fClipXOrigin = 0;
419 gcv.fClipYOrigin = 0;
Handle_t Pixmap_t
Pixmap handle.
const Mask_t kGCClipXOrigin
const Mask_t kPACloseness
Handle_t Window_t
Window handle.
Handle_t GContext_t
Graphics context handle.
const Mask_t kGCClipYOrigin
const Mask_t kPASize
width and height
ULongptr_t Handle_t
Generic resource handle.
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t mask
Option_t Option_t TPoint xy
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void gc
void Printf(const char *fmt,...)
Formats a string in a circular formatting buffer and prints the string.
R__EXTERN TSystem * gSystem
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
Colormap_t GetDefaultColormap() const
Encapsulate a graphics context used in the low level graphics.
TString fPath
icon search path
THashTable * fPicList
hash table containing the icons
TGPicturePool(const TGPicturePool &)
copy constructor
void Print(Option_t *option="") const override
List all pictures in the pool.
~TGPicturePool() override
Delete picture cache.
void FreePicture(const TGPicture *pic)
Remove picture from cache if nobody is using it anymore.
const TGClient * fClient
client for which we keep icon pool
const TGPicture * GetPicture(const char *name)
Get a picture from the picture pool.
TGPicturePool & operator=(const TGPicturePool &)
assignment operator
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Pixmap_t fPic
picture pixmap
PictureAttributes_t fAttributes
picture attributes
static const char * HashName(const char *name, Int_t width, Int_t height)
Static function returning a unique name used to look up a picture.
void Print(Option_t *option="") const override
Print picture info.
Pixmap_t fMask
picture mask pixmap
void Draw(Option_t *="") override
Default Draw method for all objects.
TGPicture(const char *name, Bool_t scaled=kFALSE)
~TGPicture() override
Delete picture object.
const char * GetName() const override
Returns name of object.
Bool_t fScaled
kTRUE if picture is scaled
TString fName
name of picture
static TGGC & GetSelectedGC()
Return selection graphics context in use.
~TGSelectedPicture() override
Delete selected picture.
static TGGC * fgSelectedGC
TGSelectedPicture(const TGSelectedPicture &gp)
THashTable implements a hash table to store TObject's.
void Add(TObject *obj) override
Add object to the hash table.
TObject * Remove(TObject *obj) override
Remove object from the hashtable.
TObject * FindObject(const char *name) const override
Find object using its name.
void Print(Option_t *option, Int_t recurse) const override
Print the collection header and its elements.
void Delete(Option_t *option="") override
Remove all objects from the table AND delete all heap based objects.
An abstract interface to image processing library.
static TImage * Open(const char *file, EImageFileTypes type=kUnknown)
Open a specified image file.
Mother of all ROOT objects.
TObject & operator=(const TObject &rhs)
TObject assignment operator.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
void SetRefCount(UInt_t r)
UInt_t References() const
virtual Bool_t ExpandPathName(TString &path)
Expand a pathname getting rid of special shell characters like ~.
virtual const char * UnixPathName(const char *unixpathname)
Convert from a local pathname to a Unix pathname.
virtual char * Which(const char *search, const char *file, EAccessMode mode=kFileExists)
Find location of file in a search path.
void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.
Graphics context structure.
UInt_t fHeight
height of picture
Mask_t fMask
mask specifying which attributes are defined
ULong_t * fPixels
list of used color pixels (if set use delete[])
Colormap_t fColormap
colormap to use
UInt_t fCloseness
allowable RGB deviation
Int_t fDepth
depth of window
UInt_t fNpixels
number of used color pixels
UInt_t fYHotspot
picture y hotspot coordinate
UInt_t fXHotspot
picture x hotspot coordinate
UInt_t fWidth
width of picture