17 #include "TGPicture.h"
35 const TGPicture* iUpIcon,
36 const TGPicture* iDownIcon,
37 const TGPicture* iDisabledIcon,
38 const TGPicture* iBelowMouseIcon,
40 TGButton(iParent,id, norm, option),
42 m_downIcon(iDownIcon),
43 m_disabledIcon(iDisabledIcon),
44 m_belowMouseIcon(iBelowMouseIcon),
49 assert(0!=iDisabledIcon);
50 gVirtualX->ShapeCombineMask(GetId(), 0, 0, iUpIcon->GetMask());
51 SetBackgroundPixmap(iUpIcon->GetPicture());
52 Resize(iUpIcon->GetWidth(),iUpIcon->GetHeight());
53 fTWidth = iUpIcon->GetWidth();
54 fTHeight = iUpIcon->GetHeight();
83 const TGPicture*& iDownIcon,
84 const TGPicture*& iDisabledIcon)
89 gVirtualX->ShapeCombineMask(GetId(), 0, 0,
m_upIcon->GetMask());
90 fClient->NeedRedraw(
this);
95 const TGPicture* iDownIcon,
96 const TGPicture* iDisabledIcon,
97 const TGPicture* iBelowMouseIcon)
104 gVirtualX->ShapeCombineMask(GetId(), 0, 0,
m_upIcon->GetMask());
105 fClient->NeedRedraw(
this);
115 if (event->fType == kEnterNotify)
117 else if (event->fType == kLeaveNotify)
120 fClient->NeedRedraw(
this);
122 return TGButton::HandleCrossing(event);
132 int x = (fWidth - fTWidth) >> 1;
133 int y = (fHeight - fTHeight) >> 1;
135 gVirtualX->FillRectangle(fId, fNormGC, 2,2,fWidth,fHeight);
149 case kButtonDisabled:
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past