From 1da92e82c03b517c9c814fce343d86d382a90a0a Mon Sep 17 00:00:00 2001
From: Prakash Sahni
@@ -3725,6 +3727,99 @@ struct Sci_TextToFind {
before ○ Building Scintilla
+ ○ End of Line Annotations
+
SCI_ANNOTATIONSETSTYLEOFFSET and use the result as the argument to SCI_ANNOTATIONSETSTYLEOFFSET.
End of Line Annotations are read-only lines of text at the end of each line of editable text. + End of Line Annotations can be used to display an assembler version of code for debugging or to show diagnostic messages inline or to + line up different versions of text in a merge tool.
+ +End of Line Annotations used to display an assembler version of code for debugging
+
+ SCI_EOLANNOTATIONSETTEXT(line line, const char *text)
+ SCI_EOLANNOTATIONGETTEXT(line line, char *text) → int
+ SCI_EOLANNOTATIONSETSTYLE(line line, int style)
+ SCI_EOLANNOTATIONGETSTYLE(line line) → int
+ SCI_EOLANNOTATIONCLEARALL
+ SCI_EOLANNOTATIONSETVISIBLE(int visible)
+ SCI_EOLANNOTATIONGETVISIBLE → int
+ SCI_EOLANNOTATIONSETSTYLEOFFSET(int style)
+ SCI_EOLANNOTATIONGETSTYLEOFFSET → int
+
+
+
+ SCI_EOLANNOTATIONSETTEXT(line line, const char *text)
+ SCI_EOLANNOTATIONGETTEXT(line line, char *text) → int
+ SCI_EOLANNOTATIONSETSTYLE(line line, int style)
+ SCI_EOLANNOTATIONGETSTYLE(line line) → int
+ SCI_EOLANNOTATIONCLEARALL
+ A different string may be set for each line with SCI_EOLANNOTATIONSETTEXT.
+ 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.
+ Setting an end of line annotation will cause a
+
+ notification to be sent.
+
+ All the lines can be cleared of end of line annotations with SCI_EOLANNOTATIONCLEARALL
+ which is equivalent to clearing each line (setting to 0) and then deleting other memory used for this feature.
+
+ Only some style attributes are active in end of line annotations: font, size/sizeFractional, bold/weight, italics, fore, back, and characterSet. +
+
+ SCI_EOLANNOTATIONSETVISIBLE(int visible)
+ SCI_EOLANNOTATIONGETVISIBLE → int
+ End of Line Annotations can be made visible in a view and there is a choice of display style when visible.
+ The two messages set and get the annotation display mode. The visible
+ argument can be one of:
EOLANNOTATION_HIDDEN |
+
+ 0 | + +End of Line Annotations are not displayed. | +
|---|---|---|
EOLANNOTATION_STANDARD |
+
+ 1 | + +End of Line Annotations are drawn left justified with no adornment. | +
EOLANNOTATION_BOXED |
+
+ 2 | + +End of Line Annotations are indented to match the text and are surrounded by a box. | +
+ 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.
+
+ Always call SCI_ALLOCATEEXTENDEDSTYLES
+ before SCI_EOLANNOTATIONSETSTYLEOFFSET and use the result as the argument to SCI_EOLANNOTATIONSETSTYLEOFFSET.
+
SCI_SETBUFFEREDDRAW(bool buffered)
--
cgit v1.2.3