From da22ff3bdcbe0aa02919f1b587173f96d43dacad Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 15 Feb 2003 03:22:51 +0000 Subject: Added new methods for 1.51: Two phase drawing, autocompletion images, line splitting, and SC_CP_DBCS. --- doc/ScintillaDoc.html | 48 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 2180c1142..a54545ca3 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -38,7 +38,7 @@

Scintilla Documentation

-

Last edited 24/Jan/2003 NH

+

Last edited 15/Feb/2003 NH

There is an overview of the internal design of Scintilla.
@@ -677,6 +677,7 @@ struct TextToFind { SCI_GETTARGETSTART
SCI_SETTARGETEND(int pos)
SCI_GETTARGETEND
+ SCI_TARGETFROMSELECTION
SCI_REPLACETARGET(int length, const char *text)
SCI_REPLACETARGETRE(int length, const char @@ -696,6 +697,9 @@ struct TextToFind { target rather than the first matching text. The target is also set by a successful SCI_SEARCHINTARGET.

+

SCI_TARGETFROMSELECTION
+ Set the target start and end to the start and end positions of the selection.

+

SCI_REPLACETARGET(int length, const char *text)
If length is -1, text is a zero terminated string, otherwise length sets the number of character to replace the target with. The return value @@ -2132,6 +2136,8 @@ struct TextToFind {
SCI_GETUSEPALETTE
SCI_SETBUFFEREDDRAW(bool isBuffered)
SCI_GETBUFFEREDDRAW
+ SCI_SETTWOPHASEDRAW
+ SCI_GETTWOPHASEDRAW
SCI_SETCODEPAGE(int codePage)
SCI_GETCODEPAGE
SCI_SETWORDCHARS(<unused>, const char @@ -2176,6 +2182,16 @@ struct TextToFind { bitmap to the screen. This avoids flickering although it does take longer. The default is for drawing to be buffered.

+

SCI_SETTWOPHASEDRAW(bool isBuffered)
+ SCI_GETTWOPHASEDRAW
+ Two phase drawing is a better but slower way of drawing text. + In single phase drawing each run of characters in one style is drawn along with its background. + If a character overhangs the end of a run, such as in "T." where the "T" is in a different style + from the ".", then this can cause the right hand side of the "T" to be overdrawn by the background of + the "." which cuts it off. Two phase drawing fixes this by drawing all the backgrounds first and then + drawing the text in transparent mode. Two phase drawing may flicker more than single phase + unless buffered drawing is on. The default is for drawing to be two phase.

+

SCI_SETCODEPAGE(int codePage)
SCI_GETCODEPAGE
Scintilla has some support for Japanese, Chinese and Korean DBCS. Use this message with @@ -2192,6 +2208,10 @@ struct TextToFind { horizontal space, such as Thai, will mostly work but there are some issues where the characters are drawn separately leading to visual glitches. Bi-directional text is not supported.

+

On GTK+, code page SC_CP_DBCS (1) sets Scintilla into + multi byte character mode as is required for Japanese language processing with + the EUC encoding.

+

For GTK+, the locale should be set to a Unicode locale with a call similar to setlocale(LC_CTYPE, "en_US.UTF-8"). Fonts with an "iso10646" registry should be used in a font set. Font sets are a comma separated list of partial font @@ -2748,6 +2768,10 @@ struct TextToFind { SCI_AUTOCSETDROPRESTOFWORD(bool dropRestOfWord)
SCI_AUTOCGETDROPRESTOFWORD
+ SCI_REGISTERIMAGE
+ SCI_CLEARREGISTEREDIMAGES
+ SCI_AUTOCSETTYPESEPARATOR(char separatorCharacter)
+ SCI_AUTOCGETTYPESEPARATOR

SCI_AUTOCSHOW(int lenEntered, const char *list)
@@ -2839,6 +2863,21 @@ struct TextToFind { When an item is selected, any word characters following the caret are first erased if dropRestOfWord is set true. The default is false.

+

+ SCI_REGISTERIMAGE(int type, const char *xpmData)
+ SCI_CLEARREGISTEREDIMAGES
+ SCI_AUTOCSETTYPESEPARATOR(char separatorCharacter)
+ SCI_AUTOCGETTYPESEPARATOR
+ + Autocompletion list items may display an image as well as text. Each image is first registered with an integer + type. Then this integer is included in the text of the list separated by a '?' from the text. For example, + "fclose?2 fopen" displays image 2 before the string "fclose" and no image before "fopen". + The images are in XPM format as is described for + SCI_MARKERDEFINEPIXMAP + The set of registered images can be cleared with SCI_CLEARREGISTEREDIMAGES and the '?' separator changed + with SCI_AUTOCSETTYPESEPARATOR. +

+

User lists

User lists use the same internal mechanisms as autocompletion lists, and all the calls @@ -3592,6 +3631,7 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ SCI_GETWRAPMODE
SCI_SETLAYOUTCACHE(int cacheMode)
SCI_GETLAYOUTCACHE
+ SCI_LINESSPLIT

By default, Scintilla does not wrap lines of text. If you enable line wrapping, lines wider @@ -3674,8 +3714,12 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){
-
+

SCI_LINESSPLIT(int pixelWidth)
+ Split a range of lines indicated by the target into lines that are at most pixelWidth wide. + Splitting occurs on word boundaries wherever possible in a similar manner to line wrapping. + When pixelWidth is 0 then the width of the window is used. +

Zooming

-- cgit v1.2.3