diff options
author | Neil <nyamatongwe@gmail.com> | 2021-08-31 07:52:37 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-08-31 07:52:37 +1000 |
commit | 88d5b792fb464097a07ccbc14996d0d144befb00 (patch) | |
tree | 175cb14363fbcc452b324164f2cf00b3ba0901f0 /src/ViewStyle.h | |
parent | c77e54ea73459a5280b7bb04f4131a61570ad193 (diff) | |
download | scintilla-mirror-88d5b792fb464097a07ccbc14996d0d144befb00.tar.gz |
Simplify Style types FontSpecification, FontMeasurements, Style, FontRealised.
Rely on shared_ptr and use standard copying where possible.
Check extraFontFlag and checkMonospaced for FontSpecification comparisons.
Diffstat (limited to 'src/ViewStyle.h')
-rw-r--r-- | src/ViewStyle.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ViewStyle.h b/src/ViewStyle.h index 843efc660..edebee7ce 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -28,16 +28,10 @@ public: */ -class FontRealised : public FontMeasurements { +class FontRealised { public: + FontMeasurements measurements; std::shared_ptr<Font> font; - FontRealised() noexcept; - // FontRealised objects can not be copied. - FontRealised(const FontRealised &) = delete; - FontRealised(FontRealised &&) = delete; - FontRealised &operator=(const FontRealised &) = delete; - FontRealised &operator=(FontRealised &&) = delete; - virtual ~FontRealised(); void Realise(Surface &surface, int zoomLevel, Scintilla::Technology technology, const FontSpecification &fs, const char *localeName); }; |