aboutsummaryrefslogtreecommitdiffhomepage
path: root/qt/ScintillaEditBase/PlatQt.cpp
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-25 09:20:08 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-25 09:20:08 +1100
commit20bb1c7c0f6931819745d9756ab14246c20c4e9f (patch)
treef7e10e6097b99c44a03a246b07eda940581445cd /qt/ScintillaEditBase/PlatQt.cpp
parentd3deaacf51e0d459c8025d6a411acf0bc8b17945 (diff)
downloadscintilla-mirror-20bb1c7c0f6931819745d9756ab14246c20c4e9f.tar.gz
Implement translucent FillRectangle.
Diffstat (limited to 'qt/ScintillaEditBase/PlatQt.cpp')
-rw-r--r--qt/ScintillaEditBase/PlatQt.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp
index a1adf0a0d..37fc409f7 100644
--- a/qt/ScintillaEditBase/PlatQt.cpp
+++ b/qt/ScintillaEditBase/PlatQt.cpp
@@ -319,6 +319,11 @@ void SurfaceImpl::FillRectangle(PRectangle rc, ColourDesired back)
GetPainter()->fillRect(QRectFFromPRect(rc), QColorFromCA(back));
}
+void SurfaceImpl::FillRectangle(PRectangle rc, Fill fill)
+{
+ GetPainter()->fillRect(QRectFFromPRect(rc), QColorFromColourAlpha(fill.colour));
+}
+
void SurfaceImpl::FillRectangle(PRectangle rc, Surface &surfacePattern)
{
// Tile pattern over rectangle