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,
+ /// Force a full redraw (but no metrics computations)
+ ForceDraw = 4,
+ /// Try to rebreak only the current paragraph metrics.
+ /// (currently ignored!)
+ SinglePar = 8,
+ /// Only the inset decorations need to be redrawn, no text metrics
+ /// update is needed.
Decoration = 16
};
return static_cast<flags>(int(f) & int(g));
}
-} // namespace
+inline flags operator~(flags const f)
+{
+ return static_cast<flags>(~int(f));
+}
+
+} // namespace Update
} // namespace lyx
#endif