X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fupdate_flags.h;h=0efa54112223e25e69af9c178031f9f8d6084fa6;hb=0b42f77551e607e59ac4fa98e5b926fb10a45baf;hp=3e877c1ca1339cfa35c3282c06691dc228ea28f6;hpb=b4294a7b06d1d9436efdde3df6ce4b0732620e9e;p=lyx.git diff --git a/src/update_flags.h b/src/update_flags.h index 3e877c1ca1..0efa541122 100644 --- a/src/update_flags.h +++ b/src/update_flags.h @@ -21,13 +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, + SinglePar = 8, /// Only the inset decorations need to be redrawn, no text metrics /// update is needed. - Decoration = 8 + Decoration = 16, + /// Force metrics and redraw for all buffers. + ForceAll = 32 }; inline flags operator|(flags const f, flags const g) @@ -40,6 +44,11 @@ inline flags operator&(flags const f, flags const g) return static_cast(int(f) & int(g)); } +inline flags operator~(flags const f) +{ + return static_cast(~int(f)); +} + } // namespace Update } // namespace lyx