#include <TGIcon.h>
Inheritance diagram for TGIcon:
Public Member Functions | |
TGIcon (const TGWindow *p, const TGPicture *pic, UInt_t w, UInt_t h, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground()) | |
TGIcon (const TGWindow *p=0, const char *image=0) | |
virtual | ~TGIcon () |
virtual void | Reset () |
const TGPicture * | GetPicture () const |
TImage * | GetImage () const |
virtual void | SetPicture (const TGPicture *pic) |
virtual void | SetImage (const char *img) |
virtual void | SetImage (TImage *img) |
virtual void | SetImagePath (const char *path) |
virtual void | Resize (UInt_t w=0, UInt_t h=0) |
virtual void | Resize (TGDimension size) |
virtual void | MoveResize (Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) |
virtual void | ChangeBackgroundColor () |
virtual TGDimension | GetDefaultSize () const |
virtual void | SavePrimitive (ostream &out, Option_t *option="") |
TGIcon (const TGWindow *p, const TGPicture *pic, UInt_t w, UInt_t h, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground()) | |
TGIcon (const TGWindow *p=0, const char *image=0) | |
virtual | ~TGIcon () |
virtual void | Reset () |
const TGPicture * | GetPicture () const |
TImage * | GetImage () const |
virtual void | SetPicture (const TGPicture *pic) |
virtual void | SetImage (const char *img) |
virtual void | SetImage (TImage *img) |
virtual void | SetImagePath (const char *path) |
virtual void | Resize (UInt_t w=0, UInt_t h=0) |
virtual void | Resize (TGDimension size) |
virtual void | MoveResize (Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) |
virtual void | ChangeBackgroundColor () |
virtual TGDimension | GetDefaultSize () const |
virtual void | SavePrimitive (ostream &out, Option_t *option="") |
Protected Member Functions | |
virtual void | DoRedraw () |
virtual void | DoRedraw () |
Protected Attributes | |
const TGPicture * | fPic |
TImage * | fImage |
TString | fPath |
const TGPicture * | fPic |
TImage * | fImage |
Private Member Functions | |
TGIcon (const TGIcon &) | |
TGIcon & | operator= (const TGIcon &) |
TGIcon (const TGIcon &) | |
TGIcon & | operator= (const TGIcon &) |
Definition at line 34 of file TGIcon.h.
TGIcon::TGIcon | ( | const TGIcon & | ) | [private] |
TGIcon::TGIcon | ( | const TGWindow * | p = 0 , |
|
const char * | image = 0 | |||
) |
TGIcon::~TGIcon | ( | ) | [virtual] |
Definition at line 68 of file TGIcon.cxx.
References TGObject::fClient, fPic, and TGClient::FreePicture().
TGIcon::TGIcon | ( | const TGIcon & | ) | [private] |
TGIcon::TGIcon | ( | const TGWindow * | p = 0 , |
|
const char * | image = 0 | |||
) |
virtual TGIcon::~TGIcon | ( | ) | [virtual] |
void TGIcon::DoRedraw | ( | ) | [protected, virtual] |
Reimplemented from TGFrame.
Definition at line 123 of file TGIcon.cxx.
References border, TGPicture::Draw(), TGFrame::DrawBorder(), TGObject::fId, fPic, TGFrame::GetBckgndGC(), TGFrame::GetOptions(), kDoubleBorder, kRaisedFrame, and kSunkenFrame.
Referenced by TGMdiTitleIcon::DoRedraw(), TGFileIcon::DoRedraw(), and Resize().
void TGIcon::Reset | ( | ) | [virtual] |
Definition at line 172 of file TGIcon.cxx.
References TSystem::ConcatFileName(), TString::Data(), TGObject::fClient, fImage, fPath, TNamed::GetName(), gSystem, TGClient::IsEditable(), name, and SetImage().
const TGPicture* TGIcon::GetPicture | ( | ) | const [inline] |
Definition at line 57 of file TGIcon.h.
References fPic.
Referenced by TGMdiDecorFrame::GetWindowIcon().
TImage* TGIcon::GetImage | ( | ) | const [inline] |
void TGIcon::SetPicture | ( | const TGPicture * | pic | ) | [virtual] |
Definition at line 76 of file TGIcon.cxx.
References TGObject::fClient, TGObject::fId, fPic, gVirtualX, and TGClient::NeedRedraw().
Referenced by GTitleFrame::ChangeRightLogo(), TSessionViewer::ChangeRightLogo(), and TGMdiDecorFrame::SetWindowIcon().
void TGIcon::SetImage | ( | const char * | img | ) | [virtual] |
Definition at line 86 of file TGIcon.cxx.
References TSystem::DirName(), fPath, gSystem, i, and TImage::Open().
Referenced by TGuiBldDragManager::ChangeImage(), and Reset().
void TGIcon::SetImage | ( | TImage * | img | ) | [virtual] |
Definition at line 98 of file TGIcon.cxx.
References TGObject::fClient, fImage, TImage::GetHeight(), TImage::GetWidth(), TGClient::NeedRedraw(), and Resize().
void TGIcon::SetImagePath | ( | const char * | path | ) | [virtual] |
Definition at line 187 of file TGIcon.cxx.
References TSystem::ExpandPathName(), fPath, gSystem, and TSystem::UnixPathName().
Referenced by TGuiBldDragManager::ChangeImage().
Reimplemented from TGFrame.
Definition at line 136 of file TGIcon.cxx.
References border, DoRedraw(), TGObject::fClient, TGObject::fId, fImage, fPic, TGClient::FreePicture(), TImage::GetMask(), TNamed::GetName(), TGFrame::GetOptions(), TGPicturePool::GetPicture(), TGClient::GetPicturePool(), TImage::GetPixmap(), gVirtualX, kDoubleBorder, kRaisedFrame, kSunkenFrame, TGFrame::Resize(), and TImage::Scale().
Referenced by MoveResize(), Resize(), and SetImage().
virtual void TGIcon::Resize | ( | TGDimension | size | ) | [inline, virtual] |
Reimplemented from TGFrame.
Definition at line 163 of file TGIcon.cxx.
References TGFrame::Move(), and Resize().
virtual void TGIcon::ChangeBackgroundColor | ( | ) | [inline, virtual] |
TGDimension TGIcon::GetDefaultSize | ( | ) | const [virtual] |
Reimplemented from TGFrame.
Definition at line 114 of file TGIcon.cxx.
References TGFrame::fHeight, fPic, TGFrame::fWidth, TGPicture::GetHeight(), and TGPicture::GetWidth().
void TGIcon::SavePrimitive | ( | ostream & | out, | |
Option_t * | option = "" | |||
) | [virtual] |
Reimplemented from TGFrame.
Definition at line 198 of file TGIcon.cxx.
References TObject::Error(), TSystem::ExpandPathName(), TGFrame::fBackground, fImage, TGWindow::fParent, fPath, fPic, TGFrame::GetDefaultFrameBackground(), TGFrame::GetHeight(), TGWindow::GetName(), TNamed::GetName(), TGPicture::GetName(), TGFrame::GetOptions(), TGFrame::GetOptionString(), TGFrame::GetWidth(), gSystem, name, TGFrame::SaveUserColor(), and TSystem::UnixPathName().
virtual void TGIcon::DoRedraw | ( | ) | [protected, virtual] |
Reimplemented from TGFrame.
virtual void TGIcon::Reset | ( | ) | [virtual] |
const TGPicture* TGIcon::GetPicture | ( | ) | const [inline] |
TImage* TGIcon::GetImage | ( | ) | const [inline] |
virtual void TGIcon::SetPicture | ( | const TGPicture * | pic | ) | [virtual] |
virtual void TGIcon::SetImage | ( | const char * | img | ) | [virtual] |
virtual void TGIcon::SetImage | ( | TImage * | img | ) | [virtual] |
virtual void TGIcon::SetImagePath | ( | const char * | path | ) | [virtual] |
virtual void TGIcon::Resize | ( | TGDimension | size | ) | [inline, virtual] |
Reimplemented from TGFrame.
virtual void TGIcon::ChangeBackgroundColor | ( | ) | [inline, virtual] |
virtual TGDimension TGIcon::GetDefaultSize | ( | ) | const [virtual] |
Reimplemented from TGFrame.
virtual void TGIcon::SavePrimitive | ( | ostream & | out, | |
Option_t * | option = "" | |||
) | [virtual] |
Reimplemented from TGFrame.
const TGPicture* TGIcon::fPic [protected] |
Definition at line 37 of file TGIcon.h.
Referenced by DoRedraw(), GetDefaultSize(), GetPicture(), Resize(), SavePrimitive(), SetPicture(), and ~TGIcon().
TImage* TGIcon::fImage [protected] |
Definition at line 38 of file TGIcon.h.
Referenced by GetImage(), Reset(), Resize(), SavePrimitive(), and SetImage().
TString TGIcon::fPath [protected] |
Definition at line 39 of file TGIcon.h.
Referenced by Reset(), SavePrimitive(), SetImage(), and SetImagePath().
const TGPicture* TGIcon::fPic [protected] |
TImage* TGIcon::fImage [protected] |