diff options
author | A-R-C-A <unknown> | 2016-09-23 18:07:56 +1000 |
---|---|---|
committer | A-R-C-A <unknown> | 2016-09-23 18:07:56 +1000 |
commit | fdb8953cdffa47ff9f13f1cc173e1cb2df191019 (patch) | |
tree | 376de5daa3f3ea982434f9237b732274179ca6a7 /src/Editor.cxx | |
parent | bb4c51c3f14a3d38b5568e4f12ecfa32b4ec826e (diff) | |
download | scintilla-mirror-fdb8953cdffa47ff9f13f1cc173e1cb2df191019.tar.gz |
EDGE_MULTILINE and SCI_MULTIEDGEADDLINE added to allow displaying multiple
vertical edges simultaneously.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 12ec73239..beec634d3 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -7433,10 +7433,10 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { return vs.zoomLevel; case SCI_GETEDGECOLUMN: - return vs.theEdge; + return vs.theEdge.column; case SCI_SETEDGECOLUMN: - vs.theEdge = static_cast<int>(wParam); + vs.theEdge.column = static_cast<int>(wParam); InvalidateStyleRedraw(); break; @@ -7449,10 +7449,20 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { break; case SCI_GETEDGECOLOUR: - return vs.edgecolour.AsLong(); + return vs.theEdge.colour.AsLong(); case SCI_SETEDGECOLOUR: - vs.edgecolour = ColourDesired(static_cast<long>(wParam)); + vs.theEdge.colour = ColourDesired(static_cast<long>(wParam)); + InvalidateStyleRedraw(); + break; + + case SCI_MULTIEDGEADDLINE: + vs.theMultiEdge.push_back(EdgeProperties(wParam, lParam)); + InvalidateStyleRedraw(); + break; + + case SCI_MULTIEDGECLEARALL: + std::vector<EdgeProperties>().swap(vs.theMultiEdge); // Free vector and memory, C++03 compatible InvalidateStyleRedraw(); break; |