]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/stc/stc.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxStyledTextEvent
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
10 @class wxStyledTextEvent
12 The type of events sent from wxStyledTextCtrl.
19 class wxStyledTextEvent
: public wxCommandEvent
26 wxStyledTextEvent(wxEventType commandType
= 0, int id
= 0);
27 wxStyledTextEvent(const wxStyledTextEvent
& event
);
33 wxEvent
* Clone() const;
43 bool GetControl() const;
48 bool GetDragAllowMove();
53 wxDragResult
GetDragResult();
58 wxString
GetDragText();
63 int GetFoldLevelNow() const;
68 int GetFoldLevelPrev() const;
78 int GetLParam() const;
83 int GetLength() const;
93 int GetLinesAdded() const;
98 int GetListType() const;
103 int GetMargin() const;
108 int GetMessage() const;
113 int GetModificationType() const;
118 int GetModifiers() const;
123 int GetPosition() const;
128 bool GetShift() const;
133 wxString
GetText() const;
138 int GetWParam() const;
153 void SetDragAllowMove(bool val
);
158 void SetDragResult(wxDragResult val
);
163 void SetDragText(const wxString
& val
);
168 void SetFoldLevelNow(int val
);
173 void SetFoldLevelPrev(int val
);
183 void SetLParam(int val
);
188 void SetLength(int len
);
193 void SetLine(int val
);
198 void SetLinesAdded(int num
);
203 void SetListType(int val
);
208 void SetMargin(int val
);
213 void SetMessage(int val
);
218 void SetModificationType(int t
);
223 void SetModifiers(int m
);
228 void SetPosition(int pos
);
233 void SetText(const wxString
& t
);
238 void SetWParam(int val
);
254 @class wxStyledTextCtrl
256 A wxWidgets implementation of the Scintilla source code editing component.
258 As well as features found in standard text editing components, Scintilla
260 features especially useful when editing and debugging source code. These
262 support for syntax styling, error indicators, code completion and call tips.
264 selection margin can contain markers like those used in debuggers to indicate
265 breakpoints and the current line. Styling choices are more open than with many
266 editors, allowing the use of proportional fonts, bold and italics, multiple
267 foreground and background colours and multiple fonts.
269 wxStyledTextCtrl is a 1 to 1 mapping of "raw" scintilla interface, whose
271 can be found in the Scintilla website.
276 @see wxStyledTextEvent
278 class wxStyledTextCtrl
: public wxControl
284 wxStyledTextCtrl::wxStyledTextCtrl(wxWindow
* parent
,
285 wxWindowID id
= wxID_ANY
,
286 const wxPoint pos
= wxDefaultPosition
,
287 const wxSize size
= wxDefaultSize
,
289 const wxString name
= "stcwindow");
292 Extend life of document.
294 void AddRefDocument(void* docPointer
);
297 Add array of cells to document.
299 void AddStyledText(const wxMemoryBuffer
& data
);
302 BEGIN generated section. The following code is automatically generated
303 by gen_iface.py. Do not edit this file. Edit stc.h.in instead
305 Add text to the document at current position.
307 void AddText(const wxString
& text
);
310 The following methods are nearly equivallent to their similarly named
311 cousins above. The difference is that these methods bypass wxString
312 and always use a char* even if used in a unicode build of wxWidgets.
313 In that case the character data will be utf-8 encoded since that is
314 what is used internally by Scintilla in unicode builds.
315 Add text to the document at current position.
317 void AddTextRaw(const char* text
);
320 Enlarge the document to a particular size of text bytes.
322 void Allocate(int bytes
);
325 Append a string to the end of the document without changing the selection.
327 virtual void AppendText(const wxString
& text
);
330 Append a string to the end of the document without changing the selection.
332 void AppendTextRaw(const char* text
);
335 Is there an auto-completion list visible?
337 bool AutoCompActive();
340 Remove the auto-completion list from the screen.
342 void AutoCompCancel();
345 User has selected an item so remove the list and insert the selection.
347 void AutoCompComplete();
350 Retrieve whether or not autocompletion is hidden automatically when nothing
353 bool AutoCompGetAutoHide() const;
356 Retrieve whether auto-completion cancelled by backspacing before start.
358 bool AutoCompGetCancelAtStart() const;
361 Retrieve whether a single item auto-completion list automatically choose the
364 bool AutoCompGetChooseSingle() const;
367 Get currently selected item position in the auto-completion list
369 int AutoCompGetCurrent();
372 Retrieve whether or not autocompletion deletes any word characters
373 after the inserted text upon completion.
375 bool AutoCompGetDropRestOfWord() const;
378 Retrieve state of ignore case flag.
380 bool AutoCompGetIgnoreCase() const;
383 Set the maximum height, in rows, of auto-completion and user lists.
385 int AutoCompGetMaxHeight() const;
388 Get the maximum width, in characters, of auto-completion and user lists.
390 int AutoCompGetMaxWidth() const;
393 Retrieve the auto-completion list separator character.
395 int AutoCompGetSeparator() const;
398 Retrieve the auto-completion list type-separator character.
400 int AutoCompGetTypeSeparator() const;
403 Retrieve the position of the caret when the auto-completion list was displayed.
405 int AutoCompPosStart();
408 Select the item in the auto-completion list that starts with a string.
410 void AutoCompSelect(const wxString
& text
);
413 Set whether or not autocompletion is hidden automatically when nothing matches.
415 void AutoCompSetAutoHide(bool autoHide
);
418 Should the auto-completion list be cancelled if the user backspaces to a
419 position before where the box was created.
421 void AutoCompSetCancelAtStart(bool cancel
);
424 Should a single item auto-completion list automatically choose the item.
426 void AutoCompSetChooseSingle(bool chooseSingle
);
429 Set whether or not autocompletion deletes any word characters
430 after the inserted text upon completion.
432 void AutoCompSetDropRestOfWord(bool dropRestOfWord
);
435 Define a set of characters that when typed will cause the autocompletion to
436 choose the selected item.
438 void AutoCompSetFillUps(const wxString
& characterSet
);
441 Set whether case is significant when performing auto-completion searches.
443 void AutoCompSetIgnoreCase(bool ignoreCase
);
446 Set the maximum height, in rows, of auto-completion and user lists.
447 The default is 5 rows.
449 void AutoCompSetMaxHeight(int rowCount
);
452 Set the maximum width, in characters, of auto-completion and user lists.
453 Set to 0 to autosize to fit longest item, which is the default.
455 void AutoCompSetMaxWidth(int characterCount
);
458 Change the separator character in the string setting up an auto-completion list.
459 Default is space but can be changed if items contain space.
461 void AutoCompSetSeparator(int separatorCharacter
);
464 Change the type-separator character in the string setting up an auto-completion
466 Default is '?' but can be changed if items contain '?'.
468 void AutoCompSetTypeSeparator(int separatorCharacter
);
471 Display a auto-completion list.
472 The lenEntered parameter indicates how many characters before
473 the caret should be used to provide context.
475 void AutoCompShow(int lenEntered
, const wxString
& itemList
);
478 Define a set of character that when typed cancel the auto-completion list.
480 void AutoCompStops(const wxString
& characterSet
);
483 Dedent the selected lines.
488 Start a sequence of actions that is undone and redone as a unit.
491 void BeginUndoAction();
494 Highlight the character at a position indicating there is no matching brace.
496 void BraceBadLight(int pos
);
499 Highlight the characters at two positions.
501 void BraceHighlight(int pos1
, int pos2
);
504 Find the position of a matching brace or INVALID_POSITION if no match.
506 int BraceMatch(int pos
);
509 Is there an active call tip?
511 bool CallTipActive();
514 Remove the call tip from the screen.
516 void CallTipCancel();
519 Retrieve the position where the caret was before displaying the call tip.
521 int CallTipPosAtStart();
524 Set the background colour for the call tip.
526 void CallTipSetBackground(const wxColour
& back
);
529 Set the foreground colour for the call tip.
531 void CallTipSetForeground(const wxColour
& fore
);
534 Set the foreground colour for the highlighted part of the call tip.
536 void CallTipSetForegroundHighlight(const wxColour
& fore
);
539 Highlight a segment of the definition.
541 void CallTipSetHighlight(int start
, int end
);
544 Show a call tip containing a definition near position pos.
546 void CallTipShow(int pos
, const wxString
& definition
);
549 Enable use of STYLE_CALLTIP and set call tip tab size in pixels.
551 void CallTipUseStyle(int tabSize
);
554 Will a paste succeed?
559 Are there any redoable actions in the undo history?
561 virtual bool CanRedo() const;
564 Are there any undoable actions in the undo history?
566 virtual bool CanUndo() const;
569 Cancel any modes such as call tip or auto-completion list display.
574 Move caret left one character.
579 Move caret left one character extending selection to new caret position.
581 void CharLeftExtend();
584 Move caret left one character, extending rectangular selection to new caret
587 void CharLeftRectExtend();
590 Move caret right one character.
595 Move caret right one character extending selection to new caret position.
597 void CharRightExtend();
600 Move caret right one character, extending rectangular selection to new caret
603 void CharRightRectExtend();
606 Set the last x chosen value to be the caret x position.
613 virtual void Clear();
616 Delete all text in the document.
621 Set all style bytes to 0, remove all folding information.
623 void ClearDocumentStyle();
626 Clear all the registered images.
628 void ClearRegisteredImages();
631 When key+modifier combination km is pressed perform msg.
633 void CmdKeyAssign(int key
, int modifiers
, int cmd
);
636 When key+modifier combination km is pressed do nothing.
638 void CmdKeyClear(int key
, int modifiers
);
641 Drop all key mappings.
643 void CmdKeyClearAll();
646 Perform one of the operations defined by the wxSTC_CMD_* constants.
648 void CmdKeyExecute(int cmd
);
651 Colourise a segment of the document using the current lexing language.
653 void Colourise(int start
, int end
);
656 Convert all line endings in the document to one mode.
658 void ConvertEOLs(int eolMode
);
661 Copy the selection to the clipboard.
666 Copy a range of text to the clipboard. Positions are clipped into the document.
668 void CopyRange(int start
, int end
);
671 Copy argument text to the clipboard.
673 void CopyText(int length
, const wxString
& text
);
678 bool Create(wxWindow
* parent
, wxWindowID id
= wxID_ANY
,
679 const wxPoint
& pos
= wxDefaultPosition
,
680 const wxSize
& size
= wxDefaultSize
,
682 const wxString
& name
= wxSTCNameStr
);
685 Create a new document object.
686 Starts with reference count of 1 and not selected into editor.
688 void* CreateDocument();
691 Cut the selection to the clipboard.
696 Delete back from the current position to the start of the line.
701 Delete forwards from the current position to the end of the line.
706 Delete the word to the left of the caret.
711 Delete the word to the right of the caret.
716 Delete the selection or if no selection, the character before the caret.
721 Delete the selection or if no selection, the character before the caret.
722 Will not delete the character before at the start of a line.
724 void DeleteBackNotLine();
727 Allow for simulating a DnD DragOver
729 wxDragResult
DoDragOver(wxCoord x
, wxCoord y
, wxDragResult def
);
732 Allow for simulating a DnD DropText
734 bool DoDropText(long x
, long y
, const wxString
& data
);
737 Find the document line of a display line taking hidden lines into account.
739 int DocLineFromVisible(int lineDisplay
);
742 Move caret to last position in document.
747 Move caret to last position in document extending selection to new caret
750 void DocumentEndExtend();
753 Move caret to first position in document.
755 void DocumentStart();
758 Move caret to first position in document extending selection to new caret
761 void DocumentStartExtend();
764 Switch from insert to overtype mode or the reverse.
766 void EditToggleOvertype();
769 Delete the undo history.
771 void EmptyUndoBuffer();
774 End a sequence of actions that is undone and redone as a unit.
776 void EndUndoAction();
779 Ensure the caret is visible.
781 void EnsureCaretVisible();
784 Ensure a particular line is visible by expanding any header line hiding it.
786 void EnsureVisible(int line
);
789 Ensure a particular line is visible by expanding any header line hiding it.
790 Use the currently set visibility policy to determine which range to display.
792 void EnsureVisibleEnforcePolicy(int line
);
795 Find the position of a column on a line taking into account tabs and
796 multi-byte characters. If beyond end of line, return line end position.
798 int FindColumn(int line
, int column
);
801 Find some text in the document.
803 int FindText(int minPos
, int maxPos
, const wxString
& text
,
807 Insert a Form Feed character.
812 On Windows, will draw the document into a display context such as a printer.
814 int FormatRange(bool doDraw
, int startPos
, int endPos
,
815 wxDC
* draw
, wxDC
* target
,
820 Returns the position of the opposite end of the selection to the caret.
822 int GetAnchor() const;
825 Does a backspace pressed when caret is within indentation unindent?
827 bool GetBackSpaceUnIndents() const;
830 Is drawing done first into a buffer or direct to the screen?
832 bool GetBufferedDraw() const;
835 Get the foreground colour of the caret.
837 wxColour
GetCaretForeground() const;
840 Get the background alpha of the caret line.
842 int GetCaretLineBackAlpha() const;
845 Get the colour of the background of the line containing the caret.
847 wxColour
GetCaretLineBackground() const;
850 Is the background of the line containing the caret in a different colour?
852 bool GetCaretLineVisible() const;
855 Get the time in milliseconds that the caret is on and off.
857 int GetCaretPeriod() const;
860 Can the caret preferred x position only be changed by explicit movement
863 bool GetCaretSticky() const;
866 Returns the width of the insert mode caret.
868 int GetCaretWidth() const;
871 Returns the character byte at the position.
873 int GetCharAt(int pos
) const;
876 Get the code page used to interpret the bytes of the document as characters.
878 int GetCodePage() const;
881 Retrieve the column number of a position, taking tab width into account.
883 int GetColumn(int pos
) const;
886 Get the way control characters are displayed.
888 int GetControlCharSymbol() const;
893 wxString
GetCurLine(int* OUTPUT
);
898 wxCharBuffer
GetCurLineRaw(int* OUTPUT
);
901 END of generated section
903 Returns the line number of the line with the caret.
905 int GetCurrentLine();
908 Returns the position of the caret.
910 int GetCurrentPos() const;
913 Retrieve a pointer to the document object.
915 void* GetDocPointer();
918 Retrieve the current end of line mode - one of CRLF, CR, or LF.
920 int GetEOLMode() const;
923 Retrieve the colour used in edge indication.
925 wxColour
GetEdgeColour() const;
928 Retrieve the column number which text should be kept within.
930 int GetEdgeColumn() const;
933 Retrieve the edge highlight mode.
935 int GetEdgeMode() const;
938 Retrieve whether the maximum scroll position has the last
939 line at the bottom of the view.
941 bool GetEndAtLastLine() const;
944 Retrieve the position of the last correctly styled character.
946 int GetEndStyled() const;
949 Retrieve the display line at the top of the display.
951 int GetFirstVisibleLine() const;
954 Is a header line expanded?
956 bool GetFoldExpanded(int line
) const;
959 Retrieve the fold level of a line.
961 int GetFoldLevel(int line
) const;
964 Find the parent line of a child line.
966 int GetFoldParent(int line
) const;
969 Get the highlighted indentation guide column.
971 int GetHighlightGuide() const;
974 Retrieve indentation size.
976 int GetIndent() const;
979 Are the indentation guides visible?
981 bool GetIndentationGuides();
984 Find the last child line of a header line.
986 int GetLastChild(int line
, int level
) const;
989 Can be used to prevent the EVT_CHAR handler from adding the char
991 bool GetLastKeydownProcessed();
994 Retrieve the degree of caching of layout information.
996 int GetLayoutCache() const;
999 Returns the number of characters in the document.
1001 int GetLength() const;
1004 Retrieve the lexing language of the document.
1006 int GetLexer() const;
1009 Retrieve the contents of a line.
1011 wxString
GetLine(int line
) const;
1014 Returns the number of lines in the document. There is always at least one.
1016 int GetLineCount() const;
1019 Get the position after the last visible characters on a line.
1021 int GetLineEndPosition(int line
) const;
1024 Retrieve the position before the first non indentation character on a line.
1026 int GetLineIndentPosition(int line
) const;
1029 Retrieve the number of columns that a line is indented.
1031 int GetLineIndentation(int line
) const;
1034 Retrieve the contents of a line.
1036 wxCharBuffer
GetLineRaw(int line
);
1039 Retrieve the position of the end of the selection at the given line
1040 (INVALID_POSITION if no selection on this line).
1042 int GetLineSelEndPosition(int line
);
1045 Retrieve the position of the start of the selection at the given line
1046 (INVALID_POSITION if no selection on this line).
1048 int GetLineSelStartPosition(int line
);
1051 Retrieve the extra styling information for a line.
1053 int GetLineState(int line
) const;
1058 bool GetLineVisible(int line
) const;
1061 Returns the size in pixels of the left margin.
1063 int GetMarginLeft() const;
1066 Retrieve the marker mask of a margin.
1068 int GetMarginMask(int margin
) const;
1071 Returns the size in pixels of the right margin.
1073 int GetMarginRight() const;
1076 Retrieve the mouse click sensitivity of a margin.
1078 bool GetMarginSensitive(int margin
) const;
1081 Retrieve the type of a margin.
1083 int GetMarginType(int margin
) const;
1086 Retrieve the width of a margin in pixels.
1088 int GetMarginWidth(int margin
) const;
1091 Retrieve the last line number that has line state.
1093 int GetMaxLineState() const;
1096 Get which document modification events are sent to the container.
1098 int GetModEventMask() const;
1101 Is the document different from when it was last saved?
1103 bool GetModify() const;
1106 Get whether mouse gets captured.
1108 bool GetMouseDownCaptures() const;
1111 Retrieve the time the mouse must sit still to generate a mouse dwell event.
1113 int GetMouseDwellTime() const;
1116 Returns @true if overtype mode is active otherwise @false is returned.
1118 bool GetOvertype() const;
1121 Get convert-on-paste setting
1123 bool GetPasteConvertEndings() const;
1126 Returns the print colour mode.
1128 int GetPrintColourMode() const;
1131 Returns the print magnification.
1133 int GetPrintMagnification() const;
1136 Is printing line wrapped?
1138 int GetPrintWrapMode() const;
1141 Retrieve a 'property' value previously set with SetProperty.
1143 wxString
GetProperty(const wxString
& key
);
1146 Retrieve a 'property' value previously set with SetProperty,
1147 with '$()' variable replacement on returned buffer.
1149 wxString
GetPropertyExpanded(const wxString
& key
);
1152 Retrieve a 'property' value previously set with SetProperty,
1153 interpreted as an int AFTER any '$()' variable replacement.
1155 int GetPropertyInt(const wxString
& key
) const;
1160 bool GetReadOnly() const;
1165 int GetSTCCursor() const;
1168 Get internal focus flag.
1170 bool GetSTCFocus() const;
1173 Retrieve the document width assumed for scrolling.
1175 int GetScrollWidth() const;
1178 Get the search flags used by SearchInTarget.
1180 int GetSearchFlags() const;
1183 Get the alpha of the selection.
1185 int GetSelAlpha() const;
1188 Retrieve the selected text.
1190 wxString
GetSelectedText();
1193 Retrieve the selected text.
1195 wxCharBuffer
GetSelectedTextRaw();
1200 void GetSelection(int* OUTPUT
, int* OUTPUT
);
1203 Returns the position at the end of the selection.
1205 int GetSelectionEnd() const;
1208 Get the mode of the current selection.
1210 int GetSelectionMode() const;
1213 Returns the position at the start of the selection.
1215 int GetSelectionStart() const;
1220 int GetStatus() const;
1223 Returns the style byte at the position.
1225 int GetStyleAt(int pos
) const;
1228 Retrieve number of bits in style bytes used to hold the lexical state.
1230 int GetStyleBits() const;
1233 Retrieve the number of bits the current lexer needs for styling.
1235 int GetStyleBitsNeeded() const;
1238 Retrieve a buffer of cells.
1240 wxMemoryBuffer
GetStyledText(int startPos
, int endPos
);
1243 Does a tab pressed when caret is within indentation indent?
1245 bool GetTabIndents() const;
1248 Retrieve the visible size of a tab.
1250 int GetTabWidth() const;
1253 Get the position that ends the target.
1255 int GetTargetEnd() const;
1258 Get the position that starts the target.
1260 int GetTargetStart() const;
1263 Retrieve all the text in the document.
1265 wxString
GetText() const;
1268 Retrieve the number of characters in the document.
1270 int GetTextLength() const;
1273 Retrieve a range of text.
1275 wxString
GetTextRange(int startPos
, int endPos
);
1278 Retrieve a range of text.
1280 wxCharBuffer
GetTextRangeRaw(int startPos
, int endPos
);
1283 Retrieve all the text in the document.
1285 wxCharBuffer
GetTextRaw();
1288 Is drawing done in two phases with backgrounds drawn before foregrounds?
1290 bool GetTwoPhaseDraw() const;
1293 Is undo history being collected?
1295 bool GetUndoCollection() const;
1298 Returns the current UseAntiAliasing setting.
1300 bool GetUseAntiAliasing();
1303 Is the horizontal scroll bar visible?
1305 bool GetUseHorizontalScrollBar() const;
1308 Retrieve whether tabs will be used in indentation.
1310 bool GetUseTabs() const;
1313 Is the vertical scroll bar visible?
1315 bool GetUseVerticalScrollBar() const;
1318 Are the end of line characters visible?
1320 bool GetViewEOL() const;
1323 Are white space characters currently visible?
1324 Returns one of SCWS_* constants.
1326 int GetViewWhiteSpace() const;
1329 Retrieve whether text is word wrapped.
1331 int GetWrapMode() const;
1334 Retrive the start indent for wrapped lines.
1336 int GetWrapStartIndent() const;
1339 Retrive the display mode of visual flags for wrapped lines.
1341 int GetWrapVisualFlags() const;
1344 Retrive the location of visual flags for wrapped lines.
1346 int GetWrapVisualFlagsLocation() const;
1351 int GetXOffset() const;
1354 Retrieve the zoom level.
1356 int GetZoom() const;
1359 Set caret to start of a line and ensure it is visible.
1361 void GotoLine(int line
);
1364 Set caret to a position and ensure it is visible.
1366 void GotoPos(int pos
);
1369 Make a range of lines invisible.
1371 void HideLines(int lineStart
, int lineEnd
);
1374 Draw the selection in normal style or with selection highlighted.
1376 void HideSelection(bool normal
);
1379 Move caret to first position on line.
1384 Move caret to first position on display line.
1389 Move caret to first position on display line extending selection to
1392 void HomeDisplayExtend();
1395 Move caret to first position on line extending selection to new caret position.
1400 Move caret to first position on line, extending rectangular selection to new
1403 void HomeRectExtend();
1406 These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
1407 except they behave differently when word-wrap is enabled:
1408 They go first to the start / end of the display line, like (Home|LineEnd)Display
1409 The difference is that, the cursor is already at the point, it goes on to the
1411 or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.
1418 void HomeWrapExtend();
1421 Retrieve the foreground colour of an indicator.
1423 wxColour
IndicatorGetForeground(int indic
) const;
1426 Retrieve the style of an indicator.
1428 int IndicatorGetStyle(int indic
) const;
1431 Set the foreground colour of an indicator.
1433 void IndicatorSetForeground(int indic
, const wxColour
& fore
);
1436 Set an indicator to plain, squiggle or TT.
1438 void IndicatorSetStyle(int indic
, int style
);
1441 Insert string at a position.
1443 void InsertText(int pos
, const wxString
& text
);
1446 Insert string at a position.
1448 void InsertTextRaw(int pos
, const char* text
);
1451 Copy the line containing the caret.
1456 Cut the line containing the caret.
1461 Delete the line containing the caret.
1466 Move caret down one line.
1471 Move caret down one line extending selection to new caret position.
1473 void LineDownExtend();
1476 Move caret down one line, extending rectangular selection to new caret position.
1478 void LineDownRectExtend();
1481 Duplicate the current line.
1483 void LineDuplicate();
1486 Move caret to last position on line.
1491 Move caret to last position on display line.
1493 void LineEndDisplay();
1496 Move caret to last position on display line extending selection to new
1499 void LineEndDisplayExtend();
1502 Move caret to last position on line extending selection to new caret position.
1504 void LineEndExtend();
1507 Move caret to last position on line, extending rectangular selection to new
1510 void LineEndRectExtend();
1520 void LineEndWrapExtend();
1523 Retrieve the line containing a position.
1525 int LineFromPosition(int pos
) const;
1528 How many characters are on a line, not including end of line characters?
1530 int LineLength(int line
) const;
1533 Scroll horizontally and vertically.
1535 void LineScroll(int columns
, int lines
);
1538 Scroll the document down, keeping the caret visible.
1540 void LineScrollDown();
1543 Scroll the document up, keeping the caret visible.
1545 void LineScrollUp();
1548 Switch the current line with the previous.
1550 void LineTranspose();
1553 Move caret up one line.
1558 Move caret up one line extending selection to new caret position.
1560 void LineUpExtend();
1563 Move caret up one line, extending rectangular selection to new caret position.
1565 void LineUpRectExtend();
1568 Join the lines in the target.
1573 Retrieves the number of lines completely visible.
1575 int LinesOnScreen() const;
1578 Split the lines in the target into lines that are less wide than pixelWidth
1581 void LinesSplit(int pixelWidth
);
1584 Load the contents of filename into the editor
1586 bool LoadFile(const wxString
& filename
);
1589 Transform the selection to lower case.
1594 Add a marker to a line, returning an ID which can be used to find or delete the
1597 int MarkerAdd(int line
, int markerNumber
);
1600 Add a set of markers to a line.
1602 void MarkerAddSet(int line
, int set
);
1605 Set the symbol used for a particular marker number,
1606 and optionally the fore and background colours.
1608 void MarkerDefine(int markerNumber
, int markerSymbol
,
1609 const wxColour
& foreground
= wxNullColour
,
1610 const wxColour
& background
= wxNullColour
);
1613 Define a marker from a bitmap
1615 void MarkerDefineBitmap(int markerNumber
, const wxBitmap
& bmp
);
1618 Delete a marker from a line.
1620 void MarkerDelete(int line
, int markerNumber
);
1623 Delete all markers with a particular number from all lines.
1625 void MarkerDeleteAll(int markerNumber
);
1630 void MarkerDeleteHandle(int handle
);
1633 Get a bit mask of all the markers set on a line.
1635 int MarkerGet(int line
);
1638 Retrieve the line number at which a particular marker is located.
1640 int MarkerLineFromHandle(int handle
);
1643 Find the next line after lineStart that includes a marker in mask.
1645 int MarkerNext(int lineStart
, int markerMask
);
1648 Find the previous line before lineStart that includes a marker in mask.
1650 int MarkerPrevious(int lineStart
, int markerMask
);
1653 Set the alpha used for a marker that is drawn in the text area, not the margin.
1655 void MarkerSetAlpha(int markerNumber
, int alpha
);
1658 Set the background colour used for a particular marker number.
1660 void MarkerSetBackground(int markerNumber
, const wxColour
& back
);
1663 Set the foreground colour used for a particular marker number.
1665 void MarkerSetForeground(int markerNumber
, const wxColour
& fore
);
1668 Move the caret inside current view if it's not there already.
1670 void MoveCaretInsideView();
1673 Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
1678 Move caret one page down.
1683 Move caret one page down extending selection to new caret position.
1685 void PageDownExtend();
1688 Move caret one page down, extending rectangular selection to new caret position.
1690 void PageDownRectExtend();
1693 Move caret one page up.
1698 Move caret one page up extending selection to new caret position.
1700 void PageUpExtend();
1703 Move caret one page up, extending rectangular selection to new caret position.
1705 void PageUpRectExtend();
1708 Move caret between paragraphs (delimited by empty lines).
1715 void ParaDownExtend();
1725 void ParaUpExtend();
1728 Paste the contents of the clipboard into the document replacing the selection.
1730 virtual void Paste();
1733 Retrieve the point in the window where a position is displayed.
1735 wxPoint
PointFromPosition(int pos
);
1738 Given a valid document position, return the next position taking code
1739 page into account. Maximum value returned is the last position in the document.
1741 int PositionAfter(int pos
);
1744 Given a valid document position, return the previous position taking code
1745 page into account. Returns 0 if passed 0.
1747 int PositionBefore(int pos
);
1750 Retrieve the position at the start of a line.
1752 int PositionFromLine(int line
) const;
1755 Find the position from a point within the window.
1757 int PositionFromPoint(wxPoint pt
) const;
1760 Find the position from a point within the window but return
1761 INVALID_POSITION if not close to text.
1763 int PositionFromPointClose(int x
, int y
);
1766 Redoes the next action on the undo history.
1768 virtual void Redo();
1771 Register an image for use in autocompletion lists.
1773 void RegisterImage(int type
, const wxBitmap
& bmp
);
1776 Release a reference to the document, deleting document if it fades to black.
1778 void ReleaseDocument(void* docPointer
);
1781 Replace the selected text with the argument text.
1783 void ReplaceSelection(const wxString
& text
);
1786 Replace the target text with the argument text.
1787 Text is counted so it can contain NULs.
1788 Returns the length of the replacement text.
1790 int ReplaceTarget(const wxString
& text
);
1793 Replace the target text with the argument text after
1795 Text is counted so it can contain NULs.
1797 d where d is between 1 and 9 and replaces these with the strings
1798 matched in the last search operation which were surrounded by
1801 Returns the length of the replacement text including any change
1802 caused by processing the
1805 int ReplaceTargetRE(const wxString
& text
);
1808 Write the contents of the editor to filename
1810 bool SaveFile(const wxString
& filename
);
1813 Scroll enough to make the given column visible
1815 void ScrollToColumn(int column
);
1818 Scroll enough to make the given line visible
1820 void ScrollToLine(int line
);
1823 Sets the current caret position to be the search anchor.
1825 void SearchAnchor();
1828 Search for a counted string in the target and set the target to the found
1829 range. Text is counted so it can contain NULs.
1830 Returns length of range or -1 for failure in which case target is not moved.
1832 int SearchInTarget(const wxString
& text
);
1835 Find some text starting at the search anchor.
1836 Does not ensure the selection is visible.
1838 int SearchNext(int flags
, const wxString
& text
);
1841 Find some text starting at the search anchor and moving backwards.
1842 Does not ensure the selection is visible.
1844 int SearchPrev(int flags
, const wxString
& text
);
1847 Select all the text in the document.
1849 virtual void SelectAll();
1852 Duplicate the selection. If selection empty duplicate the line containing the
1855 void SelectionDuplicate();
1858 Is the selection rectangular? The alternative is the more common stream
1861 bool SelectionIsRectangle() const;
1864 Send a message to Scintilla
1866 long SendMsg(int msg
, long wp
= 0, long lp
= 0);
1869 Set the selection anchor to a position. The anchor is the opposite
1870 end of the selection from the caret.
1872 void SetAnchor(int posAnchor
);
1875 Sets whether a backspace pressed when caret is within indentation unindents.
1877 void SetBackSpaceUnIndents(bool bsUnIndents
);
1880 If drawing is buffered then each line of text is drawn into a bitmap buffer
1881 before drawing it to the screen to avoid flicker.
1883 void SetBufferedDraw(bool buffered
);
1886 Set the foreground colour of the caret.
1888 void SetCaretForeground(const wxColour
& fore
);
1891 Set background alpha of the caret line.
1893 void SetCaretLineBackAlpha(int alpha
);
1896 Set the colour of the background of the line containing the caret.
1898 void SetCaretLineBackground(const wxColour
& back
);
1901 Display the background of the line containing the caret in a different colour.
1903 void SetCaretLineVisible(bool show
);
1906 Get the time in milliseconds that the caret is on and off. 0 = steady on.
1908 void SetCaretPeriod(int periodMilliseconds
);
1911 Stop the caret preferred x position changing when the user types.
1913 void SetCaretSticky(bool useCaretStickyBehaviour
);
1916 Set the width of the insert mode caret.
1918 void SetCaretWidth(int pixelWidth
);
1921 Reset the set of characters for whitespace and word characters to the defaults.
1923 void SetCharsDefault();
1926 Set the code page used to interpret the bytes of the document as characters.
1928 void SetCodePage(int codePage
);
1931 Change the way control characters are displayed:
1932 If symbol is 32, keep the drawn way, else, use the given character.
1934 void SetControlCharSymbol(int symbol
);
1937 Sets the position of the caret.
1939 void SetCurrentPos(int pos
);
1942 Change the document object used.
1944 void SetDocPointer(void* docPointer
);
1947 Set the current end of line mode.
1949 void SetEOLMode(int eolMode
);
1952 Change the colour used in edge indication.
1954 void SetEdgeColour(const wxColour
& edgeColour
);
1957 Set the column number of the edge.
1958 If text goes past the edge then it is highlighted.
1960 void SetEdgeColumn(int column
);
1963 The edge may be displayed by a line (EDGE_LINE) or by highlighting text that
1964 goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE).
1966 void SetEdgeMode(int mode
);
1969 Sets the scroll range so that maximum scroll position has
1970 the last line at the bottom of the view (default).
1971 Setting this to @false allows scrolling one page below the last line.
1973 void SetEndAtLastLine(bool endAtLastLine
);
1976 Show the children of a header line.
1978 void SetFoldExpanded(int line
, bool expanded
);
1981 Set some style options for folding.
1983 void SetFoldFlags(int flags
);
1986 Set the fold level of a line.
1987 This encodes an integer level along with flags indicating whether the
1988 line is a header and whether it is effectively white space.
1990 void SetFoldLevel(int line
, int level
);
1993 Set the colours used as a chequerboard pattern in the fold margin
1995 void SetFoldMarginColour(bool useSetting
, const wxColour
& back
);
2000 void SetFoldMarginHiColour(bool useSetting
, const wxColour
& fore
);
2003 Set the horizontal scrollbar to use instead of the ont that's built-in.
2005 void SetHScrollBar(wxScrollBar
* bar
);
2008 Set the highlighted indentation guide column.
2009 0 = no highlighted guide.
2011 void SetHighlightGuide(int column
);
2014 Set a back colour for active hotspots.
2016 void SetHotspotActiveBackground(bool useSetting
,
2017 const wxColour
& back
);
2020 Set a fore colour for active hotspots.
2022 void SetHotspotActiveForeground(bool useSetting
,
2023 const wxColour
& fore
);
2026 Enable / Disable underlining active hotspots.
2028 void SetHotspotActiveUnderline(bool underline
);
2031 Limit hotspots to single line so hotspots on two lines don't merge.
2033 void SetHotspotSingleLine(bool singleLine
);
2036 Set the number of spaces used for one level of indentation.
2038 void SetIndent(int indentSize
);
2041 Show or hide indentation guides.
2043 void SetIndentationGuides(bool show
);
2046 Set up the key words used by the lexer.
2048 void SetKeyWords(int keywordSet
, const wxString
& keyWords
);
2053 void SetLastKeydownProcessed(bool val
);
2056 Sets the degree of caching of layout information.
2058 void SetLayoutCache(int mode
);
2061 Set the lexing language of the document.
2063 void SetLexer(int lexer
);
2066 Set the lexing language of the document based on string name.
2068 void SetLexerLanguage(const wxString
& language
);
2071 Change the indentation of a line to a number of columns.
2073 void SetLineIndentation(int line
, int indentSize
);
2076 Used to hold extra styling information for each line.
2078 void SetLineState(int line
, int state
);
2081 Sets the size in pixels of the left margin.
2083 void SetMarginLeft(int pixelWidth
);
2086 Set a mask that determines which markers are displayed in a margin.
2088 void SetMarginMask(int margin
, int mask
);
2091 Sets the size in pixels of the right margin.
2093 void SetMarginRight(int pixelWidth
);
2096 Make a margin sensitive or insensitive to mouse clicks.
2098 void SetMarginSensitive(int margin
, bool sensitive
);
2101 Set a margin to be either numeric or symbolic.
2103 void SetMarginType(int margin
, int marginType
);
2106 Set the width of a margin to a width expressed in pixels.
2108 void SetMarginWidth(int margin
, int pixelWidth
);
2111 Set the left and right margin in the edit area, measured in pixels.
2113 void SetMargins(int left
, int right
);
2116 Set which document modification events are sent to the container.
2118 void SetModEventMask(int mask
);
2121 Set whether the mouse is captured when its button is pressed.
2123 void SetMouseDownCaptures(bool captures
);
2126 Sets the time the mouse must sit still to generate a mouse dwell event.
2128 void SetMouseDwellTime(int periodMilliseconds
);
2131 Set to overtype (@true) or insert mode.
2133 void SetOvertype(bool overtype
);
2136 Enable/Disable convert-on-paste for line endings
2138 void SetPasteConvertEndings(bool convert
);
2141 Modify colours when printing for clearer printed text.
2143 void SetPrintColourMode(int mode
);
2146 Sets the print magnification added to the point size of each style for printing.
2148 void SetPrintMagnification(int magnification
);
2151 Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE).
2153 void SetPrintWrapMode(int mode
);
2156 Set up a value that may be used by a lexer for some optional feature.
2158 void SetProperty(const wxString
& key
, const wxString
& value
);
2161 Set to read only or read write.
2163 void SetReadOnly(bool readOnly
);
2166 Sets the cursor to one of the SC_CURSOR* values.
2168 void SetSTCCursor(int cursorType
);
2171 Change internal focus flag.
2173 void SetSTCFocus(bool focus
);
2176 Remember the current position in the undo history as the position
2177 at which the document was saved.
2179 void SetSavePoint();
2182 Sets the document width assumed for scrolling.
2184 void SetScrollWidth(int pixelWidth
);
2187 Set the search flags used by SearchInTarget.
2189 void SetSearchFlags(int flags
);
2192 Set the alpha of the selection.
2194 void SetSelAlpha(int alpha
);
2197 Set the background colour of the selection and whether to use this setting.
2199 void SetSelBackground(bool useSetting
, const wxColour
& back
);
2202 Set the foreground colour of the selection and whether to use this setting.
2204 void SetSelForeground(bool useSetting
, const wxColour
& fore
);
2207 Select a range of text.
2209 void SetSelection(int start
, int end
);
2212 Sets the position that ends the selection - this becomes the currentPosition.
2214 void SetSelectionEnd(int pos
);
2217 Set the selection mode to stream (SC_SEL_STREAM) or rectangular
2218 (SC_SEL_RECTANGLE) or
2219 by lines (SC_SEL_LINES).
2221 void SetSelectionMode(int mode
);
2224 Sets the position that starts the selection - this becomes the anchor.
2226 void SetSelectionStart(int pos
);
2229 Change error status - 0 = OK.
2231 void SetStatus(int statusCode
);
2234 Divide each styling byte into lexical class bits (default: 5) and indicator
2235 bits (default: 3). If a lexer requires more than 32 lexical states, then this
2236 is used to expand the possible states.
2238 void SetStyleBits(int bits
);
2241 Set the styles for a segment of the document.
2243 void SetStyleBytes(int length
, char* styleBytes
);
2246 Change style from current styling position for length characters to a style
2247 and move the current styling position to after this newly styled segment.
2249 void SetStyling(int length
, int style
);
2252 Sets whether a tab pressed when caret is within indentation indents.
2254 void SetTabIndents(bool tabIndents
);
2257 Change the visible size of a tab to be a multiple of the width of a space
2260 void SetTabWidth(int tabWidth
);
2263 Sets the position that ends the target which is used for updating the
2264 document without affecting the scroll position.
2266 void SetTargetEnd(int pos
);
2269 Sets the position that starts the target which is used for updating the
2270 document without affecting the scroll position.
2272 void SetTargetStart(int pos
);
2275 Replace the contents of the document with the argument text.
2277 void SetText(const wxString
& text
);
2280 Replace the contents of the document with the argument text.
2282 void SetTextRaw(const char* text
);
2285 In twoPhaseDraw mode, drawing is performed in two phases, first the background
2286 and then the foreground. This avoids chopping off characters that overlap the
2289 void SetTwoPhaseDraw(bool twoPhase
);
2292 Choose between collecting actions into the undo
2293 history and discarding them.
2295 void SetUndoCollection(bool collectUndo
);
2298 Specify whether anti-aliased fonts should be used. Will have no effect
2299 on some platforms, but on some (wxMac for example) can greatly improve
2302 void SetUseAntiAliasing(bool useAA
);
2305 Show or hide the horizontal scroll bar.
2307 void SetUseHorizontalScrollBar(bool show
);
2310 Indentation will only use space characters if useTabs is @false, otherwise
2311 it will use a combination of tabs and spaces.
2313 void SetUseTabs(bool useTabs
);
2316 Show or hide the vertical scroll bar.
2318 void SetUseVerticalScrollBar(bool show
);
2321 Set the vertical scrollbar to use instead of the ont that's built-in.
2323 void SetVScrollBar(wxScrollBar
* bar
);
2326 Make the end of line characters visible or invisible.
2328 void SetViewEOL(bool visible
);
2331 Make white space characters invisible, always visible or visible outside
2334 void SetViewWhiteSpace(int viewWS
);
2337 Set the way the display area is determined when a particular line
2338 is to be moved to by Find, FindNext, GotoLine, etc.
2340 void SetVisiblePolicy(int visiblePolicy
, int visibleSlop
);
2343 Set the background colour of all whitespace and whether to use this setting.
2345 void SetWhitespaceBackground(bool useSetting
,
2346 const wxColour
& back
);
2349 Set the set of characters making up whitespace for when moving or selecting by
2351 Should be called after SetWordChars.
2353 void SetWhitespaceChars(const wxString
& characters
);
2356 Set the foreground colour of all whitespace and whether to use this setting.
2358 void SetWhitespaceForeground(bool useSetting
,
2359 const wxColour
& fore
);
2362 Set the set of characters making up words for when moving or selecting by word.
2363 First sets deaults like SetCharsDefault.
2365 void SetWordChars(const wxString
& characters
);
2368 Sets whether text is word wrapped.
2370 void SetWrapMode(int mode
);
2373 Set the start indent for wrapped lines.
2375 void SetWrapStartIndent(int indent
);
2378 Set the display mode of visual flags for wrapped lines.
2380 void SetWrapVisualFlags(int wrapVisualFlags
);
2383 Set the location of visual flags for wrapped lines.
2385 void SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation
);
2388 Set the way the caret is kept visible when going sideway.
2389 The exclusion zone is given in pixels.
2391 void SetXCaretPolicy(int caretPolicy
, int caretSlop
);
2394 Get and Set the xOffset (ie, horizonal scroll position).
2396 void SetXOffset(int newOffset
);
2399 Set the way the line the caret is on is kept visible.
2400 The exclusion zone is given in lines.
2402 void SetYCaretPolicy(int caretPolicy
, int caretSlop
);
2405 Set the zoom level. This number of points is added to the size of all fonts.
2406 It may be positive to magnify or negative to reduce.
2408 void SetZoom(int zoom
);
2411 Make a range of lines visible.
2413 void ShowLines(int lineStart
, int lineEnd
);
2416 Start notifying the container of all key presses and commands.
2421 Set the current styling position to pos and the styling mask to mask.
2422 The styling mask can be used to protect some bits in each styling byte from
2425 void StartStyling(int pos
, int mask
);
2428 Stop notifying the container of all key presses and commands.
2433 Move caret to bottom of page, or one page down if already at bottom of page.
2435 void StutteredPageDown();
2438 Move caret to bottom of page, or one page down if already at bottom of page,
2439 extending selection to new caret position.
2441 void StutteredPageDownExtend();
2444 Move caret to top of page, or one page up if already at top of page.
2446 void StutteredPageUp();
2449 Move caret to top of page, or one page up if already at top of page, extending
2450 selection to new caret position.
2452 void StutteredPageUpExtend();
2455 Clear all the styles and make equivalent to the global default style.
2457 void StyleClearAll();
2460 Reset the default style to its state at startup
2462 void StyleResetDefault();
2465 Set the background colour of a style.
2467 void StyleSetBackground(int style
, const wxColour
& back
);
2470 Set a style to be bold or not.
2472 void StyleSetBold(int style
, bool bold
);
2475 Set a style to be mixed case, or to force upper or lower case.
2477 void StyleSetCase(int style
, int caseForce
);
2480 Set a style to be changeable or not (read only).
2481 Experimental feature, currently buggy.
2483 void StyleSetChangeable(int style
, bool changeable
);
2486 Set the character set of the font in a style. Converts the Scintilla
2487 character set values to a wxFontEncoding.
2489 void StyleSetCharacterSet(int style
, int characterSet
);
2492 Set a style to have its end of line filled or not.
2494 void StyleSetEOLFilled(int style
, bool filled
);
2497 Set the font of a style.
2499 void StyleSetFaceName(int style
, const wxString
& fontName
);
2502 Set style size, face, bold, italic, and underline attributes from
2503 a wxFont's attributes.
2505 void StyleSetFont(int styleNum
, wxFont
& font
);
2508 Set all font style attributes at once.
2510 void StyleSetFontAttr(int styleNum
, int size
,
2511 const wxString
& faceName
,
2515 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
2518 Set the font encoding to be used by a style.
2520 void StyleSetFontEncoding(int style
, wxFontEncoding encoding
);
2523 Set the foreground colour of a style.
2525 void StyleSetForeground(int style
, const wxColour
& fore
);
2528 Set a style to be a hotspot or not.
2530 void StyleSetHotSpot(int style
, bool hotspot
);
2533 Set a style to be italic or not.
2535 void StyleSetItalic(int style
, bool italic
);
2538 Set the size of characters of a style.
2540 void StyleSetSize(int style
, int sizePoints
);
2543 Extract style settings from a spec-string which is composed of one or
2544 more of the following comma separated elements:
2546 italic turns on italics
2547 fore:[name or \#RRGGBB] sets the foreground colour
2548 back:[name or \#RRGGBB] sets the background colour
2549 face:[facename] sets the font face name to use
2550 size:[num] sets the font size in points
2551 eol turns on eol filling
2552 underline turns on underlining
2554 void StyleSetSpec(int styleNum
, const wxString
& spec
);
2557 Set a style to be underlined or not.
2559 void StyleSetUnderline(int style
, bool underline
);
2562 Set a style to be visible or not.
2564 void StyleSetVisible(int style
, bool visible
);
2567 If selection is empty or all on one line replace the selection with a tab
2569 If more than one line selected, indent the lines.
2574 Make the target range start and end be the same as the selection range start
2577 void TargetFromSelection();
2580 Retrieve the height of a particular line of text in pixels.
2582 int TextHeight(int line
);
2585 Measure the pixel width of some text in a particular style.
2586 NUL terminated text argument.
2587 Does not handle tab or control characters.
2589 int TextWidth(int style
, const wxString
& text
);
2592 Switch between sticky and non-sticky: meant to be bound to a key.
2594 void ToggleCaretSticky();
2597 Switch a header line between expanded and contracted.
2599 void ToggleFold(int line
);
2602 Undo one action in the undo history.
2604 virtual void Undo();
2607 Transform the selection to upper case.
2612 Set whether a pop up menu is displayed automatically when the user presses
2613 the wrong mouse button.
2615 void UsePopUp(bool allowPopUp
);
2618 Display a list of strings and send notification when user chooses one.
2620 void UserListShow(int listType
, const wxString
& itemList
);
2623 Move caret to before first visible character on line.
2624 If already there move to first character on line.
2629 Like VCHome but extending selection to new caret position.
2631 void VCHomeExtend();
2634 Move caret to before first visible character on line.
2635 If already there move to first character on line.
2636 In either case, extend rectangular selection to new caret position.
2638 void VCHomeRectExtend();
2648 void VCHomeWrapExtend();
2651 Find the display line of a document line taking hidden lines into account.
2653 int VisibleFromDocLine(int line
);
2656 Get position of end of word.
2658 int WordEndPosition(int pos
, bool onlyWordCharacters
);
2661 Move caret left one word.
2666 Move caret left one word, position cursor at end of word.
2671 Move caret left one word, position cursor at end of word, extending selection
2672 to new caret position.
2674 void WordLeftEndExtend();
2677 Move caret left one word extending selection to new caret position.
2679 void WordLeftExtend();
2682 Move to the previous change in capitalisation.
2684 void WordPartLeft();
2687 Move to the previous change in capitalisation extending selection
2688 to new caret position.
2690 void WordPartLeftExtend();
2693 Move to the change next in capitalisation.
2695 void WordPartRight();
2698 Move to the next change in capitalisation extending selection
2699 to new caret position.
2701 void WordPartRightExtend();
2704 Move caret right one word.
2709 Move caret right one word, position cursor at end of word.
2711 void WordRightEnd();
2714 Move caret right one word, position cursor at end of word, extending selection
2715 to new caret position.
2717 void WordRightEndExtend();
2720 Move caret right one word extending selection to new caret position.
2722 void WordRightExtend();
2725 Get position of start of word.
2727 int WordStartPosition(int pos
, bool onlyWordCharacters
);
2730 The number of display lines needed to wrap a document line
2732 int WrapCount(int line
);
2735 Magnify the displayed text by increasing the sizes by 1 point.
2740 Make the displayed text smaller by decreasing the sizes by 1 point.