X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fupdate_flags.h;h=af71c0e78d5f8452fbfb8647fcd853036e68fd92;hb=6a21ec854b356fbbc89aaf99b2a23e4c3de4aca6;hp=3e877c1ca1339cfa35c3282c06691dc228ea28f6;hpb=b4294a7b06d1d9436efdde3df6ce4b0732620e9e;p=lyx.git diff --git a/src/update_flags.h b/src/update_flags.h index 3e877c1ca1..af71c0e78d 100644 --- a/src/update_flags.h +++ b/src/update_flags.h @@ -21,13 +21,15 @@ 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 }; inline flags operator|(flags const f, flags const g) @@ -40,6 +42,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