Пример #1
0
boolean SessionRep::check(Event& e) {
    DisplayList& list = *displays_;
    long n = list.count();
    for (long i = 0; i < n; i++) {
	Display* d = list.item(i);
	if (d->get(e)) {
	    return true;
	}
    }
    return false;
}
Пример #2
0
 /**
     Shows this dialog on the given display.
     @param display display to show the dialog onto.
     @return true on success.
  */
 bool show(Display &display) {
     return al_show_native_file_dialog(display.get(), get());
 }