TGIcon Class Reference

#include <TGIcon.h>

Inheritance diagram for TGIcon:

TGFrame TGFrame TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TGFileIcon TGMdiTitleIcon TGMdiTitleIcon List of all members.

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 TGPictureGetPicture () const
TImageGetImage () 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 TGPictureGetPicture () const
TImageGetImage () 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 TGPicturefPic
TImagefImage
TString fPath
const TGPicturefPic
TImagefImage

Private Member Functions

 TGIcon (const TGIcon &)
TGIconoperator= (const TGIcon &)
 TGIcon (const TGIcon &)
TGIconoperator= (const TGIcon &)

Detailed Description

Definition at line 34 of file TGIcon.h.


Constructor & Destructor Documentation

TGIcon::TGIcon ( const TGIcon  )  [private]

TGIcon::TGIcon ( const TGWindow p,
const TGPicture pic,
UInt_t  w,
UInt_t  h,
UInt_t  options = kChildFrame,
Pixel_t  back = GetDefaultFrameBackground() 
) [inline]

Definition at line 48 of file TGIcon.h.

References TGWindow::SetWindowName().

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,
const TGPicture pic,
UInt_t  w,
UInt_t  h,
UInt_t  options = kChildFrame,
Pixel_t  back = GetDefaultFrameBackground() 
) [inline]

Definition at line 48 of file TGIcon.h.

References TGWindow::SetWindowName().

TGIcon::TGIcon ( const TGWindow p = 0,
const char *  image = 0 
)

virtual TGIcon::~TGIcon (  )  [virtual]


Member Function Documentation

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().

TGIcon& TGIcon::operator= ( const TGIcon  )  [private]

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]

Definition at line 58 of file TGIcon.h.

References fImage.

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().

void TGIcon::Resize ( UInt_t  w = 0,
UInt_t  h = 0 
) [virtual]

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 65 of file TGIcon.h.

References Resize(), and size.

void TGIcon::MoveResize ( Int_t  x,
Int_t  y,
UInt_t  w = 0,
UInt_t  h = 0 
) [virtual]

Reimplemented from TGFrame.

Definition at line 163 of file TGIcon.cxx.

References TGFrame::Move(), and Resize().

virtual void TGIcon::ChangeBackgroundColor (  )  [inline, virtual]

Definition at line 67 of file TGIcon.h.

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.

TGIcon& TGIcon::operator= ( const TGIcon  )  [private]

virtual void TGIcon::Reset (  )  [virtual]

const TGPicture* TGIcon::GetPicture (  )  const [inline]

Definition at line 57 of file TGIcon.h.

References fPic.

TImage* TGIcon::GetImage (  )  const [inline]

Definition at line 58 of file TGIcon.h.

References fImage.

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 ( UInt_t  w = 0,
UInt_t  h = 0 
) [virtual]

Reimplemented from TGFrame.

virtual void TGIcon::Resize ( TGDimension  size  )  [inline, virtual]

Reimplemented from TGFrame.

Definition at line 65 of file TGIcon.h.

References Resize(), and size.

virtual void TGIcon::MoveResize ( Int_t  x,
Int_t  y,
UInt_t  w = 0,
UInt_t  h = 0 
) [virtual]

Reimplemented from TGFrame.

virtual void TGIcon::ChangeBackgroundColor (  )  [inline, virtual]

Definition at line 67 of file TGIcon.h.

virtual TGDimension TGIcon::GetDefaultSize (  )  const [virtual]

Reimplemented from TGFrame.

virtual void TGIcon::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TGFrame.


Member Data Documentation

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]

Definition at line 37 of file TGIcon.h.

TImage* TGIcon::fImage [protected]

Definition at line 38 of file TGIcon.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:39:33 2011 for ROOT_528-00b_version by  doxygen 1.5.1