aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Platform.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-05-14 14:39:55 +1000
committerNeil <nyamatongwe@gmail.com>2018-05-14 14:39:55 +1000
commit3fe056899ac8ad4882f59e196aaa56cd31c2e547 (patch)
treedcbd61fefbf0dad1472713d890b7c9d6fc8d4814 /include/Platform.h
parentc4aa7826f3d2178e39e5bff2f6886d7d3d3f46d7 (diff)
downloadscintilla-mirror-3fe056899ac8ad4882f59e196aaa56cd31c2e547.tar.gz
Modernize Platform.h (4) - update Surface to use string_view for text arguments.
Diffstat (limited to 'include/Platform.h')
-rw-r--r--include/Platform.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/Platform.h b/include/Platform.h
index f50aca431..1b2b5f4b7 100644
--- a/include/Platform.h
+++ b/include/Platform.h
@@ -288,11 +288,11 @@ public:
virtual void Ellipse(PRectangle rc, ColourDesired fore, ColourDesired back)=0;
virtual void Copy(PRectangle rc, Point from, Surface &surfaceSource)=0;
- virtual void DrawTextNoClip(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore, ColourDesired back)=0;
- virtual void DrawTextClipped(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore, ColourDesired back)=0;
- virtual void DrawTextTransparent(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore)=0;
- virtual void MeasureWidths(Font &font_, const char *s, int len, XYPOSITION *positions)=0;
- virtual XYPOSITION WidthText(Font &font_, const char *s, int len)=0;
+ virtual void DrawTextNoClip(PRectangle rc, Font &font_, XYPOSITION ybase, std::string_view text, ColourDesired fore, ColourDesired back) = 0;
+ virtual void DrawTextClipped(PRectangle rc, Font &font_, XYPOSITION ybase, std::string_view text, ColourDesired fore, ColourDesired back) = 0;
+ virtual void DrawTextTransparent(PRectangle rc, Font &font_, XYPOSITION ybase, std::string_view text, ColourDesired fore) = 0;
+ virtual void MeasureWidths(Font &font_, std::string_view text, XYPOSITION *positions) = 0;
+ virtual XYPOSITION WidthText(Font &font_, std::string_view text) = 0;
virtual XYPOSITION Ascent(Font &font_)=0;
virtual XYPOSITION Descent(Font &font_)=0;
virtual XYPOSITION InternalLeading(Font &font_)=0;