aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Platform.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-20 09:31:02 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-20 09:31:02 +1100
commit7fe8bb0dba466798ca9efc448f772d37f360efe2 (patch)
tree9aab51a5f185e07d5ecc12ec35f3ccdf59c2f675 /src/Platform.h
parent6c56011f882cdfa758898029be5cabe82fc9228c (diff)
downloadscintilla-mirror-7fe8bb0dba466798ca9efc448f772d37f360efe2.tar.gz
Implement Stadium on all platforms except for Win32 GDI.
Diffstat (limited to 'src/Platform.h')
-rw-r--r--src/Platform.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Platform.h b/src/Platform.h
index 4c7b6523d..7f61967c3 100644
--- a/src/Platform.h
+++ b/src/Platform.h
@@ -179,6 +179,14 @@ public:
virtual void Init(SurfaceID sid, WindowID wid)=0;
virtual void InitPixMap(int width, int height, Surface *surface_, WindowID wid)=0;
+ enum class Ends {
+ semiCircles = 0x0,
+ leftFlat = 0x1,
+ leftAngle = 0x2,
+ rightFlat = 0x10,
+ rightAngle = 0x20,
+ };
+
virtual void Release() noexcept=0;
virtual int Supports(int feature) noexcept=0;
virtual bool Initialised()=0;
@@ -206,6 +214,7 @@ public:
virtual void DrawRGBAImage(PRectangle rc, int width, int height, const unsigned char *pixelsImage) = 0;
virtual void Ellipse(PRectangle rc, ColourDesired fore, ColourDesired back)=0;
virtual void Ellipse(PRectangle rc, FillStroke fillStroke)=0;
+ virtual void Stadium(PRectangle rc, FillStroke fillStroke, Ends ends)=0;
virtual void Copy(PRectangle rc, Point from, Surface &surfaceSource)=0;
virtual std::unique_ptr<IScreenLineLayout> Layout(const IScreenLine *screenLine) = 0;