aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/EditView.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-05-24 19:31:06 +1000
committerNeil <nyamatongwe@gmail.com>2021-05-24 19:31:06 +1000
commit92290868cf9753d2df0d494cb44e2ff62a570b58 (patch)
tree001e6cfce84372a03997de3138d630751ee8d38a /src/EditView.h
parentee1886079d0a5cd350ee8e3379be347943ba93ae (diff)
downloadscintilla-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/EditView.h')
-rw-r--r--src/EditView.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/EditView.h b/src/EditView.h
index f936a8a56..148d6e52d 100644
--- a/src/EditView.h
+++ b/src/EditView.h
@@ -8,12 +8,12 @@
#ifndef EDITVIEW_H
#define EDITVIEW_H
-namespace Scintilla {
+namespace Scintilla::Internal {
struct PrintParameters {
int magnification;
- int colourMode;
- WrapMode wrapState;
+ Scintilla::PrintOption colourMode;
+ Scintilla::Wrap wrapState;
PrintParameters() noexcept;
};
@@ -66,8 +66,7 @@ public:
* In multiPhaseDraw mode, drawing is performed in multiple phases with each phase drawing
* one feature over the whole drawing area, instead of within one line. This allows text to
* overlap from one line to the next. */
- enum class PhasesDraw { one, two, multiple };
- PhasesDraw phasesDraw;
+ Scintilla::PhasesDraw phasesDraw;
int lineWidthMaxSeen;
@@ -154,7 +153,7 @@ public:
const ViewStyle &vsDraw);
void FillLineRemainder(Surface *surface, const EditModel &model, const ViewStyle &vsDraw, const LineLayout *ll,
Sci::Line line, PRectangle rcArea, int subLine) const;
- Sci::Position FormatRange(bool draw, const Sci_RangeToFormat *pfr, Surface *surface, Surface *surfaceMeasure,
+ Sci::Position FormatRange(bool draw, const Scintilla::RangeToFormat *pfr, Surface *surface, Surface *surfaceMeasure,
const EditModel &model, const ViewStyle &vs);
};