Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / ext / grid / XS / Grid.xs
1 ############################################################################
2 ## Name:        ext/grid/XS/Grid.xs
3 ## Purpose:     XS for Wx::Grid
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     04/12/2001
7 ## RCS-ID:      $Id: Grid.xs 2570 2009-05-17 16:31:20Z mbarbon $
8 ## Copyright:   (c) 2001-2009 Mattia Barbon
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 #include <wx/grid.h>
14 #include "cpp/overload.h"
15
16 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
17
18 MODULE=Wx PACKAGE=Wx::GridUpdateLocker
19
20 wxGridUpdateLocker*
21 wxGridUpdateLocker::new( grid = NULL )
22     wxGrid* grid
23
24 static void
25 wxGridUpdateLocker::CLONE()
26   CODE:
27     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
28
29 ## // thread OK
30 void
31 wxGridUpdateLocker::DESTROY()
32   CODE:
33     wxPli_thread_sv_unregister( aTHX_ "Wx::GridUpdateLocker", THIS, ST(0) );
34     delete THIS;
35
36 void
37 wxGridUpdateLocker::Create( grid )
38     wxGrid* grid
39
40 #endif
41
42 MODULE=Wx PACKAGE=Wx::GridCellCoords
43
44 wxGridCellCoords*
45 wxGridCellCoords::new( r, c )
46     int r
47     int c
48
49 static void
50 wxGridCellCoords::CLONE()
51   CODE:
52     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
53
54 ## // thread OK
55 void
56 wxGridCellCoords::DESTROY()
57   CODE:
58     wxPli_thread_sv_unregister( aTHX_ "Wx::GridCellCoords", THIS, ST(0) );
59     delete THIS;
60
61 int
62 wxGridCellCoords::GetRow()
63
64 int
65 wxGridCellCoords::GetCol()
66
67 void
68 wxGridCellCoords::SetRow( r )
69     int r
70
71 void
72 wxGridCellCoords::SetCol( c )
73     int c
74
75 void
76 wxGridCellCoords::Set( r, c )
77     int r
78     int c
79
80 MODULE=Wx PACKAGE=Wx::Grid
81
82 void
83 new( ... )
84   PPCODE:
85     BEGIN_OVERLOAD()
86         MATCH_VOIDM_REDISP( newDefault )
87         MATCH_ANY_REDISP( newFull )
88     END_OVERLOAD( "Wx::Grid::new" )
89
90 wxGrid*
91 newDefault( CLASS )
92     PlClassName CLASS
93   CODE:
94     RETVAL = new wxGrid();
95     wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
96   OUTPUT: RETVAL
97
98 wxGrid*
99 newFull( CLASS, parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = wxWANTS_CHARS, name = wxPanelNameStr )
100     PlClassName CLASS
101     wxWindow* parent
102     wxWindowID id
103     wxPoint pos
104     wxSize size
105     long style
106     wxString name
107   CODE:
108     RETVAL = new wxGrid( parent, id, pos, size, style, name );
109     wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
110   OUTPUT:
111     RETVAL
112
113 bool
114 wxGrid::Create( parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = wxWANTS_CHARS, name = wxPanelNameStr )
115     wxWindow* parent
116     wxWindowID id
117     wxPoint pos
118     wxSize size
119     long style
120     wxString name
121
122 bool
123 wxGrid::AppendCols( numCols = 1, updateLabels = true )
124     int numCols
125     bool updateLabels
126
127 bool
128 wxGrid::AppendRows( numRows = 1, updateLabels = true )
129     int numRows
130     bool updateLabels
131
132 void
133 wxGrid::AutoSize()
134
135 void
136 wxGrid::AutoSizeColLabelSize( col )
137     int col
138
139 void
140 wxGrid::AutoSizeRowLabelSize( col )
141     int col
142
143 void
144 wxGrid::AutoSizeColumn( col, setAsMin = true )
145     int col
146     bool setAsMin
147
148 void
149 wxGrid::AutoSizeColumns( setAsMin = true )
150     bool setAsMin
151
152 void
153 wxGrid::AutoSizeRow( row, setAsMin = true )
154     int row
155     bool setAsMin
156
157 void
158 wxGrid::AutoSizeRows( setAsMin = true )
159     bool setAsMin
160
161 void
162 wxGrid::BeginBatch()
163
164 wxRect*
165 wxGrid::BlockToDeviceRect( topLeft, bottomRight )
166     wxGridCellCoords* topLeft
167     wxGridCellCoords* bottomRight
168   CODE:
169     RETVAL = new wxRect( THIS->BlockToDeviceRect( *topLeft, *bottomRight ) );
170   OUTPUT:
171     RETVAL
172
173 bool
174 wxGrid::CanDragColSize()
175
176 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
177
178 bool
179 wxGrid::CanDragColMove()
180
181 #endif
182
183 bool
184 wxGrid::CanDragRowSize()
185
186 bool
187 wxGrid::CanDragGridSize()
188
189 bool
190 wxGrid::CanEnableCellControl()
191
192 wxRect*
193 wxGrid::CellToRectXY( row, col )
194     int row
195     int col
196   CODE:
197     RETVAL = new wxRect( THIS->CellToRect( row, col ) );
198   OUTPUT:
199     RETVAL
200
201 wxRect*
202 wxGrid::CellToRectCo( coords )
203     wxGridCellCoords* coords
204   CODE:
205     RETVAL = new wxRect( THIS->CellToRect( *coords ) );
206   OUTPUT:
207     RETVAL
208
209 void
210 wxGrid::ClearGrid()
211
212 void
213 wxGrid::ClearSelection()
214
215 bool
216 wxGrid::CreateGrid( numRows, numCols, selMode = wxGrid::wxGridSelectCells )
217     int numRows
218     int numCols
219     wxGridSelectionModes selMode
220
221 bool
222 wxGrid::DeleteCols( pos = 0, numCols = 1, updateLabels = true )
223     int pos
224     int numCols
225     bool updateLabels
226
227 bool
228 wxGrid::DeleteRows( pos = 0, numRows = 1, updateLabels = true )
229     int pos
230     int numRows
231     bool updateLabels
232
233 void
234 wxGrid::DisableCellEditControl()
235
236 void
237 wxGrid::DisableDragGridSize()
238
239 void
240 wxGrid::DisableDragRowSize()
241
242 void
243 wxGrid::DisableDragColSize()
244
245 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
246
247 void
248 wxGrid::DisableDragColMove()
249
250 #endif
251
252 void
253 wxGrid::EnableCellEditControl( enable = true )
254     bool enable
255
256 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
257
258 void
259 wxGrid::EnableDragColMove( enable = true )
260     bool enable
261
262 #endif
263
264 void
265 wxGrid::EnableDragColSize( enable = true )
266     bool enable
267
268 void
269 wxGrid::EnableDragGridSize( enable = true )
270     bool enable
271
272 void
273 wxGrid::EnableDragRowSize( enable = true )
274     bool enable
275
276 void
277 wxGrid::EnableEditing( enable = true )
278     bool enable
279
280 void
281 wxGrid::EnableGridLines( enable = true )
282     bool enable
283
284 void
285 wxGrid::EndBatch()
286
287 void
288 wxGrid::ForceRefresh()
289
290 int
291 wxGrid::GetBatchCount()
292
293 void
294 wxGrid::GetCellAlignment( row, col )
295     int row
296     int col
297   PREINIT:
298     int x, y;
299   PPCODE:
300     THIS->GetCellAlignment( row, col, &x, &y );
301     EXTEND( SP, 2 );
302     PUSHs( sv_2mortal( newSViv( x ) ) );
303     PUSHs( sv_2mortal( newSViv( y ) ) );
304
305 wxColour*
306 wxGrid::GetCellBackgroundColour( row, col )
307     int row
308     int col
309   CODE:
310     RETVAL = new wxColour( THIS->GetCellBackgroundColour( row, col ) );
311   OUTPUT:
312     RETVAL
313
314 wxGridCellEditor*
315 wxGrid::GetCellEditor( row, col )
316     int row
317     int col
318
319 bool
320 wxGrid::GetCellOverflow( row, col )
321     int row
322     int col
323
324 wxGridCellRenderer*
325 wxGrid::GetCellRenderer( row, col )
326     int row
327     int col
328
329 wxFont*
330 wxGrid::GetCellFont( row, col )
331     int row
332     int col
333   CODE:
334     RETVAL = new wxFont( THIS->GetCellFont( row, col ) );
335   OUTPUT:
336     RETVAL
337
338 wxColour*
339 wxGrid::GetCellTextColour( row, col )
340     int row
341     int col
342   CODE:
343     RETVAL = new wxColour( THIS->GetCellTextColour( row, col ) );
344   OUTPUT:
345     RETVAL
346
347 wxString
348 wxGrid::GetCellValueXY( row, col )
349     int row
350     int col
351   CODE:
352     RETVAL = THIS->GetCellValue( row, col );
353   OUTPUT:
354     RETVAL
355
356 wxString
357 wxGrid::GetCellValueCo( coord )
358     wxGridCellCoords* coord
359   CODE:
360     RETVAL = THIS->GetCellValue( *coord );
361   OUTPUT:
362     RETVAL
363
364 void
365 wxGrid::GetColLabelAlignment()
366   PREINIT:
367     int x, y;
368   PPCODE:
369     THIS->GetColLabelAlignment( &x, &y );
370     EXTEND( SP, 2 );
371     PUSHs( sv_2mortal( newSViv( x ) ) );
372     PUSHs( sv_2mortal( newSViv( y ) ) );
373
374 int
375 wxGrid::GetColLabelSize()
376
377 wxString
378 wxGrid::GetColLabelValue( col )
379     int col
380
381 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
382
383 int
384 wxGrid::GetColPos( colId )
385     int colId
386
387 #endif
388
389 int
390 wxGrid::GetColSize( col )
391     int col
392
393 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
394
395 int
396 wxGrid::GetColAt( colPos )
397     int colPos
398
399 #endif
400
401 void
402 wxGrid::GetDefaultCellAlignment()
403   PREINIT:
404     int x, y;
405   PPCODE:
406     THIS->GetDefaultCellAlignment( &x, &y );
407     EXTEND( SP, 2 );
408     PUSHs( sv_2mortal( newSViv( x ) ) );
409     PUSHs( sv_2mortal( newSViv( y ) ) );
410
411 wxColour*
412 wxGrid::GetDefaultCellBackgroundColour()
413   CODE:
414     RETVAL = new wxColour( THIS->GetDefaultCellBackgroundColour() );
415   OUTPUT:
416     RETVAL
417
418 wxFont*
419 wxGrid::GetDefaultCellFont()
420   CODE:
421     RETVAL = new wxFont( THIS->GetDefaultCellFont() );
422   OUTPUT:
423     RETVAL
424
425 bool
426 wxGrid::GetDefaultCellOverflow( )
427
428 wxColour*
429 wxGrid::GetDefaultCellTextColour()
430   CODE:
431     RETVAL = new wxColour( THIS->GetDefaultCellTextColour() );
432   OUTPUT:
433     RETVAL
434
435 int
436 wxGrid::GetDefaultColLabelSize()
437
438 int
439 wxGrid::GetDefaultColSize()
440
441 int
442 wxGrid::GetColMinimalAcceptableWidth()
443
444 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
445
446 wxGridCellAttr*
447 wxGrid::GetOrCreateCellAttr( row, col )
448     int row
449     int col
450
451 #endif
452
453 int
454 wxGrid::GetRowMinimalAcceptableHeight()
455
456 wxGridCellEditor*
457 wxGrid::GetDefaultEditor()
458
459 wxGridCellEditor*
460 wxGrid::GetDefaultEditorForType( typeName )
461     wxString typeName
462
463 wxGridCellEditor*
464 wxGrid::GetDefaultEditorForCellCo( coords )
465     wxGridCellCoords* coords
466   CODE:
467     RETVAL = THIS->GetDefaultEditorForCell( *coords );
468   OUTPUT:
469     RETVAL
470
471 wxGridCellEditor*
472 wxGrid::GetDefaultEditorForCellXY( x, y )
473     int x
474     int y
475   CODE:
476     RETVAL = THIS->GetDefaultEditorForCell( x, y );
477   OUTPUT:
478     RETVAL
479
480 wxGridCellRenderer*
481 wxGrid::GetDefaultRenderer()
482
483 wxGridCellRenderer*
484 wxGrid::GetDefaultRendererForType( typeName )
485     wxString typeName
486
487 ##wxGridCellRenderer*
488 ##wxGrid::GetDefaultRendererForCellCo( coords )
489 ##    wxGridCellCoords* coords
490 ##  CODE:
491 ##    RETVAL = THIS->GetDefaultRendererForCell( *coords );
492 ##  OUTPUT:
493 ##    RETVAL
494
495 wxGridCellRenderer*
496 wxGrid::GetDefaultRendererForCell( x, y )
497     int x
498     int y
499   CODE:
500     RETVAL = THIS->GetDefaultRendererForCell( x, y );
501   OUTPUT:
502     RETVAL
503
504 void
505 wxGrid::GetRowLabelAlignment()
506   PREINIT:
507     int x, y;
508   PPCODE:
509     THIS->GetRowLabelAlignment( &x, &y );
510     EXTEND( SP, 2 );
511     PUSHs( sv_2mortal( newSViv( x ) ) );
512     PUSHs( sv_2mortal( newSViv( y ) ) );
513
514 int
515 wxGrid::GetDefaultRowLabelSize()
516
517 int
518 wxGrid::GetDefaultRowSize()
519
520 int
521 wxGrid::GetGridCursorCol()
522
523 int
524 wxGrid::GetGridCursorRow()
525
526 wxColour*
527 wxGrid::GetGridLineColour()
528   CODE:
529     RETVAL = new wxColour( THIS->GetGridLineColour() );
530   OUTPUT:
531     RETVAL
532
533 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
534
535 wxPen*
536 wxGrid::GetDefaultGridLinePen()
537   CODE:
538     RETVAL = new wxPen( THIS->GetDefaultGridLinePen() );
539   OUTPUT: RETVAL
540
541 wxPen*
542 wxGrid::GetColGridLinePen( col )
543     int col
544   CODE:
545     RETVAL = new wxPen( THIS->GetColGridLinePen( col ) );
546   OUTPUT: RETVAL
547
548 wxPen*
549 wxGrid::GetRowGridLinePen( row )
550     int row
551   CODE:
552     RETVAL = new wxPen( THIS->GetRowGridLinePen( row ) );
553   OUTPUT: RETVAL
554
555 #endif
556
557 wxGridTableBase*
558 wxGrid::GetTable()
559
560 bool
561 wxGrid::GridLinesEnabled()
562
563 wxColour*
564 wxGrid::GetLabelBackgroundColour()
565   CODE:
566     RETVAL = new wxColour( THIS->GetLabelBackgroundColour() );
567   OUTPUT:
568     RETVAL
569
570 wxFont*
571 wxGrid::GetLabelFont()
572   CODE:
573     RETVAL = new wxFont( THIS->GetLabelFont() );
574   OUTPUT:
575     RETVAL
576
577 wxColour*
578 wxGrid::GetLabelTextColour()
579   CODE:
580     RETVAL = new wxColour( THIS->GetLabelTextColour() );
581   OUTPUT:
582     RETVAL
583
584 int
585 wxGrid::GetNumberCols()
586
587 int
588 wxGrid::GetNumberRows()
589
590 int
591 wxGrid::GetRowLabelSize()
592
593 wxString
594 wxGrid::GetRowLabelValue( row )
595     int row
596
597 int
598 wxGrid::GetRowSize( row )
599     int row
600
601 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
602
603 int
604 wxGrid::GetScrollLineX()
605
606 int
607 wxGrid::GetScrollLineY()
608
609 void
610 wxGrid::SetScrollLineX( x )
611     int x
612
613 void
614 wxGrid::SetScrollLineY( y )
615     int y
616
617 #endif
618
619 void
620 wxGrid::GetSelectedCells()
621   PPCODE:
622     PUTBACK;
623     wxPli_nonobjarray_push<wxGridCellCoordsArray, wxGridCellCoords>
624         ( aTHX_ THIS->GetSelectedCells(), "Wx::GridCellCoords" );
625     SPAGAIN;
626
627 void
628 wxGrid::GetSelectionBlockTopLeft()
629   PPCODE:
630     PUTBACK;
631     wxPli_nonobjarray_push<wxGridCellCoordsArray, wxGridCellCoords>
632         ( aTHX_ THIS->GetSelectionBlockTopLeft(), "Wx::GridCellCoords" );
633     SPAGAIN;
634
635 void
636 wxGrid::GetSelectionBlockBottomRight()
637   PPCODE:
638     PUTBACK;
639     wxPli_nonobjarray_push<wxGridCellCoordsArray, wxGridCellCoords>
640         ( aTHX_ THIS->GetSelectionBlockBottomRight(), "Wx::GridCellCoords" );
641     SPAGAIN;
642
643 void
644 wxGrid::GetSelectedCols()
645   PPCODE:
646     PUTBACK;
647     wxPli_intarray_push( aTHX_ THIS->GetSelectedCols() );
648     SPAGAIN;
649
650 void
651 wxGrid::GetSelectedRows()
652   PPCODE:
653     PUTBACK;
654     wxPli_intarray_push( aTHX_ THIS->GetSelectedRows() );
655     SPAGAIN;
656
657 wxColour*
658 wxGrid::GetSelectionBackground()
659   CODE:
660     RETVAL = new wxColour( THIS->GetSelectionBackground() );
661   OUTPUT:
662     RETVAL
663
664 wxColour*
665 wxGrid::GetSelectionForeground()
666   CODE:
667     RETVAL = new wxColour( THIS->GetSelectionForeground() );
668   OUTPUT:
669     RETVAL
670
671 wxGridSelectionModes
672 wxGrid::GetSelectionMode()
673
674 int
675 wxGrid::GetViewWidth()
676
677 void
678 wxGrid::HideCellEditControl()
679
680 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
681
682 void
683 wxGrid::HideRowLabels()
684
685 void
686 wxGrid::HideColLabels()
687
688 #endif
689
690 bool
691 wxGrid::InsertCols( pos = 0, numCols = 1, updateLabels = true )
692     int pos
693     int numCols
694     bool updateLabels
695
696 bool
697 wxGrid::InsertRows( pos = 0, numRows = 1, updateLabels = true )
698     int pos
699     int numRows
700     bool updateLabels
701
702 bool
703 wxGrid::IsCellEditControlEnabled()
704
705 bool
706 wxGrid::IsCurrentCellReadOnly()
707
708 bool
709 wxGrid::IsEditable()
710
711 bool
712 wxGrid::IsInSelectionXY( row, col )
713     int row
714     int col
715   CODE:
716     RETVAL = THIS->IsInSelection( row, col );
717   OUTPUT:
718     RETVAL
719
720 bool
721 wxGrid::IsInSelectionCo( coords )
722     wxGridCellCoords* coords
723   CODE:
724     RETVAL = THIS->IsInSelection( *coords );
725   OUTPUT:
726     RETVAL
727
728 bool
729 wxGrid::IsReadOnly( row, col )
730     int row
731     int col
732
733 bool
734 wxGrid::IsSelection()
735
736 bool
737 wxGrid::IsVisibleXY( row, col, wholeCellVisible = true )
738     int row
739     int col
740     bool wholeCellVisible
741   CODE:
742     RETVAL = THIS->IsVisible( row, col, wholeCellVisible );
743   OUTPUT:
744     RETVAL
745
746 bool
747 wxGrid::IsVisibleCo( coords, wholeCellVisible = true )
748     wxGridCellCoords* coords
749     bool wholeCellVisible
750   CODE:
751     RETVAL = THIS->IsVisible( *coords, wholeCellVisible );
752   OUTPUT:
753     RETVAL
754
755 void
756 wxGrid::MakeCellVisibleXY( row, col )
757     int row
758     int col
759   CODE:
760     THIS->MakeCellVisible( row, col );
761
762 void
763 wxGrid::MakeCellVisibleCo( coords )
764     wxGridCellCoords* coords
765   CODE:
766     THIS->MakeCellVisible( *coords );
767
768 bool
769 wxGrid::MoveCursorDown( expandSelection )
770     bool expandSelection
771
772 bool
773 wxGrid::MoveCursorLeft( expandSelection )
774     bool expandSelection
775
776 bool
777 wxGrid::MoveCursorRight( expandSelection )
778     bool expandSelection
779
780 bool
781 wxGrid::MoveCursorUp( expandSelection )
782     bool expandSelection
783
784 bool
785 wxGrid::MoveCursorDownBlock( expandSelection )
786     bool expandSelection
787
788 bool
789 wxGrid::MoveCursorLeftBlock( expandSelection )
790     bool expandSelection
791
792 bool
793 wxGrid::MoveCursorRightBlock( expandSelection )
794     bool expandSelection
795
796 bool
797 wxGrid::MoveCursorUpBlock( expandSelection )
798     bool expandSelection
799
800 bool
801 wxGrid::MovePageDown()
802
803 bool
804 wxGrid::MovePageUp()
805
806 bool
807 wxGrid::ProcessTableMessage( msg )
808     wxGridTableMessage* msg
809   C_ARGS: *msg
810
811 void
812 wxGrid::RegisterDataType( typeName, renderer, editor )
813     wxString typeName
814     wxGridCellRenderer* renderer
815     wxGridCellEditor* editor
816   CODE:
817     renderer->IncRef();
818     editor->IncRef();
819     THIS->RegisterDataType( typeName, renderer, editor );
820
821 void
822 wxGrid::SaveEditControlValue()
823
824 void
825 wxGrid::SelectAll()
826
827 void
828 wxGrid::SelectBlockXYWH( topRow, leftCol, bottomRow, rightCol, addToSelected = false )
829     int topRow
830     int leftCol
831     int bottomRow
832     int rightCol
833     bool addToSelected
834   CODE:
835     THIS->SelectBlock( topRow, leftCol, bottomRow, rightCol, addToSelected );
836
837 void
838 wxGrid::SelectBlockPP( topLeft, bottomRight, addToSelected = false )
839     wxGridCellCoords* topLeft
840     wxGridCellCoords* bottomRight
841     bool addToSelected
842   CODE:
843     THIS->SelectBlock( *topLeft, *bottomRight, addToSelected );
844
845 void
846 wxGrid::SelectCol( col, addToSelected = false )
847     int col
848     bool addToSelected
849
850 void
851 wxGrid::SelectRow( row, addToSelected = false )
852     int row
853     bool addToSelected
854
855 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
856
857 void
858 wxGrid::SetUseNativeColLabels( native = true )
859     bool native
860
861 #endif
862
863 void
864 wxGrid::SetCellAlignment( row, col, horiz, vert )
865     int row
866     int col
867     int horiz
868     int vert
869
870 void
871 wxGrid::SetCellBackgroundColour( row, col, colour )
872     int row
873     int col
874     wxColour colour
875
876 void
877 wxGrid::SetCellHighlightColour( colour )
878     wxColour* colour
879   C_ARGS: *colour
880
881 void
882 wxGrid::SetCellHighlightPenWidth( width )
883     int width
884
885 void
886 wxGrid::SetCellHighlightROPenWidth( width )
887     int width
888
889 void
890 wxGrid::SetCellEditor( row, col, editor )
891     int row
892     int col
893     wxGridCellEditor* editor
894   CODE:
895     editor->IncRef();
896     THIS->SetCellEditor( row, col, editor );
897
898 void
899 wxGrid::SetCellRenderer( row, col, renderer )
900     int row
901     int col
902     wxGridCellRenderer* renderer
903   CODE:
904     renderer->IncRef();
905     THIS->SetCellRenderer( row, col, renderer );
906
907 void
908 wxGrid::SetCellFont( row, col, font )
909     int row
910     int col
911     wxFont* font
912   CODE:
913     THIS->SetCellFont( row, col, *font );
914
915 void
916 wxGrid::SetCellTextColour( row, col, colour )
917     int row
918     int col
919     wxColour colour
920
921 void
922 wxGrid::SetCellSize( row, col, rows, cols )
923     int row
924     int col
925     int rows
926     int cols
927
928 void
929 wxGrid::SetCellOverflow( row, col, oflo )
930     int row
931     int col
932     bool oflo
933
934 void
935 wxGrid::SetCellValueXY( row, col, s )
936     int row
937     int col
938     wxString s
939   CODE:
940     THIS->SetCellValue( row, col, s );
941
942 void
943 wxGrid::SetCellValueCo( coords, s )
944     wxGridCellCoords* coords
945     wxString s
946   CODE:
947     THIS->SetCellValue( *coords, s );
948
949 void
950 wxGrid::SetDefaultCellAlignment( horiz, vert )
951     int horiz
952     int vert
953
954 void
955 wxGrid::SetDefaultCellBackgroundColour( colour )
956     wxColour colour
957
958 void
959 wxGrid::SetDefaultCellFont( font )
960     wxFont* font
961   CODE:
962     THIS->SetDefaultCellFont( *font );
963
964 void
965 wxGrid::SetDefaultCellOverflow( oflo )
966     bool oflo
967
968 void
969 wxGrid::SetDefaultCellTextColour( colour )
970     wxColour colour
971
972 void
973 wxGrid::SetDefaultColSize( width, resizeExistingCols = false )
974     int width
975     bool resizeExistingCols
976
977 void
978 wxGrid::SetDefaultEditor( editor )
979     wxGridCellEditor* editor
980   CODE:
981     editor->IncRef();
982     THIS->SetDefaultEditor( editor );
983
984 void
985 wxGrid::SetDefaultRenderer( renderer )
986     wxGridCellRenderer* renderer
987   CODE:
988     renderer->IncRef();
989     THIS->SetDefaultRenderer( renderer );
990
991 void
992 wxGrid::SetDefaultRowSize( height, resizeExistingCols = false )
993     int height
994     bool resizeExistingCols
995
996 void
997 wxGrid::SetColAttr( col, attr )
998     int col
999     wxGridCellAttr* attr
1000   CODE:
1001     attr->IncRef();
1002     THIS->SetColAttr( col, attr );
1003
1004 void
1005 wxGrid::SetColFormatBool( col )
1006     int col
1007
1008 void
1009 wxGrid::SetColFormatNumber( col )
1010     int col
1011
1012 void
1013 wxGrid::SetColFormatFloat( col, width = -1, precision = -1 )
1014     int col
1015     int width
1016     int precision
1017
1018 void
1019 wxGrid::SetColFormatCustom( col, typeName )
1020     int col
1021     wxString typeName
1022
1023 void
1024 wxGrid::SetColLabelAlignment( horiz, vert )
1025     int horiz
1026     int vert
1027
1028 void
1029 wxGrid::SetColLabelSize( height )
1030     int height
1031
1032 void
1033 wxGrid::SetColLabelValue( col, value )
1034     int col
1035     wxString value
1036
1037 void
1038 wxGrid::SetColMinimalAcceptableWidth( int width )
1039
1040 void
1041 wxGrid::SetRowMinimalAcceptableHeight( int width )
1042
1043 void
1044 wxGrid::SetColMinimalWidth( col, width )
1045     int col
1046     int width
1047
1048 void
1049 wxGrid::SetColSize( col, height )
1050     int col
1051     int height
1052
1053 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1054
1055 void
1056 wxGrid::SetColPos( col, pos )
1057     int col
1058     int pos
1059
1060 #endif
1061
1062 void
1063 wxGrid::SetGridCursor( row, col )
1064     int row
1065     int col
1066
1067 void
1068 wxGrid::SetGridLineColour( colour )
1069     wxColour colour
1070
1071 void
1072 wxGrid::SetLabelBackgroundColour( colour )
1073     wxColour colour
1074
1075 void
1076 wxGrid::SetLabelFont( font )
1077     wxFont* font
1078   CODE:
1079     THIS->SetLabelFont( *font );
1080
1081 void
1082 wxGrid::SetLabelTextColour( colour )
1083     wxColour colour
1084
1085 void
1086 wxGrid::SetMargins( extraWidth, extraHeight )
1087     int extraWidth
1088     int extraHeight
1089
1090 void
1091 wxGrid::SetReadOnly( row, col, isReadOnly = true )
1092     int row
1093     int col
1094     bool isReadOnly
1095
1096 void
1097 wxGrid::SetRowAttr( row, attr )
1098     int row
1099     wxGridCellAttr* attr
1100   CODE:
1101     attr->IncRef();
1102     THIS->SetRowAttr( row, attr );
1103
1104 void
1105 wxGrid::SetRowLabelAlignment( horiz, vert )
1106     int horiz
1107     int vert
1108
1109 void
1110 wxGrid::SetRowLabelSize( width )
1111     int width
1112
1113 void
1114 wxGrid::SetRowLabelValue( row, value )
1115     int row
1116     wxString value
1117
1118 void
1119 wxGrid::SetRowMinimalHeight( row, height )
1120     int row
1121     int height
1122
1123 void
1124 wxGrid::SetRowSize( row, height )
1125     int row
1126     int height
1127
1128 void
1129 wxGrid::SetSelectionBackground( colour )
1130     wxColour colour
1131
1132 void
1133 wxGrid::SetSelectionForeground( colour )
1134     wxColour colour
1135
1136 void
1137 wxGrid::SetSelectionMode( selmode )
1138     wxGridSelectionModes selmode
1139
1140 void
1141 wxGrid::SetTable( table, selMode = wxGrid::wxGridSelectCells )
1142     wxGridTableBase* table
1143     wxGridSelectionModes selMode
1144
1145 void
1146 wxGrid::ShowCellEditControl()
1147
1148 int
1149 wxGrid::XToCol( x )
1150     int x
1151
1152 int
1153 wxGrid::XToEdgeOfCol( x )
1154     int x
1155
1156 int
1157 wxGrid::YToRow( y )
1158     int y
1159
1160 int
1161 wxGrid::YToEdgeOfRow( y )
1162     int y
1163
1164 wxWindow*
1165 wxGrid::GetGridWindow()
1166
1167 wxWindow*
1168 wxGrid::GetGridRowLabelWindow()
1169
1170 wxWindow*
1171 wxGrid::GetGridColLabelWindow()