1 #############################################################################
2 ## Name: ext/stc/XS/StyledTextCtrl.xs
3 ## Purpose: XS for Wx::StyledTextCtrl
4 ## Author: Marcus Friedlaender and Mattia Barbon
6 ## RCS-ID: $Id: StyledTextCtrl.xs 2435 2008-08-05 18:05:54Z mbarbon $
7 ## Copyright: (c) 2002-2004, 2006-2008 Graciliano M. P., Marcus Friedlaender,
8 ## Mattia Barbon, Simon Flack
9 ## Licence: This program is free software; you can redistribute it and/or
10 ## modify it under the same terms as Perl itself
11 #############################################################################
16 #include "wx/stc/stc.h"
18 %typemap{wxDragResult}{simple};
19 %typemap{wxFontEncoding}{simple};
21 %name{Wx::StyledTextCtrl} class wxStyledTextCtrl {
24 wxStyledTextCtrl::new( parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = 0, name = wxSTCNameStr )
32 RETVAL = new wxStyledTextCtrl( parent, id, pos, size, style, name );
33 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
37 wxStyledTextCtrl::AddText( text )
41 wxStyledTextCtrl::SetLexer( lexer )
45 wxStyledTextCtrl::GetLexer()
48 ## Extract style settings from a spec-string which is composed of one or
49 ## more of the following comma separated elements:
52 ## italic turns on italics
53 ## fore:#RRGGBB sets the foreground colour
54 ## back:#RRGGBB sets the background colour
55 ## face:[facename] sets the font face name to use
56 ## size:[num] sets the font size in points
57 ## eol turns on eol filling
58 ## underline turns on underlining
61 wxStyledTextCtrl::StyleSetSpec( style, spec )
66 wxStyledTextCtrl::StyleSetFont( style, font )
70 THIS->StyleSetFont( style, *font );
73 wxStyledTextCtrl::StyleSetFontAttr( styleNum, size, faceName, bold, italic, underline )
82 wxStyledTextCtrl::StyleClearAll()
85 wxStyledTextCtrl::ClearDocumentStyle()
88 wxStyledTextCtrl::StyleSetForeground( style, fore )
92 THIS->StyleSetForeground( style, *fore );
95 wxStyledTextCtrl::StyleSetBackground( style, back )
99 THIS->StyleSetBackground( style, *back );
102 wxStyledTextCtrl::StyleSetBold( style, bold )
107 wxStyledTextCtrl::StyleSetItalic( style, italic )
112 wxStyledTextCtrl::StyleSetUnderline( style, underline )
117 wxStyledTextCtrl::InsertText(pos, text)
122 wxStyledTextCtrl::StyleSetSize(style, size_points)
127 wxStyledTextCtrl::StyleSetFaceName(style, font_name)
132 wxStyledTextCtrl::StyleSetEOLFilled( style, filled )
137 wxStyledTextCtrl::StyleResetDefault()
140 wxStyledTextCtrl::StyleSetCase( style, caseForce )
145 wxStyledTextCtrl::StyleSetCharacterSet( style, characterSet )
150 wxStyledTextCtrl::SetSelForeground( useSetting, fore )
154 THIS->SetSelForeground( useSetting, *fore );
157 wxStyledTextCtrl::SetSelBackground( useSetting, back )
161 THIS->SetSelBackground( useSetting, *back );
164 wxStyledTextCtrl::SetCaretForeground( fore )
167 THIS->SetCaretForeground( *fore );
170 wxStyledTextCtrl::CmdKeyAssign( key, modifiers, cmd )
176 wxStyledTextCtrl::CmdKeyClear( key, modifiers )
181 wxStyledTextCtrl::CmdKeyClearAll()
184 wxStyledTextCtrl::SetStyleBytes( length, styleBytes )
189 wxStyledTextCtrl::StyleSetVisible( style, visible )
194 wxStyledTextCtrl::GetCaretPeriod()
197 wxStyledTextCtrl::SetCaretPeriod( periodMilliseconds )
198 int periodMilliseconds
201 wxStyledTextCtrl::SetWordChars( characters )
205 wxStyledTextCtrl::BeginUndoAction()
208 wxStyledTextCtrl::EndUndoAction()
211 wxStyledTextCtrl::IndicatorSetStyle( indic, style )
216 wxStyledTextCtrl::IndicatorGetStyle( indic )
220 wxStyledTextCtrl::IndicatorSetForeground( indic, fore )
224 THIS->IndicatorSetForeground( indic, *fore );
227 wxStyledTextCtrl::SetWhitespaceForeground( useSetting, fore )
231 THIS->SetWhitespaceForeground( useSetting, *fore );
234 wxStyledTextCtrl::SetWhitespaceBackground( useSetting, back )
238 THIS->SetWhitespaceBackground( useSetting, *back );
241 wxStyledTextCtrl::SetStyleBits( bits )
245 wxStyledTextCtrl::GetStyleBits()
248 wxStyledTextCtrl::SetLineState( line, state )
253 wxStyledTextCtrl::GetLineState( line )
257 wxStyledTextCtrl::GetMaxLineState()
260 wxStyledTextCtrl::GetCaretLineVisible()
263 wxStyledTextCtrl::SetCaretLineVisible( show )
266 #if WXPERL_W_VERSION_LT( 2, 7, 0 )
269 wxStyledTextCtrl::SetCaretLineBack( back )
272 THIS->SetCaretLineBack( *back );
277 wxStyledTextCtrl::SetCaretLineBack( back )
280 THIS->SetCaretLineBackground( *back );
283 wxStyledTextCtrl::SetCaretLineBackground( back )
286 THIS->SetCaretLineBackground( *back );
291 wxStyledTextCtrl::StyleSetChangeable( style, changeable )
296 wxStyledTextCtrl::AutoCompShow( lenEntered, itemList )
301 wxStyledTextCtrl::AutoCompCancel()
304 wxStyledTextCtrl::AutoCompActive()
307 wxStyledTextCtrl::AutoCompPosStart()
310 wxStyledTextCtrl::AutoCompComplete()
313 wxStyledTextCtrl::AutoCompStops( characterSet )
314 wxString characterSet
317 wxStyledTextCtrl::AutoCompSetSeparator( separatorCharacter )
318 int separatorCharacter
321 wxStyledTextCtrl::AutoCompGetSeparator()
324 wxStyledTextCtrl::AutoCompSelect( text )
328 wxStyledTextCtrl::AutoCompSetCancelAtStart( cancel )
332 wxStyledTextCtrl::AutoCompGetCancelAtStart()
335 wxStyledTextCtrl::AutoCompSetFillUps( characterSet )
336 wxString characterSet
339 wxStyledTextCtrl::AutoCompSetChooseSingle( chooseSingle )
343 wxStyledTextCtrl::AutoCompGetChooseSingle()
346 wxStyledTextCtrl::AutoCompGetIgnoreCase()
349 wxStyledTextCtrl::UserListShow( listType, itemList )
354 wxStyledTextCtrl::AutoCompSetAutoHide( autoHide )
358 wxStyledTextCtrl::AutoCompGetAutoHide()
361 wxStyledTextCtrl::AutoCompSetDropRestOfWord( dropRestOfWord )
365 wxStyledTextCtrl::AutoCompGetDropRestOfWord()
368 wxStyledTextCtrl::SetIndent( indentSize )
372 wxStyledTextCtrl::GetIndent()
375 wxStyledTextCtrl::SetUseTabs( useTabs )
379 wxStyledTextCtrl::GetUseTabs()
382 wxStyledTextCtrl::SetLineIndentation( line, indentSize )
387 wxStyledTextCtrl::GetLineIndentation( line )
391 wxStyledTextCtrl::GetLineIndentPosition( line )
395 wxStyledTextCtrl::GetColumn( pos )
399 wxStyledTextCtrl::SetUseHorizontalScrollBar( show )
403 wxStyledTextCtrl::GetUseHorizontalScrollBar()
406 wxStyledTextCtrl::SetIndentationGuides( show )
410 wxStyledTextCtrl::GetIndentationGuides()
413 wxStyledTextCtrl::SetHighlightGuide( column )
417 wxStyledTextCtrl::GetHighlightGuide()
420 wxStyledTextCtrl::GetLineEndPosition( line )
424 wxStyledTextCtrl::GetCodePage()
427 wxStyledTextCtrl::GetReadOnly()
430 wxStyledTextCtrl::SetCurrentPos( pos )
434 wxStyledTextCtrl::SetSelectionStart( pos )
438 wxStyledTextCtrl::GetSelectionStart()
441 wxStyledTextCtrl::SetSelectionEnd( pos )
445 wxStyledTextCtrl::GetSelectionEnd()
448 wxStyledTextCtrl::SetPrintMagnification( magnification )
452 wxStyledTextCtrl::GetPrintMagnification()
455 wxStyledTextCtrl::SetPrintColourMode( mode )
459 wxStyledTextCtrl::GetPrintColourMode()
462 wxStyledTextCtrl::FindText( minPos, maxPos, text, flags = 0 )
469 wxStyledTextCtrl::GetFirstVisibleLine()
472 wxStyledTextCtrl::GetLineCount()
475 wxStyledTextCtrl::SetMarginLeft( pixelWidth )
479 wxStyledTextCtrl::GetMarginLeft()
482 wxStyledTextCtrl::SetMarginRight( pixelWidth )
486 wxStyledTextCtrl::GetMarginRight()
489 wxStyledTextCtrl::GetModify()
492 wxStyledTextCtrl::SetSelection( start, end )
496 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
499 wxStyledTextCtrl::SetSelectionMode( mode )
503 wxStyledTextCtrl::GetSelectionMode()
508 wxStyledTextCtrl::HideSelection( normal )
512 wxStyledTextCtrl::LineFromPosition( pos )
516 wxStyledTextCtrl::PositionFromLine( line )
520 wxStyledTextCtrl::LineScroll( columns, lines )
525 wxStyledTextCtrl::EnsureCaretVisible()
528 wxStyledTextCtrl::ReplaceSelection( text )
532 wxStyledTextCtrl::SetReadOnly( readOnly )
536 wxStyledTextCtrl::CanPaste()
539 wxStyledTextCtrl::CanUndo()
542 wxStyledTextCtrl::EmptyUndoBuffer()
545 wxStyledTextCtrl::Undo()
548 wxStyledTextCtrl::Cut()
551 wxStyledTextCtrl::Copy()
554 wxStyledTextCtrl::Paste()
557 wxStyledTextCtrl::Clear()
560 wxStyledTextCtrl::GetTextLength()
563 wxStyledTextCtrl::SetOvertype( overtype )
567 wxStyledTextCtrl::GetOvertype()
570 wxStyledTextCtrl::SetCaretWidth( pixelWidth )
574 wxStyledTextCtrl::GetCaretWidth()
577 wxStyledTextCtrl::SetTargetStart( pos )
581 wxStyledTextCtrl::GetTargetStart()
584 wxStyledTextCtrl::SetTargetEnd( pos )
588 wxStyledTextCtrl::GetTargetEnd()
591 wxStyledTextCtrl::ReplaceTarget( text )
595 wxStyledTextCtrl::ReplaceTargetRE( text )
599 wxStyledTextCtrl::SearchInTarget( text )
603 wxStyledTextCtrl::SetSearchFlags( flags )
607 wxStyledTextCtrl::GetSearchFlags()
610 wxStyledTextCtrl::CallTipShow( pos, definition )
615 wxStyledTextCtrl::CallTipCancel()
618 wxStyledTextCtrl::CallTipActive()
621 wxStyledTextCtrl::CallTipPosAtStart()
624 wxStyledTextCtrl::CallTipSetHighlight( start, end )
629 wxStyledTextCtrl::CallTipSetBackground( back )
632 THIS->CallTipSetBackground( *back );
635 wxStyledTextCtrl::VisibleFromDocLine( line )
639 wxStyledTextCtrl::DocLineFromVisible( lineDisplay )
643 wxStyledTextCtrl::SetFoldLevel( line, level )
648 wxStyledTextCtrl::GetFoldLevel( line )
652 wxStyledTextCtrl::GetLastChild( line, level )
657 wxStyledTextCtrl::GetFoldParent( line )
661 wxStyledTextCtrl::ShowLines( lineStart, lineEnd )
666 wxStyledTextCtrl::HideLines( lineStart, lineEnd )
671 wxStyledTextCtrl::GetLineVisible( line )
675 wxStyledTextCtrl::SetFoldExpanded( line, expanded )
680 wxStyledTextCtrl::GetFoldExpanded( line )
684 wxStyledTextCtrl::ToggleFold( line )
688 wxStyledTextCtrl::EnsureVisible( line )
692 wxStyledTextCtrl::SetFoldFlags( flags )
696 wxStyledTextCtrl::EnsureVisibleEnforcePolicy( line )
700 wxStyledTextCtrl::SetTabIndents( tabIndents )
704 wxStyledTextCtrl::GetTabIndents()
707 wxStyledTextCtrl::SetBackSpaceUnIndents( bsUnIndents )
711 wxStyledTextCtrl::GetBackSpaceUnIndents()
714 wxStyledTextCtrl::SetMouseDwellTime( periodMilliseconds )
715 int periodMilliseconds
718 wxStyledTextCtrl::GetMouseDwellTime()
721 wxStyledTextCtrl::WordStartPosition( pos, onlyWordCharacters )
723 bool onlyWordCharacters
726 wxStyledTextCtrl::WordEndPosition( pos, onlyWordCharacters )
728 bool onlyWordCharacters
731 wxStyledTextCtrl::SetLayoutCache( mode )
735 wxStyledTextCtrl::GetLayoutCache()
738 wxStyledTextCtrl::SetScrollWidth( pixelWidth )
742 wxStyledTextCtrl::GetScrollWidth()
745 wxStyledTextCtrl::TextWidth( style, text )
750 wxStyledTextCtrl::SetEndAtLastLine( endAtLastLine )
754 wxStyledTextCtrl::GetEndAtLastLine()
757 wxStyledTextCtrl::TextHeight( line )
761 wxStyledTextCtrl::HomeDisplay()
764 wxStyledTextCtrl::HomeDisplayExtend()
767 wxStyledTextCtrl::LineEndDisplay()
770 wxStyledTextCtrl::LineEndDisplayExtend()
773 wxStyledTextCtrl::MoveCaretInsideView()
776 wxStyledTextCtrl::LineLength( line )
780 wxStyledTextCtrl::BraceHighlight( pos1, pos2 )
785 wxStyledTextCtrl::BraceBadLight( pos )
789 wxStyledTextCtrl::BraceMatch( pos )
793 wxStyledTextCtrl::GetViewEOL()
796 wxStyledTextCtrl::SetViewEOL( visible )
800 wxStyledTextCtrl::GetDocPointer()
803 wxStyledTextCtrl::SetDocPointer( docPointer )
807 wxStyledTextCtrl::SetModEventMask( mask )
811 wxStyledTextCtrl::GetEdgeColumn()
814 wxStyledTextCtrl::SetEdgeColumn( column )
818 wxStyledTextCtrl::GetEdgeMode()
821 wxStyledTextCtrl::SetEdgeMode( mode )
825 wxStyledTextCtrl::SetEdgeColour( edgeColour )
829 wxStyledTextCtrl::SearchAnchor()
832 wxStyledTextCtrl::SearchNext( flags, text )
837 wxStyledTextCtrl::SearchPrev( flags, text )
842 wxStyledTextCtrl::LinesOnScreen()
845 wxStyledTextCtrl::UsePopUp( allowPopUp )
849 wxStyledTextCtrl::SelectionIsRectangle()
852 wxStyledTextCtrl::SetZoom( zoom )
856 wxStyledTextCtrl::GetZoom()
859 wxStyledTextCtrl::CreateDocument()
862 wxStyledTextCtrl::AddRefDocument( docPointer )
866 wxStyledTextCtrl::ReleaseDocument( docPointer )
870 wxStyledTextCtrl::GetModEventMask()
873 wxStyledTextCtrl::SetSTCFocus( focus )
877 wxStyledTextCtrl::GetSTCFocus()
880 wxStyledTextCtrl::SetStatus( statusCode )
884 wxStyledTextCtrl::GetStatus()
887 wxStyledTextCtrl::SetMouseDownCaptures( captures )
891 wxStyledTextCtrl::GetMouseDownCaptures()
894 wxStyledTextCtrl::SetControlCharSymbol( symbol )
898 wxStyledTextCtrl::GetControlCharSymbol()
901 wxStyledTextCtrl::WordPartLeft()
904 wxStyledTextCtrl::WordPartLeftExtend()
907 wxStyledTextCtrl::WordPartRight()
910 wxStyledTextCtrl::WordPartRightExtend()
913 wxStyledTextCtrl::SetVisiblePolicy( visiblePolicy, visibleSlop )
918 wxStyledTextCtrl::DelLineLeft()
921 wxStyledTextCtrl::DelLineRight()
924 wxStyledTextCtrl::SetXOffset( newOffset )
928 wxStyledTextCtrl::GetXOffset()
931 wxStyledTextCtrl::SetXCaretPolicy( caretPolicy, caretSlop )
936 wxStyledTextCtrl::SetYCaretPolicy( caretPolicy, caretSlop )
941 wxStyledTextCtrl::StartRecord()
944 wxStyledTextCtrl::StopRecord()
947 wxStyledTextCtrl::Colourise( start, end )
952 wxStyledTextCtrl::SetProperty( key, value )
957 wxStyledTextCtrl::SetKeyWords( keywordSet, keyWords )
962 wxStyledTextCtrl::SetLexerLanguage( language )
965 ## Retrieve the selected text
967 wxStyledTextCtrl::GetSelectedText()
969 ## Retrieve a range of text
971 wxStyledTextCtrl::GetTextRange(startPos, endPos)
975 ## Retrieve all the text in the document.
977 wxStyledTextCtrl::GetText()
979 ## Returns the position of the opposite end of the selection to the caret.
981 wxStyledTextCtrl::GetAnchor()
983 ## Returns the style byte at the position
985 wxStyledTextCtrl::GetStyleAt(pos)
988 ## Redoes the next action on the undo history.
990 wxStyledTextCtrl::Redo()
992 ## Select all the text in the document.
994 wxStyledTextCtrl::SelectAll()
996 ## Remember the current position in the undo history as the position
997 ## at which the document was saved.
999 wxStyledTextCtrl::SetSavePoint()
1001 ## Replace the contents of the document with the argument text.
1003 wxStyledTextCtrl::SetText(text)
1006 ## Are there any redoable actions in the undo history?
1008 wxStyledTextCtrl::CanRedo()
1010 ## Retrieve the line number at which a particular marker is located.
1012 wxStyledTextCtrl::MarkerLineFromHandle( handle )
1017 wxStyledTextCtrl::MarkerDeleteHandle( handle )
1020 ## Is undo history being collected?
1022 wxStyledTextCtrl::GetUndoCollection()
1024 ## Are white space characters currently visible?
1025 ## Returns one of SCWS_* constants.
1027 wxStyledTextCtrl::GetViewWhiteSpace()
1029 ## Make white space characters invisible, always visible or visible outside indentation.
1031 wxStyledTextCtrl::SetViewWhiteSpace( viewWs )
1034 ## Find the position from a point within the window.
1036 wxStyledTextCtrl::PositionFromPoint( pt )
1040 wxStyledTextCtrl::PositionFromPointClose( x, y )
1044 ## Set caret to start of a line and ensure it is visible.
1046 wxStyledTextCtrl::GotoLine(line)
1049 ## Set caret to a position and ensure it is visible.
1051 wxStyledTextCtrl::GotoPos(pos)
1055 wxStyledTextCtrl::SetAnchor( posAnchor )
1059 wxStyledTextCtrl::GetEndStyled()
1062 wxStyledTextCtrl::ConvertEOLs( eolMode )
1066 wxStyledTextCtrl::GetEOLMode()
1069 wxStyledTextCtrl::SetEOLMode( eolMode )
1073 wxStyledTextCtrl::StartStyling( pos, mask )
1078 wxStyledTextCtrl::SetStyling( length, style )
1083 wxStyledTextCtrl::GetBufferedDraw()
1086 wxStyledTextCtrl::SetBufferedDraw( buffered )
1090 wxStyledTextCtrl::SetTabWidth( tabWidth )
1094 wxStyledTextCtrl::GetTabWidth()
1097 wxStyledTextCtrl::SetCodePage( codePage )
1101 wxStyledTextCtrl::MarkerDefine( markerNumber, markerSymbol, foreground, background )
1104 wxColour* foreground
1105 wxColour* background
1107 THIS->MarkerDefine( markerNumber, markerSymbol, *foreground, *background );
1110 wxStyledTextCtrl::MarkerDefineBitmap( markerNumber, bmp )
1113 C_ARGS: markerNumber, *bmp
1116 wxStyledTextCtrl::MarkerSetForeground( markerNumber, fore )
1120 THIS->MarkerSetForeground( markerNumber, *fore );
1123 wxStyledTextCtrl::MarkerSetBackground( markerNumber, back )
1127 THIS->MarkerSetBackground( markerNumber, *back );
1130 wxStyledTextCtrl::MarkerAdd( line, markerNumber )
1135 wxStyledTextCtrl::MarkerDelete( line, markerNumber )
1140 wxStyledTextCtrl::MarkerDeleteAll( markerNumber )
1144 wxStyledTextCtrl::MarkerGet( line )
1148 wxStyledTextCtrl::MarkerNext( lineStart, markerMask )
1153 wxStyledTextCtrl::MarkerPrevious( lineStart, markerMask )
1158 wxStyledTextCtrl::SetMarginType( margin, marginType )
1163 wxStyledTextCtrl::GetMarginType( margin )
1167 wxStyledTextCtrl::SetMarginWidth( margin, pixelWidth )
1172 wxStyledTextCtrl::GetMarginWidth( margin )
1176 wxStyledTextCtrl::SetMarginMask( margin, mask )
1181 wxStyledTextCtrl::GetMarginMask( margin )
1185 wxStyledTextCtrl::SetMarginSensitive( margin, sensitive )
1190 wxStyledTextCtrl::GetMarginSensitive( margin )
1194 ## Returns the position of the caret
1196 wxStyledTextCtrl::GetCurrentPos()
1199 wxStyledTextCtrl::GetLength()
1202 wxStyledTextCtrl::GetCharAt( pos )
1205 ## Sets whether text is word wrapped
1207 wxStyledTextCtrl::SetWrapMode(mode)
1210 ## Retrieve whether text is word wrapped
1212 wxStyledTextCtrl::GetWrapMode()
1214 ## Retrieve the contents of a line.
1216 wxStyledTextCtrl::GetLine(line)
1219 ## Delete all text in the document
1221 wxStyledTextCtrl::ClearAll()
1223 ## Returns the line number of the line with the caret.
1225 wxStyledTextCtrl::GetCurrentLine()
1228 wxStyledTextCtrl::CmdKeyExecute( cmd )
1232 wxStyledTextCtrl::SetMargins( left, right )
1237 wxStyledTextCtrl::SetUndoCollection( collectUndo )
1241 wxStyledTextCtrl::IndicatorGetForeground( indic )
1244 RETVAL = new wxColour( THIS->IndicatorGetForeground( indic ) );
1248 #if WXPERL_W_VERSION_LT( 2, 7, 0 )
1251 wxStyledTextCtrl::GetCaretLineBack()
1253 RETVAL = new wxColour( THIS->GetCaretLineBack() );
1260 wxStyledTextCtrl::GetCaretForeground()
1262 RETVAL = new wxColour( THIS->GetCaretForeground() );
1267 wxStyledTextCtrl::FormatRange( doDraw , startPos , endPos , draw , target , renderRect , pageRect )
1276 RETVAL = THIS->FormatRange( doDraw, startPos, endPos, draw,
1277 target, *renderRect, *pageRect );
1282 wxStyledTextCtrl::GetEdgeColour()
1284 RETVAL = new wxColour( THIS->GetEdgeColour() );
1289 wxStyledTextCtrl::GetLastKeydownProcessed()
1292 wxStyledTextCtrl::SetLastKeydownProcessed( val )
1296 wxStyledTextCtrl::PointFromPosition( pos )
1299 RETVAL = new wxPoint( THIS->PointFromPosition( pos ) );
1303 wxStyledTextCtrl::ScrollToLine( line )
1307 wxStyledTextCtrl::SetHScrollBar( bar )
1311 wxStyledTextCtrl::SetVScrollBar( bar )
1315 wxStyledTextCtrl::GetSelection()
1319 THIS->GetSelection( &start, &end );
1320 XPUSHs( newSViv( start ) );
1321 XPUSHs( newSViv( end ) );
1324 wxStyledTextCtrl::SaveFile(wxString filename)
1327 wxStyledTextCtrl::LoadFile(wxString filename)
1329 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
1332 wxStyledTextCtrl::AddTextRaw( text )
1333 const char* text = wxUSE_UNICODE ? SvPVutf8( $arg, PL_na ) : SvPV( $arg, PL_na );
1336 wxStyledTextCtrl::InsertTextRaw( pos, text )
1338 const char* text = wxUSE_UNICODE ? SvPVutf8( $arg, PL_na ) : SvPV( $arg, PL_na );
1341 wxStyledTextCtrl::AppendTextRaw( text )
1342 const char* text = wxUSE_UNICODE ? SvPVutf8( $arg, PL_na ) : SvPV( $arg, PL_na );
1347 void Allocate( int bytes );
1348 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
1349 void AppendText( const wxString& text );
1351 int AutoCompGetCurrent();
1352 int AutoCompGetTypeSeparator();
1353 void AutoCompSetTypeSeparator( int separatorCharacter );
1354 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1355 void AutoCompSetMaxWidth( int characterCount );
1356 int AutoCompGetMaxWidth();
1357 void AutoCompSetMaxHeight( int rowCount );
1358 int AutoCompGetMaxHeight();
1360 void AutoCompSetIgnoreCase( bool ignoreCase );
1364 void CallTipSetForeground( const wxColour& fore );
1365 void CallTipSetForegroundHighlight( const wxColour& fore );
1366 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1367 void CallTipUseStyle( int tabSize );
1373 void CharLeftExtend();
1375 void CharRightExtend();
1376 void CharLeftRectExtend();
1377 void CharRightRectExtend();
1379 void ChooseCaretX();
1381 void ClearRegisteredImages();
1383 void CopyRange( int start, int end );
1384 void CopyText( int length, const wxString& text );
1387 void DelWordRight();
1389 void DeleteBackNotLine();
1391 #if wxUSE_DRAG_AND_DROP
1392 wxDragResult DoDragOver( wxCoord x, wxCoord y, wxDragResult def );
1393 bool DoDropText( long x, long y, const wxString& data );
1396 void DocumentStart();
1397 void DocumentStartExtend();
1399 void DocumentEndExtend();
1401 void EditToggleOvertype();
1402 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
1403 int FindColumn( int line, int column );
1407 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1408 void SetCaretLineBackAlpha( int alpha );
1409 int GetCaretLineBackAlpha();
1410 wxColour GetCaretLineBackground();
1412 bool GetCaretSticky();
1413 void SetCaretSticky( bool useCaretStickyBehaviour );
1414 void ToggleCaretSticky();
1417 int GetLineSelStartPosition( int line );
1418 int GetLineSelEndPosition( int line );
1420 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1421 void SetPasteConvertEndings( bool convert );
1422 bool GetPasteConvertEndings();
1425 void SetPrintWrapMode( int mode );
1426 int GetPrintWrapMode();
1428 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1429 wxString GetProperty( const wxString& key );
1430 wxString GetPropertyExpanded( const wxString& key );
1431 int GetPropertyInt( const wxString& key );
1435 void SetSTCCursor( int cursorType );
1437 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1439 void SetSelAlpha( int alpha );
1441 int GetStyleBitsNeeded();
1444 bool GetTwoPhaseDraw();
1445 void SetTwoPhaseDraw( bool twoPhase );
1447 void SetUseAntiAliasing( bool useAA );
1448 bool GetUseAntiAliasing();
1450 void SetUseVerticalScrollBar( bool show );
1451 bool GetUseVerticalScrollBar();
1453 void SetWrapVisualFlags( int wrapVisualFlags );
1454 int GetWrapVisualFlags();
1455 void SetWrapVisualFlagsLocation( int wrapVisualFlagsLocation );
1456 int GetWrapVisualFlagsLocation();
1457 void SetWrapStartIndent( int indent );
1458 int GetWrapStartIndent();
1462 void HomeRectExtend();
1464 void HomeWrapExtend();
1469 void LineDownExtend();
1470 void LineDownRectExtend();
1471 void LineDuplicate();
1474 void LineEndExtend();
1475 void LineEndRectExtend();
1477 void LineEndWrapExtend();
1479 void LineScrollDown();
1480 void LineScrollUp();
1482 void LineTranspose();
1484 void LineUpExtend();
1485 void LineUpRectExtend();
1488 void LinesSplit( int pixelWidth );
1493 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1494 void MarkerAddSet( int line, int set );
1495 void MarkerSetAlpha( int markerNumber, int alpha );
1501 void PageDownExtend();
1502 void PageDownRectExtend();
1504 void PageUpExtend();
1505 void PageUpRectExtend();
1508 void ParaDownExtend();
1510 void ParaUpExtend();
1512 int PositionBefore( int pos );
1513 int PositionAfter( int pos );
1515 void RegisterImage( int type, const wxBitmap& bmp );
1517 void ScrollToColumn( int column );
1519 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1520 void SelectionDuplicate();
1523 void SetCharsDefault();
1524 void SetFoldMarginColour( bool useSetting, const wxColour& back );
1525 void SetFoldMarginHiColour( bool useSetting, const wxColour& fore );
1526 void SetHotspotActiveForeground( bool useSetting, const wxColour& fore );
1527 void SetHotspotActiveBackground( bool useSetting, const wxColour& back );
1528 void SetHotspotActiveUnderline( bool underline );
1529 void SetHotspotSingleLine( bool singleLine );
1530 void SetWhitespaceChars( const wxString& characters );
1532 void StutteredPageUp();
1533 void StutteredPageUpExtend();
1534 void StutteredPageDown();
1535 void StutteredPageDownExtend();
1537 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
1538 void StyleSetFontEncoding( int style, wxFontEncoding encoding );
1540 void StyleSetHotSpot( int style, bool hotspot );
1544 void TargetFromSelection();
1547 void VCHomeExtend();
1548 void VCHomeRectExtend();
1550 void VCHomeWrapExtend();
1554 void WordLeftEndExtend();
1555 void WordLeftExtend();
1557 void WordRightEnd();
1558 void WordRightEndExtend();
1559 void WordRightExtend();
1561 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1562 int WrapCount( int line );