~ubuntu-branches/debian/experimental/geany/experimental

« back to all changes in this revision

Viewing changes to scintilla/include/Scintilla.h

  • Committer: Bazaar Package Importer
  • Author(s): Damián Viano
  • Date: 2008-05-02 11:37:45 UTC
  • mfrom: (1.2.1 upstream) (3.1.6 hardy)
  • Revision ID: james.westby@ubuntu.com-20080502113745-xzp4g6dmovrpoj17
Tags: 0.14-1
New upstream release (Closes: #478126)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Scintilla source code edit control
 
1
/* Scintilla source code edit control */
2
2
/** @file Scintilla.h
3
3
 ** Interface to the edit control.
4
4
 **/
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.
7
7
 
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. */
10
10
 
11
11
#ifndef SCINTILLA_H
12
12
#define SCINTILLA_H
16
16
#endif
17
17
 
18
18
#if PLAT_WIN
19
 
// Return false on failure:
 
19
/* Return false on failure: */
20
20
bool Scintilla_RegisterClasses(void *hInstance);
21
21
bool Scintilla_ReleaseResources();
22
22
#endif
23
23
int Scintilla_LinkLexers();
24
24
 
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>
30
30
#endif
38
38
 
39
39
typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam);
40
40
 
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
159
160
#define STYLE_INDENTGUIDE 37
160
161
#define STYLE_CALLTIP 38
161
162
#define STYLE_LASTPREDEFINED 39
162
 
#define STYLE_MAX 127
 
163
#define STYLE_MAX 255
163
164
#define SC_CHARSET_ANSI 0
164
165
#define SC_CHARSET_DEFAULT 1
165
166
#define SC_CHARSET_BALTIC 186
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
212
228
#define SCI_SETWORDCHARS 2077
213
229
#define SCI_BEGINUNDOACTION 2078
214
230
#define SCI_ENDUNDOACTION 2079
215
 
#define INDIC_MAX 7
216
231
#define INDIC_PLAIN 0
217
232
#define INDIC_SQUIGGLE 1
218
233
#define INDIC_TT 2
221
236
#define INDIC_HIDDEN 5
222
237
#define INDIC_BOX 6
223
238
#define INDIC_ROUNDBOX 7
 
239
#define INDIC_MAX 31
 
240
#define INDIC_CONTAINER 8
224
241
#define INDIC0_MASK 0x20
225
242
#define INDIC1_MASK 0x40
226
243
#define INDIC2_MASK 0x80
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
 
302
#define SC_IV_NONE 0
 
303
#define SC_IV_REAL 1
 
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
481
506
#define SCI_ZOOMOUT 2334
482
507
#define SCI_DELWORDLEFT 2335
483
508
#define SCI_DELWORDRIGHT 2336
 
509
#define SCI_DELWORDRIGHTEND 2518
484
510
#define SCI_LINECUT 2337
485
511
#define SCI_LINEDELETE 2338
486
512
#define SCI_LINETRANSPOSE 2339
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
668
719
#define SCK_ADD 310
669
720
#define SCK_SUBTRACT 311
670
721
#define SCK_DIVIDE 312
 
722
#define SCK_WIN 313
 
723
#define SCK_RWIN 314
 
724
#define SCK_MENU 315
671
725
#define SCMOD_NORM 0
672
726
#define SCMOD_SHIFT 1
673
727
#define SCMOD_CTRL 2
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
698
 
 
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 */
 
754
 
 
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. */
 
758
 
 
759
#ifdef SCI_NAMESPACE
 
760
namespace Scintilla {
 
761
#endif
702
762
 
703
763
struct CharacterRange {
704
764
        long cpMin;
718
778
 
719
779
#ifdef PLATFORM_H
720
780
 
721
 
// This structure is used in printing and requires some of the graphics types
722
 
// from Platform.h.  Not needed by most client code.
 
781
/* This structure is used in printing and requires some of the graphics types
 
782
 * from Platform.h.  Not needed by most client code. */
723
783
 
724
784
struct RangeToFormat {
725
785
        SurfaceID hdc;
732
792
#endif
733
793
 
734
794
struct NotifyHeader {
735
 
        // Compatible with Windows NMHDR.
736
 
        // hwndFrom is really an environment specific window handle or pointer
737
 
        // but most clients of Scintilla.h do not have this type visible.
 
795
        /* Compatible with Windows NMHDR.
 
796
         * hwndFrom is really an environment specific window handle or pointer
 
797
         * but most clients of Scintilla.h do not have this type visible. */
738
798
        void *hwndFrom;
739
799
        uptr_t idFrom;
740
800
        unsigned int code;
742
802
 
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 */
762
822
};
763
823
 
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
 
824
#ifdef SCI_NAMESPACE
 
825
}
 
826
#endif
 
827
 
 
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 */
767
831
 
768
832
#ifdef INCLUDE_DEPRECATED_FEATURES
769
833