コード例 #1
0
ファイル: session.c プロジェクト: barak/ivtools-cvs
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
ファイル: NativeFileDialog.hpp プロジェクト: ucfengzhun/ALX
 /**
     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());
 }