From c54fa46c5a909f42f452ff4f56f5947efa763edc Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 29 Mar 2021 15:25:09 +1100 Subject: Add illustration of annotation shapes. Remove erroneous explanation of SCI_EOLANNOTATIONSETSTYLES as it was never implemented. --- doc/ScintillaDoc.html | 11 ++++++----- doc/StadiumVariants.png | Bin 0 -> 23919 bytes 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 doc/StadiumVariants.png (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index c23d89df7..14ae49586 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -3810,9 +3810,7 @@ struct Sci_TextToFind { The text argument is always in UTF-8, not the document encoding. To clear end of line annotations call SCI_EOLANNOTATIONSETTEXT with a NULL pointer. The whole of the text EOLANNOTATION on a line may be displayed in a particular style with - SCI_EOLANNOTATIONSETSTYLE or each character may be individually styled with - of the corresponding text byte similar to SCI_SETSTYLINGEX. The text must be set first as it - specifies how long the end of line annotation is so how many bytes of styling to read. + SCI_EOLANNOTATIONSETSTYLE. Setting an end of line annotation will cause a SC_MOD_CHANGEEOLANNOTATION notification to be sent. @@ -3932,14 +3930,17 @@ struct Sci_TextToFind { +

Different shapes available for EOL annotations. + Only one shape can currently be used for the whole document - this illustration was produced by trickery.

+

Different shapes available for EOL annotations

+

SCI_EOLANNOTATIONSETSTYLEOFFSET(int style)
SCI_EOLANNOTATIONGETSTYLEOFFSET → int
End of Line Annotation styles may be completely separated from standard text styles by setting a style offset. For example, SCI_EOLANNOTATIONSETSTYLEOFFSET(512) would allow the end of line annotation styles to be numbered from 512 up to 767 so they do not overlap styles set by lexers (or margins if margins offset is 256). - Each style number set with SCI_EOLANNOTATIONSETSTYLE - or SCI_EOLANNOTATIONSETSTYLES has the offset added before looking up the style. + Each style number set with SCI_EOLANNOTATIONSETSTYLE has the offset added before looking up the style.

Always call SCI_ALLOCATEEXTENDEDSTYLES diff --git a/doc/StadiumVariants.png b/doc/StadiumVariants.png new file mode 100644 index 000000000..14977a8e2 Binary files /dev/null and b/doc/StadiumVariants.png differ -- cgit v1.2.3