43 TGGC *TGSelectedPicture::fgSelectedGC = 0;
86 TString ext = strrchr(pname,
'.');
144 TString ext = strrchr(pname,
'.');
187 img->
Scale(new_width, new_height);
210 gVirtualX->GetWindowSize(pxmap, xy, xy, w, h);
243 while (isspace((
int)*ptr)) ++ptr;
246 while (isspace((
int)*ptr)) ++ptr;
308 Info(
"Print",
"no pictures in picture pool");
375 hashName.
Form(
"%s__%dx%d", name, width, height);
376 return hashName.
Data();
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.
UInt_t References() const
void SetForeground(Pixel_t v)
Set foreground color.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
void ToLower()
Change string to lower-case.
virtual char * Which(const char *search, const char *file, EAccessMode mode=kFileExists)
Find location of file in a search path.
PictureAttributes_t fAttributes
An abstract interface to image processing library.
virtual ~TGSelectedPicture()
Delete selected picture.
virtual Pixmap_t GetPixmap()
TGSelectedPicture(const TGSelectedPicture &gp)
virtual const char * UnixPathName(const char *unixpathname)
Convert from a Unix pathname to a local pathname.
virtual void Scale(UInt_t, UInt_t)
void Draw(Option_t *="")
Default Draw method for all objects.
const char * Data() const
void SetBackground(Pixel_t v)
Set background color.
THashTable implements a hash table to store TObject's.
static TGGC * fgSelectedGC
void Print(Option_t *option="") const
Print picture info.
void FreePicture(const TGPicture *pic)
Remove picture from cache if nobody is using it anymore.
const char * GetName() const
Returns name of object.
TObject & operator=(const TObject &rhs)
TObject assignment operator.
void SetStipple(Pixmap_t v)
Set 1 plane pixmap for stippling.
Colormap_t GetDefaultColormap() const
void SetRefCount(UInt_t r)
R__EXTERN TSystem * gSystem
const Mask_t kGCClipXOrigin
void SetFillStyle(Int_t v)
Set fill style (kFillSolid, kFillTiled, kFillStippled, kFillOpaeueStippled).
virtual ~TGPicture()
Delete picture object.
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
const TGPicture * GetPicture(const char *name)
Get a picture from the picture pool.
const Mask_t kGCClipYOrigin
TSubString Strip(EStripType s=kTrailing, char c= ' ') const
Return a substring of self stripped at beginning and/or end.
static TGGC & GetSelectedGC()
Return selection graphics context in use.
virtual void Print(Option_t *option="") const
Default print for collections, calls Print(option, 1).
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
Pixmap_t GetPicture() const
virtual ~TGPicturePool()
Delete picture cache.
virtual Pixmap_t GetMask()
ClassImp(TGPicture) ClassImp(TGSelectedPicture) ClassImp(TGPicturePool) TGPicturePool
copy constructor
TGPicture(const char *name, Bool_t scaled=kFALSE)
void Add(TObject *obj)
Add object to the hash table.
void SetAttributes(GCValues_t *values)
Set attributes as specified in the values structure.
Mother of all ROOT objects.
void Delete(Option_t *option="")
Remove all objects from the table AND delete all heap based objects.
TObject * FindObject(const char *name) const
Find object using its name.
void Print(Option_t *option="") const
List all pictures in the pool.
static TImage * Open(const char *file, EImageFileTypes type=kUnknown)
Open a specified image file.
TGPicturePool & operator=(const TGPicturePool &)
assignment operator
const Mask_t kPACloseness
virtual Bool_t ExpandPathName(TString &path)
Expand a pathname getting rid of special shell characters like ~.
void SetClipMask(Pixmap_t v)
Bitmap for clipping.
TObject * Remove(TObject *obj)
Remove object from the hashtable.