Definition at line 4 of file FWPopupMenu.cc.
FWPopupMenu::FWPopupMenu |
( |
const TGWindow * |
p = nullptr , |
|
|
UInt_t |
w = 10 , |
|
|
UInt_t |
h = 10 , |
|
|
UInt_t |
options = 0 |
|
) |
| |
|
inline |
Bool_t FWPopupMenu::HandleKey |
( |
Event_t * |
event | ) |
|
|
inlineoverride |
Definition at line 33 of file FWPopupMenu.cc.
References ev, and tmp.
35 if (
event->fType != kGKeyPress)
return kTRUE;
39 gVirtualX->LookupString(
event, tmp,
sizeof(tmp), keysym);
41 TGMenuEntry *ce = fCurrent;
47 if (ce) ce = (TGMenuEntry*)GetListOfEntries()->Before(ce);
48 while (ce && ((ce->GetType() == kMenuSeparator) ||
49 (ce->GetType() == kMenuLabel) ||
50 !(ce->GetStatus() & kMenuEnableMask)))
52 ce = (TGMenuEntry*)GetListOfEntries()->Before(ce);
54 if (!ce) ce = (TGMenuEntry*)GetListOfEntries()->Last();
60 if (ce) ce = (TGMenuEntry*)GetListOfEntries()->After(ce);
61 while (ce && ((ce->GetType() == kMenuSeparator) ||
62 (ce->GetType() == kMenuLabel) ||
63 !(ce->GetStatus() & kMenuEnableMask)))
65 ce = (TGMenuEntry*)GetListOfEntries()->After(ce);
67 if (!ce) ce = (TGMenuEntry*)GetListOfEntries()->First();
75 ev.fType = kButtonRelease;
77 return HandleButton(&ev);
82 void *
dummy =
nullptr;
83 return EndMenu(dummy);
std::vector< std::vector< double > > tmp
void FWPopupMenu::PoppedDown |
( |
| ) |
|
|
inlineoverride |
void FWPopupMenu::PoppedUp |
( |
| ) |
|
|
inlineoverride |
Definition at line 19 of file FWPopupMenu.cc.
References checklumidiff::l.
21 TGPopupMenu::PoppedUp();
22 gVirtualX->SetInputFocus(fId);
23 gVirtualX->GrabKey(fId, 0
l, kAnyModifier, kTRUE);