3 * \file dispatchresult.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Lars Gullik Bjønnes
10 * Full author contact details are available in file CREDITS.
13 #ifndef DISPATCH_RESULT_H
14 #define DISPATCH_RESULT_H
16 /// Maybe this can go entirely
17 class DispatchResult {
20 DispatchResult() : dispatched_(false), update_(false) {}
22 DispatchResult(bool disp, bool upd) : dispatched_(disp), update_(upd) {}
24 bool dispatched() const { return dispatched_; }
26 void dispatched(bool disp) { dispatched_ = disp; }
28 bool update() const { return update_; }
30 void update(bool up) { update_ = up; }
32 /// was the event fully dispatched?
34 /// do we need to redraw the screen afterwards?
38 #endif // DISPATCH_RESULT_H