diff options
author | mitchell <unknown> | 2018-05-25 17:44:28 -0400 |
---|---|---|
committer | mitchell <unknown> | 2018-05-25 17:44:28 -0400 |
commit | fba451a1d76be9b6945c9d5d7e219f7d7d1a4260 (patch) | |
tree | 0e1aa6f197c34e6c1a9782e264359c220ed014a7 /cocoa/PlatCocoa.h | |
parent | 9f00df4e57e917035d2f939ce70ccf2ee83a9725 (diff) | |
download | scintilla-mirror-fba451a1d76be9b6945c9d5d7e219f7d7d1a4260.tar.gz |
Backport: Add GradientRectangle method to Surface to draw rectangles with vertical or horizontal gradients.
Backport of changeset 6965:90c71d69e3b6.
Diffstat (limited to 'cocoa/PlatCocoa.h')
-rw-r--r-- | cocoa/PlatCocoa.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cocoa/PlatCocoa.h b/cocoa/PlatCocoa.h index 00b4ce2ae..c9b3a8355 100644 --- a/cocoa/PlatCocoa.h +++ b/cocoa/PlatCocoa.h @@ -96,6 +96,7 @@ public: void RoundedRectangle(PRectangle rc, ColourDesired fore, ColourDesired back) override; void AlphaRectangle(PRectangle rc, int cornerSize, ColourDesired fill, int alphaFill, ColourDesired outline, int alphaOutline, int flags) override; + void GradientRectangle(PRectangle rc, const std::vector<ColourStop> &stops, GradientOptions options) override; void DrawRGBAImage(PRectangle rc, int width, int height, const unsigned char *pixelsImage) override; void Ellipse(PRectangle rc, ColourDesired fore, ColourDesired back) override; void Copy(PRectangle rc, Scintilla::Point from, Surface &surfaceSource) override; |