diff options
Diffstat (limited to 'qt/ScintillaEditBase/PlatQt.h')
-rw-r--r-- | qt/ScintillaEditBase/PlatQt.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/qt/ScintillaEditBase/PlatQt.h b/qt/ScintillaEditBase/PlatQt.h index 3b74a1306..446e07ebb 100644 --- a/qt/ScintillaEditBase/PlatQt.h +++ b/qt/ScintillaEditBase/PlatQt.h @@ -31,7 +31,7 @@ namespace Scintilla { const char *CharacterSetID(int characterSet); -inline QColor QColorFromColourAlpha(ColourAlpha ca) +inline QColor QColorFromColourRGBA(ColourRGBA ca) { return QColor(ca.GetRed(), ca.GetGreen(), ca.GetBlue(), ca.GetAlpha()); } @@ -91,8 +91,8 @@ public: void Release() noexcept override; int Supports(int feature) noexcept override; bool Initialised() override; - void PenColour(ColourAlpha fore); - void PenColourWidth(ColourAlpha fore, XYPOSITION strokeWidth); + void PenColour(ColourRGBA fore); + void PenColourWidth(ColourRGBA fore, XYPOSITION strokeWidth); int LogPixelsY() override; int PixelDivisions() override; int DeviceHeightFont(int points) override; @@ -116,21 +116,21 @@ public: std::unique_ptr<IScreenLineLayout> Layout(const IScreenLine *screenLine) override; void DrawTextNoClip(PRectangle rc, const Font *font, XYPOSITION ybase, - std::string_view text, ColourAlpha fore, ColourAlpha back) override; + std::string_view text, ColourRGBA fore, ColourRGBA back) override; void DrawTextClipped(PRectangle rc, const Font *font, XYPOSITION ybase, - std::string_view text, ColourAlpha fore, ColourAlpha back) override; + std::string_view text, ColourRGBA fore, ColourRGBA back) override; void DrawTextTransparent(PRectangle rc, const Font *font, XYPOSITION ybase, - std::string_view text, ColourAlpha fore) override; + std::string_view text, ColourRGBA fore) override; void MeasureWidths(const Font *font, std::string_view text, XYPOSITION *positions) override; XYPOSITION WidthText(const Font *font, std::string_view text) override; void DrawTextNoClipUTF8(PRectangle rc, const Font *font_, XYPOSITION ybase, - std::string_view text, ColourAlpha fore, ColourAlpha back) override; + std::string_view text, ColourRGBA fore, ColourRGBA back) override; void DrawTextClippedUTF8(PRectangle rc, const Font *font_, XYPOSITION ybase, - std::string_view text, ColourAlpha fore, ColourAlpha back) override; + std::string_view text, ColourRGBA fore, ColourRGBA back) override; void DrawTextTransparentUTF8(PRectangle rc, const Font *font_, XYPOSITION ybase, - std::string_view text, ColourAlpha fore) override; + std::string_view text, ColourRGBA fore) override; void MeasureWidthsUTF8(const Font *font_, std::string_view text, XYPOSITION *positions) override; XYPOSITION WidthTextUTF8(const Font *font_, std::string_view text) override; @@ -146,7 +146,7 @@ public: void FlushCachedState() override; void FlushDrawing() override; - void BrushColour(ColourAlpha back); + void BrushColour(ColourRGBA back); void SetCodec(const Font *font); void SetFont(const Font *font); |