1
// Scintilla source code edit control
1
/* Scintilla source code edit control */
2
2
/** @file Scintilla.h
3
3
** Interface to the edit control.
5
// Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
6
// The License.txt file describes the conditions under which this software may be distributed.
5
/* Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
6
* The License.txt file describes the conditions under which this software may be distributed.
8
// Most of this file is automatically generated from the Scintilla.iface interface definition
9
// file which contains any comments about the definitions. HFacer.py does the generation.
8
* Most of this file is automatically generated from the Scintilla.iface interface definition
9
* file which contains any comments about the definitions. HFacer.py does the generation. */
11
11
#ifndef SCINTILLA_H
12
12
#define SCINTILLA_H
19
// Return false on failure:
19
/* Return false on failure: */
20
20
bool Scintilla_RegisterClasses(void *hInstance);
21
21
bool Scintilla_ReleaseResources();
23
23
int Scintilla_LinkLexers();
25
// Here should be placed typedefs for uptr_t, an unsigned integer type large enough to
26
// hold a pointer and sptr_t, a signed integer large enough to hold a pointer.
27
// May need to be changed for 64 bit platforms.
25
/* Here should be placed typedefs for uptr_t, an unsigned integer type large enough to
26
* hold a pointer and sptr_t, a signed integer large enough to hold a pointer.
27
* May need to be changed for 64 bit platforms. */
28
28
#if _MSC_VER >= 1300
29
29
#include <BaseTsd.h>
39
39
typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam);
41
//++Autogenerated -- start of section automatically generated from Scintilla.iface
41
/* ++Autogenerated -- start of section automatically generated from Scintilla.iface */
42
42
#define INVALID_POSITION -1
43
43
#define SCI_START 2000
44
44
#define SCI_OPTIONAL_START 3000
118
118
#define SC_MARK_ARROWS 24
119
119
#define SC_MARK_PIXMAP 25
120
120
#define SC_MARK_FULLRECT 26
121
#define SC_MARK_LEFTRECT 27
121
122
#define SC_MARK_CHARACTER 10000
122
123
#define SC_MARKNUM_FOLDEREND 25
123
124
#define SC_MARKNUM_FOLDEROPENMID 26
194
195
#define SC_CASE_MIXED 0
195
196
#define SC_CASE_UPPER 1
196
197
#define SC_CASE_LOWER 2
198
#define SCI_STYLEGETFORE 2481
199
#define SCI_STYLEGETBACK 2482
200
#define SCI_STYLEGETBOLD 2483
201
#define SCI_STYLEGETITALIC 2484
202
#define SCI_STYLEGETSIZE 2485
203
#define SCI_STYLEGETFONT 2486
204
#define SCI_STYLEGETEOLFILLED 2487
205
#define SCI_STYLEGETUNDERLINE 2488
206
#define SCI_STYLEGETCASE 2489
207
#define SCI_STYLEGETCHARACTERSET 2490
208
#define SCI_STYLEGETVISIBLE 2491
209
#define SCI_STYLEGETCHANGEABLE 2492
210
#define SCI_STYLEGETHOTSPOT 2493
197
211
#define SCI_STYLESETCASE 2060
198
212
#define SCI_STYLESETCHARACTERSET 2066
199
213
#define SCI_STYLESETHOTSPOT 2409
201
215
#define SCI_SETSELBACK 2068
202
216
#define SCI_GETSELALPHA 2477
203
217
#define SCI_SETSELALPHA 2478
218
#define SCI_GETSELEOLFILLED 2479
219
#define SCI_SETSELEOLFILLED 2480
204
220
#define SCI_SETCARETFORE 2069
205
221
#define SCI_ASSIGNCMDKEY 2070
206
222
#define SCI_CLEARCMDKEY 2071
229
246
#define SCI_INDICGETSTYLE 2081
230
247
#define SCI_INDICSETFORE 2082
231
248
#define SCI_INDICGETFORE 2083
249
#define SCI_INDICSETUNDER 2510
250
#define SCI_INDICGETUNDER 2511
232
251
#define SCI_SETWHITESPACEFORE 2084
233
252
#define SCI_SETWHITESPACEBACK 2085
234
253
#define SCI_SETSTYLEBITS 2090
280
299
#define SCI_GETCOLUMN 2129
281
300
#define SCI_SETHSCROLLBAR 2130
282
301
#define SCI_GETHSCROLLBAR 2131
304
#define SC_IV_LOOKFORWARD 2
305
#define SC_IV_LOOKBOTH 3
283
306
#define SCI_SETINDENTATIONGUIDES 2132
284
307
#define SCI_GETINDENTATIONGUIDES 2133
285
308
#define SCI_SETHIGHLIGHTGUIDE 2134
430
453
#define SCI_GETLAYOUTCACHE 2273
431
454
#define SCI_SETSCROLLWIDTH 2274
432
455
#define SCI_GETSCROLLWIDTH 2275
456
#define SCI_SETSCROLLWIDTHTRACKING 2516
457
#define SCI_GETSCROLLWIDTHTRACKING 2517
433
458
#define SCI_TEXTWIDTH 2276
434
459
#define SCI_SETENDATLASTLINE 2277
435
460
#define SCI_GETENDATLASTLINE 2278
566
592
#define SCI_SETPRINTWRAPMODE 2406
567
593
#define SCI_GETPRINTWRAPMODE 2407
568
594
#define SCI_SETHOTSPOTACTIVEFORE 2410
595
#define SCI_GETHOTSPOTACTIVEFORE 2494
569
596
#define SCI_SETHOTSPOTACTIVEBACK 2411
597
#define SCI_GETHOTSPOTACTIVEBACK 2495
570
598
#define SCI_SETHOTSPOTACTIVEUNDERLINE 2412
599
#define SCI_GETHOTSPOTACTIVEUNDERLINE 2496
571
600
#define SCI_SETHOTSPOTSINGLELINE 2421
601
#define SCI_GETHOTSPOTSINGLELINE 2497
572
602
#define SCI_PARADOWN 2413
573
603
#define SCI_PARADOWNEXTEND 2414
574
604
#define SCI_PARAUP 2415
620
650
#define SC_ALPHA_NOALPHA 256
621
651
#define SCI_SETCARETLINEBACKALPHA 2470
622
652
#define SCI_GETCARETLINEBACKALPHA 2471
653
#define CARETSTYLE_INVISIBLE 0
654
#define CARETSTYLE_LINE 1
655
#define CARETSTYLE_BLOCK 2
656
#define SCI_SETCARETSTYLE 2512
657
#define SCI_GETCARETSTYLE 2513
658
#define SCI_SETINDICATORCURRENT 2500
659
#define SCI_GETINDICATORCURRENT 2501
660
#define SCI_SETINDICATORVALUE 2502
661
#define SCI_GETINDICATORVALUE 2503
662
#define SCI_INDICATORFILLRANGE 2504
663
#define SCI_INDICATORCLEARRANGE 2505
664
#define SCI_INDICATORALLONFOR 2506
665
#define SCI_INDICATORVALUEAT 2507
666
#define SCI_INDICATORSTART 2508
667
#define SCI_INDICATOREND 2509
668
#define SCI_SETPOSITIONCACHE 2514
669
#define SCI_GETPOSITIONCACHE 2515
670
#define SCI_COPYALLOWLINE 2519
623
671
#define SCI_STARTRECORD 3001
624
672
#define SCI_STOPRECORD 3002
625
673
#define SCI_SETLEXER 4001
647
695
#define SC_MOD_BEFOREINSERT 0x400
648
696
#define SC_MOD_BEFOREDELETE 0x800
649
697
#define SC_MULTILINEUNDOREDO 0x1000
650
#define SC_MODEVENTMASKALL 0x1FFF
698
#define SC_STARTACTION 0x2000
699
#define SC_MOD_CHANGEINDICATOR 0x4000
700
#define SC_MOD_CHANGELINESTATE 0x8000
701
#define SC_MODEVENTMASKALL 0xFFFF
651
702
#define SCEN_CHANGE 768
652
703
#define SCEN_SETFOCUS 512
653
704
#define SCEN_KILLFOCUS 256
694
748
#define SCN_HOTSPOTDOUBLECLICK 2020
695
749
#define SCN_CALLTIPCLICK 2021
696
750
#define SCN_AUTOCSELECTION 2022
697
//--Autogenerated -- end of section automatically generated from Scintilla.iface
699
// These structures are defined to be exactly the same shape as the Win32
700
// CHARRANGE, TEXTRANGE, FINDTEXTEX, FORMATRANGE, and NMHDR structs.
701
// So older code that treats Scintilla as a RichEdit will work.
751
#define SCN_INDICATORCLICK 2023
752
#define SCN_INDICATORRELEASE 2024
753
/*--Autogenerated -- end of section automatically generated from Scintilla.iface */
755
/* These structures are defined to be exactly the same shape as the Win32
756
* CHARRANGE, TEXTRANGE, FINDTEXTEX, FORMATRANGE, and NMHDR structs.
757
* So older code that treats Scintilla as a RichEdit will work. */
760
namespace Scintilla {
703
763
struct CharacterRange {
743
803
struct SCNotification {
744
804
struct NotifyHeader nmhdr;
745
int position; // SCN_STYLENEEDED, SCN_MODIFIED, SCN_DWELLSTART, SCN_DWELLEND
746
int ch; // SCN_CHARADDED, SCN_KEY
747
int modifiers; // SCN_KEY
748
int modificationType; // SCN_MODIFIED
749
const char *text; // SCN_MODIFIED, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION
750
int length; // SCN_MODIFIED
751
int linesAdded; // SCN_MODIFIED
752
int message; // SCN_MACRORECORD
753
uptr_t wParam; // SCN_MACRORECORD
754
sptr_t lParam; // SCN_MACRORECORD
755
int line; // SCN_MODIFIED
756
int foldLevelNow; // SCN_MODIFIED
757
int foldLevelPrev; // SCN_MODIFIED
758
int margin; // SCN_MARGINCLICK
759
int listType; // SCN_USERLISTSELECTION
760
int x; // SCN_DWELLSTART, SCN_DWELLEND
761
int y; // SCN_DWELLSTART, SCN_DWELLEND
805
int position; /* SCN_STYLENEEDED, SCN_MODIFIED, SCN_DWELLSTART, SCN_DWELLEND */
806
int ch; /* SCN_CHARADDED, SCN_KEY */
807
int modifiers; /* SCN_KEY */
808
int modificationType; /* SCN_MODIFIED */
809
const char *text; /* SCN_MODIFIED, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION */
810
int length; /* SCN_MODIFIED */
811
int linesAdded; /* SCN_MODIFIED */
812
int message; /* SCN_MACRORECORD */
813
uptr_t wParam; /* SCN_MACRORECORDv */
814
sptr_t lParam; /* SCN_MACRORECORD */
815
int line; /* SCN_MODIFIED */
816
int foldLevelNow; /* SCN_MODIFIED */
817
int foldLevelPrev; /* SCN_MODIFIED */
818
int margin; /* SCN_MARGINCLICK */
819
int listType; /* SCN_USERLISTSELECTION */
820
int x; /* SCN_DWELLSTART, SCN_DWELLEND */
821
int y; /* SCN_DWELLSTART, SCN_DWELLEND */
764
// Deprecation section listing all API features that are deprecated and will
765
// will be removed completely in a future version.
766
// To enable these features define INCLUDE_DEPRECATED_FEATURES
828
/* Deprecation section listing all API features that are deprecated and will
829
* will be removed completely in a future version.
830
* To enable these features define INCLUDE_DEPRECATED_FEATURES */
768
832
#ifdef INCLUDE_DEPRECATED_FEATURES