From 9162c73355b47219d24ddba152fe931fdfabbcfc Mon Sep 17 00:00:00 2001
From: nyamatongwe
+
+
@@ -550,6 +552,18 @@
The number of styling bits needed by the current lexer can be found with
.
SCI_RELEASEALLEXTENDEDSTYLES
+ SCI_ALLOCATEEXTENDEDSTYLES(int numberStyles)
+ Extended styles are used for features like textual margins and annotations as well as internally by Scintilla.
+ They are outside the range 0..255 used for the styles bytes associated with document bytes.
+ These functions manage the use of extended styles to ensures that components cooperate in defining styles.
+ SCI_RELEASEALLEXTENDEDSTYLES
releases any extended styles allocated by the container.
+ SCI_ALLOCATEEXTENDEDSTYLES
allocates a range of style numbers after the byte style values and returns
+ the number of the first allocated style.
+ Ranges for magin and annotation styles should be allocated before calling
+ or
+ .
Sci_TextRange and Sci_CharacterRange
These structures are defined to be exactly the same shape as the Win32 TEXTRANGE
and CHARRANGE
, so that older code that treats Scintilla as a RichEdit will
@@ -2968,6 +2982,10 @@ struct Sci_TextToFind {
256 upto 511 so they do not overlap styles set by lexers. Each style number set with SCI_MARGINSETSTYLE
or SCI_MARGINSETSTYLES
has the offset added before looking up the style.
+ Always call SCI_MARGINSETSTYLEOFFSET
and use the result as the argument to SCI_MARGINSETSTYLEOFFSET
.
+
SCI_SETMARGINOPTIONS(int marginOptions)
SCI_GETMARGINOPTIONS
@@ -3077,6 +3095,10 @@ struct Sci_TextToFind {
Each style number set with SCI_ANNOTATIONSETSTYLE
or SCI_ANNOTATIONSETSTYLES
has the offset added before looking up the style.
+ Always call SCI_ANNOTATIONSETSTYLEOFFSET
and use the result as the argument to SCI_ANNOTATIONSETSTYLEOFFSET
.
+
SCI_SETUSEPALETTE(bool
--
cgit v1.2.3