10 skipped lines |
11 | | 11 | | #ifndef SCINTILLA_H |
|
12 | | 12 | | #define SCINTILLA_H |
|
|
14 | | #ifdef PLAT_WIN | | 14 | | #if LCCWIN |
| | 15 | | typedef BOOL bool; |
| | 16 | | #endif |
| | 17 | | |
|
16 | | 19 | | // Return false on failure: |
|
17 | | 20 | | bool Scintilla_RegisterClasses(void *hInstance); |
|
18 | | 21 | | bool Scintilla_ReleaseResources(); |
|
|
20 | | #endif | | |
21 | | 23 | | int Scintilla_LinkLexers(); |
|
|
23 | | 25 | | // Here should be placed typedefs for uptr_t, an unsigned integer type large enough to |
|
24 | | 26 | | // hold a pointer and sptr_t, a signed integer large enough to hold a pointer. |
|
25 | | 27 | | // May need to be changed for 64 bit platforms. |
|
26 | | #ifdef _MSC_VER | | |
27 | | 28 | | #if _MSC_VER >= 1300 |
|
28 | | 29 | | #include <BaseTsd.h> |
|
|
30 | | #endif | | |
31 | | 31 | | #ifdef MAXULONG_PTR |
|
32 | | 32 | | typedef ULONG_PTR uptr_t; |
|
33 | | 33 | | typedef LONG_PTR sptr_t; |
|
83 skipped lines |
117 | | 117 | | #define SC_MARK_DOTDOTDOT 23 |
|
118 | | 118 | | #define SC_MARK_ARROWS 24 |
|
119 | | 119 | | #define SC_MARK_PIXMAP 25 |
|
| | 120 | | #define SC_MARK_FULLRECT 26 |
120 | | 121 | | #define SC_MARK_CHARACTER 10000 |
|
121 | | 122 | | #define SC_MARKNUM_FOLDEREND 25 |
|
122 | | 123 | | #define SC_MARKNUM_FOLDEROPENMID 26 |
|
13 skipped lines |
136 | | 137 | | #define SCI_MARKERNEXT 2047 |
|
137 | | 138 | | #define SCI_MARKERPREVIOUS 2048 |
|
138 | | 139 | | #define SCI_MARKERDEFINEPIXMAP 2049 |
|
| | 140 | | #define SCI_MARKERADDSET 2466 |
139 | | 141 | | #define SC_MARGIN_SYMBOL 0 |
|
140 | | 142 | | #define SC_MARGIN_NUMBER 1 |
|
141 | | 143 | | #define SCI_SETMARGINTYPEN 2240 |
|
23 skipped lines |
165 | | 167 | | #define SC_CHARSET_MAC 77 |
|
166 | | 168 | | #define SC_CHARSET_OEM 255 |
|
167 | | 169 | | #define SC_CHARSET_RUSSIAN 204 |
|
| | 170 | | #define SC_CHARSET_CYRILLIC 1251 |
168 | | 171 | | #define SC_CHARSET_SHIFTJIS 128 |
|
169 | | 172 | | #define SC_CHARSET_SYMBOL 2 |
|
170 | | 173 | | #define SC_CHARSET_TURKISH 162 |
|
2 skipped lines |
173 | | 176 | | #define SC_CHARSET_ARABIC 178 |
|
174 | | 177 | | #define SC_CHARSET_VIETNAMESE 163 |
|
175 | | 178 | | #define SC_CHARSET_THAI 222 |
|
| | 179 | | #define SC_CHARSET_8859_15 1000 |
176 | | 180 | | #define SCI_STYLECLEARALL 2050 |
|
177 | | 181 | | #define SCI_STYLESETFORE 2051 |
|
178 | | 182 | | #define SCI_STYLESETBACK 2052 |
|
76 skipped lines |
255 | | 259 | | #define SCI_CLEARREGISTEREDIMAGES 2408 |
|
256 | | 260 | | #define SCI_AUTOCGETTYPESEPARATOR 2285 |
|
257 | | 261 | | #define SCI_AUTOCSETTYPESEPARATOR 2286 |
|
| | 262 | | #define SCI_AUTOCSETMAXWIDTH 2208 |
| | 263 | | #define SCI_AUTOCGETMAXWIDTH 2209 |
| | 264 | | #define SCI_AUTOCSETMAXHEIGHT 2210 |
| | 265 | | #define SCI_AUTOCGETMAXHEIGHT 2211 |
258 | | 266 | | #define SCI_SETINDENT 2122 |
|
259 | | 267 | | #define SCI_GETINDENT 2123 |
|
260 | | 268 | | #define SCI_SETUSETABS 2124 |
|
91 skipped lines |
352 | | 360 | | #define SCI_CALLTIPSETFOREHLT 2207 |
|
353 | | 361 | | #define SCI_VISIBLEFROMDOCLINE 2220 |
|
354 | | 362 | | #define SCI_DOCLINEFROMVISIBLE 2221 |
|
| | 363 | | #define SCI_WRAPCOUNT 2235 |
355 | | 364 | | #define SC_FOLDLEVELBASE 0x400 |
|
356 | | 365 | | #define SC_FOLDLEVELWHITEFLAG 0x1000 |
|
357 | | 366 | | #define SC_FOLDLEVELHEADERFLAG 0x2000 |
|
32 skipped lines |
390 | | 399 | | #define SCI_WORDENDPOSITION 2267 |
|
391 | | 400 | | #define SC_WRAP_NONE 0 |
|
392 | | 401 | | #define SC_WRAP_WORD 1 |
|
| | 402 | | #define SC_WRAP_CHAR 2 |
393 | | 403 | | #define SCI_SETWRAPMODE 2268 |
|
394 | | 404 | | #define SCI_GETWRAPMODE 2269 |
|
395 | | 405 | | #define SC_WRAPVISUALFLAG_NONE 0x0000 |
|
195 skipped lines |
591 | | 601 | | #define SCI_SETLENGTHFORENCODE 2448 |
|
592 | | 602 | | #define SCI_ENCODEDFROMUTF8 2449 |
|
593 | | 603 | | #define SCI_FINDCOLUMN 2456 |
|
| | 604 | | #define SCI_GETCARETSTICKY 2457 |
| | 605 | | #define SCI_SETCARETSTICKY 2458 |
| | 606 | | #define SCI_TOGGLECARETSTICKY 2459 |
| | 607 | | #define SCI_SETPASTECONVERTENDINGS 2467 |
| | 608 | | #define SCI_GETPASTECONVERTENDINGS 2468 |
| | 609 | | #define SCI_SELECTIONDUPLICATE 2469 |
594 | | 610 | | #define SCI_STARTRECORD 3001 |
|
595 | | 611 | | #define SCI_STOPRECORD 3002 |
|
596 | | 612 | | #define SCI_SETLEXER 4001 |
|
4 skipped lines |
601 | | 617 | | #define SCI_SETKEYWORDS 4005 |
|
602 | | 618 | | #define SCI_SETLEXERLANGUAGE 4006 |
|
603 | | 619 | | #define SCI_LOADLEXERLIBRARY 4007 |
|
| | 620 | | #define SCI_GETPROPERTY 4008 |
| | 621 | | #define SCI_GETPROPERTYEXPANDED 4009 |
| | 622 | | #define SCI_GETPROPERTYINT 4010 |
| | 623 | | #define SCI_GETSTYLEBITSNEEDED 4011 |
604 | | 624 | | #define SC_MOD_INSERTTEXT 0x1 |
|
605 | | 625 | | #define SC_MOD_DELETETEXT 0x2 |
|
606 | | 626 | | #define SC_MOD_CHANGESTYLE 0x4 |
|
1 skipped line |
608 | | 628 | | #define SC_PERFORMED_USER 0x10 |
|
609 | | 629 | | #define SC_PERFORMED_UNDO 0x20 |
|
610 | | 630 | | #define SC_PERFORMED_REDO 0x40 |
|
| | 631 | | #define SC_MULTISTEPUNDOREDO 0x80 |
611 | | 632 | | #define SC_LASTSTEPINUNDOREDO 0x100 |
|
612 | | 633 | | #define SC_MOD_CHANGEMARKER 0x200 |
|
613 | | 634 | | #define SC_MOD_BEFOREINSERT 0x400 |
|
614 | | 635 | | #define SC_MOD_BEFOREDELETE 0x800 |
|
| | 636 | | #define SC_MULTILINEUNDOREDO 0x1000 |
615 | | #define SC_MODEVENTMASKALL 0xF77 | | 637 | | #define SC_MODEVENTMASKALL 0x1FFF |
616 | | 638 | | #define SCEN_CHANGE 768 |
|
617 | | 639 | | #define SCEN_SETFOCUS 512 |
|
618 | | 640 | | #define SCEN_KILLFOCUS 256 |
|
14 skipped lines |
633 | | 655 | | #define SCK_ADD 310 |
|
634 | | 656 | | #define SCK_SUBTRACT 311 |
|
635 | | 657 | | #define SCK_DIVIDE 312 |
|
| | 658 | | #define SCMOD_NORM 0 |
636 | | 659 | | #define SCMOD_SHIFT 1 |
|
637 | | 660 | | #define SCMOD_CTRL 2 |
|
638 | | 661 | | #define SCMOD_ALT 4 |
|
18 skipped lines |
657 | | 680 | | #define SCN_HOTSPOTCLICK 2019 |
|
658 | | 681 | | #define SCN_HOTSPOTDOUBLECLICK 2020 |
|
659 | | 682 | | #define SCN_CALLTIPCLICK 2021 |
|
| | 683 | | #define SCN_AUTOCSELECTION 2022 |
660 | | 684 | | //--Autogenerated -- end of section automatically generated from Scintilla.iface |
|
|
662 | | 686 | | // These structures are defined to be exactly the same shape as the Win32 |
|
32 skipped lines |
|
|
697 | | 721 | | struct NotifyHeader { |
|
| | 722 | | // Compatible with Windows NMHDR. |
698 | | // hwndFrom is really an environment specifc window handle or pointer | | 723 | | // hwndFrom is really an environment specific window handle or pointer |
699 | | 724 | | // but most clients of Scintilla.h do not have this type visible. |
|
700 | | //WindowID hwndFrom; | | |
|
702 | | unsigned int idFrom; | | 726 | | uptr_t idFrom; |
703 | | 727 | | unsigned int code; |
|
|
|
3 skipped lines |
709 | | 733 | | int ch; // SCN_CHARADDED, SCN_KEY |
|
710 | | 734 | | int modifiers; // SCN_KEY |
|
711 | | 735 | | int modificationType; // SCN_MODIFIED |
|
712 | | const char *text; // SCN_MODIFIED | | 736 | | const char *text; // SCN_MODIFIED, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION |
713 | | 737 | | int length; // SCN_MODIFIED |
|
714 | | 738 | | int linesAdded; // SCN_MODIFIED |
|
715 | | 739 | | int message;// SCN_MACRORECORD |
|
29 skipped lines |