53 image =
"bld_rgb.xpm";
62 fImage->GetPixmap(), fImage->GetMask());
209 Error(
"SavePrimitive()",
"icon pixmap not found ");
218 <<
",gClient->GetPicture(" << quote
223 out <<
");" << std::endl;
236 << quote << name.
Data() << quote <<
");" << std::endl;
238 if (option && strstr(option,
"keep_names"))
239 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
virtual TGDimension GetDefaultSize() const
Return size of icon.
TGPicturePool * GetPicturePool() const
virtual void SetImage(const char *img)
Set icon image.
virtual void DrawBorder()
Draw frame border.
virtual UInt_t GetWidth() const
virtual const char * DirName(const char *pathname)
Return the directory name in pathname.
An abstract interface to image processing library.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize.
virtual Pixmap_t GetPixmap()
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.
Bool_t IsEditable() const
const char * Data() const
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual UInt_t GetOptions() const
void FreePicture(const TGPicture *pic)
Free picture resource.
virtual ~TGIcon()
Delete icon and free picture.
const char * GetName() const
Returns name of object.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual UInt_t GetHeight() const
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).
R__EXTERN TSystem * gSystem
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save an icon widget as a C++ statement(s) on output stream out.
const TGPicture * GetPicture(const char *name)
Get a picture from the picture pool.
virtual const char * GetName() const
Returns name of object.
virtual void Move(Int_t x, Int_t y)
Move frame.
char * StrDup(const char *str)
Duplicate the string str.
virtual void SetImagePath(const char *path)
Set directory where image is located.
virtual Pixmap_t GetMask()
virtual void DoRedraw()
Redraw picture.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
static TImage * Open(const char *file, EImageFileTypes type=kUnknown)
Open a specified image file.
virtual Bool_t ExpandPathName(TString &path)
Expand a pathname getting rid of special shell characters like ~.
virtual char * ConcatFileName(const char *dir, const char *name)
Concatenate a directory and a file name. User must delete returned string.
virtual void SetPicture(const TGPicture *pic)
Set icon picture.
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
static const TGGC & GetBckgndGC()
Get background color graphics context.
virtual void Reset()
Reset icon to original image. It can be used only via context menu.