89 TString ext = strrchr(pname,
'.');
146 TString ext = strrchr(pname,
'.');
188 img->
Scale(new_width, new_height);
244 while (isspace((
int)*ptr)) ++ptr;
247 while (isspace((
int)*ptr)) ++ptr;
312 Info(
"Print",
"no pictures in picture pool");
380 return hashName.
Data();
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.
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.
void SetFillStyle(Int_t v)
Set fill style (kFillSolid, kFillTiled, kFillStippled, kFillOpaeueStippled).
void SetForeground(Pixel_t v)
Set foreground color.
void SetClipMask(Pixmap_t v)
Bitmap for clipping.
void SetAttributes(GCValues_t *values)
Set attributes as specified in the values structure.
void SetBackground(Pixel_t v)
Set background color.
void SetStipple(Pixmap_t v)
Set 1 plane pixmap for stippling.
virtual ~TGPicturePool()
Delete picture cache.
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.
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)
const char * GetName() const override
Returns name of object.
virtual ~TGPicture()
Delete picture object.
Bool_t fScaled
kTRUE if picture is scaled
TString fName
name of picture
static TGGC & GetSelectedGC()
Return selection graphics context in use.
static TGGC * fgSelectedGC
TGSelectedPicture(const TGSelectedPicture &gp)
virtual ~TGSelectedPicture()
Delete selected picture.
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.
virtual void Scale(UInt_t, UInt_t)
virtual Pixmap_t GetPixmap()
virtual Pixmap_t GetMask()
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
void ToLower()
Change string to lower-case.
TSubString Strip(EStripType s=kTrailing, char c=' ') const
Return a substring of self stripped at beginning and/or end.
const char * Data() const
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
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.
Pixmap_t fClipMask
bitmap clipping; other calls for rects
Int_t fClipXOrigin
origin for clipping
Mask_t fMask
bit mask specifying which fields are valid
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