2006-11-22 20:13:02 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-04-28 20:44:46 +00:00
|
|
|
* \file update_flags.h
|
2006-11-22 20:13:02 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author The Denmark Cowboys
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2006-11-14 17:31:14 +00:00
|
|
|
#ifndef UPDATE_FLAGS_H
|
|
|
|
#define UPDATE_FLAGS_H
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
namespace Update {
|
|
|
|
enum flags {
|
2007-11-06 09:09:29 +00:00
|
|
|
/// No screen update is needed.
|
2006-11-14 17:31:14 +00:00
|
|
|
None = 0,
|
2007-11-06 09:09:29 +00:00
|
|
|
/// Recenter the screen around the cursor if is found outside the
|
2018-05-02 10:38:40 +00:00
|
|
|
/// visible area.
|
2006-11-14 17:31:14 +00:00
|
|
|
FitCursor = 1,
|
2017-10-11 16:00:48 +00:00
|
|
|
/// Force a full screen metrics update and a full draw.
|
2006-11-14 17:31:14 +00:00
|
|
|
Force = 2,
|
2017-10-11 16:00:48 +00:00
|
|
|
/// Force a full redraw (but no metrics computations)
|
|
|
|
ForceDraw = 4,
|
2007-11-06 09:09:29 +00:00
|
|
|
/// Try to rebreak only the current paragraph metrics.
|
2017-10-11 16:00:48 +00:00
|
|
|
SinglePar = 8,
|
2007-11-06 09:09:29 +00:00
|
|
|
/// Only the inset decorations need to be redrawn, no text metrics
|
|
|
|
/// update is needed.
|
2021-02-01 17:19:46 +00:00
|
|
|
Decoration = 16,
|
|
|
|
/// Force metrics and redraw for all buffers.
|
|
|
|
ForceAll = 32
|
2006-11-14 17:31:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
inline flags operator|(flags const f, flags const g)
|
|
|
|
{
|
|
|
|
return static_cast<flags>(int(f) | int(g));
|
|
|
|
}
|
|
|
|
|
|
|
|
inline flags operator&(flags const f, flags const g)
|
|
|
|
{
|
|
|
|
return static_cast<flags>(int(f) & int(g));
|
|
|
|
}
|
|
|
|
|
2017-10-11 16:00:48 +00:00
|
|
|
inline flags operator~(flags const f)
|
|
|
|
{
|
|
|
|
return static_cast<flags>(~int(f));
|
|
|
|
}
|
|
|
|
|
2017-07-23 11:11:54 +00:00
|
|
|
} // namespace Update
|
2006-11-14 17:31:14 +00:00
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
#endif
|