X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fupdate_flags.h;h=af71c0e78d5f8452fbfb8647fcd853036e68fd92;hb=25bcbe766601b7bbc5b9832858ab8e5874f5d2a2;hp=b18cabcb1b809d8126a28c36a19b203c9c77b6c5;hpb=e36fba33abc2e80599b164d91e90e1558225576d;p=lyx.git diff --git a/src/update_flags.h b/src/update_flags.h index b18cabcb1b..af71c0e78d 100644 --- a/src/update_flags.h +++ b/src/update_flags.h @@ -16,11 +16,19 @@ namespace lyx { namespace Update { enum flags { + /// No screen update is needed. None = 0, + /// Recenter the screen around the cursor if is found outside the + /// visible area. FitCursor = 1, + /// Force a full screen metrics update and a full draw. Force = 2, - SinglePar = 4, - MultiParSel = 8, + /// Force a full redraw (but no metrics computations) + ForceDraw = 4, + /// Try to rebreak only the current paragraph metrics. + SinglePar = 8, + /// Only the inset decorations need to be redrawn, no text metrics + /// update is needed. Decoration = 16 }; @@ -34,7 +42,12 @@ inline flags operator&(flags const f, flags const g) return static_cast(int(f) & int(g)); } -} // namespace +inline flags operator~(flags const f) +{ + return static_cast(~int(f)); +} + +} // namespace Update } // namespace lyx #endif