4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author The Denmark Cowboys
9 * Full author contact details are available in file CREDITS.
12 #ifndef UPDATE_FLAGS_H
13 #define UPDATE_FLAGS_H
19 /// No screen update is needed.
21 /// Recenter the screen around the cursor if is found outside the
24 /// Force a full screen metrics update and a full draw.
26 /// Force a full redraw (but no metrics computations)
28 /// Try to rebreak only the current paragraph metrics.
30 /// Only the inset decorations need to be redrawn, no text metrics
33 /// Force metrics and redraw for all buffers.
37 inline flags operator|(flags const f, flags const g)
39 return static_cast<flags>(int(f) | int(g));
42 inline flags operator&(flags const f, flags const g)
44 return static_cast<flags>(int(f) & int(g));
47 inline flags operator~(flags const f)
49 return static_cast<flags>(~int(f) & 0x3f);