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();
const Mask_t kGCClipXOrigin
const Mask_t kPACloseness
Handle_t Pixmap_t
Pixmap handle.
Handle_t GContext_t
Graphics context handle.
const Mask_t kGCClipYOrigin
const Mask_t kPASize
width and height
Handle_t Window_t
Window handle.
ULongptr_t Handle_t
Generic resource handle.
include TDocParser_001 C image html pict1_TDocParser_001 png width
void Printf(const char *fmt,...)
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
void Print(Option_t *option="") const
List all pictures in the pool.
TGPicturePool(const TGPicturePool &)
copy constructor
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.
Pixmap_t fMask
picture mask pixmap
const char * GetName() const
Returns name of object.
TGPicture(const char *name, Bool_t scaled=kFALSE)
void Draw(Option_t *="")
Default Draw method for all objects.
Pixmap_t GetPicture() const
virtual ~TGPicture()
Delete picture object.
Bool_t fScaled
kTRUE if picture is scaled
void Print(Option_t *option="") const
Print picture info.
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.
TObject * Remove(TObject *obj)
Remove object from the hashtable.
void Add(TObject *obj)
Add object to the hash table.
void Print(Option_t *option, Int_t recurse) const
Print the collection header and its elements.
TObject * FindObject(const char *name) const
Find object using its name.
void Delete(Option_t *option="")
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