X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fupdate_flags.h;h=517bfb62e4ee9a64e7b4c1961a087c08fd11c369;hb=bfe98181169d9e697e515da974d9b6a15a06c940;hp=dbbcdc98ba3dd7482cb30a7c7e6dca512938d770;hpb=52ee45233466fb18339d468515d228780f0f872d;p=lyx.git diff --git a/src/update_flags.h b/src/update_flags.h index dbbcdc98ba..517bfb62e4 100644 --- a/src/update_flags.h +++ b/src/update_flags.h @@ -21,16 +21,17 @@ 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, - /// Indicate a selection that spans multiple paragraphs. - /// FIXME: get rid of this. - MultiParSel = 8, + SinglePar = 8, /// Only the inset decorations need to be redrawn, no text metrics /// update is needed. - Decoration = 16 + Decoration = 16, + /// Force metrics and redraw for all buffers. + ForceAll = 32 }; inline flags operator|(flags const f, flags const g) @@ -43,7 +44,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) & 0x3f); +} + +} // namespace Update } // namespace lyx #endif