X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fupdate_flags.h;h=a40e88c5567a1d200612478cdd835214208937b1;hb=f044d3a3595912415806707582e8aa6b0890bbe7;hp=2950a894d1d6853fd0fbdfb76720ecdc0d0d4f63;hpb=e660f440013fbba3437880324eaf794c41419018;p=lyx.git diff --git a/src/update_flags.h b/src/update_flags.h index 2950a894d1..a40e88c556 100644 --- a/src/update_flags.h +++ b/src/update_flags.h @@ -21,13 +21,16 @@ namespace Update { /// Recenter the screen around the cursor if is found outside the /// visible area. FitCursor = 1, - /// Force a full screen metrics update. + /// Force a full screen metrics update and a full draw. Force = 2, + /// Force a full redraw (but no metrics computations) + ForceDraw = 4, /// Try to rebreak only the current paragraph metrics. - SinglePar = 4, + /// (currently ignored!) + SinglePar = 8, /// Only the inset decorations need to be redrawn, no text metrics /// update is needed. - Decoration = 8 + Decoration = 16 }; inline flags operator|(flags const f, flags const g) @@ -40,7 +43,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