aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-19 16:15:16 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-19 16:15:16 +1100
commit8b8a02b4bd250d28bc0f42287ca3d167b7210f39 (patch)
treed8d42a94f5abdaf1247db4fc5bf766c9a72cfbe9 /src
parent09534ab81f72ce766c8d13ea13216dd589d41a1c (diff)
downloadscintilla-mirror-8b8a02b4bd250d28bc0f42287ca3d167b7210f39.tar.gz
UTF-8 text drawing and measurement.
Move SurfaceGDI::WidthText to match declaration order.
Diffstat (limited to 'src')
-rw-r--r--src/Platform.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Platform.h b/src/Platform.h
index 3333d3d4c..45c04abdc 100644
--- a/src/Platform.h
+++ b/src/Platform.h
@@ -208,6 +208,13 @@ public:
virtual void DrawTextTransparent(PRectangle rc, const Font *font_, XYPOSITION ybase, std::string_view text, ColourDesired fore) = 0;
virtual void MeasureWidths(const Font *font_, std::string_view text, XYPOSITION *positions) = 0;
virtual XYPOSITION WidthText(const Font *font_, std::string_view text) = 0;
+
+ virtual void DrawTextNoClipUTF8(PRectangle rc, const Font *font_, XYPOSITION ybase, std::string_view text, ColourDesired fore, ColourDesired back) = 0;
+ virtual void DrawTextClippedUTF8(PRectangle rc, const Font *font_, XYPOSITION ybase, std::string_view text, ColourDesired fore, ColourDesired back) = 0;
+ virtual void DrawTextTransparentUTF8(PRectangle rc, const Font *font_, XYPOSITION ybase, std::string_view text, ColourDesired fore) = 0;
+ virtual void MeasureWidthsUTF8(const Font *font_, std::string_view text, XYPOSITION *positions) = 0;
+ virtual XYPOSITION WidthTextUTF8(const Font *font_, std::string_view text) = 0;
+
virtual XYPOSITION Ascent(const Font *font_)=0;
virtual XYPOSITION Descent(const Font *font_)=0;
virtual XYPOSITION InternalLeading(const Font *font_)=0;