Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / ext / stc / XS / StyledTextCtrl.xs
1 #############################################################################
2 ## Name:        ext/stc/XS/StyledTextCtrl.xs
3 ## Purpose:     XS for Wx::StyledTextCtrl
4 ## Author:      Marcus Friedlaender and Mattia Barbon
5 ## Created:     23/05/2002
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 #############################################################################
12
13 %module{Wx};
14
15 #undef FindText
16 #include "wx/stc/stc.h"
17
18 %typemap{wxDragResult}{simple};
19 %typemap{wxFontEncoding}{simple};
20
21 %name{Wx::StyledTextCtrl} class wxStyledTextCtrl {
22 %{
23 wxStyledTextCtrl*
24 wxStyledTextCtrl::new( parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = 0, name = wxSTCNameStr )
25     wxWindow* parent
26     wxWindowID id
27     wxPoint pos
28     wxSize size
29     long style
30     wxString name
31   CODE:
32     RETVAL = new wxStyledTextCtrl( parent, id, pos, size, style, name );
33     wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
34   OUTPUT: RETVAL
35
36 void
37 wxStyledTextCtrl::AddText( text )
38     wxString text
39
40 void
41 wxStyledTextCtrl::SetLexer( lexer )
42     int lexer
43
44 int
45 wxStyledTextCtrl::GetLexer()
46
47
48 ## Extract style settings from a spec-string which is composed of one or
49 ## more of the following comma separated elements:
50 ##
51 ##      bold                    turns on bold
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
59
60 void
61 wxStyledTextCtrl::StyleSetSpec( style, spec )
62     int style
63     wxString spec
64
65 void
66 wxStyledTextCtrl::StyleSetFont( style, font )
67     int style
68     wxFont* font
69   CODE:
70     THIS->StyleSetFont( style, *font );
71
72 void
73 wxStyledTextCtrl::StyleSetFontAttr( styleNum, size, faceName, bold, italic, underline )
74     int styleNum
75     int size
76     wxString faceName
77     bool bold
78     bool italic
79     bool underline
80
81 void
82 wxStyledTextCtrl::StyleClearAll()
83
84 void
85 wxStyledTextCtrl::ClearDocumentStyle()
86
87 void
88 wxStyledTextCtrl::StyleSetForeground( style, fore )
89     int style
90     wxColour* fore
91   CODE:
92     THIS->StyleSetForeground( style, *fore );
93
94 void
95 wxStyledTextCtrl::StyleSetBackground( style, back )
96     int style
97     wxColour* back
98   CODE:
99     THIS->StyleSetBackground( style, *back );
100
101 void
102 wxStyledTextCtrl::StyleSetBold( style, bold )
103     int style
104     bool bold
105
106 void
107 wxStyledTextCtrl::StyleSetItalic( style, italic )
108     int style
109     bool italic
110
111 void
112 wxStyledTextCtrl::StyleSetUnderline( style, underline )
113     int style
114     bool underline
115
116 void
117 wxStyledTextCtrl::InsertText(pos, text)
118     int pos
119     wxString text
120
121 void
122 wxStyledTextCtrl::StyleSetSize(style, size_points)
123     int style
124     int size_points
125
126 void
127 wxStyledTextCtrl::StyleSetFaceName(style, font_name)
128     int style
129     wxString font_name
130
131 void
132 wxStyledTextCtrl::StyleSetEOLFilled( style, filled )
133     int style
134     bool filled
135
136 void
137 wxStyledTextCtrl::StyleResetDefault()
138
139 void
140 wxStyledTextCtrl::StyleSetCase( style, caseForce )
141     int style
142     int caseForce
143
144 void
145 wxStyledTextCtrl::StyleSetCharacterSet( style, characterSet )
146     int style
147     int characterSet
148
149 void
150 wxStyledTextCtrl::SetSelForeground( useSetting, fore )
151     bool useSetting
152     wxColour* fore
153   CODE:
154     THIS->SetSelForeground( useSetting, *fore );
155
156 void
157 wxStyledTextCtrl::SetSelBackground( useSetting, back )
158     bool useSetting
159     wxColour* back
160   CODE:
161     THIS->SetSelBackground( useSetting, *back );
162
163 void
164 wxStyledTextCtrl::SetCaretForeground( fore )
165     wxColour* fore
166   CODE:
167     THIS->SetCaretForeground( *fore );
168
169 void
170 wxStyledTextCtrl::CmdKeyAssign( key, modifiers, cmd )
171     int key
172     int modifiers
173     int cmd
174
175 void
176 wxStyledTextCtrl::CmdKeyClear( key, modifiers )
177     int key
178     int modifiers
179
180 void
181 wxStyledTextCtrl::CmdKeyClearAll()
182
183 void
184 wxStyledTextCtrl::SetStyleBytes( length, styleBytes )
185     int length
186     char* styleBytes
187
188 void
189 wxStyledTextCtrl::StyleSetVisible( style, visible )
190     int style
191     bool visible
192
193 int
194 wxStyledTextCtrl::GetCaretPeriod()
195
196 void
197 wxStyledTextCtrl::SetCaretPeriod( periodMilliseconds )
198     int periodMilliseconds
199
200 void
201 wxStyledTextCtrl::SetWordChars( characters )
202     wxString characters
203
204 void
205 wxStyledTextCtrl::BeginUndoAction()
206
207 void
208 wxStyledTextCtrl::EndUndoAction()
209
210 void
211 wxStyledTextCtrl::IndicatorSetStyle( indic, style )
212     int indic
213     int style
214
215 int
216 wxStyledTextCtrl::IndicatorGetStyle( indic )
217     int indic
218
219 void
220 wxStyledTextCtrl::IndicatorSetForeground( indic, fore )
221     int indic
222     wxColour* fore
223   CODE:
224     THIS->IndicatorSetForeground( indic, *fore );
225
226 void
227 wxStyledTextCtrl::SetWhitespaceForeground( useSetting, fore )
228     bool useSetting
229     wxColour* fore
230   CODE:
231     THIS->SetWhitespaceForeground( useSetting, *fore );
232
233 void
234 wxStyledTextCtrl::SetWhitespaceBackground( useSetting, back )
235     bool useSetting
236     wxColour* back
237   CODE:
238     THIS->SetWhitespaceBackground( useSetting, *back );
239
240 void
241 wxStyledTextCtrl::SetStyleBits( bits )
242     int bits
243
244 int
245 wxStyledTextCtrl::GetStyleBits()
246
247 void
248 wxStyledTextCtrl::SetLineState( line, state )
249     int line
250     int state
251
252 int
253 wxStyledTextCtrl::GetLineState( line )
254     int line
255
256 int
257 wxStyledTextCtrl::GetMaxLineState()
258
259 bool
260 wxStyledTextCtrl::GetCaretLineVisible()
261
262 void
263 wxStyledTextCtrl::SetCaretLineVisible( show )
264     bool show
265
266 #if WXPERL_W_VERSION_LT( 2, 7, 0 )
267
268 void
269 wxStyledTextCtrl::SetCaretLineBack( back )
270     wxColour* back
271   CODE:
272     THIS->SetCaretLineBack( *back );
273
274 #else
275
276 void
277 wxStyledTextCtrl::SetCaretLineBack( back )
278     wxColour* back
279   CODE:
280     THIS->SetCaretLineBackground( *back );
281
282 void
283 wxStyledTextCtrl::SetCaretLineBackground( back )
284     wxColour* back
285   CODE:
286     THIS->SetCaretLineBackground( *back );
287
288 #endif
289
290 void
291 wxStyledTextCtrl::StyleSetChangeable( style, changeable )
292     int style
293     bool changeable
294
295 void
296 wxStyledTextCtrl::AutoCompShow( lenEntered, itemList )
297     int lenEntered
298     wxString itemList
299
300 void
301 wxStyledTextCtrl::AutoCompCancel()
302
303 bool
304 wxStyledTextCtrl::AutoCompActive()
305
306 int
307 wxStyledTextCtrl::AutoCompPosStart()
308
309 void
310 wxStyledTextCtrl::AutoCompComplete()
311
312 void
313 wxStyledTextCtrl::AutoCompStops( characterSet )
314     wxString characterSet
315
316 void
317 wxStyledTextCtrl::AutoCompSetSeparator( separatorCharacter )
318     int separatorCharacter
319
320 int
321 wxStyledTextCtrl::AutoCompGetSeparator()
322
323 void
324 wxStyledTextCtrl::AutoCompSelect( text )
325     wxString text
326
327 void
328 wxStyledTextCtrl::AutoCompSetCancelAtStart( cancel )
329     bool cancel
330
331 bool
332 wxStyledTextCtrl::AutoCompGetCancelAtStart()
333
334 void
335 wxStyledTextCtrl::AutoCompSetFillUps( characterSet )
336     wxString characterSet
337
338 void
339 wxStyledTextCtrl::AutoCompSetChooseSingle( chooseSingle )
340     bool chooseSingle
341
342 bool
343 wxStyledTextCtrl::AutoCompGetChooseSingle()
344
345 bool
346 wxStyledTextCtrl::AutoCompGetIgnoreCase()
347
348 void
349 wxStyledTextCtrl::UserListShow( listType, itemList )
350     int listType
351     wxString itemList
352
353 void
354 wxStyledTextCtrl::AutoCompSetAutoHide( autoHide )
355     bool autoHide
356
357 bool
358 wxStyledTextCtrl::AutoCompGetAutoHide()
359
360 void
361 wxStyledTextCtrl::AutoCompSetDropRestOfWord( dropRestOfWord )
362     bool dropRestOfWord
363
364 bool
365 wxStyledTextCtrl::AutoCompGetDropRestOfWord()
366
367 void
368 wxStyledTextCtrl::SetIndent( indentSize )
369     int indentSize
370
371 int
372 wxStyledTextCtrl::GetIndent()
373
374 void
375 wxStyledTextCtrl::SetUseTabs( useTabs )
376     bool useTabs
377
378 bool
379 wxStyledTextCtrl::GetUseTabs()
380
381 void
382 wxStyledTextCtrl::SetLineIndentation( line, indentSize )
383     int line
384     int indentSize
385
386 int
387 wxStyledTextCtrl::GetLineIndentation( line )
388     int line
389
390 int
391 wxStyledTextCtrl::GetLineIndentPosition( line )
392     int line
393
394 int
395 wxStyledTextCtrl::GetColumn( pos )
396     int pos
397
398 void
399 wxStyledTextCtrl::SetUseHorizontalScrollBar( show )
400     bool show
401
402 bool
403 wxStyledTextCtrl::GetUseHorizontalScrollBar()
404
405 void
406 wxStyledTextCtrl::SetIndentationGuides( show )
407     bool show
408
409 bool
410 wxStyledTextCtrl::GetIndentationGuides()
411
412 void
413 wxStyledTextCtrl::SetHighlightGuide( column )
414     int column
415
416 int
417 wxStyledTextCtrl::GetHighlightGuide()
418
419 int
420 wxStyledTextCtrl::GetLineEndPosition( line )
421     int line
422
423 int
424 wxStyledTextCtrl::GetCodePage()
425
426 bool
427 wxStyledTextCtrl::GetReadOnly()
428
429 void
430 wxStyledTextCtrl::SetCurrentPos( pos )
431     int pos
432
433 void
434 wxStyledTextCtrl::SetSelectionStart( pos )
435     int pos
436
437 int
438 wxStyledTextCtrl::GetSelectionStart()
439
440 void
441 wxStyledTextCtrl::SetSelectionEnd( pos )
442     int pos
443
444 int
445 wxStyledTextCtrl::GetSelectionEnd()
446
447 void
448 wxStyledTextCtrl::SetPrintMagnification( magnification )
449     int magnification
450
451 int
452 wxStyledTextCtrl::GetPrintMagnification()
453
454 void
455 wxStyledTextCtrl::SetPrintColourMode( mode )
456     int mode
457
458 int
459 wxStyledTextCtrl::GetPrintColourMode()
460
461 int
462 wxStyledTextCtrl::FindText( minPos, maxPos, text, flags = 0 )
463     int minPos
464     int maxPos
465     wxString text
466     int flags
467
468 int
469 wxStyledTextCtrl::GetFirstVisibleLine()
470
471 int
472 wxStyledTextCtrl::GetLineCount()
473
474 void
475 wxStyledTextCtrl::SetMarginLeft( pixelWidth )
476     int pixelWidth
477
478 int
479 wxStyledTextCtrl::GetMarginLeft()
480
481 void
482 wxStyledTextCtrl::SetMarginRight( pixelWidth )
483     int pixelWidth
484
485 int
486 wxStyledTextCtrl::GetMarginRight()
487
488 bool
489 wxStyledTextCtrl::GetModify()
490
491 void
492 wxStyledTextCtrl::SetSelection( start, end )
493     int start
494     int end
495
496 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
497
498 void
499 wxStyledTextCtrl::SetSelectionMode( mode )
500     int mode
501
502 int
503 wxStyledTextCtrl::GetSelectionMode()
504
505 #endif
506
507 void
508 wxStyledTextCtrl::HideSelection( normal )
509     bool normal
510
511 int
512 wxStyledTextCtrl::LineFromPosition( pos )
513     int pos
514
515 int
516 wxStyledTextCtrl::PositionFromLine( line )
517     int line
518
519 void
520 wxStyledTextCtrl::LineScroll( columns, lines )
521     int columns
522     int lines
523
524 void
525 wxStyledTextCtrl::EnsureCaretVisible()
526
527 void
528 wxStyledTextCtrl::ReplaceSelection( text )
529     wxString text
530
531 void
532 wxStyledTextCtrl::SetReadOnly( readOnly )
533     bool readOnly
534
535 bool
536 wxStyledTextCtrl::CanPaste()
537
538 bool
539 wxStyledTextCtrl::CanUndo()
540
541 void
542 wxStyledTextCtrl::EmptyUndoBuffer()
543
544 void
545 wxStyledTextCtrl::Undo()
546
547 void
548 wxStyledTextCtrl::Cut()
549
550 void
551 wxStyledTextCtrl::Copy()
552
553 void
554 wxStyledTextCtrl::Paste()
555
556 void
557 wxStyledTextCtrl::Clear()
558
559 int
560 wxStyledTextCtrl::GetTextLength()
561
562 void
563 wxStyledTextCtrl::SetOvertype( overtype )
564     bool overtype
565
566 bool
567 wxStyledTextCtrl::GetOvertype()
568
569 void
570 wxStyledTextCtrl::SetCaretWidth( pixelWidth )
571     int pixelWidth
572
573 int
574 wxStyledTextCtrl::GetCaretWidth()
575
576 void
577 wxStyledTextCtrl::SetTargetStart( pos )
578     int pos
579
580 int
581 wxStyledTextCtrl::GetTargetStart()
582
583 void
584 wxStyledTextCtrl::SetTargetEnd( pos )
585     int pos
586
587 int
588 wxStyledTextCtrl::GetTargetEnd()
589
590 int
591 wxStyledTextCtrl::ReplaceTarget( text )
592     wxString text
593
594 int
595 wxStyledTextCtrl::ReplaceTargetRE( text )
596     wxString text
597
598 int
599 wxStyledTextCtrl::SearchInTarget( text )
600     wxString text
601
602 void
603 wxStyledTextCtrl::SetSearchFlags( flags )
604     int flags
605
606 int
607 wxStyledTextCtrl::GetSearchFlags()
608
609 void
610 wxStyledTextCtrl::CallTipShow( pos, definition )
611     int pos
612     wxString definition
613
614 void
615 wxStyledTextCtrl::CallTipCancel()
616
617 bool
618 wxStyledTextCtrl::CallTipActive()
619
620 int
621 wxStyledTextCtrl::CallTipPosAtStart()
622
623 void
624 wxStyledTextCtrl::CallTipSetHighlight( start, end )
625     int start
626     int end
627
628 void
629 wxStyledTextCtrl::CallTipSetBackground( back )
630     wxColour* back
631   CODE:
632     THIS->CallTipSetBackground( *back );
633
634 int
635 wxStyledTextCtrl::VisibleFromDocLine( line )
636     int line
637
638 int
639 wxStyledTextCtrl::DocLineFromVisible( lineDisplay )
640     int lineDisplay
641
642 void
643 wxStyledTextCtrl::SetFoldLevel( line, level )
644     int line
645     int level
646
647 int
648 wxStyledTextCtrl::GetFoldLevel( line )
649     int line
650
651 int
652 wxStyledTextCtrl::GetLastChild( line, level )
653     int line
654     int level
655
656 int
657 wxStyledTextCtrl::GetFoldParent( line )
658     int line
659
660 void
661 wxStyledTextCtrl::ShowLines( lineStart, lineEnd )
662     int lineStart
663     int lineEnd
664
665 void
666 wxStyledTextCtrl::HideLines( lineStart, lineEnd )
667     int lineStart
668     int lineEnd
669
670 bool
671 wxStyledTextCtrl::GetLineVisible( line )
672     int line
673
674 void
675 wxStyledTextCtrl::SetFoldExpanded( line, expanded )
676     int line
677     bool expanded
678
679 bool
680 wxStyledTextCtrl::GetFoldExpanded( line )
681     int line
682
683 void
684 wxStyledTextCtrl::ToggleFold( line )
685     int line
686
687 void
688 wxStyledTextCtrl::EnsureVisible( line )
689     int line
690
691 void
692 wxStyledTextCtrl::SetFoldFlags( flags )
693     int flags
694
695 void
696 wxStyledTextCtrl::EnsureVisibleEnforcePolicy( line )
697     int line
698
699 void
700 wxStyledTextCtrl::SetTabIndents( tabIndents )
701     bool tabIndents
702
703 bool
704 wxStyledTextCtrl::GetTabIndents()
705
706 void
707 wxStyledTextCtrl::SetBackSpaceUnIndents( bsUnIndents )
708     bool bsUnIndents
709
710 bool
711 wxStyledTextCtrl::GetBackSpaceUnIndents()
712
713 void
714 wxStyledTextCtrl::SetMouseDwellTime( periodMilliseconds )
715     int periodMilliseconds
716
717 int
718 wxStyledTextCtrl::GetMouseDwellTime()
719
720 int
721 wxStyledTextCtrl::WordStartPosition( pos, onlyWordCharacters )
722     int pos
723     bool onlyWordCharacters
724
725 int
726 wxStyledTextCtrl::WordEndPosition( pos, onlyWordCharacters )
727     int pos
728     bool onlyWordCharacters
729
730 void
731 wxStyledTextCtrl::SetLayoutCache( mode )
732     int mode
733
734 int
735 wxStyledTextCtrl::GetLayoutCache()
736
737 void
738 wxStyledTextCtrl::SetScrollWidth( pixelWidth )
739     int pixelWidth
740
741 int
742 wxStyledTextCtrl::GetScrollWidth()
743
744 int
745 wxStyledTextCtrl::TextWidth( style, text )
746     int style
747     wxString text
748
749 void
750 wxStyledTextCtrl::SetEndAtLastLine( endAtLastLine )
751     bool endAtLastLine
752
753 int
754 wxStyledTextCtrl::GetEndAtLastLine()
755
756 int
757 wxStyledTextCtrl::TextHeight( line )
758     int line
759
760 void
761 wxStyledTextCtrl::HomeDisplay()
762
763 void
764 wxStyledTextCtrl::HomeDisplayExtend()
765
766 void
767 wxStyledTextCtrl::LineEndDisplay()
768
769 void
770 wxStyledTextCtrl::LineEndDisplayExtend()
771
772 void
773 wxStyledTextCtrl::MoveCaretInsideView()
774
775 int
776 wxStyledTextCtrl::LineLength( line )
777     int line
778
779 void
780 wxStyledTextCtrl::BraceHighlight( pos1, pos2 )
781     int pos1
782     int pos2
783
784 void
785 wxStyledTextCtrl::BraceBadLight( pos )
786     int pos
787
788 int
789 wxStyledTextCtrl::BraceMatch( pos )
790     int pos
791
792 bool
793 wxStyledTextCtrl::GetViewEOL()
794
795 void
796 wxStyledTextCtrl::SetViewEOL( visible )
797     bool visible
798
799 void*
800 wxStyledTextCtrl::GetDocPointer()
801
802 void
803 wxStyledTextCtrl::SetDocPointer( docPointer )
804     void* docPointer
805
806 void
807 wxStyledTextCtrl::SetModEventMask( mask )
808     int mask
809
810 int
811 wxStyledTextCtrl::GetEdgeColumn()
812
813 void
814 wxStyledTextCtrl::SetEdgeColumn( column )
815     int column
816
817 int
818 wxStyledTextCtrl::GetEdgeMode()
819
820 void
821 wxStyledTextCtrl::SetEdgeMode( mode )
822     int mode
823
824 void
825 wxStyledTextCtrl::SetEdgeColour( edgeColour )
826     wxColour edgeColour
827
828 void
829 wxStyledTextCtrl::SearchAnchor()
830
831 int
832 wxStyledTextCtrl::SearchNext( flags, text )
833     int flags
834     wxString text
835
836 int
837 wxStyledTextCtrl::SearchPrev( flags, text )
838     int flags
839     wxString text
840
841 int
842 wxStyledTextCtrl::LinesOnScreen()
843
844 void
845 wxStyledTextCtrl::UsePopUp( allowPopUp )
846     bool allowPopUp
847
848 bool
849 wxStyledTextCtrl::SelectionIsRectangle()
850
851 void
852 wxStyledTextCtrl::SetZoom( zoom )
853     int zoom
854
855 int
856 wxStyledTextCtrl::GetZoom()
857
858 void*
859 wxStyledTextCtrl::CreateDocument()
860
861 void
862 wxStyledTextCtrl::AddRefDocument( docPointer )
863     void* docPointer
864
865 void
866 wxStyledTextCtrl::ReleaseDocument( docPointer )
867     void* docPointer
868
869 int
870 wxStyledTextCtrl::GetModEventMask()
871
872 void
873 wxStyledTextCtrl::SetSTCFocus( focus )
874     bool focus
875
876 bool
877 wxStyledTextCtrl::GetSTCFocus()
878
879 void
880 wxStyledTextCtrl::SetStatus( statusCode )
881     int statusCode
882
883 int
884 wxStyledTextCtrl::GetStatus()
885
886 void
887 wxStyledTextCtrl::SetMouseDownCaptures( captures )
888     bool captures
889
890 bool
891 wxStyledTextCtrl::GetMouseDownCaptures()
892
893 void
894 wxStyledTextCtrl::SetControlCharSymbol( symbol )
895     int symbol
896
897 int
898 wxStyledTextCtrl::GetControlCharSymbol()
899
900 void
901 wxStyledTextCtrl::WordPartLeft()
902
903 void
904 wxStyledTextCtrl::WordPartLeftExtend()
905
906 void
907 wxStyledTextCtrl::WordPartRight()
908
909 void
910 wxStyledTextCtrl::WordPartRightExtend()
911
912 void
913 wxStyledTextCtrl::SetVisiblePolicy( visiblePolicy, visibleSlop )
914     int visiblePolicy
915     int visibleSlop
916
917 void
918 wxStyledTextCtrl::DelLineLeft()
919
920 void
921 wxStyledTextCtrl::DelLineRight()
922
923 void
924 wxStyledTextCtrl::SetXOffset( newOffset )
925     int newOffset
926
927 int
928 wxStyledTextCtrl::GetXOffset()
929
930 void
931 wxStyledTextCtrl::SetXCaretPolicy( caretPolicy, caretSlop )
932     int caretPolicy
933     int caretSlop
934
935 void
936 wxStyledTextCtrl::SetYCaretPolicy( caretPolicy, caretSlop )
937     int caretPolicy
938     int caretSlop
939
940 void
941 wxStyledTextCtrl::StartRecord()
942
943 void
944 wxStyledTextCtrl::StopRecord()
945
946 void
947 wxStyledTextCtrl::Colourise( start, end )
948     int start
949     int end
950
951 void
952 wxStyledTextCtrl::SetProperty( key, value )
953     wxString key
954     wxString value
955
956 void
957 wxStyledTextCtrl::SetKeyWords( keywordSet, keyWords )
958     int keywordSet
959     wxString keyWords
960
961 void
962 wxStyledTextCtrl::SetLexerLanguage( language )
963     wxString language
964
965 ## Retrieve the selected text
966 wxString
967 wxStyledTextCtrl::GetSelectedText()
968
969 ## Retrieve a range of text
970 wxString
971 wxStyledTextCtrl::GetTextRange(startPos, endPos)
972     int startPos
973     int endPos
974
975 ## Retrieve all the text in the document.
976 wxString
977 wxStyledTextCtrl::GetText()
978
979 ## Returns the position of the opposite end of the selection to the caret.
980 int
981 wxStyledTextCtrl::GetAnchor()
982
983 ## Returns the style byte at the position
984 int
985 wxStyledTextCtrl::GetStyleAt(pos)
986     int pos
987
988 ## Redoes the next action on the undo history.
989 void
990 wxStyledTextCtrl::Redo()
991
992 ## Select all the text in the document.
993 void
994 wxStyledTextCtrl::SelectAll()
995
996 ## Remember the current position in the undo history as the position
997 ## at which the document was saved.
998 void
999 wxStyledTextCtrl::SetSavePoint()
1000
1001 ## Replace the contents of the document with the argument text.
1002 void
1003 wxStyledTextCtrl::SetText(text)
1004     wxString text
1005
1006 ## Are there any redoable actions in the undo history?
1007 bool
1008 wxStyledTextCtrl::CanRedo()
1009
1010 ## Retrieve the line number at which a particular marker is located.
1011 int
1012 wxStyledTextCtrl::MarkerLineFromHandle( handle )
1013     int handle
1014
1015 ## Delete a marker
1016 void
1017 wxStyledTextCtrl::MarkerDeleteHandle( handle )
1018     int handle
1019
1020 ## Is undo history being collected?
1021 bool
1022 wxStyledTextCtrl::GetUndoCollection()
1023
1024 ## Are white space characters currently visible?
1025 ## Returns one of SCWS_* constants.
1026 int
1027 wxStyledTextCtrl::GetViewWhiteSpace()
1028
1029 ## Make white space characters invisible, always visible or visible outside indentation.
1030 void
1031 wxStyledTextCtrl::SetViewWhiteSpace( viewWs )
1032     int viewWs
1033
1034 ## Find the position from a point within the window.
1035 int
1036 wxStyledTextCtrl::PositionFromPoint( pt )
1037     wxPoint pt
1038
1039 int
1040 wxStyledTextCtrl::PositionFromPointClose( x, y )
1041     int x
1042     int y
1043
1044 ## Set caret to start of a line and ensure it is visible.
1045 void
1046 wxStyledTextCtrl::GotoLine(line)
1047     int line
1048
1049 ## Set caret to a position and ensure it is visible.
1050 void
1051 wxStyledTextCtrl::GotoPos(pos)
1052     int pos
1053
1054 void
1055 wxStyledTextCtrl::SetAnchor( posAnchor )
1056     int posAnchor
1057
1058 int
1059 wxStyledTextCtrl::GetEndStyled()
1060
1061 void
1062 wxStyledTextCtrl::ConvertEOLs( eolMode )
1063     int eolMode
1064
1065 int
1066 wxStyledTextCtrl::GetEOLMode()
1067
1068 void
1069 wxStyledTextCtrl::SetEOLMode( eolMode )
1070     int eolMode
1071
1072 void
1073 wxStyledTextCtrl::StartStyling( pos, mask )
1074     int pos
1075     int mask
1076
1077 void
1078 wxStyledTextCtrl::SetStyling( length, style )
1079     int length
1080     int style
1081
1082 bool
1083 wxStyledTextCtrl::GetBufferedDraw()
1084
1085 void
1086 wxStyledTextCtrl::SetBufferedDraw( buffered )
1087     bool buffered
1088
1089 void
1090 wxStyledTextCtrl::SetTabWidth( tabWidth )
1091     int tabWidth
1092
1093 int
1094 wxStyledTextCtrl::GetTabWidth()
1095
1096 void
1097 wxStyledTextCtrl::SetCodePage( codePage )
1098     int codePage
1099
1100 void
1101 wxStyledTextCtrl::MarkerDefine( markerNumber, markerSymbol, foreground, background )
1102     int markerNumber
1103     int markerSymbol
1104     wxColour* foreground
1105     wxColour* background
1106   CODE:
1107     THIS->MarkerDefine( markerNumber, markerSymbol, *foreground, *background );
1108
1109 void
1110 wxStyledTextCtrl::MarkerDefineBitmap( markerNumber, bmp )
1111     int markerNumber
1112     wxBitmap* bmp
1113   C_ARGS: markerNumber, *bmp
1114
1115 void
1116 wxStyledTextCtrl::MarkerSetForeground( markerNumber, fore )
1117     int markerNumber
1118     wxColour* fore
1119   CODE:
1120     THIS->MarkerSetForeground( markerNumber, *fore );
1121
1122 void
1123 wxStyledTextCtrl::MarkerSetBackground( markerNumber, back )
1124     int markerNumber
1125     wxColour* back
1126   CODE:
1127     THIS->MarkerSetBackground( markerNumber, *back );
1128
1129 int
1130 wxStyledTextCtrl::MarkerAdd( line, markerNumber )
1131     int line
1132     int markerNumber
1133
1134 void
1135 wxStyledTextCtrl::MarkerDelete( line, markerNumber )
1136     int line
1137     int markerNumber
1138
1139 void
1140 wxStyledTextCtrl::MarkerDeleteAll( markerNumber )
1141     int markerNumber
1142
1143 int
1144 wxStyledTextCtrl::MarkerGet( line )
1145     int line
1146
1147 int
1148 wxStyledTextCtrl::MarkerNext( lineStart, markerMask )
1149     int lineStart
1150     int markerMask
1151
1152 int
1153 wxStyledTextCtrl::MarkerPrevious( lineStart, markerMask )
1154     int lineStart
1155     int markerMask
1156
1157 void
1158 wxStyledTextCtrl::SetMarginType( margin, marginType )
1159     int margin
1160     int marginType
1161
1162 int
1163 wxStyledTextCtrl::GetMarginType( margin )
1164     int margin
1165
1166 void
1167 wxStyledTextCtrl::SetMarginWidth( margin, pixelWidth )
1168     int margin
1169     int pixelWidth
1170
1171 int
1172 wxStyledTextCtrl::GetMarginWidth( margin )
1173     int margin
1174
1175 void
1176 wxStyledTextCtrl::SetMarginMask( margin, mask )
1177     int margin
1178     int mask
1179
1180 int
1181 wxStyledTextCtrl::GetMarginMask( margin )
1182     int margin
1183
1184 void
1185 wxStyledTextCtrl::SetMarginSensitive( margin, sensitive )
1186     int margin
1187     bool sensitive
1188
1189 bool
1190 wxStyledTextCtrl::GetMarginSensitive( margin )
1191     int margin
1192
1193
1194 ## Returns the position of the caret
1195 int
1196 wxStyledTextCtrl::GetCurrentPos()
1197
1198 int
1199 wxStyledTextCtrl::GetLength()
1200
1201 int
1202 wxStyledTextCtrl::GetCharAt( pos )
1203     int pos
1204
1205 ## Sets whether text is word wrapped
1206 void
1207 wxStyledTextCtrl::SetWrapMode(mode)
1208     int mode
1209
1210 ## Retrieve whether text is word wrapped
1211 int
1212 wxStyledTextCtrl::GetWrapMode()
1213
1214 ## Retrieve the contents of a line.
1215 wxString
1216 wxStyledTextCtrl::GetLine(line)
1217     int line
1218
1219 ## Delete all text in the document
1220 void
1221 wxStyledTextCtrl::ClearAll()
1222
1223 ## Returns the line number of the line with the caret.
1224 int
1225 wxStyledTextCtrl::GetCurrentLine()
1226
1227 void
1228 wxStyledTextCtrl::CmdKeyExecute( cmd )
1229     int cmd
1230
1231 void
1232 wxStyledTextCtrl::SetMargins( left, right )
1233     int left
1234     int right
1235
1236 void
1237 wxStyledTextCtrl::SetUndoCollection( collectUndo )
1238     bool collectUndo
1239
1240 wxColour*
1241 wxStyledTextCtrl::IndicatorGetForeground( indic )
1242     int indic
1243   CODE:
1244     RETVAL = new wxColour( THIS->IndicatorGetForeground( indic ) );
1245   OUTPUT:
1246     RETVAL
1247
1248 #if WXPERL_W_VERSION_LT( 2, 7, 0 )
1249
1250 wxColour*
1251 wxStyledTextCtrl::GetCaretLineBack()
1252   CODE:
1253     RETVAL = new wxColour( THIS->GetCaretLineBack() );
1254   OUTPUT:
1255     RETVAL
1256
1257 #endif
1258
1259 wxColour*
1260 wxStyledTextCtrl::GetCaretForeground()
1261   CODE:
1262     RETVAL = new wxColour( THIS->GetCaretForeground() );
1263   OUTPUT:
1264     RETVAL
1265
1266 int
1267 wxStyledTextCtrl::FormatRange( doDraw , startPos , endPos , draw , target , renderRect , pageRect )
1268     bool   doDraw
1269     int    startPos
1270     int    endPos
1271     wxDC*  draw
1272     wxDC*  target
1273     wxRect* renderRect
1274     wxRect* pageRect
1275   CODE:
1276     RETVAL = THIS->FormatRange( doDraw, startPos, endPos, draw,
1277                                 target, *renderRect, *pageRect );
1278   OUTPUT:
1279     RETVAL
1280
1281 wxColour*
1282 wxStyledTextCtrl::GetEdgeColour()
1283   CODE:
1284     RETVAL = new wxColour( THIS->GetEdgeColour() );
1285   OUTPUT:
1286     RETVAL
1287
1288 bool
1289 wxStyledTextCtrl::GetLastKeydownProcessed()
1290
1291 void
1292 wxStyledTextCtrl::SetLastKeydownProcessed( val )
1293     bool val
1294
1295 wxPoint*
1296 wxStyledTextCtrl::PointFromPosition( pos )
1297     int pos
1298   CODE:
1299     RETVAL = new wxPoint( THIS->PointFromPosition( pos ) );
1300   OUTPUT: RETVAL
1301
1302 void
1303 wxStyledTextCtrl::ScrollToLine( line )
1304     int line
1305
1306 void
1307 wxStyledTextCtrl::SetHScrollBar( bar )
1308     wxScrollBar* bar
1309
1310 void
1311 wxStyledTextCtrl::SetVScrollBar( bar )
1312     wxScrollBar* bar
1313
1314 void
1315 wxStyledTextCtrl::GetSelection()
1316   PREINIT:
1317     int start, end;
1318   PPCODE:
1319     THIS->GetSelection( &start, &end );
1320     XPUSHs( newSViv( start ) );
1321     XPUSHs( newSViv( end ) );
1322
1323 bool
1324 wxStyledTextCtrl::SaveFile(wxString filename)
1325
1326 bool
1327 wxStyledTextCtrl::LoadFile(wxString filename)
1328
1329 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
1330
1331 void
1332 wxStyledTextCtrl::AddTextRaw( text )
1333     const char* text = wxUSE_UNICODE ? SvPVutf8( $arg, PL_na ) : SvPV( $arg, PL_na );
1334
1335 void
1336 wxStyledTextCtrl::InsertTextRaw( pos, text )
1337     int pos
1338     const char* text = wxUSE_UNICODE ? SvPVutf8( $arg, PL_na ) : SvPV( $arg, PL_na );
1339
1340 void
1341 wxStyledTextCtrl::AppendTextRaw( text )
1342     const char* text = wxUSE_UNICODE ? SvPVutf8( $arg, PL_na ) : SvPV( $arg, PL_na );
1343
1344 #endif
1345 %}
1346
1347     void Allocate( int bytes );
1348 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
1349     void AppendText( const wxString& text );
1350 #endif
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();
1359 #endif
1360     void AutoCompSetIgnoreCase( bool ignoreCase );
1361
1362     void BackTab();
1363
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 );
1368 #endif
1369
1370     void Cancel();
1371
1372     void CharLeft();
1373     void CharLeftExtend();
1374     void CharRight();
1375     void CharRightExtend();
1376     void CharLeftRectExtend();
1377     void CharRightRectExtend();
1378
1379     void ChooseCaretX();
1380
1381     void ClearRegisteredImages();
1382
1383     void CopyRange( int start, int end );
1384     void CopyText( int length, const wxString& text );
1385
1386     void DelWordLeft();
1387     void DelWordRight();
1388     void DeleteBack();
1389     void DeleteBackNotLine();
1390
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 );
1394 #endif
1395
1396     void DocumentStart();
1397     void DocumentStartExtend();
1398     void DocumentEnd();
1399     void DocumentEndExtend();
1400
1401     void EditToggleOvertype();
1402 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
1403     int FindColumn( int line, int column );
1404 #endif
1405     void FormFeed();
1406
1407 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1408     void SetCaretLineBackAlpha( int alpha );
1409     int GetCaretLineBackAlpha();
1410     wxColour GetCaretLineBackground();
1411
1412     bool GetCaretSticky();
1413     void SetCaretSticky( bool useCaretStickyBehaviour );
1414     void ToggleCaretSticky();
1415 #endif
1416
1417     int GetLineSelStartPosition( int line );
1418     int GetLineSelEndPosition( int line );
1419
1420 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1421     void SetPasteConvertEndings( bool convert );
1422     bool GetPasteConvertEndings();
1423 #endif
1424
1425     void SetPrintWrapMode( int mode );
1426     int GetPrintWrapMode();
1427
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 );
1432 #endif
1433
1434     int GetSTCCursor();
1435     void SetSTCCursor( int cursorType );
1436
1437 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1438     int GetSelAlpha();
1439     void SetSelAlpha( int alpha );
1440
1441     int GetStyleBitsNeeded();
1442 #endif
1443
1444     bool GetTwoPhaseDraw();
1445     void SetTwoPhaseDraw( bool twoPhase );
1446
1447     void SetUseAntiAliasing( bool useAA );
1448     bool GetUseAntiAliasing();
1449
1450     void SetUseVerticalScrollBar( bool show );
1451     bool GetUseVerticalScrollBar();
1452
1453     void SetWrapVisualFlags( int wrapVisualFlags );
1454     int GetWrapVisualFlags();
1455     void SetWrapVisualFlagsLocation( int wrapVisualFlagsLocation );
1456     int GetWrapVisualFlagsLocation();
1457     void SetWrapStartIndent( int indent );
1458     int GetWrapStartIndent();
1459
1460     void Home();
1461     void HomeExtend();
1462     void HomeRectExtend();
1463     void HomeWrap();
1464     void HomeWrapExtend();
1465
1466     void LineCopy();
1467     void LineCut();
1468     void LineDelete();
1469     void LineDownExtend();
1470     void LineDownRectExtend();
1471     void LineDuplicate();
1472
1473     void LineEnd();
1474     void LineEndExtend();
1475     void LineEndRectExtend();
1476     void LineEndWrap();
1477     void LineEndWrapExtend();
1478
1479     void LineScrollDown();
1480     void LineScrollUp();
1481
1482     void LineTranspose();
1483
1484     void LineUpExtend();
1485     void LineUpRectExtend();
1486
1487     void LinesJoin();
1488     void LinesSplit( int pixelWidth );
1489
1490     void LowerCase();
1491     void UpperCase();
1492
1493 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1494     void MarkerAddSet( int line, int set );
1495     void MarkerSetAlpha( int markerNumber, int alpha );
1496 #endif
1497
1498     void NewLine();
1499
1500     void PageDown();
1501     void PageDownExtend();
1502     void PageDownRectExtend();
1503     void PageUp();
1504     void PageUpExtend();
1505     void PageUpRectExtend();
1506
1507     void ParaDown();
1508     void ParaDownExtend();
1509     void ParaUp();
1510     void ParaUpExtend();
1511
1512     int PositionBefore( int pos );
1513     int PositionAfter( int pos );
1514
1515     void RegisterImage( int type, const wxBitmap& bmp );
1516
1517     void ScrollToColumn( int column );
1518
1519 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1520     void SelectionDuplicate();
1521 #endif
1522
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 );
1531
1532     void StutteredPageUp();
1533     void StutteredPageUpExtend();
1534     void StutteredPageDown();
1535     void StutteredPageDownExtend();
1536
1537 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
1538     void StyleSetFontEncoding( int style, wxFontEncoding encoding );
1539 #endif
1540     void StyleSetHotSpot( int style, bool hotspot );
1541
1542     void Tab();
1543
1544     void TargetFromSelection();
1545
1546     void VCHome();
1547     void VCHomeExtend();
1548     void VCHomeRectExtend();
1549     void VCHomeWrap();
1550     void VCHomeWrapExtend();
1551
1552     void WordLeft();
1553     void WordLeftEnd();
1554     void WordLeftEndExtend();
1555     void WordLeftExtend();
1556     void WordRight();
1557     void WordRightEnd();
1558     void WordRightEndExtend();
1559     void WordRightExtend();
1560
1561 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1562     int WrapCount( int line );
1563 #endif
1564
1565     void ZoomIn();
1566     void ZoomOut();
1567 };