]> git.lyx.org Git - lyx.git/blobdiff - src/update_flags.h
Do not error out if -geometry is used with QPA_XCB defined.
[lyx.git] / src / update_flags.h
index b18cabcb1b809d8126a28c36a19b203c9c77b6c5..517bfb62e4ee9a64e7b4c1961a087c08fd11c369 100644 (file)
@@ -16,12 +16,22 @@ 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,
-               Decoration = 16
+               /// 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,
+               /// Force metrics and redraw for all buffers.
+               ForceAll = 32
        };
 
 inline flags operator|(flags const f, flags const g)
@@ -34,7 +44,12 @@ inline flags operator&(flags const f, flags const g)
        return static_cast<flags>(int(f) & int(g));
 }
 
-} // namespace
+inline flags operator~(flags const f)
+{
+       return static_cast<flags>(~int(f) & 0x3f);
+}
+
+} // namespace Update
 
 } // namespace lyx
 #endif