16 #include "TGPicture.h" 34 const TGPicture* iUpIcon,
35 const TGPicture* iDownIcon,
36 const TGPicture* iDisabledIcon,
37 const TGPicture* iBelowMouseIcon,
38 Int_t
id, GContext_t norm, UInt_t
option) :
39 TGButton(iParent,id, norm, option),
41 m_downIcon(iDownIcon),
42 m_disabledIcon(iDisabledIcon),
43 m_belowMouseIcon(iBelowMouseIcon),
46 assert(
nullptr!=iUpIcon);
47 assert(
nullptr!=iDownIcon);
48 assert(
nullptr!=iDisabledIcon);
49 gVirtualX->ShapeCombineMask(GetId(), 0, 0, iUpIcon->GetMask());
50 SetBackgroundPixmap(iUpIcon->GetPicture());
51 Resize(iUpIcon->GetWidth(),iUpIcon->GetHeight());
52 fTWidth = iUpIcon->GetWidth();
53 fTHeight = iUpIcon->GetHeight();
82 const TGPicture*& iDownIcon,
83 const TGPicture*& iDisabledIcon)
88 gVirtualX->ShapeCombineMask(GetId(), 0, 0,
m_upIcon->GetMask());
94 const TGPicture* iDownIcon,
95 const TGPicture* iDisabledIcon,
96 const TGPicture* iBelowMouseIcon)
103 gVirtualX->ShapeCombineMask(GetId(), 0, 0,
m_upIcon->GetMask());
114 if (event->fType == kEnterNotify)
116 else if (event->fType == kLeaveNotify)
121 return TGButton::HandleCrossing(event);
131 int x = (fWidth - fTWidth) >> 1;
132 int y = (fHeight - fTHeight) >> 1;
146 case kButtonDisabled:
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)