48 virtual void SetImage(
const char *img);
ULong_t Pixel_t
Pixel value.
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#define ClassDefOverride(name, id)
winID h TVirtualViewer3D TVirtualGLPainter p
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
This class handles GUI icons.
TGIcon(const TGWindow *p, const TGPicture *pic, UInt_t w, UInt_t h, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) override
Move icon to (x,y) and resize it to (w,h).
~TGIcon() override
Delete icon and free picture.
const TGPicture * GetPicture() const
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save an icon widget as a C++ statement(s) on output stream out.
TGIcon & operator=(const TGIcon &)=delete
virtual void SetPicture(const TGPicture *pic)
Set icon picture.
virtual void SetImage(const char *img)
Set icon image.
void Resize(TGDimension size) override
Resize the frame.
virtual void ChangeBackgroundColor()
const TGPicture * fPic
icon picture
void DoRedraw() override
Redraw picture.
TString fPath
directory of image
void Resize(UInt_t w=0, UInt_t h=0) override
Resize.
TGIcon(const TGIcon &)=delete
TGDimension GetDefaultSize() const override
Return size of icon.
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
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
ROOT GUI Window base class.
virtual void SetWindowName(const char *name=nullptr)
Set window name.
An abstract interface to image processing library.