aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-23 09:11:03 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-23 09:11:03 +1100
commit2b892f992491481b73b4e14c3088416357821fdb (patch)
treefdcc747d3c6d872eb96ca5d7e2c4b1f44c044b01
parent38eb38d945e08b878d8680025e1cc7239a59afe4 (diff)
downloadscintilla-mirror-2b892f992491481b73b4e14c3088416357821fdb.tar.gz
Add colouralpha type to iface.
-rw-r--r--doc/ScintillaHistory.html3
-rw-r--r--include/Scintilla.iface3
-rw-r--r--qt/ScintillaEdit/WidgetGen.py3
3 files changed, 7 insertions, 2 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index b643dce10..d9cee1a7b 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -593,6 +593,9 @@
Add SCI_SUPPORTSFEATURE method to allow applications to determine which features are available
and to then choose workarounds for missing features like translucent drawing.
</li>
+ <li>
+ Add colouralpha type to Scintilla.iface for APIs that set both colour and transparency together as an RGBA value.
+ </li>
</ul>
<h3>
<a href="https://www.scintilla.org/scite500.zip">Release 5.0.0</a>
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index d386003e2..d910e8776 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -53,7 +53,8 @@
## bool -> integer, 1=true, 0=false
## position -> intptr_t position in a document
## line -> intptr_t line in a document
-## colour -> colour integer containing red, green and blue bytes.
+## colour -> colour integer containing red, green, and blue bytes.
+## colouralpha -> colour integer containing red, green, blue, and alpha bytes.
## string -> pointer to const character
## stringresult -> pointer to character, NULL-> return size of result
## cells -> pointer to array of cells, each cell containing a style byte and character byte
diff --git a/qt/ScintillaEdit/WidgetGen.py b/qt/ScintillaEdit/WidgetGen.py
index 0360ff166..62f8ec8e5 100644
--- a/qt/ScintillaEdit/WidgetGen.py
+++ b/qt/ScintillaEdit/WidgetGen.py
@@ -42,6 +42,7 @@ typeAliases = {
"line": "int",
"pointer": "int",
"colour": "int",
+ "colouralpha": "int",
"keymod": "int",
"string": "const char *",
"stringresult": "const char *",
@@ -57,7 +58,7 @@ def cppAlias(s):
return s
understoodTypes = ["", "void", "int", "bool", "position", "line", "pointer",
- "colour", "keymod", "string", "stringresult", "cells"]
+ "colour", "colouralpha", "keymod", "string", "stringresult", "cells"]
def understoodType(t):
return t in understoodTypes or Face.IsEnumeration(t)