void UserInterface::mainWindowCallback(Fl_Widget * w, void * p) { if (Fl::event() == FL_SHORTCUT && Fl::event_key() == FL_Escape) { return; // ignore Escape } UserInterface * ui = static_cast<UserInterface*>(p); ui->quit(); }
void UserInterface::onQuit(Fl_Widget *w, void* d) { UserInterface * ui = static_cast<UserInterface*>(d); ui->quit(); }