56 virtual void SetImage(
const char *img);
#define ClassDef(name, id)
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
TGIcon(const TGWindow *p, const TGPicture *pic, UInt_t w, UInt_t h, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
virtual void Resize(TGDimension size)
Resize the frame.
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move icon to (x,y) and resize it to (w,h).
const TGPicture * GetPicture() const
virtual void DoRedraw()
Redraw picture.
virtual ~TGIcon()
Delete icon and free picture.
virtual void SetPicture(const TGPicture *pic)
Set icon picture.
virtual void SetImage(const char *img)
Set icon image.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save an icon widget as a C++ statement(s) on output stream out.
virtual void ChangeBackgroundColor()
virtual TGDimension GetDefaultSize() const
Return size of icon.
TGIcon & operator=(const TGIcon &)
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize.
virtual void Reset()
Reset icon to original image. It can be used only via context menu.
virtual void SetImagePath(const char *path)
Set directory where image is located.
TImage * GetImage() const
virtual void SetWindowName(const char *name=0)
Set window name.
An abstract interface to image processing library.