#include <TGButton.h>
Inheritance diagram for TGPictureButton:

Public Member Functions | |
| TGPictureButton (const TGWindow *p, const TGPicture *pic, Int_t id=-1, GContext_t norm=GetDefaultGC()(), UInt_t option=kRaisedFrame|kDoubleBorder) | |
| TGPictureButton (const TGWindow *p, const TGPicture *pic, const char *cmd, Int_t id=-1, GContext_t norm=GetDefaultGC()(), UInt_t option=kRaisedFrame|kDoubleBorder) | |
| TGPictureButton (const TGWindow *p=0, const char *pic=0, Int_t id=-1, GContext_t norm=GetDefaultGC()(), UInt_t option=kRaisedFrame|kDoubleBorder) | |
| virtual | ~TGPictureButton () |
| virtual void | SetPicture (const TGPicture *new_pic) |
| virtual void | SetDisabledPicture (const TGPicture *pic) |
| const TGPicture * | GetPicture () const |
| const TGPicture * | GetDisabledPicture () const |
| virtual void | SavePrimitive (ostream &out, Option_t *option="") |
| TGPictureButton (const TGWindow *p, const TGPicture *pic, Int_t id=-1, GContext_t norm=GetDefaultGC()(), UInt_t option=kRaisedFrame|kDoubleBorder) | |
| TGPictureButton (const TGWindow *p, const TGPicture *pic, const char *cmd, Int_t id=-1, GContext_t norm=GetDefaultGC()(), UInt_t option=kRaisedFrame|kDoubleBorder) | |
| TGPictureButton (const TGWindow *p=0, const char *pic=0, Int_t id=-1, GContext_t norm=GetDefaultGC()(), UInt_t option=kRaisedFrame|kDoubleBorder) | |
| virtual | ~TGPictureButton () |
| virtual void | SetPicture (const TGPicture *new_pic) |
| virtual void | SetDisabledPicture (const TGPicture *pic) |
| const TGPicture * | GetPicture () const |
| const TGPicture * | GetDisabledPicture () const |
| virtual void | SavePrimitive (ostream &out, Option_t *option="") |
Protected Member Functions | |
| virtual void | DoRedraw () |
| virtual void | CreateDisabledPicture () |
| virtual void | DoRedraw () |
| virtual void | CreateDisabledPicture () |
Protected Attributes | |
| const TGPicture * | fPic |
| const TGPicture * | fPicD |
| Bool_t | fOwnDisabledPic |
| const TGPicture * | fPic |
| const TGPicture * | fPicD |
Private Member Functions | |
| TGPictureButton (const TGPictureButton &) | |
| TGPictureButton & | operator= (const TGPictureButton &) |
| TGPictureButton (const TGPictureButton &) | |
| TGPictureButton & | operator= (const TGPictureButton &) |
Definition at line 226 of file TGButton.h.
| TGPictureButton::TGPictureButton | ( | const TGPictureButton & | ) | [private] |
| TGPictureButton::TGPictureButton | ( | const TGWindow * | p, | |
| const TGPicture * | pic, | |||
| Int_t | id = -1, |
|||
| GContext_t | norm = GetDefaultGC()(), |
|||
| UInt_t | option = kRaisedFrame|kDoubleBorder | |||
| ) |
Definition at line 799 of file TGButton.cxx.
References TObject::Error(), TGFrame::fBorderWidth, TGObject::fClient, fOwnDisabledPic, fPic, fPicD, TGButton::fTHeight, TGButton::fTWidth, TGPicture::GetHeight(), TGClient::GetPicture(), TGPicture::GetWidth(), kFALSE, TGFrame::Resize(), and TGWindow::SetWindowName().
| TGPictureButton::TGPictureButton | ( | const TGWindow * | p, | |
| const TGPicture * | pic, | |||
| const char * | cmd, | |||
| Int_t | id = -1, |
|||
| GContext_t | norm = GetDefaultGC()(), |
|||
| UInt_t | option = kRaisedFrame|kDoubleBorder | |||
| ) |
Definition at line 826 of file TGButton.cxx.
References TObject::Error(), TGFrame::fBorderWidth, TGObject::fClient, TGWidget::fCommand, fOwnDisabledPic, fPic, fPicD, TGButton::fTHeight, TGButton::fTWidth, TGPicture::GetHeight(), TGClient::GetPicture(), TGPicture::GetWidth(), kFALSE, TGFrame::Resize(), and TGWindow::SetWindowName().
| TGPictureButton::TGPictureButton | ( | const TGWindow * | p = 0, |
|
| const char * | pic = 0, |
|||
| Int_t | id = -1, |
|||
| GContext_t | norm = GetDefaultGC()(), |
|||
| UInt_t | option = kRaisedFrame|kDoubleBorder | |||
| ) |
Definition at line 858 of file TGButton.cxx.
References TObject::Error(), TGFrame::fBorderWidth, TGObject::fClient, fOwnDisabledPic, fPic, fPicD, TGButton::fTHeight, TGButton::fTWidth, TGPicture::GetHeight(), TGClient::GetPicture(), TGPicture::GetWidth(), kFALSE, p, TGFrame::Resize(), and TGWindow::SetWindowName().
| TGPictureButton::~TGPictureButton | ( | ) | [virtual] |
Definition at line 883 of file TGButton.cxx.
References TGObject::fClient, fOwnDisabledPic, fPicD, and TGClient::FreePicture().
| TGPictureButton::TGPictureButton | ( | const TGPictureButton & | ) | [private] |
| TGPictureButton::TGPictureButton | ( | const TGWindow * | p, | |
| const TGPicture * | pic, | |||
| Int_t | id = -1, |
|||
| GContext_t | norm = GetDefaultGC()(), |
|||
| UInt_t | option = kRaisedFrame|kDoubleBorder | |||
| ) |
| TGPictureButton::TGPictureButton | ( | const TGWindow * | p, | |
| const TGPicture * | pic, | |||
| const char * | cmd, | |||
| Int_t | id = -1, |
|||
| GContext_t | norm = GetDefaultGC()(), |
|||
| UInt_t | option = kRaisedFrame|kDoubleBorder | |||
| ) |
| TGPictureButton::TGPictureButton | ( | const TGWindow * | p = 0, |
|
| const char * | pic = 0, |
|||
| Int_t | id = -1, |
|||
| GContext_t | norm = GetDefaultGC()(), |
|||
| UInt_t | option = kRaisedFrame|kDoubleBorder | |||
| ) |
| virtual TGPictureButton::~TGPictureButton | ( | ) | [virtual] |
| void TGPictureButton::DoRedraw | ( | ) | [protected, virtual] |
Reimplemented from TGFrame.
Definition at line 917 of file TGButton.cxx.
References CreateDisabledPicture(), TGFrame::DoRedraw(), TGPicture::Draw(), TGFrame::fHeight, TGObject::fId, TGButton::fNormGC, fPic, fPicD, TGButton::fState, TGButton::fTHeight, TGButton::fTWidth, TGFrame::fWidth, TGButton::GetHibckgndGC(), TGFrame::GetHilightGC(), gVirtualX, kButtonDisabled, kButtonDown, kButtonEngaged, x, and y.
| void TGPictureButton::CreateDisabledPicture | ( | ) | [protected, virtual] |
Definition at line 946 of file TGButton.cxx.
References TImage::Create(), TString::Data(), TGObject::fClient, TImage::FillRectangle(), fOwnDisabledPic, fPic, fPicD, gEnv, TGPicture::GetHeight(), TGPicture::GetMask(), TGPicture::GetName(), TGPicturePool::GetPicture(), TGPicture::GetPicture(), TGClient::GetPicturePool(), TImage::GetPixmap(), TEnv::GetValue(), TGPicture::GetWidth(), kTRUE, mask, TImage::Merge(), and name.
Referenced by TGToolButton::DoRedraw(), TGuiBldToolButton::DoRedraw(), and DoRedraw().
| TGPictureButton& TGPictureButton::operator= | ( | const TGPictureButton & | ) | [private] |
| void TGPictureButton::SetPicture | ( | const TGPicture * | new_pic | ) | [virtual] |
Definition at line 891 of file TGButton.cxx.
References TString::Data(), TObject::Error(), TGObject::fClient, TGWidget::fCommand, fPic, fPicD, TGClient::FreePicture(), TGButton::fState, TGButton::fTHeight, TGButton::fTWidth, TGWidget::fWidgetId, TGPicture::GetHeight(), TGPicture::GetWidth(), kButtonDisabled, and TGClient::NeedRedraw().
Referenced by ShutterWindow::AddShutterItem(), TGuiBldDragManager::ChangePicture(), TGRecorder::Replay(), TGRecorder::SetDefault(), TGRecorder::StartStop(), and TRootGuiBuilder::SwitchToolbarButton().
| void TGPictureButton::SetDisabledPicture | ( | const TGPicture * | pic | ) | [virtual] |
Definition at line 969 of file TGButton.cxx.
References TRefCnt::AddReference(), TGObject::fClient, fOwnDisabledPic, fPicD, TGClient::FreePicture(), and kFALSE.
Referenced by ShutterWindow::AddShutterItem(), and TGImageMap::TGImageMap().
| const TGPicture* TGPictureButton::GetPicture | ( | ) | const [inline] |
Definition at line 254 of file TGButton.h.
References fPic.
Referenced by TGToolBar::AddButton(), TGuiBldDragManager::ChangePicture(), and TGToolBar::SavePrimitive().
| const TGPicture* TGPictureButton::GetDisabledPicture | ( | ) | const [inline] |
Definition at line 255 of file TGButton.h.
References fPicD.
Referenced by TGuiBldDragManager::ChangePicture().
| void TGPictureButton::SavePrimitive | ( | ostream & | out, | |
| Option_t * | option = "" | |||
| ) | [virtual] |
Reimplemented from TGButton.
Definition at line 1802 of file TGButton.cxx.
References TString::Data(), TObject::Error(), TSystem::ExpandPathName(), TGGCPool::FindGC(), TGButton::fNormGC, TString::Form(), TGWindow::fParent, fPic, TGWidget::fWidgetId, gClient, TGButton::GetDefaultGC(), TGResourcePool::GetGCPool(), TGWindow::GetName(), TGPicture::GetName(), TGFrame::GetOptions(), TGFrame::GetOptionString(), TGClient::GetResourcePool(), gSystem, kDoubleBorder, kRaisedFrame, TGGC::SavePrimitive(), TGButton::SavePrimitive(), and TSystem::UnixPathName().
| virtual void TGPictureButton::DoRedraw | ( | ) | [protected, virtual] |
Reimplemented from TGFrame.
| virtual void TGPictureButton::CreateDisabledPicture | ( | ) | [protected, virtual] |
| TGPictureButton& TGPictureButton::operator= | ( | const TGPictureButton & | ) | [private] |
| virtual void TGPictureButton::SetPicture | ( | const TGPicture * | new_pic | ) | [virtual] |
| virtual void TGPictureButton::SetDisabledPicture | ( | const TGPicture * | pic | ) | [virtual] |
| const TGPicture* TGPictureButton::GetPicture | ( | ) | const [inline] |
| const TGPicture* TGPictureButton::GetDisabledPicture | ( | ) | const [inline] |
| virtual void TGPictureButton::SavePrimitive | ( | ostream & | out, | |
| Option_t * | option = "" | |||
| ) | [virtual] |
Reimplemented from TGButton.
const TGPicture* TGPictureButton::fPic [protected] |
Definition at line 229 of file TGButton.h.
Referenced by CreateDisabledPicture(), TGToolButton::DoRedraw(), TGuiBldToolButton::DoRedraw(), DoRedraw(), GetPicture(), SavePrimitive(), SetPicture(), TGImageMap::TGImageMap(), and TGPictureButton().
const TGPicture* TGPictureButton::fPicD [protected] |
Definition at line 230 of file TGButton.h.
Referenced by CreateDisabledPicture(), TGToolButton::DoRedraw(), TGuiBldToolButton::DoRedraw(), DoRedraw(), GetDisabledPicture(), SetDisabledPicture(), SetPicture(), TGPictureButton(), and ~TGPictureButton().
Bool_t TGPictureButton::fOwnDisabledPic [protected] |
Definition at line 231 of file TGButton.h.
Referenced by CreateDisabledPicture(), SetDisabledPicture(), TGPictureButton(), and ~TGPictureButton().
const TGPicture* TGPictureButton::fPic [protected] |
Definition at line 229 of file TGButton.h.
const TGPicture* TGPictureButton::fPicD [protected] |
Definition at line 230 of file TGButton.h.
1.5.1