aboutsummaryrefslogtreecommitdiffhomepage
path: root/qt/ScintillaEditBase/PlatQt.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-25 10:07:29 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-25 10:07:29 +1100
commit6ca286d41a1ca8e6d948d131fdaaf8b8199c905e (patch)
tree417cd9fa371dac8432198aed2005a96ae6f3a6c3 /qt/ScintillaEditBase/PlatQt.h
parent216fca2d218c3e0dcb5cdb4273cfb609da06cbd2 (diff)
downloadscintilla-mirror-6ca286d41a1ca8e6d948d131fdaaf8b8199c905e.tar.gz
Use FillStroke for parameters to Polygon, RectangleDraw, RoundedRectangle, and
Ellipse.
Diffstat (limited to 'qt/ScintillaEditBase/PlatQt.h')
-rw-r--r--qt/ScintillaEditBase/PlatQt.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/qt/ScintillaEditBase/PlatQt.h b/qt/ScintillaEditBase/PlatQt.h
index 257dbda56..12f3e7726 100644
--- a/qt/ScintillaEditBase/PlatQt.h
+++ b/qt/ScintillaEditBase/PlatQt.h
@@ -62,6 +62,11 @@ inline Point PointFromQPoint(QPoint qp)
return Point(qp.x(), qp.y());
}
+inline QPointF QPointFFromPoint(Point qp)
+{
+ return QPointF(qp.x, qp.y);
+}
+
constexpr PRectangle RectangleInset(PRectangle rc, XYPOSITION delta) noexcept {
return PRectangle(rc.left + delta, rc.top + delta, rc.right - delta, rc.bottom - delta);
}
@@ -93,6 +98,7 @@ public:
int Supports(int feature) noexcept override;
bool Initialised() override;
void PenColour(ColourDesired fore) override;
+ void PenColourWidth(ColourAlpha fore, XYPOSITION strokeWidth);
int LogPixelsY() override;
int PixelDivisions() override;
int DeviceHeightFont(int points) override;
@@ -100,13 +106,16 @@ public:
void LineTo(int x_, int y_) override;
void Polygon(Point *pts, size_t npts, ColourDesired fore,
ColourDesired back) override;
+ void Polygon(const Point *pts, size_t npts, FillStroke fillStroke) override;
void RectangleDraw(PRectangle rc, ColourDesired fore,
ColourDesired back) override;
+ void RectangleDraw(PRectangle rc, FillStroke fillStroke) override;
void FillRectangle(PRectangle rc, ColourDesired back) override;
void FillRectangle(PRectangle rc, Fill fill) override;
void FillRectangle(PRectangle rc, Surface &surfacePattern) override;
void RoundedRectangle(PRectangle rc, ColourDesired fore,
ColourDesired back) override;
+ void RoundedRectangle(PRectangle rc, FillStroke fillStroke) override;
void AlphaRectangle(PRectangle rc, int cornerSize, ColourDesired fill,
int alphaFill, ColourDesired outline, int alphaOutline, int flags) override;
void AlphaRectangle(PRectangle rc, XYPOSITION cornerSize, FillStroke fillStroke) override;
@@ -115,6 +124,7 @@ public:
const unsigned char *pixelsImage) override;
void Ellipse(PRectangle rc, ColourDesired fore,
ColourDesired back) override;
+ void Ellipse(PRectangle rc, FillStroke fillStroke) override;
void Copy(PRectangle rc, Point from, Surface &surfaceSource) override;
std::unique_ptr<IScreenLineLayout> Layout(const IScreenLine *screenLine) override;
@@ -155,6 +165,7 @@ public:
void SetBidiR2L(bool bidiR2L_) override;
void BrushColour(ColourDesired back);
+ void BrushColour(ColourAlpha back);
void SetCodec(const Font *font);
void SetFont(const Font *font);