class DispatchResult {
public:
///
- DispatchResult() : dispatched_(false), update_(Update::None) {}
+ DispatchResult() : dispatched_(false), error_(false),
+ update_(Update::None), need_buf_update_(false) {}
///
- DispatchResult(bool disp, Update::flags f) : dispatched_(disp), update_(f) {}
+ DispatchResult(bool disp, Update::flags f)
+ : dispatched_(disp), error_(false), update_(f) {}
///
bool dispatched() const { return dispatched_; }
///
Update::flags update() const { return update_; }
///
void update(Update::flags f) { update_ = f; }
+ /// Does the buffer need updating?
+ bool needBufferUpdate() const { return need_buf_update_; }
+ /// Force the buffer to be updated
+ void forceBufferUpdate() { need_buf_update_ = true; }
+ /// Clear the flag indicating we need an update
+ void clearBufferUpdate() { need_buf_update_ = false; }
private:
/// was the event fully dispatched?
bool dispatched_;
Update::flags update_;
///
docstring message_;
+ ///
+ bool need_buf_update_;
};