예제 #1
0
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();
}
예제 #2
0
void UserInterface::onQuit(Fl_Widget *w, void* d)
{
    UserInterface * ui = static_cast<UserInterface*>(d);
    ui->quit();
}