X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView.h;h=0e5f9102b090019644ec6480639742da0d55f9b1;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=7042440fdb6f3f2bcae67b98c469542853f4015d;hpb=6b764fd18887ac31c4a0da032b30a447641460fa;p=lyx.git diff --git a/src/BufferView.h b/src/BufferView.h index 7042440fdb..0e5f9102b0 100644 --- a/src/BufferView.h +++ b/src/BufferView.h @@ -24,6 +24,7 @@ #include #include +#include #include @@ -97,9 +98,11 @@ public: * to do a fitcursor, and to force an update if screen * position changes. \c forceupdate means to force an update * in any case. - * \return true if a full updateMetrics() is needed. + * \retval (false, xxx) if no redraw is required + * \retval (true, true) if a single paragraph redraw is needed + * \retval (true, false) if a full redraw is needed */ - bool update(Update::flags flags = Update::FitCursor | Update::Force); + std::pair update(Update::flags flags = Update::FitCursor | Update::Force); /// move the screen to fit the cursor. /// Only to be called with good y coordinates (after a bv::metrics) @@ -167,8 +170,10 @@ public: /// dispatch method helper for \c WorkArea /// \sa WorkArea - /// \return true if a full redraw is needed - bool workAreaDispatch(FuncRequest const & ev); + /// \retval (false, xxx) if no redraw is required + /// \retval (true, true) if a single paragraph redraw is needed + /// \retval (true, false) if a full redraw is needed + std::pair workAreaDispatch(FuncRequest const & ev); /// access to anchor. pit_type anchor_ref() const;