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
18 /// Maybe this can go entirely
19 class DispatchResult {
22 DispatchResult() : dispatched_(false), update_(false) {}
24 DispatchResult(bool disp, bool upd) : dispatched_(disp), update_(upd) {}
26 bool dispatched() const { return dispatched_; }
28 void dispatched(bool disp) { dispatched_ = disp; }
30 bool update() const { return update_; }
32 void update(bool up) { update_ = up; }
34 /// was the event fully dispatched?
36 /// do we need to redraw the screen afterwards?
43 #endif // DISPATCH_RESULT_H