diff options
author | Neil <nyamatongwe@gmail.com> | 2021-05-24 19:31:06 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-05-24 19:31:06 +1000 |
commit | 92290868cf9753d2df0d494cb44e2ff62a570b58 (patch) | |
tree | 001e6cfce84372a03997de3138d630751ee8d38a /src/Geometry.h | |
parent | ee1886079d0a5cd350ee8e3379be347943ba93ae (diff) | |
download | scintilla-mirror-92290868cf9753d2df0d494cb44e2ff62a570b58.tar.gz |
Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.h
and ScintillaStructures.h using scoped enumerations.
Use these headers instead of Scintilla.h internally.
External definitions go in the Scintilla namespace and internal definitio0ns in
Scintilla::Internal.
Diffstat (limited to 'src/Geometry.h')
-rw-r--r-- | src/Geometry.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/Geometry.h b/src/Geometry.h index 40289dc89..e471bdfc0 100644 --- a/src/Geometry.h +++ b/src/Geometry.h @@ -8,17 +8,11 @@ #ifndef GEOMETRY_H #define GEOMETRY_H -namespace Scintilla { +namespace Scintilla::Internal { typedef double XYPOSITION; typedef double XYACCUMULATOR; -// Test if an enum class value has the bit flag(s) of test set. -template <typename T> -constexpr bool FlagSet(T value, T test) { - return (static_cast<int>(value) & static_cast<int>(test)) == static_cast<int>(test); -} - /** * A geometric point class. * Point is similar to the Win32 POINT and GTK+ GdkPoint types. |