1 // ScintillaEdit.cpp
2 // Extended version of ScintillaEditBase with a method for each API
3 // Copyright (c) 2011 Archaeopteryx Software, Inc. d/b/a Wingware
4
5 #include "ScintillaEdit.h"
6
7 using namespace Scintilla;
8
ScintillaEdit(QWidget * parent)9 ScintillaEdit::ScintillaEdit(QWidget *parent) : ScintillaEditBase(parent) {
10 }
11
~ScintillaEdit()12 ScintillaEdit::~ScintillaEdit() {
13 }
14
TextReturner(int message,uptr_t wParam) const15 QByteArray ScintillaEdit::TextReturner(int message, uptr_t wParam) const {
16 int length = send(message, wParam, 0);
17 QByteArray ba(length, '\0');
18 send(message, wParam, (sptr_t)ba.data());
19 // Remove extra NULs
20 if (ba.size() > 0 && ba.at(ba.size()-1) == 0)
21 ba.chop(1);
22 return ba;
23 }
24
find_text(int flags,const char * text,int cpMin,int cpMax)25 QPair<int, int>ScintillaEdit::find_text(int flags, const char *text, int cpMin, int cpMax) {
26 struct Sci_TextToFind ft = {{0, 0}, 0, {0, 0}};
27 ft.chrg.cpMin = cpMin;
28 ft.chrg.cpMax = cpMax;
29 ft.chrgText.cpMin = cpMin;
30 ft.chrgText.cpMax = cpMax;
31 ft.lpstrText = text;
32
33 int start = send(SCI_FINDTEXT, flags, (uptr_t) (&ft));
34
35 return QPair<int,int>(start, ft.chrgText.cpMax);
36 }
37
get_text_range(int start,int end)38 QByteArray ScintillaEdit::get_text_range(int start, int end) {
39 if (start > end)
40 start = end;
41
42 int length = end-start;
43 QByteArray ba(length+1, '\0');
44 struct Sci_TextRange tr = {{start, end}, ba.data()};
45
46 send(SCI_GETTEXTRANGE, 0, (sptr_t)&tr);
47 ba.chop(1); // Remove extra NUL
48
49 return ba;
50 }
51
get_doc()52 ScintillaDocument *ScintillaEdit::get_doc() {
53 return new ScintillaDocument(0, (void *)send(SCI_GETDOCPOINTER, 0, 0));
54 }
55
set_doc(ScintillaDocument * pdoc_)56 void ScintillaEdit::set_doc(ScintillaDocument *pdoc_) {
57 send(SCI_SETDOCPOINTER, 0, (sptr_t)(pdoc_->pointer()));
58 }
59
format_range(bool draw,QPaintDevice * target,QPaintDevice * measure,const QRect & print_rect,const QRect & page_rect,long range_start,long range_end)60 long ScintillaEdit::format_range(bool draw, QPaintDevice* target, QPaintDevice* measure,
61 const QRect& print_rect, const QRect& page_rect,
62 long range_start, long range_end)
63 {
64 Sci_RangeToFormat to_format;
65
66 to_format.hdc = target;
67 to_format.hdcTarget = measure;
68
69 to_format.rc.left = print_rect.left();
70 to_format.rc.top = print_rect.top();
71 to_format.rc.right = print_rect.right();
72 to_format.rc.bottom = print_rect.bottom();
73
74 to_format.rcPage.left = page_rect.left();
75 to_format.rcPage.top = page_rect.top();
76 to_format.rcPage.right = page_rect.right();
77 to_format.rcPage.bottom = page_rect.bottom();
78
79 to_format.chrg.cpMin = range_start;
80 to_format.chrg.cpMax = range_end;
81
82 return send(SCI_FORMATRANGE, draw, reinterpret_cast<sptr_t>(&to_format));
83 }
84
85 /* ++Autogenerated -- start of section automatically generated from Scintilla.iface */
addText(sptr_t length,const char * text)86 void ScintillaEdit::addText(sptr_t length, const char * text) {
87 send(SCI_ADDTEXT, length, (sptr_t)text);
88 }
89
addStyledText(sptr_t length,const char * c)90 void ScintillaEdit::addStyledText(sptr_t length, const char * c) {
91 send(SCI_ADDSTYLEDTEXT, length, (sptr_t)c);
92 }
93
insertText(sptr_t pos,const char * text)94 void ScintillaEdit::insertText(sptr_t pos, const char * text) {
95 send(SCI_INSERTTEXT, pos, (sptr_t)text);
96 }
97
changeInsertion(sptr_t length,const char * text)98 void ScintillaEdit::changeInsertion(sptr_t length, const char * text) {
99 send(SCI_CHANGEINSERTION, length, (sptr_t)text);
100 }
101
clearAll()102 void ScintillaEdit::clearAll() {
103 send(SCI_CLEARALL, 0, 0);
104 }
105
deleteRange(sptr_t start,sptr_t lengthDelete)106 void ScintillaEdit::deleteRange(sptr_t start, sptr_t lengthDelete) {
107 send(SCI_DELETERANGE, start, lengthDelete);
108 }
109
clearDocumentStyle()110 void ScintillaEdit::clearDocumentStyle() {
111 send(SCI_CLEARDOCUMENTSTYLE, 0, 0);
112 }
113
length() const114 sptr_t ScintillaEdit::length() const {
115 return send(SCI_GETLENGTH, 0, 0);
116 }
117
charAt(sptr_t pos) const118 sptr_t ScintillaEdit::charAt(sptr_t pos) const {
119 return send(SCI_GETCHARAT, pos, 0);
120 }
121
currentPos() const122 sptr_t ScintillaEdit::currentPos() const {
123 return send(SCI_GETCURRENTPOS, 0, 0);
124 }
125
anchor() const126 sptr_t ScintillaEdit::anchor() const {
127 return send(SCI_GETANCHOR, 0, 0);
128 }
129
styleAt(sptr_t pos) const130 sptr_t ScintillaEdit::styleAt(sptr_t pos) const {
131 return send(SCI_GETSTYLEAT, pos, 0);
132 }
133
redo()134 void ScintillaEdit::redo() {
135 send(SCI_REDO, 0, 0);
136 }
137
setUndoCollection(bool collectUndo)138 void ScintillaEdit::setUndoCollection(bool collectUndo) {
139 send(SCI_SETUNDOCOLLECTION, collectUndo, 0);
140 }
141
selectAll()142 void ScintillaEdit::selectAll() {
143 send(SCI_SELECTALL, 0, 0);
144 }
145
setSavePoint()146 void ScintillaEdit::setSavePoint() {
147 send(SCI_SETSAVEPOINT, 0, 0);
148 }
149
canRedo()150 bool ScintillaEdit::canRedo() {
151 return send(SCI_CANREDO, 0, 0);
152 }
153
markerLineFromHandle(sptr_t markerHandle)154 sptr_t ScintillaEdit::markerLineFromHandle(sptr_t markerHandle) {
155 return send(SCI_MARKERLINEFROMHANDLE, markerHandle, 0);
156 }
157
markerDeleteHandle(sptr_t markerHandle)158 void ScintillaEdit::markerDeleteHandle(sptr_t markerHandle) {
159 send(SCI_MARKERDELETEHANDLE, markerHandle, 0);
160 }
161
undoCollection() const162 bool ScintillaEdit::undoCollection() const {
163 return send(SCI_GETUNDOCOLLECTION, 0, 0);
164 }
165
viewWS() const166 sptr_t ScintillaEdit::viewWS() const {
167 return send(SCI_GETVIEWWS, 0, 0);
168 }
169
setViewWS(sptr_t viewWS)170 void ScintillaEdit::setViewWS(sptr_t viewWS) {
171 send(SCI_SETVIEWWS, viewWS, 0);
172 }
173
tabDrawMode() const174 sptr_t ScintillaEdit::tabDrawMode() const {
175 return send(SCI_GETTABDRAWMODE, 0, 0);
176 }
177
setTabDrawMode(sptr_t tabDrawMode)178 void ScintillaEdit::setTabDrawMode(sptr_t tabDrawMode) {
179 send(SCI_SETTABDRAWMODE, tabDrawMode, 0);
180 }
181
positionFromPoint(sptr_t x,sptr_t y)182 sptr_t ScintillaEdit::positionFromPoint(sptr_t x, sptr_t y) {
183 return send(SCI_POSITIONFROMPOINT, x, y);
184 }
185
positionFromPointClose(sptr_t x,sptr_t y)186 sptr_t ScintillaEdit::positionFromPointClose(sptr_t x, sptr_t y) {
187 return send(SCI_POSITIONFROMPOINTCLOSE, x, y);
188 }
189
gotoLine(sptr_t line)190 void ScintillaEdit::gotoLine(sptr_t line) {
191 send(SCI_GOTOLINE, line, 0);
192 }
193
gotoPos(sptr_t caret)194 void ScintillaEdit::gotoPos(sptr_t caret) {
195 send(SCI_GOTOPOS, caret, 0);
196 }
197
setAnchor(sptr_t anchor)198 void ScintillaEdit::setAnchor(sptr_t anchor) {
199 send(SCI_SETANCHOR, anchor, 0);
200 }
201
getCurLine(sptr_t length)202 QByteArray ScintillaEdit::getCurLine(sptr_t length) {
203 return TextReturner(SCI_GETCURLINE, length);
204 }
205
endStyled() const206 sptr_t ScintillaEdit::endStyled() const {
207 return send(SCI_GETENDSTYLED, 0, 0);
208 }
209
convertEOLs(sptr_t eolMode)210 void ScintillaEdit::convertEOLs(sptr_t eolMode) {
211 send(SCI_CONVERTEOLS, eolMode, 0);
212 }
213
eOLMode() const214 sptr_t ScintillaEdit::eOLMode() const {
215 return send(SCI_GETEOLMODE, 0, 0);
216 }
217
setEOLMode(sptr_t eolMode)218 void ScintillaEdit::setEOLMode(sptr_t eolMode) {
219 send(SCI_SETEOLMODE, eolMode, 0);
220 }
221
startStyling(sptr_t start,sptr_t unused)222 void ScintillaEdit::startStyling(sptr_t start, sptr_t unused) {
223 send(SCI_STARTSTYLING, start, unused);
224 }
225
setStyling(sptr_t length,sptr_t style)226 void ScintillaEdit::setStyling(sptr_t length, sptr_t style) {
227 send(SCI_SETSTYLING, length, style);
228 }
229
bufferedDraw() const230 bool ScintillaEdit::bufferedDraw() const {
231 return send(SCI_GETBUFFEREDDRAW, 0, 0);
232 }
233
setBufferedDraw(bool buffered)234 void ScintillaEdit::setBufferedDraw(bool buffered) {
235 send(SCI_SETBUFFEREDDRAW, buffered, 0);
236 }
237
setTabWidth(sptr_t tabWidth)238 void ScintillaEdit::setTabWidth(sptr_t tabWidth) {
239 send(SCI_SETTABWIDTH, tabWidth, 0);
240 }
241
tabWidth() const242 sptr_t ScintillaEdit::tabWidth() const {
243 return send(SCI_GETTABWIDTH, 0, 0);
244 }
245
setTabMinimumWidth(sptr_t pixels)246 void ScintillaEdit::setTabMinimumWidth(sptr_t pixels) {
247 send(SCI_SETTABMINIMUMWIDTH, pixels, 0);
248 }
249
tabMinimumWidth() const250 sptr_t ScintillaEdit::tabMinimumWidth() const {
251 return send(SCI_GETTABMINIMUMWIDTH, 0, 0);
252 }
253
clearTabStops(sptr_t line)254 void ScintillaEdit::clearTabStops(sptr_t line) {
255 send(SCI_CLEARTABSTOPS, line, 0);
256 }
257
addTabStop(sptr_t line,sptr_t x)258 void ScintillaEdit::addTabStop(sptr_t line, sptr_t x) {
259 send(SCI_ADDTABSTOP, line, x);
260 }
261
getNextTabStop(sptr_t line,sptr_t x)262 sptr_t ScintillaEdit::getNextTabStop(sptr_t line, sptr_t x) {
263 return send(SCI_GETNEXTTABSTOP, line, x);
264 }
265
setCodePage(sptr_t codePage)266 void ScintillaEdit::setCodePage(sptr_t codePage) {
267 send(SCI_SETCODEPAGE, codePage, 0);
268 }
269
iMEInteraction() const270 sptr_t ScintillaEdit::iMEInteraction() const {
271 return send(SCI_GETIMEINTERACTION, 0, 0);
272 }
273
setIMEInteraction(sptr_t imeInteraction)274 void ScintillaEdit::setIMEInteraction(sptr_t imeInteraction) {
275 send(SCI_SETIMEINTERACTION, imeInteraction, 0);
276 }
277
markerDefine(sptr_t markerNumber,sptr_t markerSymbol)278 void ScintillaEdit::markerDefine(sptr_t markerNumber, sptr_t markerSymbol) {
279 send(SCI_MARKERDEFINE, markerNumber, markerSymbol);
280 }
281
markerSetFore(sptr_t markerNumber,sptr_t fore)282 void ScintillaEdit::markerSetFore(sptr_t markerNumber, sptr_t fore) {
283 send(SCI_MARKERSETFORE, markerNumber, fore);
284 }
285
markerSetBack(sptr_t markerNumber,sptr_t back)286 void ScintillaEdit::markerSetBack(sptr_t markerNumber, sptr_t back) {
287 send(SCI_MARKERSETBACK, markerNumber, back);
288 }
289
markerSetBackSelected(sptr_t markerNumber,sptr_t back)290 void ScintillaEdit::markerSetBackSelected(sptr_t markerNumber, sptr_t back) {
291 send(SCI_MARKERSETBACKSELECTED, markerNumber, back);
292 }
293
markerEnableHighlight(bool enabled)294 void ScintillaEdit::markerEnableHighlight(bool enabled) {
295 send(SCI_MARKERENABLEHIGHLIGHT, enabled, 0);
296 }
297
markerAdd(sptr_t line,sptr_t markerNumber)298 sptr_t ScintillaEdit::markerAdd(sptr_t line, sptr_t markerNumber) {
299 return send(SCI_MARKERADD, line, markerNumber);
300 }
301
markerDelete(sptr_t line,sptr_t markerNumber)302 void ScintillaEdit::markerDelete(sptr_t line, sptr_t markerNumber) {
303 send(SCI_MARKERDELETE, line, markerNumber);
304 }
305
markerDeleteAll(sptr_t markerNumber)306 void ScintillaEdit::markerDeleteAll(sptr_t markerNumber) {
307 send(SCI_MARKERDELETEALL, markerNumber, 0);
308 }
309
markerGet(sptr_t line)310 sptr_t ScintillaEdit::markerGet(sptr_t line) {
311 return send(SCI_MARKERGET, line, 0);
312 }
313
markerNext(sptr_t lineStart,sptr_t markerMask)314 sptr_t ScintillaEdit::markerNext(sptr_t lineStart, sptr_t markerMask) {
315 return send(SCI_MARKERNEXT, lineStart, markerMask);
316 }
317
markerPrevious(sptr_t lineStart,sptr_t markerMask)318 sptr_t ScintillaEdit::markerPrevious(sptr_t lineStart, sptr_t markerMask) {
319 return send(SCI_MARKERPREVIOUS, lineStart, markerMask);
320 }
321
markerDefinePixmap(sptr_t markerNumber,const char * pixmap)322 void ScintillaEdit::markerDefinePixmap(sptr_t markerNumber, const char * pixmap) {
323 send(SCI_MARKERDEFINEPIXMAP, markerNumber, (sptr_t)pixmap);
324 }
325
markerAddSet(sptr_t line,sptr_t markerSet)326 void ScintillaEdit::markerAddSet(sptr_t line, sptr_t markerSet) {
327 send(SCI_MARKERADDSET, line, markerSet);
328 }
329
markerSetAlpha(sptr_t markerNumber,sptr_t alpha)330 void ScintillaEdit::markerSetAlpha(sptr_t markerNumber, sptr_t alpha) {
331 send(SCI_MARKERSETALPHA, markerNumber, alpha);
332 }
333
setMarginTypeN(sptr_t margin,sptr_t marginType)334 void ScintillaEdit::setMarginTypeN(sptr_t margin, sptr_t marginType) {
335 send(SCI_SETMARGINTYPEN, margin, marginType);
336 }
337
marginTypeN(sptr_t margin) const338 sptr_t ScintillaEdit::marginTypeN(sptr_t margin) const {
339 return send(SCI_GETMARGINTYPEN, margin, 0);
340 }
341
setMarginWidthN(sptr_t margin,sptr_t pixelWidth)342 void ScintillaEdit::setMarginWidthN(sptr_t margin, sptr_t pixelWidth) {
343 send(SCI_SETMARGINWIDTHN, margin, pixelWidth);
344 }
345
marginWidthN(sptr_t margin) const346 sptr_t ScintillaEdit::marginWidthN(sptr_t margin) const {
347 return send(SCI_GETMARGINWIDTHN, margin, 0);
348 }
349
setMarginMaskN(sptr_t margin,sptr_t mask)350 void ScintillaEdit::setMarginMaskN(sptr_t margin, sptr_t mask) {
351 send(SCI_SETMARGINMASKN, margin, mask);
352 }
353
marginMaskN(sptr_t margin) const354 sptr_t ScintillaEdit::marginMaskN(sptr_t margin) const {
355 return send(SCI_GETMARGINMASKN, margin, 0);
356 }
357
setMarginSensitiveN(sptr_t margin,bool sensitive)358 void ScintillaEdit::setMarginSensitiveN(sptr_t margin, bool sensitive) {
359 send(SCI_SETMARGINSENSITIVEN, margin, sensitive);
360 }
361
marginSensitiveN(sptr_t margin) const362 bool ScintillaEdit::marginSensitiveN(sptr_t margin) const {
363 return send(SCI_GETMARGINSENSITIVEN, margin, 0);
364 }
365
setMarginCursorN(sptr_t margin,sptr_t cursor)366 void ScintillaEdit::setMarginCursorN(sptr_t margin, sptr_t cursor) {
367 send(SCI_SETMARGINCURSORN, margin, cursor);
368 }
369
marginCursorN(sptr_t margin) const370 sptr_t ScintillaEdit::marginCursorN(sptr_t margin) const {
371 return send(SCI_GETMARGINCURSORN, margin, 0);
372 }
373
setMarginBackN(sptr_t margin,sptr_t back)374 void ScintillaEdit::setMarginBackN(sptr_t margin, sptr_t back) {
375 send(SCI_SETMARGINBACKN, margin, back);
376 }
377
marginBackN(sptr_t margin) const378 sptr_t ScintillaEdit::marginBackN(sptr_t margin) const {
379 return send(SCI_GETMARGINBACKN, margin, 0);
380 }
381
setMargins(sptr_t margins)382 void ScintillaEdit::setMargins(sptr_t margins) {
383 send(SCI_SETMARGINS, margins, 0);
384 }
385
margins() const386 sptr_t ScintillaEdit::margins() const {
387 return send(SCI_GETMARGINS, 0, 0);
388 }
389
styleClearAll()390 void ScintillaEdit::styleClearAll() {
391 send(SCI_STYLECLEARALL, 0, 0);
392 }
393
styleSetFore(sptr_t style,sptr_t fore)394 void ScintillaEdit::styleSetFore(sptr_t style, sptr_t fore) {
395 send(SCI_STYLESETFORE, style, fore);
396 }
397
styleSetBack(sptr_t style,sptr_t back)398 void ScintillaEdit::styleSetBack(sptr_t style, sptr_t back) {
399 send(SCI_STYLESETBACK, style, back);
400 }
401
styleSetBold(sptr_t style,bool bold)402 void ScintillaEdit::styleSetBold(sptr_t style, bool bold) {
403 send(SCI_STYLESETBOLD, style, bold);
404 }
405
styleSetItalic(sptr_t style,bool italic)406 void ScintillaEdit::styleSetItalic(sptr_t style, bool italic) {
407 send(SCI_STYLESETITALIC, style, italic);
408 }
409
styleSetSize(sptr_t style,sptr_t sizePoints)410 void ScintillaEdit::styleSetSize(sptr_t style, sptr_t sizePoints) {
411 send(SCI_STYLESETSIZE, style, sizePoints);
412 }
413
styleSetFont(sptr_t style,const char * fontName)414 void ScintillaEdit::styleSetFont(sptr_t style, const char * fontName) {
415 send(SCI_STYLESETFONT, style, (sptr_t)fontName);
416 }
417
styleSetEOLFilled(sptr_t style,bool eolFilled)418 void ScintillaEdit::styleSetEOLFilled(sptr_t style, bool eolFilled) {
419 send(SCI_STYLESETEOLFILLED, style, eolFilled);
420 }
421
styleResetDefault()422 void ScintillaEdit::styleResetDefault() {
423 send(SCI_STYLERESETDEFAULT, 0, 0);
424 }
425
styleSetUnderline(sptr_t style,bool underline)426 void ScintillaEdit::styleSetUnderline(sptr_t style, bool underline) {
427 send(SCI_STYLESETUNDERLINE, style, underline);
428 }
429
styleFore(sptr_t style) const430 sptr_t ScintillaEdit::styleFore(sptr_t style) const {
431 return send(SCI_STYLEGETFORE, style, 0);
432 }
433
styleBack(sptr_t style) const434 sptr_t ScintillaEdit::styleBack(sptr_t style) const {
435 return send(SCI_STYLEGETBACK, style, 0);
436 }
437
styleBold(sptr_t style) const438 bool ScintillaEdit::styleBold(sptr_t style) const {
439 return send(SCI_STYLEGETBOLD, style, 0);
440 }
441
styleItalic(sptr_t style) const442 bool ScintillaEdit::styleItalic(sptr_t style) const {
443 return send(SCI_STYLEGETITALIC, style, 0);
444 }
445
styleSize(sptr_t style) const446 sptr_t ScintillaEdit::styleSize(sptr_t style) const {
447 return send(SCI_STYLEGETSIZE, style, 0);
448 }
449
styleFont(sptr_t style) const450 QByteArray ScintillaEdit::styleFont(sptr_t style) const {
451 return TextReturner(SCI_STYLEGETFONT, style);
452 }
453
styleEOLFilled(sptr_t style) const454 bool ScintillaEdit::styleEOLFilled(sptr_t style) const {
455 return send(SCI_STYLEGETEOLFILLED, style, 0);
456 }
457
styleUnderline(sptr_t style) const458 bool ScintillaEdit::styleUnderline(sptr_t style) const {
459 return send(SCI_STYLEGETUNDERLINE, style, 0);
460 }
461
styleCase(sptr_t style) const462 sptr_t ScintillaEdit::styleCase(sptr_t style) const {
463 return send(SCI_STYLEGETCASE, style, 0);
464 }
465
styleCharacterSet(sptr_t style) const466 sptr_t ScintillaEdit::styleCharacterSet(sptr_t style) const {
467 return send(SCI_STYLEGETCHARACTERSET, style, 0);
468 }
469
styleVisible(sptr_t style) const470 bool ScintillaEdit::styleVisible(sptr_t style) const {
471 return send(SCI_STYLEGETVISIBLE, style, 0);
472 }
473
styleChangeable(sptr_t style) const474 bool ScintillaEdit::styleChangeable(sptr_t style) const {
475 return send(SCI_STYLEGETCHANGEABLE, style, 0);
476 }
477
styleHotSpot(sptr_t style) const478 bool ScintillaEdit::styleHotSpot(sptr_t style) const {
479 return send(SCI_STYLEGETHOTSPOT, style, 0);
480 }
481
styleSetCase(sptr_t style,sptr_t caseVisible)482 void ScintillaEdit::styleSetCase(sptr_t style, sptr_t caseVisible) {
483 send(SCI_STYLESETCASE, style, caseVisible);
484 }
485
styleSetSizeFractional(sptr_t style,sptr_t sizeHundredthPoints)486 void ScintillaEdit::styleSetSizeFractional(sptr_t style, sptr_t sizeHundredthPoints) {
487 send(SCI_STYLESETSIZEFRACTIONAL, style, sizeHundredthPoints);
488 }
489
styleSizeFractional(sptr_t style) const490 sptr_t ScintillaEdit::styleSizeFractional(sptr_t style) const {
491 return send(SCI_STYLEGETSIZEFRACTIONAL, style, 0);
492 }
493
styleSetWeight(sptr_t style,sptr_t weight)494 void ScintillaEdit::styleSetWeight(sptr_t style, sptr_t weight) {
495 send(SCI_STYLESETWEIGHT, style, weight);
496 }
497
styleWeight(sptr_t style) const498 sptr_t ScintillaEdit::styleWeight(sptr_t style) const {
499 return send(SCI_STYLEGETWEIGHT, style, 0);
500 }
501
styleSetCharacterSet(sptr_t style,sptr_t characterSet)502 void ScintillaEdit::styleSetCharacterSet(sptr_t style, sptr_t characterSet) {
503 send(SCI_STYLESETCHARACTERSET, style, characterSet);
504 }
505
styleSetHotSpot(sptr_t style,bool hotspot)506 void ScintillaEdit::styleSetHotSpot(sptr_t style, bool hotspot) {
507 send(SCI_STYLESETHOTSPOT, style, hotspot);
508 }
509
setSelFore(bool useSetting,sptr_t fore)510 void ScintillaEdit::setSelFore(bool useSetting, sptr_t fore) {
511 send(SCI_SETSELFORE, useSetting, fore);
512 }
513
setSelBack(bool useSetting,sptr_t back)514 void ScintillaEdit::setSelBack(bool useSetting, sptr_t back) {
515 send(SCI_SETSELBACK, useSetting, back);
516 }
517
selAlpha() const518 sptr_t ScintillaEdit::selAlpha() const {
519 return send(SCI_GETSELALPHA, 0, 0);
520 }
521
setSelAlpha(sptr_t alpha)522 void ScintillaEdit::setSelAlpha(sptr_t alpha) {
523 send(SCI_SETSELALPHA, alpha, 0);
524 }
525
selEOLFilled() const526 bool ScintillaEdit::selEOLFilled() const {
527 return send(SCI_GETSELEOLFILLED, 0, 0);
528 }
529
setSelEOLFilled(bool filled)530 void ScintillaEdit::setSelEOLFilled(bool filled) {
531 send(SCI_SETSELEOLFILLED, filled, 0);
532 }
533
setCaretFore(sptr_t fore)534 void ScintillaEdit::setCaretFore(sptr_t fore) {
535 send(SCI_SETCARETFORE, fore, 0);
536 }
537
assignCmdKey(sptr_t keyDefinition,sptr_t sciCommand)538 void ScintillaEdit::assignCmdKey(sptr_t keyDefinition, sptr_t sciCommand) {
539 send(SCI_ASSIGNCMDKEY, keyDefinition, sciCommand);
540 }
541
clearCmdKey(sptr_t keyDefinition)542 void ScintillaEdit::clearCmdKey(sptr_t keyDefinition) {
543 send(SCI_CLEARCMDKEY, keyDefinition, 0);
544 }
545
clearAllCmdKeys()546 void ScintillaEdit::clearAllCmdKeys() {
547 send(SCI_CLEARALLCMDKEYS, 0, 0);
548 }
549
setStylingEx(sptr_t length,const char * styles)550 void ScintillaEdit::setStylingEx(sptr_t length, const char * styles) {
551 send(SCI_SETSTYLINGEX, length, (sptr_t)styles);
552 }
553
styleSetVisible(sptr_t style,bool visible)554 void ScintillaEdit::styleSetVisible(sptr_t style, bool visible) {
555 send(SCI_STYLESETVISIBLE, style, visible);
556 }
557
caretPeriod() const558 sptr_t ScintillaEdit::caretPeriod() const {
559 return send(SCI_GETCARETPERIOD, 0, 0);
560 }
561
setCaretPeriod(sptr_t periodMilliseconds)562 void ScintillaEdit::setCaretPeriod(sptr_t periodMilliseconds) {
563 send(SCI_SETCARETPERIOD, periodMilliseconds, 0);
564 }
565
setWordChars(const char * characters)566 void ScintillaEdit::setWordChars(const char * characters) {
567 send(SCI_SETWORDCHARS, 0, (sptr_t)characters);
568 }
569
wordChars() const570 QByteArray ScintillaEdit::wordChars() const {
571 return TextReturner(SCI_GETWORDCHARS, 0);
572 }
573
setCharacterCategoryOptimization(sptr_t countCharacters)574 void ScintillaEdit::setCharacterCategoryOptimization(sptr_t countCharacters) {
575 send(SCI_SETCHARACTERCATEGORYOPTIMIZATION, countCharacters, 0);
576 }
577
characterCategoryOptimization() const578 sptr_t ScintillaEdit::characterCategoryOptimization() const {
579 return send(SCI_GETCHARACTERCATEGORYOPTIMIZATION, 0, 0);
580 }
581
beginUndoAction()582 void ScintillaEdit::beginUndoAction() {
583 send(SCI_BEGINUNDOACTION, 0, 0);
584 }
585
endUndoAction()586 void ScintillaEdit::endUndoAction() {
587 send(SCI_ENDUNDOACTION, 0, 0);
588 }
589
indicSetStyle(sptr_t indicator,sptr_t indicatorStyle)590 void ScintillaEdit::indicSetStyle(sptr_t indicator, sptr_t indicatorStyle) {
591 send(SCI_INDICSETSTYLE, indicator, indicatorStyle);
592 }
593
indicStyle(sptr_t indicator) const594 sptr_t ScintillaEdit::indicStyle(sptr_t indicator) const {
595 return send(SCI_INDICGETSTYLE, indicator, 0);
596 }
597
indicSetFore(sptr_t indicator,sptr_t fore)598 void ScintillaEdit::indicSetFore(sptr_t indicator, sptr_t fore) {
599 send(SCI_INDICSETFORE, indicator, fore);
600 }
601
indicFore(sptr_t indicator) const602 sptr_t ScintillaEdit::indicFore(sptr_t indicator) const {
603 return send(SCI_INDICGETFORE, indicator, 0);
604 }
605
indicSetUnder(sptr_t indicator,bool under)606 void ScintillaEdit::indicSetUnder(sptr_t indicator, bool under) {
607 send(SCI_INDICSETUNDER, indicator, under);
608 }
609
indicUnder(sptr_t indicator) const610 bool ScintillaEdit::indicUnder(sptr_t indicator) const {
611 return send(SCI_INDICGETUNDER, indicator, 0);
612 }
613
indicSetHoverStyle(sptr_t indicator,sptr_t indicatorStyle)614 void ScintillaEdit::indicSetHoverStyle(sptr_t indicator, sptr_t indicatorStyle) {
615 send(SCI_INDICSETHOVERSTYLE, indicator, indicatorStyle);
616 }
617
indicHoverStyle(sptr_t indicator) const618 sptr_t ScintillaEdit::indicHoverStyle(sptr_t indicator) const {
619 return send(SCI_INDICGETHOVERSTYLE, indicator, 0);
620 }
621
indicSetHoverFore(sptr_t indicator,sptr_t fore)622 void ScintillaEdit::indicSetHoverFore(sptr_t indicator, sptr_t fore) {
623 send(SCI_INDICSETHOVERFORE, indicator, fore);
624 }
625
indicHoverFore(sptr_t indicator) const626 sptr_t ScintillaEdit::indicHoverFore(sptr_t indicator) const {
627 return send(SCI_INDICGETHOVERFORE, indicator, 0);
628 }
629
indicSetFlags(sptr_t indicator,sptr_t flags)630 void ScintillaEdit::indicSetFlags(sptr_t indicator, sptr_t flags) {
631 send(SCI_INDICSETFLAGS, indicator, flags);
632 }
633
indicFlags(sptr_t indicator) const634 sptr_t ScintillaEdit::indicFlags(sptr_t indicator) const {
635 return send(SCI_INDICGETFLAGS, indicator, 0);
636 }
637
setWhitespaceFore(bool useSetting,sptr_t fore)638 void ScintillaEdit::setWhitespaceFore(bool useSetting, sptr_t fore) {
639 send(SCI_SETWHITESPACEFORE, useSetting, fore);
640 }
641
setWhitespaceBack(bool useSetting,sptr_t back)642 void ScintillaEdit::setWhitespaceBack(bool useSetting, sptr_t back) {
643 send(SCI_SETWHITESPACEBACK, useSetting, back);
644 }
645
setWhitespaceSize(sptr_t size)646 void ScintillaEdit::setWhitespaceSize(sptr_t size) {
647 send(SCI_SETWHITESPACESIZE, size, 0);
648 }
649
whitespaceSize() const650 sptr_t ScintillaEdit::whitespaceSize() const {
651 return send(SCI_GETWHITESPACESIZE, 0, 0);
652 }
653
setLineState(sptr_t line,sptr_t state)654 void ScintillaEdit::setLineState(sptr_t line, sptr_t state) {
655 send(SCI_SETLINESTATE, line, state);
656 }
657
lineState(sptr_t line) const658 sptr_t ScintillaEdit::lineState(sptr_t line) const {
659 return send(SCI_GETLINESTATE, line, 0);
660 }
661
maxLineState() const662 sptr_t ScintillaEdit::maxLineState() const {
663 return send(SCI_GETMAXLINESTATE, 0, 0);
664 }
665
caretLineVisible() const666 bool ScintillaEdit::caretLineVisible() const {
667 return send(SCI_GETCARETLINEVISIBLE, 0, 0);
668 }
669
setCaretLineVisible(bool show)670 void ScintillaEdit::setCaretLineVisible(bool show) {
671 send(SCI_SETCARETLINEVISIBLE, show, 0);
672 }
673
caretLineBack() const674 sptr_t ScintillaEdit::caretLineBack() const {
675 return send(SCI_GETCARETLINEBACK, 0, 0);
676 }
677
setCaretLineBack(sptr_t back)678 void ScintillaEdit::setCaretLineBack(sptr_t back) {
679 send(SCI_SETCARETLINEBACK, back, 0);
680 }
681
caretLineFrame() const682 sptr_t ScintillaEdit::caretLineFrame() const {
683 return send(SCI_GETCARETLINEFRAME, 0, 0);
684 }
685
setCaretLineFrame(sptr_t width)686 void ScintillaEdit::setCaretLineFrame(sptr_t width) {
687 send(SCI_SETCARETLINEFRAME, width, 0);
688 }
689
styleSetChangeable(sptr_t style,bool changeable)690 void ScintillaEdit::styleSetChangeable(sptr_t style, bool changeable) {
691 send(SCI_STYLESETCHANGEABLE, style, changeable);
692 }
693
autoCShow(sptr_t lengthEntered,const char * itemList)694 void ScintillaEdit::autoCShow(sptr_t lengthEntered, const char * itemList) {
695 send(SCI_AUTOCSHOW, lengthEntered, (sptr_t)itemList);
696 }
697
autoCCancel()698 void ScintillaEdit::autoCCancel() {
699 send(SCI_AUTOCCANCEL, 0, 0);
700 }
701
autoCActive()702 bool ScintillaEdit::autoCActive() {
703 return send(SCI_AUTOCACTIVE, 0, 0);
704 }
705
autoCPosStart()706 sptr_t ScintillaEdit::autoCPosStart() {
707 return send(SCI_AUTOCPOSSTART, 0, 0);
708 }
709
autoCComplete()710 void ScintillaEdit::autoCComplete() {
711 send(SCI_AUTOCCOMPLETE, 0, 0);
712 }
713
autoCStops(const char * characterSet)714 void ScintillaEdit::autoCStops(const char * characterSet) {
715 send(SCI_AUTOCSTOPS, 0, (sptr_t)characterSet);
716 }
717
autoCSetSeparator(sptr_t separatorCharacter)718 void ScintillaEdit::autoCSetSeparator(sptr_t separatorCharacter) {
719 send(SCI_AUTOCSETSEPARATOR, separatorCharacter, 0);
720 }
721
autoCSeparator() const722 sptr_t ScintillaEdit::autoCSeparator() const {
723 return send(SCI_AUTOCGETSEPARATOR, 0, 0);
724 }
725
autoCSelect(const char * select)726 void ScintillaEdit::autoCSelect(const char * select) {
727 send(SCI_AUTOCSELECT, 0, (sptr_t)select);
728 }
729
autoCSetCancelAtStart(bool cancel)730 void ScintillaEdit::autoCSetCancelAtStart(bool cancel) {
731 send(SCI_AUTOCSETCANCELATSTART, cancel, 0);
732 }
733
autoCCancelAtStart() const734 bool ScintillaEdit::autoCCancelAtStart() const {
735 return send(SCI_AUTOCGETCANCELATSTART, 0, 0);
736 }
737
autoCSetFillUps(const char * characterSet)738 void ScintillaEdit::autoCSetFillUps(const char * characterSet) {
739 send(SCI_AUTOCSETFILLUPS, 0, (sptr_t)characterSet);
740 }
741
autoCSetChooseSingle(bool chooseSingle)742 void ScintillaEdit::autoCSetChooseSingle(bool chooseSingle) {
743 send(SCI_AUTOCSETCHOOSESINGLE, chooseSingle, 0);
744 }
745
autoCChooseSingle() const746 bool ScintillaEdit::autoCChooseSingle() const {
747 return send(SCI_AUTOCGETCHOOSESINGLE, 0, 0);
748 }
749
autoCSetIgnoreCase(bool ignoreCase)750 void ScintillaEdit::autoCSetIgnoreCase(bool ignoreCase) {
751 send(SCI_AUTOCSETIGNORECASE, ignoreCase, 0);
752 }
753
autoCIgnoreCase() const754 bool ScintillaEdit::autoCIgnoreCase() const {
755 return send(SCI_AUTOCGETIGNORECASE, 0, 0);
756 }
757
userListShow(sptr_t listType,const char * itemList)758 void ScintillaEdit::userListShow(sptr_t listType, const char * itemList) {
759 send(SCI_USERLISTSHOW, listType, (sptr_t)itemList);
760 }
761
autoCSetAutoHide(bool autoHide)762 void ScintillaEdit::autoCSetAutoHide(bool autoHide) {
763 send(SCI_AUTOCSETAUTOHIDE, autoHide, 0);
764 }
765
autoCAutoHide() const766 bool ScintillaEdit::autoCAutoHide() const {
767 return send(SCI_AUTOCGETAUTOHIDE, 0, 0);
768 }
769
autoCSetDropRestOfWord(bool dropRestOfWord)770 void ScintillaEdit::autoCSetDropRestOfWord(bool dropRestOfWord) {
771 send(SCI_AUTOCSETDROPRESTOFWORD, dropRestOfWord, 0);
772 }
773
autoCDropRestOfWord() const774 bool ScintillaEdit::autoCDropRestOfWord() const {
775 return send(SCI_AUTOCGETDROPRESTOFWORD, 0, 0);
776 }
777
registerImage(sptr_t type,const char * xpmData)778 void ScintillaEdit::registerImage(sptr_t type, const char * xpmData) {
779 send(SCI_REGISTERIMAGE, type, (sptr_t)xpmData);
780 }
781
clearRegisteredImages()782 void ScintillaEdit::clearRegisteredImages() {
783 send(SCI_CLEARREGISTEREDIMAGES, 0, 0);
784 }
785
autoCTypeSeparator() const786 sptr_t ScintillaEdit::autoCTypeSeparator() const {
787 return send(SCI_AUTOCGETTYPESEPARATOR, 0, 0);
788 }
789
autoCSetTypeSeparator(sptr_t separatorCharacter)790 void ScintillaEdit::autoCSetTypeSeparator(sptr_t separatorCharacter) {
791 send(SCI_AUTOCSETTYPESEPARATOR, separatorCharacter, 0);
792 }
793
autoCSetMaxWidth(sptr_t characterCount)794 void ScintillaEdit::autoCSetMaxWidth(sptr_t characterCount) {
795 send(SCI_AUTOCSETMAXWIDTH, characterCount, 0);
796 }
797
autoCMaxWidth() const798 sptr_t ScintillaEdit::autoCMaxWidth() const {
799 return send(SCI_AUTOCGETMAXWIDTH, 0, 0);
800 }
801
autoCSetMaxHeight(sptr_t rowCount)802 void ScintillaEdit::autoCSetMaxHeight(sptr_t rowCount) {
803 send(SCI_AUTOCSETMAXHEIGHT, rowCount, 0);
804 }
805
autoCMaxHeight() const806 sptr_t ScintillaEdit::autoCMaxHeight() const {
807 return send(SCI_AUTOCGETMAXHEIGHT, 0, 0);
808 }
809
setIndent(sptr_t indentSize)810 void ScintillaEdit::setIndent(sptr_t indentSize) {
811 send(SCI_SETINDENT, indentSize, 0);
812 }
813
indent() const814 sptr_t ScintillaEdit::indent() const {
815 return send(SCI_GETINDENT, 0, 0);
816 }
817
setUseTabs(bool useTabs)818 void ScintillaEdit::setUseTabs(bool useTabs) {
819 send(SCI_SETUSETABS, useTabs, 0);
820 }
821
useTabs() const822 bool ScintillaEdit::useTabs() const {
823 return send(SCI_GETUSETABS, 0, 0);
824 }
825
setLineIndentation(sptr_t line,sptr_t indentation)826 void ScintillaEdit::setLineIndentation(sptr_t line, sptr_t indentation) {
827 send(SCI_SETLINEINDENTATION, line, indentation);
828 }
829
lineIndentation(sptr_t line) const830 sptr_t ScintillaEdit::lineIndentation(sptr_t line) const {
831 return send(SCI_GETLINEINDENTATION, line, 0);
832 }
833
lineIndentPosition(sptr_t line) const834 sptr_t ScintillaEdit::lineIndentPosition(sptr_t line) const {
835 return send(SCI_GETLINEINDENTPOSITION, line, 0);
836 }
837
column(sptr_t pos) const838 sptr_t ScintillaEdit::column(sptr_t pos) const {
839 return send(SCI_GETCOLUMN, pos, 0);
840 }
841
countCharacters(sptr_t start,sptr_t end)842 sptr_t ScintillaEdit::countCharacters(sptr_t start, sptr_t end) {
843 return send(SCI_COUNTCHARACTERS, start, end);
844 }
845
countCodeUnits(sptr_t start,sptr_t end)846 sptr_t ScintillaEdit::countCodeUnits(sptr_t start, sptr_t end) {
847 return send(SCI_COUNTCODEUNITS, start, end);
848 }
849
setHScrollBar(bool visible)850 void ScintillaEdit::setHScrollBar(bool visible) {
851 send(SCI_SETHSCROLLBAR, visible, 0);
852 }
853
hScrollBar() const854 bool ScintillaEdit::hScrollBar() const {
855 return send(SCI_GETHSCROLLBAR, 0, 0);
856 }
857
setIndentationGuides(sptr_t indentView)858 void ScintillaEdit::setIndentationGuides(sptr_t indentView) {
859 send(SCI_SETINDENTATIONGUIDES, indentView, 0);
860 }
861
indentationGuides() const862 sptr_t ScintillaEdit::indentationGuides() const {
863 return send(SCI_GETINDENTATIONGUIDES, 0, 0);
864 }
865
setHighlightGuide(sptr_t column)866 void ScintillaEdit::setHighlightGuide(sptr_t column) {
867 send(SCI_SETHIGHLIGHTGUIDE, column, 0);
868 }
869
highlightGuide() const870 sptr_t ScintillaEdit::highlightGuide() const {
871 return send(SCI_GETHIGHLIGHTGUIDE, 0, 0);
872 }
873
lineEndPosition(sptr_t line) const874 sptr_t ScintillaEdit::lineEndPosition(sptr_t line) const {
875 return send(SCI_GETLINEENDPOSITION, line, 0);
876 }
877
codePage() const878 sptr_t ScintillaEdit::codePage() const {
879 return send(SCI_GETCODEPAGE, 0, 0);
880 }
881
caretFore() const882 sptr_t ScintillaEdit::caretFore() const {
883 return send(SCI_GETCARETFORE, 0, 0);
884 }
885
readOnly() const886 bool ScintillaEdit::readOnly() const {
887 return send(SCI_GETREADONLY, 0, 0);
888 }
889
setCurrentPos(sptr_t caret)890 void ScintillaEdit::setCurrentPos(sptr_t caret) {
891 send(SCI_SETCURRENTPOS, caret, 0);
892 }
893
setSelectionStart(sptr_t anchor)894 void ScintillaEdit::setSelectionStart(sptr_t anchor) {
895 send(SCI_SETSELECTIONSTART, anchor, 0);
896 }
897
selectionStart() const898 sptr_t ScintillaEdit::selectionStart() const {
899 return send(SCI_GETSELECTIONSTART, 0, 0);
900 }
901
setSelectionEnd(sptr_t caret)902 void ScintillaEdit::setSelectionEnd(sptr_t caret) {
903 send(SCI_SETSELECTIONEND, caret, 0);
904 }
905
selectionEnd() const906 sptr_t ScintillaEdit::selectionEnd() const {
907 return send(SCI_GETSELECTIONEND, 0, 0);
908 }
909
setEmptySelection(sptr_t caret)910 void ScintillaEdit::setEmptySelection(sptr_t caret) {
911 send(SCI_SETEMPTYSELECTION, caret, 0);
912 }
913
setPrintMagnification(sptr_t magnification)914 void ScintillaEdit::setPrintMagnification(sptr_t magnification) {
915 send(SCI_SETPRINTMAGNIFICATION, magnification, 0);
916 }
917
printMagnification() const918 sptr_t ScintillaEdit::printMagnification() const {
919 return send(SCI_GETPRINTMAGNIFICATION, 0, 0);
920 }
921
setPrintColourMode(sptr_t mode)922 void ScintillaEdit::setPrintColourMode(sptr_t mode) {
923 send(SCI_SETPRINTCOLOURMODE, mode, 0);
924 }
925
printColourMode() const926 sptr_t ScintillaEdit::printColourMode() const {
927 return send(SCI_GETPRINTCOLOURMODE, 0, 0);
928 }
929
firstVisibleLine() const930 sptr_t ScintillaEdit::firstVisibleLine() const {
931 return send(SCI_GETFIRSTVISIBLELINE, 0, 0);
932 }
933
getLine(sptr_t line)934 QByteArray ScintillaEdit::getLine(sptr_t line) {
935 return TextReturner(SCI_GETLINE, line);
936 }
937
lineCount() const938 sptr_t ScintillaEdit::lineCount() const {
939 return send(SCI_GETLINECOUNT, 0, 0);
940 }
941
setMarginLeft(sptr_t pixelWidth)942 void ScintillaEdit::setMarginLeft(sptr_t pixelWidth) {
943 send(SCI_SETMARGINLEFT, 0, pixelWidth);
944 }
945
marginLeft() const946 sptr_t ScintillaEdit::marginLeft() const {
947 return send(SCI_GETMARGINLEFT, 0, 0);
948 }
949
setMarginRight(sptr_t pixelWidth)950 void ScintillaEdit::setMarginRight(sptr_t pixelWidth) {
951 send(SCI_SETMARGINRIGHT, 0, pixelWidth);
952 }
953
marginRight() const954 sptr_t ScintillaEdit::marginRight() const {
955 return send(SCI_GETMARGINRIGHT, 0, 0);
956 }
957
modify() const958 bool ScintillaEdit::modify() const {
959 return send(SCI_GETMODIFY, 0, 0);
960 }
961
setSel(sptr_t anchor,sptr_t caret)962 void ScintillaEdit::setSel(sptr_t anchor, sptr_t caret) {
963 send(SCI_SETSEL, anchor, caret);
964 }
965
getSelText()966 QByteArray ScintillaEdit::getSelText() {
967 return TextReturner(SCI_GETSELTEXT, 0);
968 }
969
hideSelection(bool hide)970 void ScintillaEdit::hideSelection(bool hide) {
971 send(SCI_HIDESELECTION, hide, 0);
972 }
973
pointXFromPosition(sptr_t pos)974 sptr_t ScintillaEdit::pointXFromPosition(sptr_t pos) {
975 return send(SCI_POINTXFROMPOSITION, 0, pos);
976 }
977
pointYFromPosition(sptr_t pos)978 sptr_t ScintillaEdit::pointYFromPosition(sptr_t pos) {
979 return send(SCI_POINTYFROMPOSITION, 0, pos);
980 }
981
lineFromPosition(sptr_t pos)982 sptr_t ScintillaEdit::lineFromPosition(sptr_t pos) {
983 return send(SCI_LINEFROMPOSITION, pos, 0);
984 }
985
positionFromLine(sptr_t line)986 sptr_t ScintillaEdit::positionFromLine(sptr_t line) {
987 return send(SCI_POSITIONFROMLINE, line, 0);
988 }
989
lineScroll(sptr_t columns,sptr_t lines)990 void ScintillaEdit::lineScroll(sptr_t columns, sptr_t lines) {
991 send(SCI_LINESCROLL, columns, lines);
992 }
993
scrollCaret()994 void ScintillaEdit::scrollCaret() {
995 send(SCI_SCROLLCARET, 0, 0);
996 }
997
scrollRange(sptr_t secondary,sptr_t primary)998 void ScintillaEdit::scrollRange(sptr_t secondary, sptr_t primary) {
999 send(SCI_SCROLLRANGE, secondary, primary);
1000 }
1001
replaceSel(const char * text)1002 void ScintillaEdit::replaceSel(const char * text) {
1003 send(SCI_REPLACESEL, 0, (sptr_t)text);
1004 }
1005
setReadOnly(bool readOnly)1006 void ScintillaEdit::setReadOnly(bool readOnly) {
1007 send(SCI_SETREADONLY, readOnly, 0);
1008 }
1009
null()1010 void ScintillaEdit::null() {
1011 send(SCI_NULL, 0, 0);
1012 }
1013
canPaste()1014 bool ScintillaEdit::canPaste() {
1015 return send(SCI_CANPASTE, 0, 0);
1016 }
1017
canUndo()1018 bool ScintillaEdit::canUndo() {
1019 return send(SCI_CANUNDO, 0, 0);
1020 }
1021
emptyUndoBuffer()1022 void ScintillaEdit::emptyUndoBuffer() {
1023 send(SCI_EMPTYUNDOBUFFER, 0, 0);
1024 }
1025
undo()1026 void ScintillaEdit::undo() {
1027 send(SCI_UNDO, 0, 0);
1028 }
1029
cut()1030 void ScintillaEdit::cut() {
1031 send(SCI_CUT, 0, 0);
1032 }
1033
copy()1034 void ScintillaEdit::copy() {
1035 send(SCI_COPY, 0, 0);
1036 }
1037
paste()1038 void ScintillaEdit::paste() {
1039 send(SCI_PASTE, 0, 0);
1040 }
1041
clear()1042 void ScintillaEdit::clear() {
1043 send(SCI_CLEAR, 0, 0);
1044 }
1045
setText(const char * text)1046 void ScintillaEdit::setText(const char * text) {
1047 send(SCI_SETTEXT, 0, (sptr_t)text);
1048 }
1049
getText(sptr_t length)1050 QByteArray ScintillaEdit::getText(sptr_t length) {
1051 return TextReturner(SCI_GETTEXT, length);
1052 }
1053
textLength() const1054 sptr_t ScintillaEdit::textLength() const {
1055 return send(SCI_GETTEXTLENGTH, 0, 0);
1056 }
1057
directFunction() const1058 sptr_t ScintillaEdit::directFunction() const {
1059 return send(SCI_GETDIRECTFUNCTION, 0, 0);
1060 }
1061
directPointer() const1062 sptr_t ScintillaEdit::directPointer() const {
1063 return send(SCI_GETDIRECTPOINTER, 0, 0);
1064 }
1065
setOvertype(bool overType)1066 void ScintillaEdit::setOvertype(bool overType) {
1067 send(SCI_SETOVERTYPE, overType, 0);
1068 }
1069
overtype() const1070 bool ScintillaEdit::overtype() const {
1071 return send(SCI_GETOVERTYPE, 0, 0);
1072 }
1073
setCaretWidth(sptr_t pixelWidth)1074 void ScintillaEdit::setCaretWidth(sptr_t pixelWidth) {
1075 send(SCI_SETCARETWIDTH, pixelWidth, 0);
1076 }
1077
caretWidth() const1078 sptr_t ScintillaEdit::caretWidth() const {
1079 return send(SCI_GETCARETWIDTH, 0, 0);
1080 }
1081
setTargetStart(sptr_t start)1082 void ScintillaEdit::setTargetStart(sptr_t start) {
1083 send(SCI_SETTARGETSTART, start, 0);
1084 }
1085
targetStart() const1086 sptr_t ScintillaEdit::targetStart() const {
1087 return send(SCI_GETTARGETSTART, 0, 0);
1088 }
1089
setTargetStartVirtualSpace(sptr_t space)1090 void ScintillaEdit::setTargetStartVirtualSpace(sptr_t space) {
1091 send(SCI_SETTARGETSTARTVIRTUALSPACE, space, 0);
1092 }
1093
targetStartVirtualSpace() const1094 sptr_t ScintillaEdit::targetStartVirtualSpace() const {
1095 return send(SCI_GETTARGETSTARTVIRTUALSPACE, 0, 0);
1096 }
1097
setTargetEnd(sptr_t end)1098 void ScintillaEdit::setTargetEnd(sptr_t end) {
1099 send(SCI_SETTARGETEND, end, 0);
1100 }
1101
targetEnd() const1102 sptr_t ScintillaEdit::targetEnd() const {
1103 return send(SCI_GETTARGETEND, 0, 0);
1104 }
1105
setTargetEndVirtualSpace(sptr_t space)1106 void ScintillaEdit::setTargetEndVirtualSpace(sptr_t space) {
1107 send(SCI_SETTARGETENDVIRTUALSPACE, space, 0);
1108 }
1109
targetEndVirtualSpace() const1110 sptr_t ScintillaEdit::targetEndVirtualSpace() const {
1111 return send(SCI_GETTARGETENDVIRTUALSPACE, 0, 0);
1112 }
1113
setTargetRange(sptr_t start,sptr_t end)1114 void ScintillaEdit::setTargetRange(sptr_t start, sptr_t end) {
1115 send(SCI_SETTARGETRANGE, start, end);
1116 }
1117
targetText() const1118 QByteArray ScintillaEdit::targetText() const {
1119 return TextReturner(SCI_GETTARGETTEXT, 0);
1120 }
1121
targetFromSelection()1122 void ScintillaEdit::targetFromSelection() {
1123 send(SCI_TARGETFROMSELECTION, 0, 0);
1124 }
1125
targetWholeDocument()1126 void ScintillaEdit::targetWholeDocument() {
1127 send(SCI_TARGETWHOLEDOCUMENT, 0, 0);
1128 }
1129
replaceTarget(sptr_t length,const char * text)1130 sptr_t ScintillaEdit::replaceTarget(sptr_t length, const char * text) {
1131 return send(SCI_REPLACETARGET, length, (sptr_t)text);
1132 }
1133
replaceTargetRE(sptr_t length,const char * text)1134 sptr_t ScintillaEdit::replaceTargetRE(sptr_t length, const char * text) {
1135 return send(SCI_REPLACETARGETRE, length, (sptr_t)text);
1136 }
1137
searchInTarget(sptr_t length,const char * text)1138 sptr_t ScintillaEdit::searchInTarget(sptr_t length, const char * text) {
1139 return send(SCI_SEARCHINTARGET, length, (sptr_t)text);
1140 }
1141
setSearchFlags(sptr_t searchFlags)1142 void ScintillaEdit::setSearchFlags(sptr_t searchFlags) {
1143 send(SCI_SETSEARCHFLAGS, searchFlags, 0);
1144 }
1145
searchFlags() const1146 sptr_t ScintillaEdit::searchFlags() const {
1147 return send(SCI_GETSEARCHFLAGS, 0, 0);
1148 }
1149
callTipShow(sptr_t pos,const char * definition)1150 void ScintillaEdit::callTipShow(sptr_t pos, const char * definition) {
1151 send(SCI_CALLTIPSHOW, pos, (sptr_t)definition);
1152 }
1153
callTipCancel()1154 void ScintillaEdit::callTipCancel() {
1155 send(SCI_CALLTIPCANCEL, 0, 0);
1156 }
1157
callTipActive()1158 bool ScintillaEdit::callTipActive() {
1159 return send(SCI_CALLTIPACTIVE, 0, 0);
1160 }
1161
callTipPosStart()1162 sptr_t ScintillaEdit::callTipPosStart() {
1163 return send(SCI_CALLTIPPOSSTART, 0, 0);
1164 }
1165
callTipSetPosStart(sptr_t posStart)1166 void ScintillaEdit::callTipSetPosStart(sptr_t posStart) {
1167 send(SCI_CALLTIPSETPOSSTART, posStart, 0);
1168 }
1169
callTipSetHlt(sptr_t highlightStart,sptr_t highlightEnd)1170 void ScintillaEdit::callTipSetHlt(sptr_t highlightStart, sptr_t highlightEnd) {
1171 send(SCI_CALLTIPSETHLT, highlightStart, highlightEnd);
1172 }
1173
callTipSetBack(sptr_t back)1174 void ScintillaEdit::callTipSetBack(sptr_t back) {
1175 send(SCI_CALLTIPSETBACK, back, 0);
1176 }
1177
callTipSetFore(sptr_t fore)1178 void ScintillaEdit::callTipSetFore(sptr_t fore) {
1179 send(SCI_CALLTIPSETFORE, fore, 0);
1180 }
1181
callTipSetForeHlt(sptr_t fore)1182 void ScintillaEdit::callTipSetForeHlt(sptr_t fore) {
1183 send(SCI_CALLTIPSETFOREHLT, fore, 0);
1184 }
1185
callTipUseStyle(sptr_t tabSize)1186 void ScintillaEdit::callTipUseStyle(sptr_t tabSize) {
1187 send(SCI_CALLTIPUSESTYLE, tabSize, 0);
1188 }
1189
callTipSetPosition(bool above)1190 void ScintillaEdit::callTipSetPosition(bool above) {
1191 send(SCI_CALLTIPSETPOSITION, above, 0);
1192 }
1193
visibleFromDocLine(sptr_t docLine)1194 sptr_t ScintillaEdit::visibleFromDocLine(sptr_t docLine) {
1195 return send(SCI_VISIBLEFROMDOCLINE, docLine, 0);
1196 }
1197
docLineFromVisible(sptr_t displayLine)1198 sptr_t ScintillaEdit::docLineFromVisible(sptr_t displayLine) {
1199 return send(SCI_DOCLINEFROMVISIBLE, displayLine, 0);
1200 }
1201
wrapCount(sptr_t docLine)1202 sptr_t ScintillaEdit::wrapCount(sptr_t docLine) {
1203 return send(SCI_WRAPCOUNT, docLine, 0);
1204 }
1205
setFoldLevel(sptr_t line,sptr_t level)1206 void ScintillaEdit::setFoldLevel(sptr_t line, sptr_t level) {
1207 send(SCI_SETFOLDLEVEL, line, level);
1208 }
1209
foldLevel(sptr_t line) const1210 sptr_t ScintillaEdit::foldLevel(sptr_t line) const {
1211 return send(SCI_GETFOLDLEVEL, line, 0);
1212 }
1213
lastChild(sptr_t line,sptr_t level) const1214 sptr_t ScintillaEdit::lastChild(sptr_t line, sptr_t level) const {
1215 return send(SCI_GETLASTCHILD, line, level);
1216 }
1217
foldParent(sptr_t line) const1218 sptr_t ScintillaEdit::foldParent(sptr_t line) const {
1219 return send(SCI_GETFOLDPARENT, line, 0);
1220 }
1221
showLines(sptr_t lineStart,sptr_t lineEnd)1222 void ScintillaEdit::showLines(sptr_t lineStart, sptr_t lineEnd) {
1223 send(SCI_SHOWLINES, lineStart, lineEnd);
1224 }
1225
hideLines(sptr_t lineStart,sptr_t lineEnd)1226 void ScintillaEdit::hideLines(sptr_t lineStart, sptr_t lineEnd) {
1227 send(SCI_HIDELINES, lineStart, lineEnd);
1228 }
1229
lineVisible(sptr_t line) const1230 bool ScintillaEdit::lineVisible(sptr_t line) const {
1231 return send(SCI_GETLINEVISIBLE, line, 0);
1232 }
1233
allLinesVisible() const1234 bool ScintillaEdit::allLinesVisible() const {
1235 return send(SCI_GETALLLINESVISIBLE, 0, 0);
1236 }
1237
setFoldExpanded(sptr_t line,bool expanded)1238 void ScintillaEdit::setFoldExpanded(sptr_t line, bool expanded) {
1239 send(SCI_SETFOLDEXPANDED, line, expanded);
1240 }
1241
foldExpanded(sptr_t line) const1242 bool ScintillaEdit::foldExpanded(sptr_t line) const {
1243 return send(SCI_GETFOLDEXPANDED, line, 0);
1244 }
1245
toggleFold(sptr_t line)1246 void ScintillaEdit::toggleFold(sptr_t line) {
1247 send(SCI_TOGGLEFOLD, line, 0);
1248 }
1249
toggleFoldShowText(sptr_t line,const char * text)1250 void ScintillaEdit::toggleFoldShowText(sptr_t line, const char * text) {
1251 send(SCI_TOGGLEFOLDSHOWTEXT, line, (sptr_t)text);
1252 }
1253
foldDisplayTextSetStyle(sptr_t style)1254 void ScintillaEdit::foldDisplayTextSetStyle(sptr_t style) {
1255 send(SCI_FOLDDISPLAYTEXTSETSTYLE, style, 0);
1256 }
1257
foldDisplayTextStyle() const1258 sptr_t ScintillaEdit::foldDisplayTextStyle() const {
1259 return send(SCI_FOLDDISPLAYTEXTGETSTYLE, 0, 0);
1260 }
1261
setDefaultFoldDisplayText(const char * text)1262 void ScintillaEdit::setDefaultFoldDisplayText(const char * text) {
1263 send(SCI_SETDEFAULTFOLDDISPLAYTEXT, 0, (sptr_t)text);
1264 }
1265
getDefaultFoldDisplayText()1266 QByteArray ScintillaEdit::getDefaultFoldDisplayText() {
1267 return TextReturner(SCI_GETDEFAULTFOLDDISPLAYTEXT, 0);
1268 }
1269
foldLine(sptr_t line,sptr_t action)1270 void ScintillaEdit::foldLine(sptr_t line, sptr_t action) {
1271 send(SCI_FOLDLINE, line, action);
1272 }
1273
foldChildren(sptr_t line,sptr_t action)1274 void ScintillaEdit::foldChildren(sptr_t line, sptr_t action) {
1275 send(SCI_FOLDCHILDREN, line, action);
1276 }
1277
expandChildren(sptr_t line,sptr_t level)1278 void ScintillaEdit::expandChildren(sptr_t line, sptr_t level) {
1279 send(SCI_EXPANDCHILDREN, line, level);
1280 }
1281
foldAll(sptr_t action)1282 void ScintillaEdit::foldAll(sptr_t action) {
1283 send(SCI_FOLDALL, action, 0);
1284 }
1285
ensureVisible(sptr_t line)1286 void ScintillaEdit::ensureVisible(sptr_t line) {
1287 send(SCI_ENSUREVISIBLE, line, 0);
1288 }
1289
setAutomaticFold(sptr_t automaticFold)1290 void ScintillaEdit::setAutomaticFold(sptr_t automaticFold) {
1291 send(SCI_SETAUTOMATICFOLD, automaticFold, 0);
1292 }
1293
automaticFold() const1294 sptr_t ScintillaEdit::automaticFold() const {
1295 return send(SCI_GETAUTOMATICFOLD, 0, 0);
1296 }
1297
setFoldFlags(sptr_t flags)1298 void ScintillaEdit::setFoldFlags(sptr_t flags) {
1299 send(SCI_SETFOLDFLAGS, flags, 0);
1300 }
1301
ensureVisibleEnforcePolicy(sptr_t line)1302 void ScintillaEdit::ensureVisibleEnforcePolicy(sptr_t line) {
1303 send(SCI_ENSUREVISIBLEENFORCEPOLICY, line, 0);
1304 }
1305
setTabIndents(bool tabIndents)1306 void ScintillaEdit::setTabIndents(bool tabIndents) {
1307 send(SCI_SETTABINDENTS, tabIndents, 0);
1308 }
1309
tabIndents() const1310 bool ScintillaEdit::tabIndents() const {
1311 return send(SCI_GETTABINDENTS, 0, 0);
1312 }
1313
setBackSpaceUnIndents(bool bsUnIndents)1314 void ScintillaEdit::setBackSpaceUnIndents(bool bsUnIndents) {
1315 send(SCI_SETBACKSPACEUNINDENTS, bsUnIndents, 0);
1316 }
1317
backSpaceUnIndents() const1318 bool ScintillaEdit::backSpaceUnIndents() const {
1319 return send(SCI_GETBACKSPACEUNINDENTS, 0, 0);
1320 }
1321
setMouseDwellTime(sptr_t periodMilliseconds)1322 void ScintillaEdit::setMouseDwellTime(sptr_t periodMilliseconds) {
1323 send(SCI_SETMOUSEDWELLTIME, periodMilliseconds, 0);
1324 }
1325
mouseDwellTime() const1326 sptr_t ScintillaEdit::mouseDwellTime() const {
1327 return send(SCI_GETMOUSEDWELLTIME, 0, 0);
1328 }
1329
wordStartPosition(sptr_t pos,bool onlyWordCharacters)1330 sptr_t ScintillaEdit::wordStartPosition(sptr_t pos, bool onlyWordCharacters) {
1331 return send(SCI_WORDSTARTPOSITION, pos, onlyWordCharacters);
1332 }
1333
wordEndPosition(sptr_t pos,bool onlyWordCharacters)1334 sptr_t ScintillaEdit::wordEndPosition(sptr_t pos, bool onlyWordCharacters) {
1335 return send(SCI_WORDENDPOSITION, pos, onlyWordCharacters);
1336 }
1337
isRangeWord(sptr_t start,sptr_t end)1338 bool ScintillaEdit::isRangeWord(sptr_t start, sptr_t end) {
1339 return send(SCI_ISRANGEWORD, start, end);
1340 }
1341
setIdleStyling(sptr_t idleStyling)1342 void ScintillaEdit::setIdleStyling(sptr_t idleStyling) {
1343 send(SCI_SETIDLESTYLING, idleStyling, 0);
1344 }
1345
idleStyling() const1346 sptr_t ScintillaEdit::idleStyling() const {
1347 return send(SCI_GETIDLESTYLING, 0, 0);
1348 }
1349
setWrapMode(sptr_t wrapMode)1350 void ScintillaEdit::setWrapMode(sptr_t wrapMode) {
1351 send(SCI_SETWRAPMODE, wrapMode, 0);
1352 }
1353
wrapMode() const1354 sptr_t ScintillaEdit::wrapMode() const {
1355 return send(SCI_GETWRAPMODE, 0, 0);
1356 }
1357
setWrapVisualFlags(sptr_t wrapVisualFlags)1358 void ScintillaEdit::setWrapVisualFlags(sptr_t wrapVisualFlags) {
1359 send(SCI_SETWRAPVISUALFLAGS, wrapVisualFlags, 0);
1360 }
1361
wrapVisualFlags() const1362 sptr_t ScintillaEdit::wrapVisualFlags() const {
1363 return send(SCI_GETWRAPVISUALFLAGS, 0, 0);
1364 }
1365
setWrapVisualFlagsLocation(sptr_t wrapVisualFlagsLocation)1366 void ScintillaEdit::setWrapVisualFlagsLocation(sptr_t wrapVisualFlagsLocation) {
1367 send(SCI_SETWRAPVISUALFLAGSLOCATION, wrapVisualFlagsLocation, 0);
1368 }
1369
wrapVisualFlagsLocation() const1370 sptr_t ScintillaEdit::wrapVisualFlagsLocation() const {
1371 return send(SCI_GETWRAPVISUALFLAGSLOCATION, 0, 0);
1372 }
1373
setWrapStartIndent(sptr_t indent)1374 void ScintillaEdit::setWrapStartIndent(sptr_t indent) {
1375 send(SCI_SETWRAPSTARTINDENT, indent, 0);
1376 }
1377
wrapStartIndent() const1378 sptr_t ScintillaEdit::wrapStartIndent() const {
1379 return send(SCI_GETWRAPSTARTINDENT, 0, 0);
1380 }
1381
setWrapIndentMode(sptr_t wrapIndentMode)1382 void ScintillaEdit::setWrapIndentMode(sptr_t wrapIndentMode) {
1383 send(SCI_SETWRAPINDENTMODE, wrapIndentMode, 0);
1384 }
1385
wrapIndentMode() const1386 sptr_t ScintillaEdit::wrapIndentMode() const {
1387 return send(SCI_GETWRAPINDENTMODE, 0, 0);
1388 }
1389
setLayoutCache(sptr_t cacheMode)1390 void ScintillaEdit::setLayoutCache(sptr_t cacheMode) {
1391 send(SCI_SETLAYOUTCACHE, cacheMode, 0);
1392 }
1393
layoutCache() const1394 sptr_t ScintillaEdit::layoutCache() const {
1395 return send(SCI_GETLAYOUTCACHE, 0, 0);
1396 }
1397
setScrollWidth(sptr_t pixelWidth)1398 void ScintillaEdit::setScrollWidth(sptr_t pixelWidth) {
1399 send(SCI_SETSCROLLWIDTH, pixelWidth, 0);
1400 }
1401
scrollWidth() const1402 sptr_t ScintillaEdit::scrollWidth() const {
1403 return send(SCI_GETSCROLLWIDTH, 0, 0);
1404 }
1405
setScrollWidthTracking(bool tracking)1406 void ScintillaEdit::setScrollWidthTracking(bool tracking) {
1407 send(SCI_SETSCROLLWIDTHTRACKING, tracking, 0);
1408 }
1409
scrollWidthTracking() const1410 bool ScintillaEdit::scrollWidthTracking() const {
1411 return send(SCI_GETSCROLLWIDTHTRACKING, 0, 0);
1412 }
1413
textWidth(sptr_t style,const char * text)1414 sptr_t ScintillaEdit::textWidth(sptr_t style, const char * text) {
1415 return send(SCI_TEXTWIDTH, style, (sptr_t)text);
1416 }
1417
setEndAtLastLine(bool endAtLastLine)1418 void ScintillaEdit::setEndAtLastLine(bool endAtLastLine) {
1419 send(SCI_SETENDATLASTLINE, endAtLastLine, 0);
1420 }
1421
endAtLastLine() const1422 bool ScintillaEdit::endAtLastLine() const {
1423 return send(SCI_GETENDATLASTLINE, 0, 0);
1424 }
1425
textHeight(sptr_t line)1426 sptr_t ScintillaEdit::textHeight(sptr_t line) {
1427 return send(SCI_TEXTHEIGHT, line, 0);
1428 }
1429
setVScrollBar(bool visible)1430 void ScintillaEdit::setVScrollBar(bool visible) {
1431 send(SCI_SETVSCROLLBAR, visible, 0);
1432 }
1433
vScrollBar() const1434 bool ScintillaEdit::vScrollBar() const {
1435 return send(SCI_GETVSCROLLBAR, 0, 0);
1436 }
1437
appendText(sptr_t length,const char * text)1438 void ScintillaEdit::appendText(sptr_t length, const char * text) {
1439 send(SCI_APPENDTEXT, length, (sptr_t)text);
1440 }
1441
twoPhaseDraw() const1442 bool ScintillaEdit::twoPhaseDraw() const {
1443 return send(SCI_GETTWOPHASEDRAW, 0, 0);
1444 }
1445
setTwoPhaseDraw(bool twoPhase)1446 void ScintillaEdit::setTwoPhaseDraw(bool twoPhase) {
1447 send(SCI_SETTWOPHASEDRAW, twoPhase, 0);
1448 }
1449
phasesDraw() const1450 sptr_t ScintillaEdit::phasesDraw() const {
1451 return send(SCI_GETPHASESDRAW, 0, 0);
1452 }
1453
setPhasesDraw(sptr_t phases)1454 void ScintillaEdit::setPhasesDraw(sptr_t phases) {
1455 send(SCI_SETPHASESDRAW, phases, 0);
1456 }
1457
setFontQuality(sptr_t fontQuality)1458 void ScintillaEdit::setFontQuality(sptr_t fontQuality) {
1459 send(SCI_SETFONTQUALITY, fontQuality, 0);
1460 }
1461
fontQuality() const1462 sptr_t ScintillaEdit::fontQuality() const {
1463 return send(SCI_GETFONTQUALITY, 0, 0);
1464 }
1465
setFirstVisibleLine(sptr_t displayLine)1466 void ScintillaEdit::setFirstVisibleLine(sptr_t displayLine) {
1467 send(SCI_SETFIRSTVISIBLELINE, displayLine, 0);
1468 }
1469
setMultiPaste(sptr_t multiPaste)1470 void ScintillaEdit::setMultiPaste(sptr_t multiPaste) {
1471 send(SCI_SETMULTIPASTE, multiPaste, 0);
1472 }
1473
multiPaste() const1474 sptr_t ScintillaEdit::multiPaste() const {
1475 return send(SCI_GETMULTIPASTE, 0, 0);
1476 }
1477
tag(sptr_t tagNumber) const1478 QByteArray ScintillaEdit::tag(sptr_t tagNumber) const {
1479 return TextReturner(SCI_GETTAG, tagNumber);
1480 }
1481
linesJoin()1482 void ScintillaEdit::linesJoin() {
1483 send(SCI_LINESJOIN, 0, 0);
1484 }
1485
linesSplit(sptr_t pixelWidth)1486 void ScintillaEdit::linesSplit(sptr_t pixelWidth) {
1487 send(SCI_LINESSPLIT, pixelWidth, 0);
1488 }
1489
setFoldMarginColour(bool useSetting,sptr_t back)1490 void ScintillaEdit::setFoldMarginColour(bool useSetting, sptr_t back) {
1491 send(SCI_SETFOLDMARGINCOLOUR, useSetting, back);
1492 }
1493
setFoldMarginHiColour(bool useSetting,sptr_t fore)1494 void ScintillaEdit::setFoldMarginHiColour(bool useSetting, sptr_t fore) {
1495 send(SCI_SETFOLDMARGINHICOLOUR, useSetting, fore);
1496 }
1497
setAccessibility(sptr_t accessibility)1498 void ScintillaEdit::setAccessibility(sptr_t accessibility) {
1499 send(SCI_SETACCESSIBILITY, accessibility, 0);
1500 }
1501
accessibility() const1502 sptr_t ScintillaEdit::accessibility() const {
1503 return send(SCI_GETACCESSIBILITY, 0, 0);
1504 }
1505
lineDown()1506 void ScintillaEdit::lineDown() {
1507 send(SCI_LINEDOWN, 0, 0);
1508 }
1509
lineDownExtend()1510 void ScintillaEdit::lineDownExtend() {
1511 send(SCI_LINEDOWNEXTEND, 0, 0);
1512 }
1513
lineUp()1514 void ScintillaEdit::lineUp() {
1515 send(SCI_LINEUP, 0, 0);
1516 }
1517
lineUpExtend()1518 void ScintillaEdit::lineUpExtend() {
1519 send(SCI_LINEUPEXTEND, 0, 0);
1520 }
1521
charLeft()1522 void ScintillaEdit::charLeft() {
1523 send(SCI_CHARLEFT, 0, 0);
1524 }
1525
charLeftExtend()1526 void ScintillaEdit::charLeftExtend() {
1527 send(SCI_CHARLEFTEXTEND, 0, 0);
1528 }
1529
charRight()1530 void ScintillaEdit::charRight() {
1531 send(SCI_CHARRIGHT, 0, 0);
1532 }
1533
charRightExtend()1534 void ScintillaEdit::charRightExtend() {
1535 send(SCI_CHARRIGHTEXTEND, 0, 0);
1536 }
1537
wordLeft()1538 void ScintillaEdit::wordLeft() {
1539 send(SCI_WORDLEFT, 0, 0);
1540 }
1541
wordLeftExtend()1542 void ScintillaEdit::wordLeftExtend() {
1543 send(SCI_WORDLEFTEXTEND, 0, 0);
1544 }
1545
wordRight()1546 void ScintillaEdit::wordRight() {
1547 send(SCI_WORDRIGHT, 0, 0);
1548 }
1549
wordRightExtend()1550 void ScintillaEdit::wordRightExtend() {
1551 send(SCI_WORDRIGHTEXTEND, 0, 0);
1552 }
1553
home()1554 void ScintillaEdit::home() {
1555 send(SCI_HOME, 0, 0);
1556 }
1557
homeExtend()1558 void ScintillaEdit::homeExtend() {
1559 send(SCI_HOMEEXTEND, 0, 0);
1560 }
1561
lineEnd()1562 void ScintillaEdit::lineEnd() {
1563 send(SCI_LINEEND, 0, 0);
1564 }
1565
lineEndExtend()1566 void ScintillaEdit::lineEndExtend() {
1567 send(SCI_LINEENDEXTEND, 0, 0);
1568 }
1569
documentStart()1570 void ScintillaEdit::documentStart() {
1571 send(SCI_DOCUMENTSTART, 0, 0);
1572 }
1573
documentStartExtend()1574 void ScintillaEdit::documentStartExtend() {
1575 send(SCI_DOCUMENTSTARTEXTEND, 0, 0);
1576 }
1577
documentEnd()1578 void ScintillaEdit::documentEnd() {
1579 send(SCI_DOCUMENTEND, 0, 0);
1580 }
1581
documentEndExtend()1582 void ScintillaEdit::documentEndExtend() {
1583 send(SCI_DOCUMENTENDEXTEND, 0, 0);
1584 }
1585
pageUp()1586 void ScintillaEdit::pageUp() {
1587 send(SCI_PAGEUP, 0, 0);
1588 }
1589
pageUpExtend()1590 void ScintillaEdit::pageUpExtend() {
1591 send(SCI_PAGEUPEXTEND, 0, 0);
1592 }
1593
pageDown()1594 void ScintillaEdit::pageDown() {
1595 send(SCI_PAGEDOWN, 0, 0);
1596 }
1597
pageDownExtend()1598 void ScintillaEdit::pageDownExtend() {
1599 send(SCI_PAGEDOWNEXTEND, 0, 0);
1600 }
1601
editToggleOvertype()1602 void ScintillaEdit::editToggleOvertype() {
1603 send(SCI_EDITTOGGLEOVERTYPE, 0, 0);
1604 }
1605
cancel()1606 void ScintillaEdit::cancel() {
1607 send(SCI_CANCEL, 0, 0);
1608 }
1609
deleteBack()1610 void ScintillaEdit::deleteBack() {
1611 send(SCI_DELETEBACK, 0, 0);
1612 }
1613
tab()1614 void ScintillaEdit::tab() {
1615 send(SCI_TAB, 0, 0);
1616 }
1617
backTab()1618 void ScintillaEdit::backTab() {
1619 send(SCI_BACKTAB, 0, 0);
1620 }
1621
newLine()1622 void ScintillaEdit::newLine() {
1623 send(SCI_NEWLINE, 0, 0);
1624 }
1625
formFeed()1626 void ScintillaEdit::formFeed() {
1627 send(SCI_FORMFEED, 0, 0);
1628 }
1629
vCHome()1630 void ScintillaEdit::vCHome() {
1631 send(SCI_VCHOME, 0, 0);
1632 }
1633
vCHomeExtend()1634 void ScintillaEdit::vCHomeExtend() {
1635 send(SCI_VCHOMEEXTEND, 0, 0);
1636 }
1637
zoomIn()1638 void ScintillaEdit::zoomIn() {
1639 send(SCI_ZOOMIN, 0, 0);
1640 }
1641
zoomOut()1642 void ScintillaEdit::zoomOut() {
1643 send(SCI_ZOOMOUT, 0, 0);
1644 }
1645
delWordLeft()1646 void ScintillaEdit::delWordLeft() {
1647 send(SCI_DELWORDLEFT, 0, 0);
1648 }
1649
delWordRight()1650 void ScintillaEdit::delWordRight() {
1651 send(SCI_DELWORDRIGHT, 0, 0);
1652 }
1653
delWordRightEnd()1654 void ScintillaEdit::delWordRightEnd() {
1655 send(SCI_DELWORDRIGHTEND, 0, 0);
1656 }
1657
lineCut()1658 void ScintillaEdit::lineCut() {
1659 send(SCI_LINECUT, 0, 0);
1660 }
1661
lineDelete()1662 void ScintillaEdit::lineDelete() {
1663 send(SCI_LINEDELETE, 0, 0);
1664 }
1665
lineTranspose()1666 void ScintillaEdit::lineTranspose() {
1667 send(SCI_LINETRANSPOSE, 0, 0);
1668 }
1669
lineReverse()1670 void ScintillaEdit::lineReverse() {
1671 send(SCI_LINEREVERSE, 0, 0);
1672 }
1673
lineDuplicate()1674 void ScintillaEdit::lineDuplicate() {
1675 send(SCI_LINEDUPLICATE, 0, 0);
1676 }
1677
lowerCase()1678 void ScintillaEdit::lowerCase() {
1679 send(SCI_LOWERCASE, 0, 0);
1680 }
1681
upperCase()1682 void ScintillaEdit::upperCase() {
1683 send(SCI_UPPERCASE, 0, 0);
1684 }
1685
lineScrollDown()1686 void ScintillaEdit::lineScrollDown() {
1687 send(SCI_LINESCROLLDOWN, 0, 0);
1688 }
1689
lineScrollUp()1690 void ScintillaEdit::lineScrollUp() {
1691 send(SCI_LINESCROLLUP, 0, 0);
1692 }
1693
deleteBackNotLine()1694 void ScintillaEdit::deleteBackNotLine() {
1695 send(SCI_DELETEBACKNOTLINE, 0, 0);
1696 }
1697
homeDisplay()1698 void ScintillaEdit::homeDisplay() {
1699 send(SCI_HOMEDISPLAY, 0, 0);
1700 }
1701
homeDisplayExtend()1702 void ScintillaEdit::homeDisplayExtend() {
1703 send(SCI_HOMEDISPLAYEXTEND, 0, 0);
1704 }
1705
lineEndDisplay()1706 void ScintillaEdit::lineEndDisplay() {
1707 send(SCI_LINEENDDISPLAY, 0, 0);
1708 }
1709
lineEndDisplayExtend()1710 void ScintillaEdit::lineEndDisplayExtend() {
1711 send(SCI_LINEENDDISPLAYEXTEND, 0, 0);
1712 }
1713
homeWrap()1714 void ScintillaEdit::homeWrap() {
1715 send(SCI_HOMEWRAP, 0, 0);
1716 }
1717
homeWrapExtend()1718 void ScintillaEdit::homeWrapExtend() {
1719 send(SCI_HOMEWRAPEXTEND, 0, 0);
1720 }
1721
lineEndWrap()1722 void ScintillaEdit::lineEndWrap() {
1723 send(SCI_LINEENDWRAP, 0, 0);
1724 }
1725
lineEndWrapExtend()1726 void ScintillaEdit::lineEndWrapExtend() {
1727 send(SCI_LINEENDWRAPEXTEND, 0, 0);
1728 }
1729
vCHomeWrap()1730 void ScintillaEdit::vCHomeWrap() {
1731 send(SCI_VCHOMEWRAP, 0, 0);
1732 }
1733
vCHomeWrapExtend()1734 void ScintillaEdit::vCHomeWrapExtend() {
1735 send(SCI_VCHOMEWRAPEXTEND, 0, 0);
1736 }
1737
lineCopy()1738 void ScintillaEdit::lineCopy() {
1739 send(SCI_LINECOPY, 0, 0);
1740 }
1741
moveCaretInsideView()1742 void ScintillaEdit::moveCaretInsideView() {
1743 send(SCI_MOVECARETINSIDEVIEW, 0, 0);
1744 }
1745
lineLength(sptr_t line)1746 sptr_t ScintillaEdit::lineLength(sptr_t line) {
1747 return send(SCI_LINELENGTH, line, 0);
1748 }
1749
braceHighlight(sptr_t posA,sptr_t posB)1750 void ScintillaEdit::braceHighlight(sptr_t posA, sptr_t posB) {
1751 send(SCI_BRACEHIGHLIGHT, posA, posB);
1752 }
1753
braceHighlightIndicator(bool useSetting,sptr_t indicator)1754 void ScintillaEdit::braceHighlightIndicator(bool useSetting, sptr_t indicator) {
1755 send(SCI_BRACEHIGHLIGHTINDICATOR, useSetting, indicator);
1756 }
1757
braceBadLight(sptr_t pos)1758 void ScintillaEdit::braceBadLight(sptr_t pos) {
1759 send(SCI_BRACEBADLIGHT, pos, 0);
1760 }
1761
braceBadLightIndicator(bool useSetting,sptr_t indicator)1762 void ScintillaEdit::braceBadLightIndicator(bool useSetting, sptr_t indicator) {
1763 send(SCI_BRACEBADLIGHTINDICATOR, useSetting, indicator);
1764 }
1765
braceMatch(sptr_t pos,sptr_t maxReStyle)1766 sptr_t ScintillaEdit::braceMatch(sptr_t pos, sptr_t maxReStyle) {
1767 return send(SCI_BRACEMATCH, pos, maxReStyle);
1768 }
1769
viewEOL() const1770 bool ScintillaEdit::viewEOL() const {
1771 return send(SCI_GETVIEWEOL, 0, 0);
1772 }
1773
setViewEOL(bool visible)1774 void ScintillaEdit::setViewEOL(bool visible) {
1775 send(SCI_SETVIEWEOL, visible, 0);
1776 }
1777
docPointer() const1778 sptr_t ScintillaEdit::docPointer() const {
1779 return send(SCI_GETDOCPOINTER, 0, 0);
1780 }
1781
setDocPointer(sptr_t doc)1782 void ScintillaEdit::setDocPointer(sptr_t doc) {
1783 send(SCI_SETDOCPOINTER, 0, doc);
1784 }
1785
setModEventMask(sptr_t eventMask)1786 void ScintillaEdit::setModEventMask(sptr_t eventMask) {
1787 send(SCI_SETMODEVENTMASK, eventMask, 0);
1788 }
1789
edgeColumn() const1790 sptr_t ScintillaEdit::edgeColumn() const {
1791 return send(SCI_GETEDGECOLUMN, 0, 0);
1792 }
1793
setEdgeColumn(sptr_t column)1794 void ScintillaEdit::setEdgeColumn(sptr_t column) {
1795 send(SCI_SETEDGECOLUMN, column, 0);
1796 }
1797
edgeMode() const1798 sptr_t ScintillaEdit::edgeMode() const {
1799 return send(SCI_GETEDGEMODE, 0, 0);
1800 }
1801
setEdgeMode(sptr_t edgeMode)1802 void ScintillaEdit::setEdgeMode(sptr_t edgeMode) {
1803 send(SCI_SETEDGEMODE, edgeMode, 0);
1804 }
1805
edgeColour() const1806 sptr_t ScintillaEdit::edgeColour() const {
1807 return send(SCI_GETEDGECOLOUR, 0, 0);
1808 }
1809
setEdgeColour(sptr_t edgeColour)1810 void ScintillaEdit::setEdgeColour(sptr_t edgeColour) {
1811 send(SCI_SETEDGECOLOUR, edgeColour, 0);
1812 }
1813
multiEdgeAddLine(sptr_t column,sptr_t edgeColour)1814 void ScintillaEdit::multiEdgeAddLine(sptr_t column, sptr_t edgeColour) {
1815 send(SCI_MULTIEDGEADDLINE, column, edgeColour);
1816 }
1817
multiEdgeClearAll()1818 void ScintillaEdit::multiEdgeClearAll() {
1819 send(SCI_MULTIEDGECLEARALL, 0, 0);
1820 }
1821
searchAnchor()1822 void ScintillaEdit::searchAnchor() {
1823 send(SCI_SEARCHANCHOR, 0, 0);
1824 }
1825
searchNext(sptr_t searchFlags,const char * text)1826 sptr_t ScintillaEdit::searchNext(sptr_t searchFlags, const char * text) {
1827 return send(SCI_SEARCHNEXT, searchFlags, (sptr_t)text);
1828 }
1829
searchPrev(sptr_t searchFlags,const char * text)1830 sptr_t ScintillaEdit::searchPrev(sptr_t searchFlags, const char * text) {
1831 return send(SCI_SEARCHPREV, searchFlags, (sptr_t)text);
1832 }
1833
linesOnScreen() const1834 sptr_t ScintillaEdit::linesOnScreen() const {
1835 return send(SCI_LINESONSCREEN, 0, 0);
1836 }
1837
usePopUp(sptr_t popUpMode)1838 void ScintillaEdit::usePopUp(sptr_t popUpMode) {
1839 send(SCI_USEPOPUP, popUpMode, 0);
1840 }
1841
selectionIsRectangle() const1842 bool ScintillaEdit::selectionIsRectangle() const {
1843 return send(SCI_SELECTIONISRECTANGLE, 0, 0);
1844 }
1845
setZoom(sptr_t zoomInPoints)1846 void ScintillaEdit::setZoom(sptr_t zoomInPoints) {
1847 send(SCI_SETZOOM, zoomInPoints, 0);
1848 }
1849
zoom() const1850 sptr_t ScintillaEdit::zoom() const {
1851 return send(SCI_GETZOOM, 0, 0);
1852 }
1853
createDocument(sptr_t bytes,sptr_t documentOptions)1854 sptr_t ScintillaEdit::createDocument(sptr_t bytes, sptr_t documentOptions) {
1855 return send(SCI_CREATEDOCUMENT, bytes, documentOptions);
1856 }
1857
addRefDocument(sptr_t doc)1858 void ScintillaEdit::addRefDocument(sptr_t doc) {
1859 send(SCI_ADDREFDOCUMENT, 0, doc);
1860 }
1861
releaseDocument(sptr_t doc)1862 void ScintillaEdit::releaseDocument(sptr_t doc) {
1863 send(SCI_RELEASEDOCUMENT, 0, doc);
1864 }
1865
documentOptions() const1866 sptr_t ScintillaEdit::documentOptions() const {
1867 return send(SCI_GETDOCUMENTOPTIONS, 0, 0);
1868 }
1869
modEventMask() const1870 sptr_t ScintillaEdit::modEventMask() const {
1871 return send(SCI_GETMODEVENTMASK, 0, 0);
1872 }
1873
setCommandEvents(bool commandEvents)1874 void ScintillaEdit::setCommandEvents(bool commandEvents) {
1875 send(SCI_SETCOMMANDEVENTS, commandEvents, 0);
1876 }
1877
commandEvents() const1878 bool ScintillaEdit::commandEvents() const {
1879 return send(SCI_GETCOMMANDEVENTS, 0, 0);
1880 }
1881
setFocus(bool focus)1882 void ScintillaEdit::setFocus(bool focus) {
1883 send(SCI_SETFOCUS, focus, 0);
1884 }
1885
focus() const1886 bool ScintillaEdit::focus() const {
1887 return send(SCI_GETFOCUS, 0, 0);
1888 }
1889
setStatus(sptr_t status)1890 void ScintillaEdit::setStatus(sptr_t status) {
1891 send(SCI_SETSTATUS, status, 0);
1892 }
1893
status() const1894 sptr_t ScintillaEdit::status() const {
1895 return send(SCI_GETSTATUS, 0, 0);
1896 }
1897
setMouseDownCaptures(bool captures)1898 void ScintillaEdit::setMouseDownCaptures(bool captures) {
1899 send(SCI_SETMOUSEDOWNCAPTURES, captures, 0);
1900 }
1901
mouseDownCaptures() const1902 bool ScintillaEdit::mouseDownCaptures() const {
1903 return send(SCI_GETMOUSEDOWNCAPTURES, 0, 0);
1904 }
1905
setMouseWheelCaptures(bool captures)1906 void ScintillaEdit::setMouseWheelCaptures(bool captures) {
1907 send(SCI_SETMOUSEWHEELCAPTURES, captures, 0);
1908 }
1909
mouseWheelCaptures() const1910 bool ScintillaEdit::mouseWheelCaptures() const {
1911 return send(SCI_GETMOUSEWHEELCAPTURES, 0, 0);
1912 }
1913
setCursor(sptr_t cursorType)1914 void ScintillaEdit::setCursor(sptr_t cursorType) {
1915 send(SCI_SETCURSOR, cursorType, 0);
1916 }
1917
cursor() const1918 sptr_t ScintillaEdit::cursor() const {
1919 return send(SCI_GETCURSOR, 0, 0);
1920 }
1921
setControlCharSymbol(sptr_t symbol)1922 void ScintillaEdit::setControlCharSymbol(sptr_t symbol) {
1923 send(SCI_SETCONTROLCHARSYMBOL, symbol, 0);
1924 }
1925
controlCharSymbol() const1926 sptr_t ScintillaEdit::controlCharSymbol() const {
1927 return send(SCI_GETCONTROLCHARSYMBOL, 0, 0);
1928 }
1929
wordPartLeft()1930 void ScintillaEdit::wordPartLeft() {
1931 send(SCI_WORDPARTLEFT, 0, 0);
1932 }
1933
wordPartLeftExtend()1934 void ScintillaEdit::wordPartLeftExtend() {
1935 send(SCI_WORDPARTLEFTEXTEND, 0, 0);
1936 }
1937
wordPartRight()1938 void ScintillaEdit::wordPartRight() {
1939 send(SCI_WORDPARTRIGHT, 0, 0);
1940 }
1941
wordPartRightExtend()1942 void ScintillaEdit::wordPartRightExtend() {
1943 send(SCI_WORDPARTRIGHTEXTEND, 0, 0);
1944 }
1945
setVisiblePolicy(sptr_t visiblePolicy,sptr_t visibleSlop)1946 void ScintillaEdit::setVisiblePolicy(sptr_t visiblePolicy, sptr_t visibleSlop) {
1947 send(SCI_SETVISIBLEPOLICY, visiblePolicy, visibleSlop);
1948 }
1949
delLineLeft()1950 void ScintillaEdit::delLineLeft() {
1951 send(SCI_DELLINELEFT, 0, 0);
1952 }
1953
delLineRight()1954 void ScintillaEdit::delLineRight() {
1955 send(SCI_DELLINERIGHT, 0, 0);
1956 }
1957
setXOffset(sptr_t xOffset)1958 void ScintillaEdit::setXOffset(sptr_t xOffset) {
1959 send(SCI_SETXOFFSET, xOffset, 0);
1960 }
1961
xOffset() const1962 sptr_t ScintillaEdit::xOffset() const {
1963 return send(SCI_GETXOFFSET, 0, 0);
1964 }
1965
chooseCaretX()1966 void ScintillaEdit::chooseCaretX() {
1967 send(SCI_CHOOSECARETX, 0, 0);
1968 }
1969
grabFocus()1970 void ScintillaEdit::grabFocus() {
1971 send(SCI_GRABFOCUS, 0, 0);
1972 }
1973
setXCaretPolicy(sptr_t caretPolicy,sptr_t caretSlop)1974 void ScintillaEdit::setXCaretPolicy(sptr_t caretPolicy, sptr_t caretSlop) {
1975 send(SCI_SETXCARETPOLICY, caretPolicy, caretSlop);
1976 }
1977
setYCaretPolicy(sptr_t caretPolicy,sptr_t caretSlop)1978 void ScintillaEdit::setYCaretPolicy(sptr_t caretPolicy, sptr_t caretSlop) {
1979 send(SCI_SETYCARETPOLICY, caretPolicy, caretSlop);
1980 }
1981
setPrintWrapMode(sptr_t wrapMode)1982 void ScintillaEdit::setPrintWrapMode(sptr_t wrapMode) {
1983 send(SCI_SETPRINTWRAPMODE, wrapMode, 0);
1984 }
1985
printWrapMode() const1986 sptr_t ScintillaEdit::printWrapMode() const {
1987 return send(SCI_GETPRINTWRAPMODE, 0, 0);
1988 }
1989
setHotspotActiveFore(bool useSetting,sptr_t fore)1990 void ScintillaEdit::setHotspotActiveFore(bool useSetting, sptr_t fore) {
1991 send(SCI_SETHOTSPOTACTIVEFORE, useSetting, fore);
1992 }
1993
hotspotActiveFore() const1994 sptr_t ScintillaEdit::hotspotActiveFore() const {
1995 return send(SCI_GETHOTSPOTACTIVEFORE, 0, 0);
1996 }
1997
setHotspotActiveBack(bool useSetting,sptr_t back)1998 void ScintillaEdit::setHotspotActiveBack(bool useSetting, sptr_t back) {
1999 send(SCI_SETHOTSPOTACTIVEBACK, useSetting, back);
2000 }
2001
hotspotActiveBack() const2002 sptr_t ScintillaEdit::hotspotActiveBack() const {
2003 return send(SCI_GETHOTSPOTACTIVEBACK, 0, 0);
2004 }
2005
setHotspotActiveUnderline(bool underline)2006 void ScintillaEdit::setHotspotActiveUnderline(bool underline) {
2007 send(SCI_SETHOTSPOTACTIVEUNDERLINE, underline, 0);
2008 }
2009
hotspotActiveUnderline() const2010 bool ScintillaEdit::hotspotActiveUnderline() const {
2011 return send(SCI_GETHOTSPOTACTIVEUNDERLINE, 0, 0);
2012 }
2013
setHotspotSingleLine(bool singleLine)2014 void ScintillaEdit::setHotspotSingleLine(bool singleLine) {
2015 send(SCI_SETHOTSPOTSINGLELINE, singleLine, 0);
2016 }
2017
hotspotSingleLine() const2018 bool ScintillaEdit::hotspotSingleLine() const {
2019 return send(SCI_GETHOTSPOTSINGLELINE, 0, 0);
2020 }
2021
paraDown()2022 void ScintillaEdit::paraDown() {
2023 send(SCI_PARADOWN, 0, 0);
2024 }
2025
paraDownExtend()2026 void ScintillaEdit::paraDownExtend() {
2027 send(SCI_PARADOWNEXTEND, 0, 0);
2028 }
2029
paraUp()2030 void ScintillaEdit::paraUp() {
2031 send(SCI_PARAUP, 0, 0);
2032 }
2033
paraUpExtend()2034 void ScintillaEdit::paraUpExtend() {
2035 send(SCI_PARAUPEXTEND, 0, 0);
2036 }
2037
positionBefore(sptr_t pos)2038 sptr_t ScintillaEdit::positionBefore(sptr_t pos) {
2039 return send(SCI_POSITIONBEFORE, pos, 0);
2040 }
2041
positionAfter(sptr_t pos)2042 sptr_t ScintillaEdit::positionAfter(sptr_t pos) {
2043 return send(SCI_POSITIONAFTER, pos, 0);
2044 }
2045
positionRelative(sptr_t pos,sptr_t relative)2046 sptr_t ScintillaEdit::positionRelative(sptr_t pos, sptr_t relative) {
2047 return send(SCI_POSITIONRELATIVE, pos, relative);
2048 }
2049
positionRelativeCodeUnits(sptr_t pos,sptr_t relative)2050 sptr_t ScintillaEdit::positionRelativeCodeUnits(sptr_t pos, sptr_t relative) {
2051 return send(SCI_POSITIONRELATIVECODEUNITS, pos, relative);
2052 }
2053
copyRange(sptr_t start,sptr_t end)2054 void ScintillaEdit::copyRange(sptr_t start, sptr_t end) {
2055 send(SCI_COPYRANGE, start, end);
2056 }
2057
copyText(sptr_t length,const char * text)2058 void ScintillaEdit::copyText(sptr_t length, const char * text) {
2059 send(SCI_COPYTEXT, length, (sptr_t)text);
2060 }
2061
setSelectionMode(sptr_t selectionMode)2062 void ScintillaEdit::setSelectionMode(sptr_t selectionMode) {
2063 send(SCI_SETSELECTIONMODE, selectionMode, 0);
2064 }
2065
selectionMode() const2066 sptr_t ScintillaEdit::selectionMode() const {
2067 return send(SCI_GETSELECTIONMODE, 0, 0);
2068 }
2069
moveExtendsSelection() const2070 bool ScintillaEdit::moveExtendsSelection() const {
2071 return send(SCI_GETMOVEEXTENDSSELECTION, 0, 0);
2072 }
2073
getLineSelStartPosition(sptr_t line)2074 sptr_t ScintillaEdit::getLineSelStartPosition(sptr_t line) {
2075 return send(SCI_GETLINESELSTARTPOSITION, line, 0);
2076 }
2077
getLineSelEndPosition(sptr_t line)2078 sptr_t ScintillaEdit::getLineSelEndPosition(sptr_t line) {
2079 return send(SCI_GETLINESELENDPOSITION, line, 0);
2080 }
2081
lineDownRectExtend()2082 void ScintillaEdit::lineDownRectExtend() {
2083 send(SCI_LINEDOWNRECTEXTEND, 0, 0);
2084 }
2085
lineUpRectExtend()2086 void ScintillaEdit::lineUpRectExtend() {
2087 send(SCI_LINEUPRECTEXTEND, 0, 0);
2088 }
2089
charLeftRectExtend()2090 void ScintillaEdit::charLeftRectExtend() {
2091 send(SCI_CHARLEFTRECTEXTEND, 0, 0);
2092 }
2093
charRightRectExtend()2094 void ScintillaEdit::charRightRectExtend() {
2095 send(SCI_CHARRIGHTRECTEXTEND, 0, 0);
2096 }
2097
homeRectExtend()2098 void ScintillaEdit::homeRectExtend() {
2099 send(SCI_HOMERECTEXTEND, 0, 0);
2100 }
2101
vCHomeRectExtend()2102 void ScintillaEdit::vCHomeRectExtend() {
2103 send(SCI_VCHOMERECTEXTEND, 0, 0);
2104 }
2105
lineEndRectExtend()2106 void ScintillaEdit::lineEndRectExtend() {
2107 send(SCI_LINEENDRECTEXTEND, 0, 0);
2108 }
2109
pageUpRectExtend()2110 void ScintillaEdit::pageUpRectExtend() {
2111 send(SCI_PAGEUPRECTEXTEND, 0, 0);
2112 }
2113
pageDownRectExtend()2114 void ScintillaEdit::pageDownRectExtend() {
2115 send(SCI_PAGEDOWNRECTEXTEND, 0, 0);
2116 }
2117
stutteredPageUp()2118 void ScintillaEdit::stutteredPageUp() {
2119 send(SCI_STUTTEREDPAGEUP, 0, 0);
2120 }
2121
stutteredPageUpExtend()2122 void ScintillaEdit::stutteredPageUpExtend() {
2123 send(SCI_STUTTEREDPAGEUPEXTEND, 0, 0);
2124 }
2125
stutteredPageDown()2126 void ScintillaEdit::stutteredPageDown() {
2127 send(SCI_STUTTEREDPAGEDOWN, 0, 0);
2128 }
2129
stutteredPageDownExtend()2130 void ScintillaEdit::stutteredPageDownExtend() {
2131 send(SCI_STUTTEREDPAGEDOWNEXTEND, 0, 0);
2132 }
2133
wordLeftEnd()2134 void ScintillaEdit::wordLeftEnd() {
2135 send(SCI_WORDLEFTEND, 0, 0);
2136 }
2137
wordLeftEndExtend()2138 void ScintillaEdit::wordLeftEndExtend() {
2139 send(SCI_WORDLEFTENDEXTEND, 0, 0);
2140 }
2141
wordRightEnd()2142 void ScintillaEdit::wordRightEnd() {
2143 send(SCI_WORDRIGHTEND, 0, 0);
2144 }
2145
wordRightEndExtend()2146 void ScintillaEdit::wordRightEndExtend() {
2147 send(SCI_WORDRIGHTENDEXTEND, 0, 0);
2148 }
2149
setWhitespaceChars(const char * characters)2150 void ScintillaEdit::setWhitespaceChars(const char * characters) {
2151 send(SCI_SETWHITESPACECHARS, 0, (sptr_t)characters);
2152 }
2153
whitespaceChars() const2154 QByteArray ScintillaEdit::whitespaceChars() const {
2155 return TextReturner(SCI_GETWHITESPACECHARS, 0);
2156 }
2157
setPunctuationChars(const char * characters)2158 void ScintillaEdit::setPunctuationChars(const char * characters) {
2159 send(SCI_SETPUNCTUATIONCHARS, 0, (sptr_t)characters);
2160 }
2161
punctuationChars() const2162 QByteArray ScintillaEdit::punctuationChars() const {
2163 return TextReturner(SCI_GETPUNCTUATIONCHARS, 0);
2164 }
2165
setCharsDefault()2166 void ScintillaEdit::setCharsDefault() {
2167 send(SCI_SETCHARSDEFAULT, 0, 0);
2168 }
2169
autoCCurrent() const2170 sptr_t ScintillaEdit::autoCCurrent() const {
2171 return send(SCI_AUTOCGETCURRENT, 0, 0);
2172 }
2173
autoCCurrentText() const2174 QByteArray ScintillaEdit::autoCCurrentText() const {
2175 return TextReturner(SCI_AUTOCGETCURRENTTEXT, 0);
2176 }
2177
autoCSetCaseInsensitiveBehaviour(sptr_t behaviour)2178 void ScintillaEdit::autoCSetCaseInsensitiveBehaviour(sptr_t behaviour) {
2179 send(SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR, behaviour, 0);
2180 }
2181
autoCCaseInsensitiveBehaviour() const2182 sptr_t ScintillaEdit::autoCCaseInsensitiveBehaviour() const {
2183 return send(SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR, 0, 0);
2184 }
2185
autoCSetMulti(sptr_t multi)2186 void ScintillaEdit::autoCSetMulti(sptr_t multi) {
2187 send(SCI_AUTOCSETMULTI, multi, 0);
2188 }
2189
autoCMulti() const2190 sptr_t ScintillaEdit::autoCMulti() const {
2191 return send(SCI_AUTOCGETMULTI, 0, 0);
2192 }
2193
autoCSetOrder(sptr_t order)2194 void ScintillaEdit::autoCSetOrder(sptr_t order) {
2195 send(SCI_AUTOCSETORDER, order, 0);
2196 }
2197
autoCOrder() const2198 sptr_t ScintillaEdit::autoCOrder() const {
2199 return send(SCI_AUTOCGETORDER, 0, 0);
2200 }
2201
allocate(sptr_t bytes)2202 void ScintillaEdit::allocate(sptr_t bytes) {
2203 send(SCI_ALLOCATE, bytes, 0);
2204 }
2205
targetAsUTF8()2206 QByteArray ScintillaEdit::targetAsUTF8() {
2207 return TextReturner(SCI_TARGETASUTF8, 0);
2208 }
2209
setLengthForEncode(sptr_t bytes)2210 void ScintillaEdit::setLengthForEncode(sptr_t bytes) {
2211 send(SCI_SETLENGTHFORENCODE, bytes, 0);
2212 }
2213
encodedFromUTF8(const char * utf8)2214 QByteArray ScintillaEdit::encodedFromUTF8(const char * utf8) {
2215 return TextReturner(SCI_ENCODEDFROMUTF8, (sptr_t)utf8);
2216 }
2217
findColumn(sptr_t line,sptr_t column)2218 sptr_t ScintillaEdit::findColumn(sptr_t line, sptr_t column) {
2219 return send(SCI_FINDCOLUMN, line, column);
2220 }
2221
caretSticky() const2222 sptr_t ScintillaEdit::caretSticky() const {
2223 return send(SCI_GETCARETSTICKY, 0, 0);
2224 }
2225
setCaretSticky(sptr_t useCaretStickyBehaviour)2226 void ScintillaEdit::setCaretSticky(sptr_t useCaretStickyBehaviour) {
2227 send(SCI_SETCARETSTICKY, useCaretStickyBehaviour, 0);
2228 }
2229
toggleCaretSticky()2230 void ScintillaEdit::toggleCaretSticky() {
2231 send(SCI_TOGGLECARETSTICKY, 0, 0);
2232 }
2233
setPasteConvertEndings(bool convert)2234 void ScintillaEdit::setPasteConvertEndings(bool convert) {
2235 send(SCI_SETPASTECONVERTENDINGS, convert, 0);
2236 }
2237
pasteConvertEndings() const2238 bool ScintillaEdit::pasteConvertEndings() const {
2239 return send(SCI_GETPASTECONVERTENDINGS, 0, 0);
2240 }
2241
selectionDuplicate()2242 void ScintillaEdit::selectionDuplicate() {
2243 send(SCI_SELECTIONDUPLICATE, 0, 0);
2244 }
2245
setCaretLineBackAlpha(sptr_t alpha)2246 void ScintillaEdit::setCaretLineBackAlpha(sptr_t alpha) {
2247 send(SCI_SETCARETLINEBACKALPHA, alpha, 0);
2248 }
2249
caretLineBackAlpha() const2250 sptr_t ScintillaEdit::caretLineBackAlpha() const {
2251 return send(SCI_GETCARETLINEBACKALPHA, 0, 0);
2252 }
2253
setCaretStyle(sptr_t caretStyle)2254 void ScintillaEdit::setCaretStyle(sptr_t caretStyle) {
2255 send(SCI_SETCARETSTYLE, caretStyle, 0);
2256 }
2257
caretStyle() const2258 sptr_t ScintillaEdit::caretStyle() const {
2259 return send(SCI_GETCARETSTYLE, 0, 0);
2260 }
2261
setIndicatorCurrent(sptr_t indicator)2262 void ScintillaEdit::setIndicatorCurrent(sptr_t indicator) {
2263 send(SCI_SETINDICATORCURRENT, indicator, 0);
2264 }
2265
indicatorCurrent() const2266 sptr_t ScintillaEdit::indicatorCurrent() const {
2267 return send(SCI_GETINDICATORCURRENT, 0, 0);
2268 }
2269
setIndicatorValue(sptr_t value)2270 void ScintillaEdit::setIndicatorValue(sptr_t value) {
2271 send(SCI_SETINDICATORVALUE, value, 0);
2272 }
2273
indicatorValue() const2274 sptr_t ScintillaEdit::indicatorValue() const {
2275 return send(SCI_GETINDICATORVALUE, 0, 0);
2276 }
2277
indicatorFillRange(sptr_t start,sptr_t lengthFill)2278 void ScintillaEdit::indicatorFillRange(sptr_t start, sptr_t lengthFill) {
2279 send(SCI_INDICATORFILLRANGE, start, lengthFill);
2280 }
2281
indicatorClearRange(sptr_t start,sptr_t lengthClear)2282 void ScintillaEdit::indicatorClearRange(sptr_t start, sptr_t lengthClear) {
2283 send(SCI_INDICATORCLEARRANGE, start, lengthClear);
2284 }
2285
indicatorAllOnFor(sptr_t pos)2286 sptr_t ScintillaEdit::indicatorAllOnFor(sptr_t pos) {
2287 return send(SCI_INDICATORALLONFOR, pos, 0);
2288 }
2289
indicatorValueAt(sptr_t indicator,sptr_t pos)2290 sptr_t ScintillaEdit::indicatorValueAt(sptr_t indicator, sptr_t pos) {
2291 return send(SCI_INDICATORVALUEAT, indicator, pos);
2292 }
2293
indicatorStart(sptr_t indicator,sptr_t pos)2294 sptr_t ScintillaEdit::indicatorStart(sptr_t indicator, sptr_t pos) {
2295 return send(SCI_INDICATORSTART, indicator, pos);
2296 }
2297
indicatorEnd(sptr_t indicator,sptr_t pos)2298 sptr_t ScintillaEdit::indicatorEnd(sptr_t indicator, sptr_t pos) {
2299 return send(SCI_INDICATOREND, indicator, pos);
2300 }
2301
setPositionCache(sptr_t size)2302 void ScintillaEdit::setPositionCache(sptr_t size) {
2303 send(SCI_SETPOSITIONCACHE, size, 0);
2304 }
2305
positionCache() const2306 sptr_t ScintillaEdit::positionCache() const {
2307 return send(SCI_GETPOSITIONCACHE, 0, 0);
2308 }
2309
copyAllowLine()2310 void ScintillaEdit::copyAllowLine() {
2311 send(SCI_COPYALLOWLINE, 0, 0);
2312 }
2313
characterPointer() const2314 sptr_t ScintillaEdit::characterPointer() const {
2315 return send(SCI_GETCHARACTERPOINTER, 0, 0);
2316 }
2317
rangePointer(sptr_t start,sptr_t lengthRange) const2318 sptr_t ScintillaEdit::rangePointer(sptr_t start, sptr_t lengthRange) const {
2319 return send(SCI_GETRANGEPOINTER, start, lengthRange);
2320 }
2321
gapPosition() const2322 sptr_t ScintillaEdit::gapPosition() const {
2323 return send(SCI_GETGAPPOSITION, 0, 0);
2324 }
2325
indicSetAlpha(sptr_t indicator,sptr_t alpha)2326 void ScintillaEdit::indicSetAlpha(sptr_t indicator, sptr_t alpha) {
2327 send(SCI_INDICSETALPHA, indicator, alpha);
2328 }
2329
indicAlpha(sptr_t indicator) const2330 sptr_t ScintillaEdit::indicAlpha(sptr_t indicator) const {
2331 return send(SCI_INDICGETALPHA, indicator, 0);
2332 }
2333
indicSetOutlineAlpha(sptr_t indicator,sptr_t alpha)2334 void ScintillaEdit::indicSetOutlineAlpha(sptr_t indicator, sptr_t alpha) {
2335 send(SCI_INDICSETOUTLINEALPHA, indicator, alpha);
2336 }
2337
indicOutlineAlpha(sptr_t indicator) const2338 sptr_t ScintillaEdit::indicOutlineAlpha(sptr_t indicator) const {
2339 return send(SCI_INDICGETOUTLINEALPHA, indicator, 0);
2340 }
2341
setExtraAscent(sptr_t extraAscent)2342 void ScintillaEdit::setExtraAscent(sptr_t extraAscent) {
2343 send(SCI_SETEXTRAASCENT, extraAscent, 0);
2344 }
2345
extraAscent() const2346 sptr_t ScintillaEdit::extraAscent() const {
2347 return send(SCI_GETEXTRAASCENT, 0, 0);
2348 }
2349
setExtraDescent(sptr_t extraDescent)2350 void ScintillaEdit::setExtraDescent(sptr_t extraDescent) {
2351 send(SCI_SETEXTRADESCENT, extraDescent, 0);
2352 }
2353
extraDescent() const2354 sptr_t ScintillaEdit::extraDescent() const {
2355 return send(SCI_GETEXTRADESCENT, 0, 0);
2356 }
2357
markerSymbolDefined(sptr_t markerNumber)2358 sptr_t ScintillaEdit::markerSymbolDefined(sptr_t markerNumber) {
2359 return send(SCI_MARKERSYMBOLDEFINED, markerNumber, 0);
2360 }
2361
marginSetText(sptr_t line,const char * text)2362 void ScintillaEdit::marginSetText(sptr_t line, const char * text) {
2363 send(SCI_MARGINSETTEXT, line, (sptr_t)text);
2364 }
2365
marginText(sptr_t line) const2366 QByteArray ScintillaEdit::marginText(sptr_t line) const {
2367 return TextReturner(SCI_MARGINGETTEXT, line);
2368 }
2369
marginSetStyle(sptr_t line,sptr_t style)2370 void ScintillaEdit::marginSetStyle(sptr_t line, sptr_t style) {
2371 send(SCI_MARGINSETSTYLE, line, style);
2372 }
2373
marginStyle(sptr_t line) const2374 sptr_t ScintillaEdit::marginStyle(sptr_t line) const {
2375 return send(SCI_MARGINGETSTYLE, line, 0);
2376 }
2377
marginSetStyles(sptr_t line,const char * styles)2378 void ScintillaEdit::marginSetStyles(sptr_t line, const char * styles) {
2379 send(SCI_MARGINSETSTYLES, line, (sptr_t)styles);
2380 }
2381
marginStyles(sptr_t line) const2382 QByteArray ScintillaEdit::marginStyles(sptr_t line) const {
2383 return TextReturner(SCI_MARGINGETSTYLES, line);
2384 }
2385
marginTextClearAll()2386 void ScintillaEdit::marginTextClearAll() {
2387 send(SCI_MARGINTEXTCLEARALL, 0, 0);
2388 }
2389
marginSetStyleOffset(sptr_t style)2390 void ScintillaEdit::marginSetStyleOffset(sptr_t style) {
2391 send(SCI_MARGINSETSTYLEOFFSET, style, 0);
2392 }
2393
marginStyleOffset() const2394 sptr_t ScintillaEdit::marginStyleOffset() const {
2395 return send(SCI_MARGINGETSTYLEOFFSET, 0, 0);
2396 }
2397
setMarginOptions(sptr_t marginOptions)2398 void ScintillaEdit::setMarginOptions(sptr_t marginOptions) {
2399 send(SCI_SETMARGINOPTIONS, marginOptions, 0);
2400 }
2401
marginOptions() const2402 sptr_t ScintillaEdit::marginOptions() const {
2403 return send(SCI_GETMARGINOPTIONS, 0, 0);
2404 }
2405
annotationSetText(sptr_t line,const char * text)2406 void ScintillaEdit::annotationSetText(sptr_t line, const char * text) {
2407 send(SCI_ANNOTATIONSETTEXT, line, (sptr_t)text);
2408 }
2409
annotationText(sptr_t line) const2410 QByteArray ScintillaEdit::annotationText(sptr_t line) const {
2411 return TextReturner(SCI_ANNOTATIONGETTEXT, line);
2412 }
2413
annotationSetStyle(sptr_t line,sptr_t style)2414 void ScintillaEdit::annotationSetStyle(sptr_t line, sptr_t style) {
2415 send(SCI_ANNOTATIONSETSTYLE, line, style);
2416 }
2417
annotationStyle(sptr_t line) const2418 sptr_t ScintillaEdit::annotationStyle(sptr_t line) const {
2419 return send(SCI_ANNOTATIONGETSTYLE, line, 0);
2420 }
2421
annotationSetStyles(sptr_t line,const char * styles)2422 void ScintillaEdit::annotationSetStyles(sptr_t line, const char * styles) {
2423 send(SCI_ANNOTATIONSETSTYLES, line, (sptr_t)styles);
2424 }
2425
annotationStyles(sptr_t line) const2426 QByteArray ScintillaEdit::annotationStyles(sptr_t line) const {
2427 return TextReturner(SCI_ANNOTATIONGETSTYLES, line);
2428 }
2429
annotationLines(sptr_t line) const2430 sptr_t ScintillaEdit::annotationLines(sptr_t line) const {
2431 return send(SCI_ANNOTATIONGETLINES, line, 0);
2432 }
2433
annotationClearAll()2434 void ScintillaEdit::annotationClearAll() {
2435 send(SCI_ANNOTATIONCLEARALL, 0, 0);
2436 }
2437
annotationSetVisible(sptr_t visible)2438 void ScintillaEdit::annotationSetVisible(sptr_t visible) {
2439 send(SCI_ANNOTATIONSETVISIBLE, visible, 0);
2440 }
2441
annotationVisible() const2442 sptr_t ScintillaEdit::annotationVisible() const {
2443 return send(SCI_ANNOTATIONGETVISIBLE, 0, 0);
2444 }
2445
annotationSetStyleOffset(sptr_t style)2446 void ScintillaEdit::annotationSetStyleOffset(sptr_t style) {
2447 send(SCI_ANNOTATIONSETSTYLEOFFSET, style, 0);
2448 }
2449
annotationStyleOffset() const2450 sptr_t ScintillaEdit::annotationStyleOffset() const {
2451 return send(SCI_ANNOTATIONGETSTYLEOFFSET, 0, 0);
2452 }
2453
releaseAllExtendedStyles()2454 void ScintillaEdit::releaseAllExtendedStyles() {
2455 send(SCI_RELEASEALLEXTENDEDSTYLES, 0, 0);
2456 }
2457
allocateExtendedStyles(sptr_t numberStyles)2458 sptr_t ScintillaEdit::allocateExtendedStyles(sptr_t numberStyles) {
2459 return send(SCI_ALLOCATEEXTENDEDSTYLES, numberStyles, 0);
2460 }
2461
addUndoAction(sptr_t token,sptr_t flags)2462 void ScintillaEdit::addUndoAction(sptr_t token, sptr_t flags) {
2463 send(SCI_ADDUNDOACTION, token, flags);
2464 }
2465
charPositionFromPoint(sptr_t x,sptr_t y)2466 sptr_t ScintillaEdit::charPositionFromPoint(sptr_t x, sptr_t y) {
2467 return send(SCI_CHARPOSITIONFROMPOINT, x, y);
2468 }
2469
charPositionFromPointClose(sptr_t x,sptr_t y)2470 sptr_t ScintillaEdit::charPositionFromPointClose(sptr_t x, sptr_t y) {
2471 return send(SCI_CHARPOSITIONFROMPOINTCLOSE, x, y);
2472 }
2473
setMouseSelectionRectangularSwitch(bool mouseSelectionRectangularSwitch)2474 void ScintillaEdit::setMouseSelectionRectangularSwitch(bool mouseSelectionRectangularSwitch) {
2475 send(SCI_SETMOUSESELECTIONRECTANGULARSWITCH, mouseSelectionRectangularSwitch, 0);
2476 }
2477
mouseSelectionRectangularSwitch() const2478 bool ScintillaEdit::mouseSelectionRectangularSwitch() const {
2479 return send(SCI_GETMOUSESELECTIONRECTANGULARSWITCH, 0, 0);
2480 }
2481
setMultipleSelection(bool multipleSelection)2482 void ScintillaEdit::setMultipleSelection(bool multipleSelection) {
2483 send(SCI_SETMULTIPLESELECTION, multipleSelection, 0);
2484 }
2485
multipleSelection() const2486 bool ScintillaEdit::multipleSelection() const {
2487 return send(SCI_GETMULTIPLESELECTION, 0, 0);
2488 }
2489
setAdditionalSelectionTyping(bool additionalSelectionTyping)2490 void ScintillaEdit::setAdditionalSelectionTyping(bool additionalSelectionTyping) {
2491 send(SCI_SETADDITIONALSELECTIONTYPING, additionalSelectionTyping, 0);
2492 }
2493
additionalSelectionTyping() const2494 bool ScintillaEdit::additionalSelectionTyping() const {
2495 return send(SCI_GETADDITIONALSELECTIONTYPING, 0, 0);
2496 }
2497
setAdditionalCaretsBlink(bool additionalCaretsBlink)2498 void ScintillaEdit::setAdditionalCaretsBlink(bool additionalCaretsBlink) {
2499 send(SCI_SETADDITIONALCARETSBLINK, additionalCaretsBlink, 0);
2500 }
2501
additionalCaretsBlink() const2502 bool ScintillaEdit::additionalCaretsBlink() const {
2503 return send(SCI_GETADDITIONALCARETSBLINK, 0, 0);
2504 }
2505
setAdditionalCaretsVisible(bool additionalCaretsVisible)2506 void ScintillaEdit::setAdditionalCaretsVisible(bool additionalCaretsVisible) {
2507 send(SCI_SETADDITIONALCARETSVISIBLE, additionalCaretsVisible, 0);
2508 }
2509
additionalCaretsVisible() const2510 bool ScintillaEdit::additionalCaretsVisible() const {
2511 return send(SCI_GETADDITIONALCARETSVISIBLE, 0, 0);
2512 }
2513
selections() const2514 sptr_t ScintillaEdit::selections() const {
2515 return send(SCI_GETSELECTIONS, 0, 0);
2516 }
2517
selectionEmpty() const2518 bool ScintillaEdit::selectionEmpty() const {
2519 return send(SCI_GETSELECTIONEMPTY, 0, 0);
2520 }
2521
clearSelections()2522 void ScintillaEdit::clearSelections() {
2523 send(SCI_CLEARSELECTIONS, 0, 0);
2524 }
2525
setSelection(sptr_t caret,sptr_t anchor)2526 void ScintillaEdit::setSelection(sptr_t caret, sptr_t anchor) {
2527 send(SCI_SETSELECTION, caret, anchor);
2528 }
2529
addSelection(sptr_t caret,sptr_t anchor)2530 void ScintillaEdit::addSelection(sptr_t caret, sptr_t anchor) {
2531 send(SCI_ADDSELECTION, caret, anchor);
2532 }
2533
dropSelectionN(sptr_t selection)2534 void ScintillaEdit::dropSelectionN(sptr_t selection) {
2535 send(SCI_DROPSELECTIONN, selection, 0);
2536 }
2537
setMainSelection(sptr_t selection)2538 void ScintillaEdit::setMainSelection(sptr_t selection) {
2539 send(SCI_SETMAINSELECTION, selection, 0);
2540 }
2541
mainSelection() const2542 sptr_t ScintillaEdit::mainSelection() const {
2543 return send(SCI_GETMAINSELECTION, 0, 0);
2544 }
2545
setSelectionNCaret(sptr_t selection,sptr_t caret)2546 void ScintillaEdit::setSelectionNCaret(sptr_t selection, sptr_t caret) {
2547 send(SCI_SETSELECTIONNCARET, selection, caret);
2548 }
2549
selectionNCaret(sptr_t selection) const2550 sptr_t ScintillaEdit::selectionNCaret(sptr_t selection) const {
2551 return send(SCI_GETSELECTIONNCARET, selection, 0);
2552 }
2553
setSelectionNAnchor(sptr_t selection,sptr_t anchor)2554 void ScintillaEdit::setSelectionNAnchor(sptr_t selection, sptr_t anchor) {
2555 send(SCI_SETSELECTIONNANCHOR, selection, anchor);
2556 }
2557
selectionNAnchor(sptr_t selection) const2558 sptr_t ScintillaEdit::selectionNAnchor(sptr_t selection) const {
2559 return send(SCI_GETSELECTIONNANCHOR, selection, 0);
2560 }
2561
setSelectionNCaretVirtualSpace(sptr_t selection,sptr_t space)2562 void ScintillaEdit::setSelectionNCaretVirtualSpace(sptr_t selection, sptr_t space) {
2563 send(SCI_SETSELECTIONNCARETVIRTUALSPACE, selection, space);
2564 }
2565
selectionNCaretVirtualSpace(sptr_t selection) const2566 sptr_t ScintillaEdit::selectionNCaretVirtualSpace(sptr_t selection) const {
2567 return send(SCI_GETSELECTIONNCARETVIRTUALSPACE, selection, 0);
2568 }
2569
setSelectionNAnchorVirtualSpace(sptr_t selection,sptr_t space)2570 void ScintillaEdit::setSelectionNAnchorVirtualSpace(sptr_t selection, sptr_t space) {
2571 send(SCI_SETSELECTIONNANCHORVIRTUALSPACE, selection, space);
2572 }
2573
selectionNAnchorVirtualSpace(sptr_t selection) const2574 sptr_t ScintillaEdit::selectionNAnchorVirtualSpace(sptr_t selection) const {
2575 return send(SCI_GETSELECTIONNANCHORVIRTUALSPACE, selection, 0);
2576 }
2577
setSelectionNStart(sptr_t selection,sptr_t anchor)2578 void ScintillaEdit::setSelectionNStart(sptr_t selection, sptr_t anchor) {
2579 send(SCI_SETSELECTIONNSTART, selection, anchor);
2580 }
2581
selectionNStart(sptr_t selection) const2582 sptr_t ScintillaEdit::selectionNStart(sptr_t selection) const {
2583 return send(SCI_GETSELECTIONNSTART, selection, 0);
2584 }
2585
selectionNStartVirtualSpace(sptr_t selection) const2586 sptr_t ScintillaEdit::selectionNStartVirtualSpace(sptr_t selection) const {
2587 return send(SCI_GETSELECTIONNSTARTVIRTUALSPACE, selection, 0);
2588 }
2589
setSelectionNEnd(sptr_t selection,sptr_t caret)2590 void ScintillaEdit::setSelectionNEnd(sptr_t selection, sptr_t caret) {
2591 send(SCI_SETSELECTIONNEND, selection, caret);
2592 }
2593
selectionNEndVirtualSpace(sptr_t selection) const2594 sptr_t ScintillaEdit::selectionNEndVirtualSpace(sptr_t selection) const {
2595 return send(SCI_GETSELECTIONNENDVIRTUALSPACE, selection, 0);
2596 }
2597
selectionNEnd(sptr_t selection) const2598 sptr_t ScintillaEdit::selectionNEnd(sptr_t selection) const {
2599 return send(SCI_GETSELECTIONNEND, selection, 0);
2600 }
2601
setRectangularSelectionCaret(sptr_t caret)2602 void ScintillaEdit::setRectangularSelectionCaret(sptr_t caret) {
2603 send(SCI_SETRECTANGULARSELECTIONCARET, caret, 0);
2604 }
2605
rectangularSelectionCaret() const2606 sptr_t ScintillaEdit::rectangularSelectionCaret() const {
2607 return send(SCI_GETRECTANGULARSELECTIONCARET, 0, 0);
2608 }
2609
setRectangularSelectionAnchor(sptr_t anchor)2610 void ScintillaEdit::setRectangularSelectionAnchor(sptr_t anchor) {
2611 send(SCI_SETRECTANGULARSELECTIONANCHOR, anchor, 0);
2612 }
2613
rectangularSelectionAnchor() const2614 sptr_t ScintillaEdit::rectangularSelectionAnchor() const {
2615 return send(SCI_GETRECTANGULARSELECTIONANCHOR, 0, 0);
2616 }
2617
setRectangularSelectionCaretVirtualSpace(sptr_t space)2618 void ScintillaEdit::setRectangularSelectionCaretVirtualSpace(sptr_t space) {
2619 send(SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE, space, 0);
2620 }
2621
rectangularSelectionCaretVirtualSpace() const2622 sptr_t ScintillaEdit::rectangularSelectionCaretVirtualSpace() const {
2623 return send(SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE, 0, 0);
2624 }
2625
setRectangularSelectionAnchorVirtualSpace(sptr_t space)2626 void ScintillaEdit::setRectangularSelectionAnchorVirtualSpace(sptr_t space) {
2627 send(SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE, space, 0);
2628 }
2629
rectangularSelectionAnchorVirtualSpace() const2630 sptr_t ScintillaEdit::rectangularSelectionAnchorVirtualSpace() const {
2631 return send(SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE, 0, 0);
2632 }
2633
setVirtualSpaceOptions(sptr_t virtualSpaceOptions)2634 void ScintillaEdit::setVirtualSpaceOptions(sptr_t virtualSpaceOptions) {
2635 send(SCI_SETVIRTUALSPACEOPTIONS, virtualSpaceOptions, 0);
2636 }
2637
virtualSpaceOptions() const2638 sptr_t ScintillaEdit::virtualSpaceOptions() const {
2639 return send(SCI_GETVIRTUALSPACEOPTIONS, 0, 0);
2640 }
2641
setRectangularSelectionModifier(sptr_t modifier)2642 void ScintillaEdit::setRectangularSelectionModifier(sptr_t modifier) {
2643 send(SCI_SETRECTANGULARSELECTIONMODIFIER, modifier, 0);
2644 }
2645
rectangularSelectionModifier() const2646 sptr_t ScintillaEdit::rectangularSelectionModifier() const {
2647 return send(SCI_GETRECTANGULARSELECTIONMODIFIER, 0, 0);
2648 }
2649
setAdditionalSelFore(sptr_t fore)2650 void ScintillaEdit::setAdditionalSelFore(sptr_t fore) {
2651 send(SCI_SETADDITIONALSELFORE, fore, 0);
2652 }
2653
setAdditionalSelBack(sptr_t back)2654 void ScintillaEdit::setAdditionalSelBack(sptr_t back) {
2655 send(SCI_SETADDITIONALSELBACK, back, 0);
2656 }
2657
setAdditionalSelAlpha(sptr_t alpha)2658 void ScintillaEdit::setAdditionalSelAlpha(sptr_t alpha) {
2659 send(SCI_SETADDITIONALSELALPHA, alpha, 0);
2660 }
2661
additionalSelAlpha() const2662 sptr_t ScintillaEdit::additionalSelAlpha() const {
2663 return send(SCI_GETADDITIONALSELALPHA, 0, 0);
2664 }
2665
setAdditionalCaretFore(sptr_t fore)2666 void ScintillaEdit::setAdditionalCaretFore(sptr_t fore) {
2667 send(SCI_SETADDITIONALCARETFORE, fore, 0);
2668 }
2669
additionalCaretFore() const2670 sptr_t ScintillaEdit::additionalCaretFore() const {
2671 return send(SCI_GETADDITIONALCARETFORE, 0, 0);
2672 }
2673
rotateSelection()2674 void ScintillaEdit::rotateSelection() {
2675 send(SCI_ROTATESELECTION, 0, 0);
2676 }
2677
swapMainAnchorCaret()2678 void ScintillaEdit::swapMainAnchorCaret() {
2679 send(SCI_SWAPMAINANCHORCARET, 0, 0);
2680 }
2681
multipleSelectAddNext()2682 void ScintillaEdit::multipleSelectAddNext() {
2683 send(SCI_MULTIPLESELECTADDNEXT, 0, 0);
2684 }
2685
multipleSelectAddEach()2686 void ScintillaEdit::multipleSelectAddEach() {
2687 send(SCI_MULTIPLESELECTADDEACH, 0, 0);
2688 }
2689
changeLexerState(sptr_t start,sptr_t end)2690 sptr_t ScintillaEdit::changeLexerState(sptr_t start, sptr_t end) {
2691 return send(SCI_CHANGELEXERSTATE, start, end);
2692 }
2693
contractedFoldNext(sptr_t lineStart)2694 sptr_t ScintillaEdit::contractedFoldNext(sptr_t lineStart) {
2695 return send(SCI_CONTRACTEDFOLDNEXT, lineStart, 0);
2696 }
2697
verticalCentreCaret()2698 void ScintillaEdit::verticalCentreCaret() {
2699 send(SCI_VERTICALCENTRECARET, 0, 0);
2700 }
2701
moveSelectedLinesUp()2702 void ScintillaEdit::moveSelectedLinesUp() {
2703 send(SCI_MOVESELECTEDLINESUP, 0, 0);
2704 }
2705
moveSelectedLinesDown()2706 void ScintillaEdit::moveSelectedLinesDown() {
2707 send(SCI_MOVESELECTEDLINESDOWN, 0, 0);
2708 }
2709
setIdentifier(sptr_t identifier)2710 void ScintillaEdit::setIdentifier(sptr_t identifier) {
2711 send(SCI_SETIDENTIFIER, identifier, 0);
2712 }
2713
identifier() const2714 sptr_t ScintillaEdit::identifier() const {
2715 return send(SCI_GETIDENTIFIER, 0, 0);
2716 }
2717
rGBAImageSetWidth(sptr_t width)2718 void ScintillaEdit::rGBAImageSetWidth(sptr_t width) {
2719 send(SCI_RGBAIMAGESETWIDTH, width, 0);
2720 }
2721
rGBAImageSetHeight(sptr_t height)2722 void ScintillaEdit::rGBAImageSetHeight(sptr_t height) {
2723 send(SCI_RGBAIMAGESETHEIGHT, height, 0);
2724 }
2725
rGBAImageSetScale(sptr_t scalePercent)2726 void ScintillaEdit::rGBAImageSetScale(sptr_t scalePercent) {
2727 send(SCI_RGBAIMAGESETSCALE, scalePercent, 0);
2728 }
2729
markerDefineRGBAImage(sptr_t markerNumber,const char * pixels)2730 void ScintillaEdit::markerDefineRGBAImage(sptr_t markerNumber, const char * pixels) {
2731 send(SCI_MARKERDEFINERGBAIMAGE, markerNumber, (sptr_t)pixels);
2732 }
2733
registerRGBAImage(sptr_t type,const char * pixels)2734 void ScintillaEdit::registerRGBAImage(sptr_t type, const char * pixels) {
2735 send(SCI_REGISTERRGBAIMAGE, type, (sptr_t)pixels);
2736 }
2737
scrollToStart()2738 void ScintillaEdit::scrollToStart() {
2739 send(SCI_SCROLLTOSTART, 0, 0);
2740 }
2741
scrollToEnd()2742 void ScintillaEdit::scrollToEnd() {
2743 send(SCI_SCROLLTOEND, 0, 0);
2744 }
2745
setTechnology(sptr_t technology)2746 void ScintillaEdit::setTechnology(sptr_t technology) {
2747 send(SCI_SETTECHNOLOGY, technology, 0);
2748 }
2749
technology() const2750 sptr_t ScintillaEdit::technology() const {
2751 return send(SCI_GETTECHNOLOGY, 0, 0);
2752 }
2753
createLoader(sptr_t bytes,sptr_t documentOptions)2754 sptr_t ScintillaEdit::createLoader(sptr_t bytes, sptr_t documentOptions) {
2755 return send(SCI_CREATELOADER, bytes, documentOptions);
2756 }
2757
findIndicatorShow(sptr_t start,sptr_t end)2758 void ScintillaEdit::findIndicatorShow(sptr_t start, sptr_t end) {
2759 send(SCI_FINDINDICATORSHOW, start, end);
2760 }
2761
findIndicatorFlash(sptr_t start,sptr_t end)2762 void ScintillaEdit::findIndicatorFlash(sptr_t start, sptr_t end) {
2763 send(SCI_FINDINDICATORFLASH, start, end);
2764 }
2765
findIndicatorHide()2766 void ScintillaEdit::findIndicatorHide() {
2767 send(SCI_FINDINDICATORHIDE, 0, 0);
2768 }
2769
vCHomeDisplay()2770 void ScintillaEdit::vCHomeDisplay() {
2771 send(SCI_VCHOMEDISPLAY, 0, 0);
2772 }
2773
vCHomeDisplayExtend()2774 void ScintillaEdit::vCHomeDisplayExtend() {
2775 send(SCI_VCHOMEDISPLAYEXTEND, 0, 0);
2776 }
2777
caretLineVisibleAlways() const2778 bool ScintillaEdit::caretLineVisibleAlways() const {
2779 return send(SCI_GETCARETLINEVISIBLEALWAYS, 0, 0);
2780 }
2781
setCaretLineVisibleAlways(bool alwaysVisible)2782 void ScintillaEdit::setCaretLineVisibleAlways(bool alwaysVisible) {
2783 send(SCI_SETCARETLINEVISIBLEALWAYS, alwaysVisible, 0);
2784 }
2785
setLineEndTypesAllowed(sptr_t lineEndBitSet)2786 void ScintillaEdit::setLineEndTypesAllowed(sptr_t lineEndBitSet) {
2787 send(SCI_SETLINEENDTYPESALLOWED, lineEndBitSet, 0);
2788 }
2789
lineEndTypesAllowed() const2790 sptr_t ScintillaEdit::lineEndTypesAllowed() const {
2791 return send(SCI_GETLINEENDTYPESALLOWED, 0, 0);
2792 }
2793
lineEndTypesActive() const2794 sptr_t ScintillaEdit::lineEndTypesActive() const {
2795 return send(SCI_GETLINEENDTYPESACTIVE, 0, 0);
2796 }
2797
setRepresentation(const char * encodedCharacter,const char * representation)2798 void ScintillaEdit::setRepresentation(const char * encodedCharacter, const char * representation) {
2799 send(SCI_SETREPRESENTATION, (sptr_t)encodedCharacter, (sptr_t)representation);
2800 }
2801
representation(const char * encodedCharacter) const2802 QByteArray ScintillaEdit::representation(const char * encodedCharacter) const {
2803 return TextReturner(SCI_GETREPRESENTATION, (sptr_t)encodedCharacter);
2804 }
2805
clearRepresentation(const char * encodedCharacter)2806 void ScintillaEdit::clearRepresentation(const char * encodedCharacter) {
2807 send(SCI_CLEARREPRESENTATION, (sptr_t)encodedCharacter, 0);
2808 }
2809
startRecord()2810 void ScintillaEdit::startRecord() {
2811 send(SCI_STARTRECORD, 0, 0);
2812 }
2813
stopRecord()2814 void ScintillaEdit::stopRecord() {
2815 send(SCI_STOPRECORD, 0, 0);
2816 }
2817
setLexer(sptr_t lexer)2818 void ScintillaEdit::setLexer(sptr_t lexer) {
2819 send(SCI_SETLEXER, lexer, 0);
2820 }
2821
lexer() const2822 sptr_t ScintillaEdit::lexer() const {
2823 return send(SCI_GETLEXER, 0, 0);
2824 }
2825
colourise(sptr_t start,sptr_t end)2826 void ScintillaEdit::colourise(sptr_t start, sptr_t end) {
2827 send(SCI_COLOURISE, start, end);
2828 }
2829
setProperty(const char * key,const char * value)2830 void ScintillaEdit::setProperty(const char * key, const char * value) {
2831 send(SCI_SETPROPERTY, (sptr_t)key, (sptr_t)value);
2832 }
2833
setKeyWords(sptr_t keyWordSet,const char * keyWords)2834 void ScintillaEdit::setKeyWords(sptr_t keyWordSet, const char * keyWords) {
2835 send(SCI_SETKEYWORDS, keyWordSet, (sptr_t)keyWords);
2836 }
2837
setLexerLanguage(const char * language)2838 void ScintillaEdit::setLexerLanguage(const char * language) {
2839 send(SCI_SETLEXERLANGUAGE, 0, (sptr_t)language);
2840 }
2841
loadLexerLibrary(const char * path)2842 void ScintillaEdit::loadLexerLibrary(const char * path) {
2843 send(SCI_LOADLEXERLIBRARY, 0, (sptr_t)path);
2844 }
2845
property(const char * key) const2846 QByteArray ScintillaEdit::property(const char * key) const {
2847 return TextReturner(SCI_GETPROPERTY, (sptr_t)key);
2848 }
2849
propertyExpanded(const char * key) const2850 QByteArray ScintillaEdit::propertyExpanded(const char * key) const {
2851 return TextReturner(SCI_GETPROPERTYEXPANDED, (sptr_t)key);
2852 }
2853
propertyInt(const char * key,sptr_t defaultValue) const2854 sptr_t ScintillaEdit::propertyInt(const char * key, sptr_t defaultValue) const {
2855 return send(SCI_GETPROPERTYINT, (sptr_t)key, defaultValue);
2856 }
2857
lexerLanguage() const2858 QByteArray ScintillaEdit::lexerLanguage() const {
2859 return TextReturner(SCI_GETLEXERLANGUAGE, 0);
2860 }
2861
privateLexerCall(sptr_t operation,sptr_t pointer)2862 sptr_t ScintillaEdit::privateLexerCall(sptr_t operation, sptr_t pointer) {
2863 return send(SCI_PRIVATELEXERCALL, operation, pointer);
2864 }
2865
propertyNames()2866 QByteArray ScintillaEdit::propertyNames() {
2867 return TextReturner(SCI_PROPERTYNAMES, 0);
2868 }
2869
propertyType(const char * name)2870 sptr_t ScintillaEdit::propertyType(const char * name) {
2871 return send(SCI_PROPERTYTYPE, (sptr_t)name, 0);
2872 }
2873
describeProperty(const char * name)2874 QByteArray ScintillaEdit::describeProperty(const char * name) {
2875 return TextReturner(SCI_DESCRIBEPROPERTY, (sptr_t)name);
2876 }
2877
describeKeyWordSets()2878 QByteArray ScintillaEdit::describeKeyWordSets() {
2879 return TextReturner(SCI_DESCRIBEKEYWORDSETS, 0);
2880 }
2881
lineEndTypesSupported() const2882 sptr_t ScintillaEdit::lineEndTypesSupported() const {
2883 return send(SCI_GETLINEENDTYPESSUPPORTED, 0, 0);
2884 }
2885
allocateSubStyles(sptr_t styleBase,sptr_t numberStyles)2886 sptr_t ScintillaEdit::allocateSubStyles(sptr_t styleBase, sptr_t numberStyles) {
2887 return send(SCI_ALLOCATESUBSTYLES, styleBase, numberStyles);
2888 }
2889
subStylesStart(sptr_t styleBase) const2890 sptr_t ScintillaEdit::subStylesStart(sptr_t styleBase) const {
2891 return send(SCI_GETSUBSTYLESSTART, styleBase, 0);
2892 }
2893
subStylesLength(sptr_t styleBase) const2894 sptr_t ScintillaEdit::subStylesLength(sptr_t styleBase) const {
2895 return send(SCI_GETSUBSTYLESLENGTH, styleBase, 0);
2896 }
2897
styleFromSubStyle(sptr_t subStyle) const2898 sptr_t ScintillaEdit::styleFromSubStyle(sptr_t subStyle) const {
2899 return send(SCI_GETSTYLEFROMSUBSTYLE, subStyle, 0);
2900 }
2901
primaryStyleFromStyle(sptr_t style) const2902 sptr_t ScintillaEdit::primaryStyleFromStyle(sptr_t style) const {
2903 return send(SCI_GETPRIMARYSTYLEFROMSTYLE, style, 0);
2904 }
2905
freeSubStyles()2906 void ScintillaEdit::freeSubStyles() {
2907 send(SCI_FREESUBSTYLES, 0, 0);
2908 }
2909
setIdentifiers(sptr_t style,const char * identifiers)2910 void ScintillaEdit::setIdentifiers(sptr_t style, const char * identifiers) {
2911 send(SCI_SETIDENTIFIERS, style, (sptr_t)identifiers);
2912 }
2913
distanceToSecondaryStyles() const2914 sptr_t ScintillaEdit::distanceToSecondaryStyles() const {
2915 return send(SCI_DISTANCETOSECONDARYSTYLES, 0, 0);
2916 }
2917
subStyleBases() const2918 QByteArray ScintillaEdit::subStyleBases() const {
2919 return TextReturner(SCI_GETSUBSTYLEBASES, 0);
2920 }
2921
namedStyles() const2922 sptr_t ScintillaEdit::namedStyles() const {
2923 return send(SCI_GETNAMEDSTYLES, 0, 0);
2924 }
2925
nameOfStyle(sptr_t style)2926 QByteArray ScintillaEdit::nameOfStyle(sptr_t style) {
2927 return TextReturner(SCI_NAMEOFSTYLE, style);
2928 }
2929
tagsOfStyle(sptr_t style)2930 QByteArray ScintillaEdit::tagsOfStyle(sptr_t style) {
2931 return TextReturner(SCI_TAGSOFSTYLE, style);
2932 }
2933
descriptionOfStyle(sptr_t style)2934 QByteArray ScintillaEdit::descriptionOfStyle(sptr_t style) {
2935 return TextReturner(SCI_DESCRIPTIONOFSTYLE, style);
2936 }
2937
lineCharacterIndex() const2938 sptr_t ScintillaEdit::lineCharacterIndex() const {
2939 return send(SCI_GETLINECHARACTERINDEX, 0, 0);
2940 }
2941
allocateLineCharacterIndex(sptr_t lineCharacterIndex)2942 void ScintillaEdit::allocateLineCharacterIndex(sptr_t lineCharacterIndex) {
2943 send(SCI_ALLOCATELINECHARACTERINDEX, lineCharacterIndex, 0);
2944 }
2945
releaseLineCharacterIndex(sptr_t lineCharacterIndex)2946 void ScintillaEdit::releaseLineCharacterIndex(sptr_t lineCharacterIndex) {
2947 send(SCI_RELEASELINECHARACTERINDEX, lineCharacterIndex, 0);
2948 }
2949
lineFromIndexPosition(sptr_t pos,sptr_t lineCharacterIndex)2950 sptr_t ScintillaEdit::lineFromIndexPosition(sptr_t pos, sptr_t lineCharacterIndex) {
2951 return send(SCI_LINEFROMINDEXPOSITION, pos, lineCharacterIndex);
2952 }
2953
indexPositionFromLine(sptr_t line,sptr_t lineCharacterIndex)2954 sptr_t ScintillaEdit::indexPositionFromLine(sptr_t line, sptr_t lineCharacterIndex) {
2955 return send(SCI_INDEXPOSITIONFROMLINE, line, lineCharacterIndex);
2956 }
2957
2958 /* --Autogenerated -- end of section automatically generated from Scintilla.iface */
2959