Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / ext / grid / Grid.c
1 /*
2  * This file was generated automatically by ExtUtils::ParseXS version 2.2202 from the
3  * contents of Grid.xs. Do not edit this file, edit Grid.xs instead.
4  *
5  *      ANY CHANGES MADE HERE WILL BE LOST! 
6  *
7  */
8
9 /////////////////////////////////////////////////////////////////////////////
10 // Name:        ext/grid/Grid.xs
11 // Purpose:     XS for Wx::Grid
12 // Author:      Mattia Barbon
13 // Modified by:
14 // Created:     04/12/2001
15 // RCS-ID:      $Id: Grid.xs 2610 2009-09-20 13:28:54Z mbarbon $
16 // Copyright:   (c) 2001-2004, 2006-2009 Mattia Barbon
17 // Licence:     This program is free software; you can redistribute it and/or
18 //              modify it under the same terms as Perl itself
19 /////////////////////////////////////////////////////////////////////////////
20
21 #define PERL_NO_GET_CONTEXT
22
23 #include "cpp/wxapi.h"
24
25 #undef THIS
26
27 #include <wx/control.h>
28 #include <wx/grid.h>
29 #include <wx/generic/gridctrl.h>
30
31 typedef wxGrid::wxGridSelectionModes wxGridSelectionModes;
32 typedef wxGridCellAttr::wxAttrKind wxAttrKind;
33
34 // event macros
35 #define SEVT( NAME, ARGS )    wxPli_StdEvent( NAME, ARGS )
36 #define EVT( NAME, ARGS, ID ) wxPli_Event( NAME, ARGS, ID )
37
38 // !package: Wx::Event
39 // !tag:
40 // !parser: sub { $_[0] =~ m<^\s*S?EVT\(\s*(\w+)\s*\,> }
41
42 static wxPliEventDescription evts[] =
43 {
44     EVT( EVT_GRID_CMD_CELL_LEFT_CLICK, 3, wxEVT_GRID_CELL_LEFT_CLICK )
45     EVT( EVT_GRID_CMD_CELL_RIGHT_CLICK, 3, wxEVT_GRID_CELL_RIGHT_CLICK )
46     EVT( EVT_GRID_CMD_CELL_LEFT_DCLICK, 3, wxEVT_GRID_CELL_LEFT_DCLICK )
47     EVT( EVT_GRID_CMD_CELL_RIGHT_DCLICK, 3, wxEVT_GRID_CELL_RIGHT_DCLICK )
48     EVT( EVT_GRID_CMD_LABEL_LEFT_CLICK, 3, wxEVT_GRID_LABEL_LEFT_CLICK )
49     EVT( EVT_GRID_CMD_LABEL_RIGHT_CLICK, 3, wxEVT_GRID_LABEL_RIGHT_CLICK )
50     EVT( EVT_GRID_CMD_LABEL_LEFT_DCLICK, 3, wxEVT_GRID_LABEL_LEFT_DCLICK )
51     EVT( EVT_GRID_CMD_LABEL_RIGHT_DCLICK, 3, wxEVT_GRID_LABEL_RIGHT_DCLICK )
52     EVT( EVT_GRID_CMD_ROW_SIZE, 3, wxEVT_GRID_ROW_SIZE )
53     EVT( EVT_GRID_CMD_COL_SIZE, 3, wxEVT_GRID_COL_SIZE )
54     EVT( EVT_GRID_CMD_RANGE_SELECT, 3, wxEVT_GRID_RANGE_SELECT )
55 #if WXPERL_W_VERSION_LT( 2, 9, 0 )
56     EVT( EVT_GRID_CMD_CELL_CHANGE, 3, wxEVT_GRID_CELL_CHANGE )
57 #endif
58     EVT( EVT_GRID_CMD_SELECT_CELL, 3, wxEVT_GRID_SELECT_CELL )
59     EVT( EVT_GRID_CMD_EDITOR_SHOWN, 3, wxEVT_GRID_EDITOR_SHOWN )
60     EVT( EVT_GRID_CMD_EDITOR_HIDDEN, 3, wxEVT_GRID_EDITOR_HIDDEN )
61     EVT( EVT_GRID_CMD_EDITOR_CREATED, 3, wxEVT_GRID_EDITOR_CREATED )
62     EVT( EVT_GRID_CMD_CELL_BEGIN_DRAG, 3, wxEVT_GRID_CELL_BEGIN_DRAG )
63     SEVT( EVT_GRID_CELL_LEFT_CLICK, 2 )
64     SEVT( EVT_GRID_CELL_RIGHT_CLICK, 2 )
65     SEVT( EVT_GRID_CELL_LEFT_DCLICK, 2 )
66     SEVT( EVT_GRID_CELL_RIGHT_DCLICK, 2 )
67     SEVT( EVT_GRID_LABEL_LEFT_CLICK, 2 )
68     SEVT( EVT_GRID_LABEL_RIGHT_CLICK, 2 )
69     SEVT( EVT_GRID_LABEL_LEFT_DCLICK, 2 )
70     SEVT( EVT_GRID_LABEL_RIGHT_DCLICK, 2 )
71     SEVT( EVT_GRID_ROW_SIZE, 2 )
72     SEVT( EVT_GRID_COL_SIZE, 2 )
73     SEVT( EVT_GRID_RANGE_SELECT, 2 )
74 #if WXPERL_W_VERSION_LT( 2, 9, 0 )
75     SEVT( EVT_GRID_CELL_CHANGE, 2 )
76 #endif
77     SEVT( EVT_GRID_SELECT_CELL, 2 )
78     SEVT( EVT_GRID_EDITOR_SHOWN, 2 )
79     SEVT( EVT_GRID_EDITOR_HIDDEN, 2 )
80     SEVT( EVT_GRID_EDITOR_CREATED, 2 )
81     SEVT( EVT_GRID_CELL_BEGIN_DRAG, 2 )
82     { 0, 0, 0 }
83 };
84
85 #ifndef PERL_UNUSED_VAR
86 #  define PERL_UNUSED_VAR(var) if (0) var = var
87 #endif
88
89 #ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE
90 #define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params)
91
92 /* prototype to pass -Wmissing-prototypes */
93 STATIC void
94 S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params);
95
96 STATIC void
97 S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params)
98 {
99     const GV *const gv = CvGV(cv);
100
101     PERL_ARGS_ASSERT_CROAK_XS_USAGE;
102
103     if (gv) {
104         const char *const gvname = GvNAME(gv);
105         const HV *const stash = GvSTASH(gv);
106         const char *const hvname = stash ? HvNAME(stash) : NULL;
107
108         if (hvname)
109             Perl_croak(aTHX_ "Usage: %s::%s(%s)", hvname, gvname, params);
110         else
111             Perl_croak(aTHX_ "Usage: %s(%s)", gvname, params);
112     } else {
113         /* Pants. I don't think that it should be possible to get here. */
114         Perl_croak(aTHX_ "Usage: CODE(0x%"UVxf")(%s)", PTR2UV(cv), params);
115     }
116 }
117 #undef  PERL_ARGS_ASSERT_CROAK_XS_USAGE
118
119 #ifdef PERL_IMPLICIT_CONTEXT
120 #define croak_xs_usage(a,b)     S_croak_xs_usage(aTHX_ a,b)
121 #else
122 #define croak_xs_usage          S_croak_xs_usage
123 #endif
124
125 #endif
126
127 /* NOTE: the prototype of newXSproto() is different in versions of perls,
128  * so we define a portable version of newXSproto()
129  */
130 #ifdef newXS_flags
131 #define newXSproto_portable(name, c_impl, file, proto) newXS_flags(name, c_impl, file, proto, 0)
132 #else
133 #define newXSproto_portable(name, c_impl, file, proto) (PL_Sv=(SV*)newXS(name, c_impl, file), sv_setpv(PL_Sv, proto), (CV*)PL_Sv)
134 #endif /* !defined(newXS_flags) */
135
136
137 /* INCLUDE:  Including 'XS/Grid.xs' from 'Grid.xs' */
138
139
140 /* INCLUDE:  Including 'XS/GridCellAttr.xs' from 'XS/Grid.xs' */
141
142
143 /* INCLUDE:  Including 'XS/GridEvent.xs' from 'XS/GridCellAttr.xs' */
144
145
146 /* INCLUDE:  Including 'XS/GridCellRenderer.xs' from 'XS/GridEvent.xs' */
147
148
149 /* INCLUDE:  Including 'XS/GridCellEditor.xs' from 'XS/GridCellRenderer.xs' */
150
151
152 XS(XS_Wx__GridCellEditor_CLONE); /* prototype to pass -Wmissing-prototypes */
153 XS(XS_Wx__GridCellEditor_CLONE)
154 {
155 #ifdef dVAR
156     dVAR; dXSARGS;
157 #else
158     dXSARGS;
159 #endif
160     if (items != 1)
161        croak_xs_usage(cv,  "CLASS");
162     {
163         char *  CLASS = (char *)SvPV_nolen(ST(0));
164     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
165     }
166     XSRETURN_EMPTY;
167 }
168
169
170 XS(XS_Wx__GridCellEditor_DESTROY); /* prototype to pass -Wmissing-prototypes */
171 XS(XS_Wx__GridCellEditor_DESTROY)
172 {
173 #ifdef dVAR
174     dVAR; dXSARGS;
175 #else
176     dXSARGS;
177 #endif
178     if (items != 1)
179        croak_xs_usage(cv,  "THIS");
180     {
181         wxGridCellEditor *    THIS = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellEditor" );
182     wxPli_thread_sv_unregister( aTHX_ wxPli_get_class( aTHX_ ST(0) ),
183                                 SvRV( ST(0) ), ST(0) );
184     if( THIS )
185         THIS->DecRef();
186     }
187     XSRETURN_EMPTY;
188 }
189
190
191 XS(XS_Wx__GridCellEditor_IsCreated); /* prototype to pass -Wmissing-prototypes */
192 XS(XS_Wx__GridCellEditor_IsCreated)
193 {
194 #ifdef dVAR
195     dVAR; dXSARGS;
196 #else
197     dXSARGS;
198 #endif
199     if (items != 1)
200        croak_xs_usage(cv,  "THIS");
201     {
202         wxGridCellEditor *    THIS = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellEditor" );
203         bool    RETVAL;
204
205         RETVAL = THIS->IsCreated();
206         ST(0) = boolSV(RETVAL);
207         sv_2mortal(ST(0));
208     }
209     XSRETURN(1);
210 }
211
212
213 XS(XS_Wx__GridCellEditor_GetControl); /* prototype to pass -Wmissing-prototypes */
214 XS(XS_Wx__GridCellEditor_GetControl)
215 {
216 #ifdef dVAR
217     dVAR; dXSARGS;
218 #else
219     dXSARGS;
220 #endif
221     if (items != 1)
222        croak_xs_usage(cv,  "THIS");
223     {
224         wxGridCellEditor *    THIS = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellEditor" );
225         wxControl *     RETVAL;
226
227         RETVAL = THIS->GetControl();
228         ST(0) = sv_newmortal();
229     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
230
231     }
232     XSRETURN(1);
233 }
234
235
236 XS(XS_Wx__GridCellEditor_SetControl); /* prototype to pass -Wmissing-prototypes */
237 XS(XS_Wx__GridCellEditor_SetControl)
238 {
239 #ifdef dVAR
240     dVAR; dXSARGS;
241 #else
242     dXSARGS;
243 #endif
244     if (items != 2)
245        croak_xs_usage(cv,  "THIS, control");
246     {
247         wxControl*    control = (wxControl *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Control" );
248         wxGridCellEditor *    THIS = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellEditor" );
249
250         THIS->SetControl(control);
251     }
252     XSRETURN_EMPTY;
253 }
254
255
256 XS(XS_Wx__GridCellEditor_SetSize); /* prototype to pass -Wmissing-prototypes */
257 XS(XS_Wx__GridCellEditor_SetSize)
258 {
259 #ifdef dVAR
260     dVAR; dXSARGS;
261 #else
262     dXSARGS;
263 #endif
264     if (items != 2)
265        croak_xs_usage(cv,  "THIS, rect");
266     {
267         wxRect*    rect = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
268         wxGridCellEditor *    THIS = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellEditor" );
269     THIS->SetSize( *rect );
270     }
271     XSRETURN_EMPTY;
272 }
273
274
275 XS(XS_Wx__GridCellEditor_Show); /* prototype to pass -Wmissing-prototypes */
276 XS(XS_Wx__GridCellEditor_Show)
277 {
278 #ifdef dVAR
279     dVAR; dXSARGS;
280 #else
281     dXSARGS;
282 #endif
283     if (items != 3)
284        croak_xs_usage(cv,  "THIS, show, attr");
285     {
286         bool    show = (bool)SvTRUE(ST(1));
287         wxGridCellAttr*    attr = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::GridCellAttr" );
288         wxGridCellEditor *    THIS = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellEditor" );
289
290         THIS->Show(show, attr);
291     }
292     XSRETURN_EMPTY;
293 }
294
295
296 XS(XS_Wx__GridCellEditor_PaintBackground); /* prototype to pass -Wmissing-prototypes */
297 XS(XS_Wx__GridCellEditor_PaintBackground)
298 {
299 #ifdef dVAR
300     dVAR; dXSARGS;
301 #else
302     dXSARGS;
303 #endif
304     if (items != 3)
305        croak_xs_usage(cv,  "THIS, rectCell, attr");
306     {
307         wxRect*    rectCell = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
308         wxGridCellAttr*    attr = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::GridCellAttr" );
309         wxGridCellEditor *    THIS = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellEditor" );
310     THIS->PaintBackground( *rectCell, attr );
311     }
312     XSRETURN_EMPTY;
313 }
314
315
316 XS(XS_Wx__GridCellEditor_BeginEdit); /* prototype to pass -Wmissing-prototypes */
317 XS(XS_Wx__GridCellEditor_BeginEdit)
318 {
319 #ifdef dVAR
320     dVAR; dXSARGS;
321 #else
322     dXSARGS;
323 #endif
324     if (items != 4)
325        croak_xs_usage(cv,  "THIS, row, col, grid");
326     {
327         int     row = (int)SvIV(ST(1));
328         int     col = (int)SvIV(ST(2));
329         wxGrid*    grid = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Grid" );
330         wxGridCellEditor *    THIS = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellEditor" );
331
332         THIS->BeginEdit(row, col, grid);
333     }
334     XSRETURN_EMPTY;
335 }
336
337 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
338 #define XSubPPtmpAAAA 1
339
340
341 XS(XS_Wx__GridCellEditor_EndEdit); /* prototype to pass -Wmissing-prototypes */
342 XS(XS_Wx__GridCellEditor_EndEdit)
343 {
344 #ifdef dVAR
345     dVAR; dXSARGS;
346 #else
347     dXSARGS;
348 #endif
349     if (items != 6)
350        croak_xs_usage(cv,  "THIS, row, col, grid, oldval, newval");
351     {
352         int     row = (int)SvIV(ST(1));
353         int     col = (int)SvIV(ST(2));
354         wxGrid*    grid = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Grid" );
355         wxString        oldval;
356         wxString        newval;
357         wxGridCellEditor *    THIS = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellEditor" );
358         bool    RETVAL;
359
360     WXSTRING_INPUT( oldval, wxString, ST(4) );
361
362     WXSTRING_INPUT( newval, wxString, ST(5) );
363
364         RETVAL = THIS->EndEdit(row, col, grid, oldval, &newval);
365         ST(0) = boolSV(RETVAL);
366         sv_2mortal(ST(0));
367     }
368     XSRETURN(1);
369 }
370
371
372 XS(XS_Wx__GridCellEditor_ApplyEdit); /* prototype to pass -Wmissing-prototypes */
373 XS(XS_Wx__GridCellEditor_ApplyEdit)
374 {
375 #ifdef dVAR
376     dVAR; dXSARGS;
377 #else
378     dXSARGS;
379 #endif
380     if (items != 4)
381        croak_xs_usage(cv,  "THIS, row, col, grid");
382     {
383         int     row = (int)SvIV(ST(1));
384         int     col = (int)SvIV(ST(2));
385         wxGrid*    grid = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Grid" );
386         wxGridCellEditor *    THIS = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellEditor" );
387
388         THIS->ApplyEdit(row, col, grid);
389     }
390     XSRETURN_EMPTY;
391 }
392
393 #else
394 #define XSubPPtmpAAAB 1
395
396
397 XS(XS_Wx__GridCellEditor_EndEdit); /* prototype to pass -Wmissing-prototypes */
398 XS(XS_Wx__GridCellEditor_EndEdit)
399 {
400 #ifdef dVAR
401     dVAR; dXSARGS;
402 #else
403     dXSARGS;
404 #endif
405     if (items != 4)
406        croak_xs_usage(cv,  "THIS, row, col, grid");
407     {
408         int     row = (int)SvIV(ST(1));
409         int     col = (int)SvIV(ST(2));
410         wxGrid*    grid = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Grid" );
411         wxGridCellEditor *    THIS = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellEditor" );
412         bool    RETVAL;
413
414         RETVAL = THIS->EndEdit(row, col, grid);
415         ST(0) = boolSV(RETVAL);
416         sv_2mortal(ST(0));
417     }
418     XSRETURN(1);
419 }
420
421 #endif
422
423 XS(XS_Wx__GridCellEditor_Reset); /* prototype to pass -Wmissing-prototypes */
424 XS(XS_Wx__GridCellEditor_Reset)
425 {
426 #ifdef dVAR
427     dVAR; dXSARGS;
428 #else
429     dXSARGS;
430 #endif
431     if (items != 1)
432        croak_xs_usage(cv,  "THIS");
433     {
434         wxGridCellEditor *    THIS = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellEditor" );
435
436         THIS->Reset();
437     }
438     XSRETURN_EMPTY;
439 }
440
441
442 XS(XS_Wx__GridCellEditor_IsAcceptedKey); /* prototype to pass -Wmissing-prototypes */
443 XS(XS_Wx__GridCellEditor_IsAcceptedKey)
444 {
445 #ifdef dVAR
446     dVAR; dXSARGS;
447 #else
448     dXSARGS;
449 #endif
450     if (items != 2)
451        croak_xs_usage(cv,  "THIS, event");
452     {
453         wxKeyEvent*    event = (wxKeyEvent *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::KeyEvent" );
454         wxGridCellEditor *    THIS = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellEditor" );
455         bool    RETVAL;
456     RETVAL = THIS->IsAcceptedKey( *event );
457         ST(0) = boolSV(RETVAL);
458         sv_2mortal(ST(0));
459     }
460     XSRETURN(1);
461 }
462
463
464 XS(XS_Wx__GridCellEditor_StartingKey); /* prototype to pass -Wmissing-prototypes */
465 XS(XS_Wx__GridCellEditor_StartingKey)
466 {
467 #ifdef dVAR
468     dVAR; dXSARGS;
469 #else
470     dXSARGS;
471 #endif
472     if (items != 2)
473        croak_xs_usage(cv,  "THIS, event");
474     {
475         wxKeyEvent*    event = (wxKeyEvent *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::KeyEvent" );
476         wxGridCellEditor *    THIS = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellEditor" );
477     THIS->StartingKey( *event );
478     }
479     XSRETURN_EMPTY;
480 }
481
482
483 XS(XS_Wx__GridCellEditor_StartingClick); /* prototype to pass -Wmissing-prototypes */
484 XS(XS_Wx__GridCellEditor_StartingClick)
485 {
486 #ifdef dVAR
487     dVAR; dXSARGS;
488 #else
489     dXSARGS;
490 #endif
491     if (items != 1)
492        croak_xs_usage(cv,  "THIS");
493     {
494         wxGridCellEditor *    THIS = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellEditor" );
495
496         THIS->StartingClick();
497     }
498     XSRETURN_EMPTY;
499 }
500
501
502 XS(XS_Wx__GridCellEditor_HandleReturn); /* prototype to pass -Wmissing-prototypes */
503 XS(XS_Wx__GridCellEditor_HandleReturn)
504 {
505 #ifdef dVAR
506     dVAR; dXSARGS;
507 #else
508     dXSARGS;
509 #endif
510     if (items != 2)
511        croak_xs_usage(cv,  "THIS, event");
512     {
513         wxKeyEvent*    event = (wxKeyEvent *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::KeyEvent" );
514         wxGridCellEditor *    THIS = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellEditor" );
515     THIS->HandleReturn( *event );
516     }
517     XSRETURN_EMPTY;
518 }
519
520
521 XS(XS_Wx__GridCellEditor_Destroy); /* prototype to pass -Wmissing-prototypes */
522 XS(XS_Wx__GridCellEditor_Destroy)
523 {
524 #ifdef dVAR
525     dVAR; dXSARGS;
526 #else
527     dXSARGS;
528 #endif
529     if (items != 1)
530        croak_xs_usage(cv,  "THIS");
531     {
532         wxGridCellEditor *    THIS = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellEditor" );
533
534         THIS->Destroy();
535     }
536     XSRETURN_EMPTY;
537 }
538
539
540 XS(XS_Wx__GridCellTextEditor_new); /* prototype to pass -Wmissing-prototypes */
541 XS(XS_Wx__GridCellTextEditor_new)
542 {
543 #ifdef dVAR
544     dVAR; dXSARGS;
545 #else
546     dXSARGS;
547 #endif
548     if (items != 1)
549        croak_xs_usage(cv,  "CLASS");
550     {
551         char *  CLASS = (char *)SvPV_nolen(ST(0));
552         wxGridCellTextEditor *  RETVAL;
553
554         RETVAL = new wxGridCellTextEditor();
555         ST(0) = sv_newmortal();
556     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellTextEditor" );
557     wxPli_thread_sv_register( aTHX_ "Wx::GridCellTextEditor", SvRV( ST(0) ), ST(0) );
558
559     }
560     XSRETURN(1);
561 }
562
563
564 XS(XS_Wx__GridCellTextEditor_SetParameters); /* prototype to pass -Wmissing-prototypes */
565 XS(XS_Wx__GridCellTextEditor_SetParameters)
566 {
567 #ifdef dVAR
568     dVAR; dXSARGS;
569 #else
570     dXSARGS;
571 #endif
572     if (items != 2)
573        croak_xs_usage(cv,  "THIS, params");
574     {
575         wxString        params;
576         wxGridCellTextEditor *    THIS = (wxGridCellTextEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellTextEditor" );
577
578     WXSTRING_INPUT( params, wxString, ST(1) );
579
580         THIS->SetParameters(params);
581     }
582     XSRETURN_EMPTY;
583 }
584
585
586 XS(XS_Wx__GridCellAutoWrapStringEditor_new); /* prototype to pass -Wmissing-prototypes */
587 XS(XS_Wx__GridCellAutoWrapStringEditor_new)
588 {
589 #ifdef dVAR
590     dVAR; dXSARGS;
591 #else
592     dXSARGS;
593 #endif
594     if (items != 1)
595        croak_xs_usage(cv,  "CLASS");
596     {
597         char *  CLASS = (char *)SvPV_nolen(ST(0));
598         wxGridCellAutoWrapStringEditor *        RETVAL;
599
600         RETVAL = new wxGridCellAutoWrapStringEditor();
601         ST(0) = sv_newmortal();
602     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellAutoWrapStringEditor" );
603     wxPli_thread_sv_register( aTHX_ "Wx::GridCellAutoWrapStringEditor", SvRV( ST(0) ), ST(0) );
604
605     }
606     XSRETURN(1);
607 }
608
609
610 XS(XS_Wx__GridCellNumberEditor_new); /* prototype to pass -Wmissing-prototypes */
611 XS(XS_Wx__GridCellNumberEditor_new)
612 {
613 #ifdef dVAR
614     dVAR; dXSARGS;
615 #else
616     dXSARGS;
617 #endif
618     if (items < 1 || items > 3)
619        croak_xs_usage(cv,  "CLASS, min = -1, max = -1");
620     {
621         int     min;
622         int     max;
623         char *  CLASS = (char *)SvPV_nolen(ST(0));
624         wxGridCellNumberEditor *        RETVAL;
625
626         if (items < 2)
627             min = -1;
628         else {
629             min = (int)SvIV(ST(1));
630         }
631
632         if (items < 3)
633             max = -1;
634         else {
635             max = (int)SvIV(ST(2));
636         }
637
638         RETVAL = new wxGridCellNumberEditor(min, max);
639         ST(0) = sv_newmortal();
640     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellNumberEditor" );
641     wxPli_thread_sv_register( aTHX_ "Wx::GridCellNumberEditor", SvRV( ST(0) ), ST(0) );
642
643     }
644     XSRETURN(1);
645 }
646
647
648 XS(XS_Wx__GridCellNumberEditor_SetParameters); /* prototype to pass -Wmissing-prototypes */
649 XS(XS_Wx__GridCellNumberEditor_SetParameters)
650 {
651 #ifdef dVAR
652     dVAR; dXSARGS;
653 #else
654     dXSARGS;
655 #endif
656     if (items != 2)
657        croak_xs_usage(cv,  "THIS, params");
658     {
659         wxString        params;
660         wxGridCellNumberEditor *    THIS = (wxGridCellNumberEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellNumberEditor" );
661
662     WXSTRING_INPUT( params, wxString, ST(1) );
663
664         THIS->SetParameters(params);
665     }
666     XSRETURN_EMPTY;
667 }
668
669
670 XS(XS_Wx__GridCellFloatEditor_new); /* prototype to pass -Wmissing-prototypes */
671 XS(XS_Wx__GridCellFloatEditor_new)
672 {
673 #ifdef dVAR
674     dVAR; dXSARGS;
675 #else
676     dXSARGS;
677 #endif
678     if (items < 1 || items > 3)
679        croak_xs_usage(cv,  "CLASS, width = -1, precision = -1");
680     {
681         int     width;
682         int     precision;
683         char *  CLASS = (char *)SvPV_nolen(ST(0));
684         wxGridCellFloatEditor * RETVAL;
685
686         if (items < 2)
687             width = -1;
688         else {
689             width = (int)SvIV(ST(1));
690         }
691
692         if (items < 3)
693             precision = -1;
694         else {
695             precision = (int)SvIV(ST(2));
696         }
697
698         RETVAL = new wxGridCellFloatEditor(width, precision);
699         ST(0) = sv_newmortal();
700     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellFloatEditor" );
701     wxPli_thread_sv_register( aTHX_ "Wx::GridCellFloatEditor", SvRV( ST(0) ), ST(0) );
702
703     }
704     XSRETURN(1);
705 }
706
707
708 XS(XS_Wx__GridCellFloatEditor_SetParameters); /* prototype to pass -Wmissing-prototypes */
709 XS(XS_Wx__GridCellFloatEditor_SetParameters)
710 {
711 #ifdef dVAR
712     dVAR; dXSARGS;
713 #else
714     dXSARGS;
715 #endif
716     if (items != 2)
717        croak_xs_usage(cv,  "THIS, params");
718     {
719         wxString        params;
720         wxGridCellChoiceEditor *    THIS = (wxGridCellChoiceEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellChoiceEditor" );
721
722     WXSTRING_INPUT( params, wxString, ST(1) );
723
724         THIS->SetParameters(params);
725     }
726     XSRETURN_EMPTY;
727 }
728
729
730 XS(XS_Wx__GridCellBoolEditor_new); /* prototype to pass -Wmissing-prototypes */
731 XS(XS_Wx__GridCellBoolEditor_new)
732 {
733 #ifdef dVAR
734     dVAR; dXSARGS;
735 #else
736     dXSARGS;
737 #endif
738     if (items != 1)
739        croak_xs_usage(cv,  "CLASS");
740     {
741         char *  CLASS = (char *)SvPV_nolen(ST(0));
742         wxGridCellBoolEditor *  RETVAL;
743
744         RETVAL = new wxGridCellBoolEditor();
745         ST(0) = sv_newmortal();
746     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellBoolEditor" );
747     wxPli_thread_sv_register( aTHX_ "Wx::GridCellBoolEditor", SvRV( ST(0) ), ST(0) );
748
749     }
750     XSRETURN(1);
751 }
752
753 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
754 #define XSubPPtmpAAAC 1
755
756
757 XS(XS_Wx__GridCellBoolEditor_IsTrueValue); /* prototype to pass -Wmissing-prototypes */
758 XS(XS_Wx__GridCellBoolEditor_IsTrueValue)
759 {
760 #ifdef dVAR
761     dVAR; dXSARGS;
762 #else
763     dXSARGS;
764 #endif
765     if (items != 1)
766        croak_xs_usage(cv,  "value");
767     {
768         wxString        value;
769         bool    RETVAL;
770
771     WXSTRING_INPUT( value, wxString, ST(0) );
772     RETVAL = wxGridCellBoolEditor::IsTrueValue( value );
773         ST(0) = boolSV(RETVAL);
774         sv_2mortal(ST(0));
775     }
776     XSRETURN(1);
777 }
778
779
780 XS(XS_Wx__GridCellBoolEditor_UseStringValues); /* prototype to pass -Wmissing-prototypes */
781 XS(XS_Wx__GridCellBoolEditor_UseStringValues)
782 {
783 #ifdef dVAR
784     dVAR; dXSARGS;
785 #else
786     dXSARGS;
787 #endif
788     if (items < 0 || items > 2)
789        croak_xs_usage(cv,  "trueValue = wxT(\"1\"), falseValue = wxT(\"\")");
790     {
791         wxString        trueValue;
792         wxString        falseValue;
793
794         if (items < 1)
795             trueValue = wxT("1");
796         else {
797     WXSTRING_INPUT( trueValue, wxString, ST(0) );
798         }
799
800         if (items < 2)
801             falseValue = wxT("");
802         else {
803     WXSTRING_INPUT( falseValue, wxString, ST(1) );
804         }
805     wxGridCellBoolEditor::UseStringValues( trueValue, falseValue );
806     }
807     XSRETURN_EMPTY;
808 }
809
810 #endif
811
812 XS(XS_Wx__GridCellChoiceEditor_new); /* prototype to pass -Wmissing-prototypes */
813 XS(XS_Wx__GridCellChoiceEditor_new)
814 {
815 #ifdef dVAR
816     dVAR; dXSARGS;
817 #else
818     dXSARGS;
819 #endif
820     if (items < 2 || items > 3)
821        croak_xs_usage(cv,  "CLASS, choices, allowOthers = false");
822     {
823         SV*     choices = ST(1);
824         bool    allowOthers;
825     wxString* chs;
826     int n;
827         char *  CLASS = (char *)SvPV_nolen(ST(0));
828         wxGridCellChoiceEditor *        RETVAL;
829
830         if (items < 3)
831             allowOthers = false;
832         else {
833             allowOthers = (bool)SvTRUE(ST(2));
834         }
835     n = wxPli_av_2_stringarray( aTHX_ choices, &chs );
836     RETVAL = new wxGridCellChoiceEditor( n, chs, allowOthers );
837     delete[] chs;
838         ST(0) = sv_newmortal();
839     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellChoiceEditor" );
840     wxPli_thread_sv_register( aTHX_ "Wx::GridCellChoiceEditor", SvRV( ST(0) ), ST(0) );
841
842     }
843     XSRETURN(1);
844 }
845
846
847 XS(XS_Wx__GridCellChoiceEditor_SetParameters); /* prototype to pass -Wmissing-prototypes */
848 XS(XS_Wx__GridCellChoiceEditor_SetParameters)
849 {
850 #ifdef dVAR
851     dVAR; dXSARGS;
852 #else
853     dXSARGS;
854 #endif
855     if (items != 2)
856        croak_xs_usage(cv,  "THIS, params");
857     {
858         wxString        params;
859         wxGridCellChoiceEditor *    THIS = (wxGridCellChoiceEditor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellChoiceEditor" );
860
861     WXSTRING_INPUT( params, wxString, ST(1) );
862
863         THIS->SetParameters(params);
864     }
865     XSRETURN_EMPTY;
866 }
867
868
869 XS(XS_Wx__GridCellEnumEditor_new); /* prototype to pass -Wmissing-prototypes */
870 XS(XS_Wx__GridCellEnumEditor_new)
871 {
872 #ifdef dVAR
873     dVAR; dXSARGS;
874 #else
875     dXSARGS;
876 #endif
877     if (items < 1 || items > 2)
878        croak_xs_usage(cv,  "CLASS, choices = wxEmptyString");
879     {
880         wxString        choices;
881         char *  CLASS = (char *)SvPV_nolen(ST(0));
882         wxGridCellEnumEditor *  RETVAL;
883
884         if (items < 2)
885             choices = wxEmptyString;
886         else {
887     WXSTRING_INPUT( choices, wxString, ST(1) );
888         }
889
890         RETVAL = new wxGridCellEnumEditor(choices);
891         ST(0) = sv_newmortal();
892     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellEnumEditor" );
893     wxPli_thread_sv_register( aTHX_ "Wx::GridCellEnumEditor", SvRV( ST(0) ), ST(0) );
894
895     }
896     XSRETURN(1);
897 }
898
899 #include "cpp/editor.h"
900
901 XS(XS_Wx__PlGridCellEditor_new); /* prototype to pass -Wmissing-prototypes */
902 XS(XS_Wx__PlGridCellEditor_new)
903 {
904 #ifdef dVAR
905     dVAR; dXSARGS;
906 #else
907     dXSARGS;
908 #endif
909     if (items != 1)
910        croak_xs_usage(cv,  "CLASS");
911     {
912         char *  CLASS = (char *)SvPV_nolen(ST(0));
913         SV *    RETVAL;
914     wxPlGridCellEditor* r = new wxPlGridCellEditor( CLASS );
915     r->SetClientObject( new wxPliUserDataCD( r->m_callback.GetSelf() ) );
916     RETVAL = r->m_callback.GetSelf();
917     SvREFCNT_inc( RETVAL );
918         ST(0) = RETVAL;
919         sv_2mortal(ST(0));
920     }
921     XSRETURN(1);
922 }
923
924
925 /* INCLUDE: Returning to 'XS/GridCellRenderer.xs' from 'XS/GridCellEditor.xs' */
926
927
928 XS(XS_Wx__GridCellRenderer_Draw); /* prototype to pass -Wmissing-prototypes */
929 XS(XS_Wx__GridCellRenderer_Draw)
930 {
931 #ifdef dVAR
932     dVAR; dXSARGS;
933 #else
934     dXSARGS;
935 #endif
936     if (items != 8)
937        croak_xs_usage(cv,  "THIS, grid, attr, dc, rect, row, col, isSelected");
938     {
939         wxGrid*    grid = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Grid" );
940         wxGridCellAttr*    attr = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::GridCellAttr" );
941         wxDC*    dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::DC" );
942         wxRect*    rect = (wxRect *) wxPli_sv_2_object( aTHX_ ST(4), "Wx::Rect" );
943         int     row = (int)SvIV(ST(5));
944         int     col = (int)SvIV(ST(6));
945         bool    isSelected = (bool)SvTRUE(ST(7));
946         wxGridCellRenderer *    THIS = (wxGridCellRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellRenderer" );
947     THIS->Draw( *grid, *attr, *dc, *rect, row, col, isSelected );
948     }
949     XSRETURN_EMPTY;
950 }
951
952
953 XS(XS_Wx__GridCellRenderer_GetBestSize); /* prototype to pass -Wmissing-prototypes */
954 XS(XS_Wx__GridCellRenderer_GetBestSize)
955 {
956 #ifdef dVAR
957     dVAR; dXSARGS;
958 #else
959     dXSARGS;
960 #endif
961     if (items != 6)
962        croak_xs_usage(cv,  "THIS, grid, attr, dc, row, col");
963     {
964         wxGrid*    grid = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Grid" );
965         wxGridCellAttr*    attr = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::GridCellAttr" );
966         wxDC*    dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::DC" );
967         int     row = (int)SvIV(ST(4));
968         int     col = (int)SvIV(ST(5));
969         wxGridCellRenderer *    THIS = (wxGridCellRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellRenderer" );
970         wxSize *        RETVAL;
971     RETVAL = new wxSize( THIS->GetBestSize( *grid, *attr, *dc, row, col ) );
972         ST(0) = sv_newmortal();
973     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Size" );
974     wxPli_thread_sv_register( aTHX_ "Wx::Size", RETVAL, ST(0) );
975
976     }
977     XSRETURN(1);
978 }
979
980
981 XS(XS_Wx__GridCellRenderer_CLONE); /* prototype to pass -Wmissing-prototypes */
982 XS(XS_Wx__GridCellRenderer_CLONE)
983 {
984 #ifdef dVAR
985     dVAR; dXSARGS;
986 #else
987     dXSARGS;
988 #endif
989     if (items != 1)
990        croak_xs_usage(cv,  "CLASS");
991     {
992         char *  CLASS = (char *)SvPV_nolen(ST(0));
993     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
994     }
995     XSRETURN_EMPTY;
996 }
997
998
999 XS(XS_Wx__GridCellRenderer_DESTROY); /* prototype to pass -Wmissing-prototypes */
1000 XS(XS_Wx__GridCellRenderer_DESTROY)
1001 {
1002 #ifdef dVAR
1003     dVAR; dXSARGS;
1004 #else
1005     dXSARGS;
1006 #endif
1007     if (items != 1)
1008        croak_xs_usage(cv,  "THIS");
1009     {
1010         wxGridCellRenderer *    THIS = (wxGridCellRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellRenderer" );
1011     wxPli_thread_sv_unregister( aTHX_ wxPli_get_class( aTHX_ ST(0) ),
1012                                 SvRV( ST(0) ), ST(0) );
1013     if( THIS )
1014         THIS->DecRef();
1015     }
1016     XSRETURN_EMPTY;
1017 }
1018
1019
1020 XS(XS_Wx__GridCellRenderer_SetParameters); /* prototype to pass -Wmissing-prototypes */
1021 XS(XS_Wx__GridCellRenderer_SetParameters)
1022 {
1023 #ifdef dVAR
1024     dVAR; dXSARGS;
1025 #else
1026     dXSARGS;
1027 #endif
1028     if (items != 2)
1029        croak_xs_usage(cv,  "THIS, parameters");
1030     {
1031         wxString        parameters;
1032         wxGridCellRenderer *    THIS = (wxGridCellRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellRenderer" );
1033
1034     WXSTRING_INPUT( parameters, wxString, ST(1) );
1035
1036         THIS->SetParameters(parameters);
1037     }
1038     XSRETURN_EMPTY;
1039 }
1040
1041
1042 XS(XS_Wx__GridCellStringRenderer_new); /* prototype to pass -Wmissing-prototypes */
1043 XS(XS_Wx__GridCellStringRenderer_new)
1044 {
1045 #ifdef dVAR
1046     dVAR; dXSARGS;
1047 #else
1048     dXSARGS;
1049 #endif
1050     if (items != 1)
1051        croak_xs_usage(cv,  "CLASS");
1052     {
1053         char *  CLASS = (char *)SvPV_nolen(ST(0));
1054         wxGridCellStringRenderer *      RETVAL;
1055
1056         RETVAL = new wxGridCellStringRenderer();
1057         ST(0) = sv_newmortal();
1058     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellStringRenderer" );
1059     wxPli_thread_sv_register( aTHX_ "Wx::GridCellStringRenderer", SvRV( ST(0) ), ST(0) );
1060
1061     }
1062     XSRETURN(1);
1063 }
1064
1065
1066 XS(XS_Wx__GridCellNumberRenderer_new); /* prototype to pass -Wmissing-prototypes */
1067 XS(XS_Wx__GridCellNumberRenderer_new)
1068 {
1069 #ifdef dVAR
1070     dVAR; dXSARGS;
1071 #else
1072     dXSARGS;
1073 #endif
1074     if (items != 1)
1075        croak_xs_usage(cv,  "CLASS");
1076     {
1077         char *  CLASS = (char *)SvPV_nolen(ST(0));
1078         wxGridCellNumberRenderer *      RETVAL;
1079
1080         RETVAL = new wxGridCellNumberRenderer();
1081         ST(0) = sv_newmortal();
1082     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellNumberRenderer" );
1083     wxPli_thread_sv_register( aTHX_ "Wx::GridCellNumberRenderer", SvRV( ST(0) ), ST(0) );
1084
1085     }
1086     XSRETURN(1);
1087 }
1088
1089
1090 XS(XS_Wx__GridCellFloatRenderer_new); /* prototype to pass -Wmissing-prototypes */
1091 XS(XS_Wx__GridCellFloatRenderer_new)
1092 {
1093 #ifdef dVAR
1094     dVAR; dXSARGS;
1095 #else
1096     dXSARGS;
1097 #endif
1098     if (items < 1 || items > 3)
1099        croak_xs_usage(cv,  "CLASS, width = -1, precision = -1");
1100     {
1101         int     width;
1102         int     precision;
1103         char *  CLASS = (char *)SvPV_nolen(ST(0));
1104         wxGridCellFloatRenderer *       RETVAL;
1105
1106         if (items < 2)
1107             width = -1;
1108         else {
1109             width = (int)SvIV(ST(1));
1110         }
1111
1112         if (items < 3)
1113             precision = -1;
1114         else {
1115             precision = (int)SvIV(ST(2));
1116         }
1117
1118         RETVAL = new wxGridCellFloatRenderer(width, precision);
1119         ST(0) = sv_newmortal();
1120     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellFloatRenderer" );
1121     wxPli_thread_sv_register( aTHX_ "Wx::GridCellFloatRenderer", SvRV( ST(0) ), ST(0) );
1122
1123     }
1124     XSRETURN(1);
1125 }
1126
1127
1128 XS(XS_Wx__GridCellFloatRenderer_GetWidth); /* prototype to pass -Wmissing-prototypes */
1129 XS(XS_Wx__GridCellFloatRenderer_GetWidth)
1130 {
1131 #ifdef dVAR
1132     dVAR; dXSARGS;
1133 #else
1134     dXSARGS;
1135 #endif
1136     if (items != 1)
1137        croak_xs_usage(cv,  "THIS");
1138     {
1139         wxGridCellFloatRenderer *    THIS = (wxGridCellFloatRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellFloatRenderer" );
1140         int     RETVAL;
1141         dXSTARG;
1142
1143         RETVAL = THIS->GetWidth();
1144         XSprePUSH; PUSHi((IV)RETVAL);
1145     }
1146     XSRETURN(1);
1147 }
1148
1149
1150 XS(XS_Wx__GridCellFloatRenderer_GetPrecision); /* prototype to pass -Wmissing-prototypes */
1151 XS(XS_Wx__GridCellFloatRenderer_GetPrecision)
1152 {
1153 #ifdef dVAR
1154     dVAR; dXSARGS;
1155 #else
1156     dXSARGS;
1157 #endif
1158     if (items != 1)
1159        croak_xs_usage(cv,  "THIS");
1160     {
1161         wxGridCellFloatRenderer *    THIS = (wxGridCellFloatRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellFloatRenderer" );
1162         int     RETVAL;
1163         dXSTARG;
1164
1165         RETVAL = THIS->GetPrecision();
1166         XSprePUSH; PUSHi((IV)RETVAL);
1167     }
1168     XSRETURN(1);
1169 }
1170
1171
1172 XS(XS_Wx__GridCellFloatRenderer_SetWidth); /* prototype to pass -Wmissing-prototypes */
1173 XS(XS_Wx__GridCellFloatRenderer_SetWidth)
1174 {
1175 #ifdef dVAR
1176     dVAR; dXSARGS;
1177 #else
1178     dXSARGS;
1179 #endif
1180     if (items != 2)
1181        croak_xs_usage(cv,  "THIS, width");
1182     {
1183         int     width = (int)SvIV(ST(1));
1184         wxGridCellFloatRenderer *    THIS = (wxGridCellFloatRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellFloatRenderer" );
1185
1186         THIS->SetWidth(width);
1187     }
1188     XSRETURN_EMPTY;
1189 }
1190
1191
1192 XS(XS_Wx__GridCellFloatRenderer_SetPrecision); /* prototype to pass -Wmissing-prototypes */
1193 XS(XS_Wx__GridCellFloatRenderer_SetPrecision)
1194 {
1195 #ifdef dVAR
1196     dVAR; dXSARGS;
1197 #else
1198     dXSARGS;
1199 #endif
1200     if (items != 2)
1201        croak_xs_usage(cv,  "THIS, precision");
1202     {
1203         int     precision = (int)SvIV(ST(1));
1204         wxGridCellFloatRenderer *    THIS = (wxGridCellFloatRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellFloatRenderer" );
1205
1206         THIS->SetPrecision(precision);
1207     }
1208     XSRETURN_EMPTY;
1209 }
1210
1211
1212 XS(XS_Wx__GridCellBoolRenderer_new); /* prototype to pass -Wmissing-prototypes */
1213 XS(XS_Wx__GridCellBoolRenderer_new)
1214 {
1215 #ifdef dVAR
1216     dVAR; dXSARGS;
1217 #else
1218     dXSARGS;
1219 #endif
1220     if (items != 1)
1221        croak_xs_usage(cv,  "CLASS");
1222     {
1223         char *  CLASS = (char *)SvPV_nolen(ST(0));
1224         wxGridCellBoolRenderer *        RETVAL;
1225
1226         RETVAL = new wxGridCellBoolRenderer();
1227         ST(0) = sv_newmortal();
1228     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellBoolRenderer" );
1229     wxPli_thread_sv_register( aTHX_ "Wx::GridCellBoolRenderer", SvRV( ST(0) ), ST(0) );
1230
1231     }
1232     XSRETURN(1);
1233 }
1234
1235
1236 XS(XS_Wx__GridCellAutoWrapStringRenderer_new); /* prototype to pass -Wmissing-prototypes */
1237 XS(XS_Wx__GridCellAutoWrapStringRenderer_new)
1238 {
1239 #ifdef dVAR
1240     dVAR; dXSARGS;
1241 #else
1242     dXSARGS;
1243 #endif
1244     if (items != 1)
1245        croak_xs_usage(cv,  "CLASS");
1246     {
1247         char *  CLASS = (char *)SvPV_nolen(ST(0));
1248         wxGridCellAutoWrapStringRenderer *      RETVAL;
1249
1250         RETVAL = new wxGridCellAutoWrapStringRenderer();
1251         ST(0) = sv_newmortal();
1252     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellAutoWrapStringRenderer" );
1253     wxPli_thread_sv_register( aTHX_ "Wx::GridCellAutoWrapStringRenderer", SvRV( ST(0) ), ST(0) );
1254
1255     }
1256     XSRETURN(1);
1257 }
1258
1259
1260 XS(XS_Wx__GridCellEnumRenderer_new); /* prototype to pass -Wmissing-prototypes */
1261 XS(XS_Wx__GridCellEnumRenderer_new)
1262 {
1263 #ifdef dVAR
1264     dVAR; dXSARGS;
1265 #else
1266     dXSARGS;
1267 #endif
1268     if (items < 1 || items > 2)
1269        croak_xs_usage(cv,  "CLASS, choices = wxEmptyString");
1270     {
1271         wxString        choices;
1272         char *  CLASS = (char *)SvPV_nolen(ST(0));
1273         wxGridCellEnumRenderer *        RETVAL;
1274
1275         if (items < 2)
1276             choices = wxEmptyString;
1277         else {
1278     WXSTRING_INPUT( choices, wxString, ST(1) );
1279         }
1280
1281         RETVAL = new wxGridCellEnumRenderer(choices);
1282         ST(0) = sv_newmortal();
1283     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellEnumRenderer" );
1284     wxPli_thread_sv_register( aTHX_ "Wx::GridCellEnumRenderer", SvRV( ST(0) ), ST(0) );
1285
1286     }
1287     XSRETURN(1);
1288 }
1289
1290 #if WXPERL_W_VERSION_LT( 2, 6, 0 )
1291 #define wxDefaultDateTimeFormat wxT("%c")
1292 #endif
1293
1294 XS(XS_Wx__GridCellDateTimeRenderer_new); /* prototype to pass -Wmissing-prototypes */
1295 XS(XS_Wx__GridCellDateTimeRenderer_new)
1296 {
1297 #ifdef dVAR
1298     dVAR; dXSARGS;
1299 #else
1300     dXSARGS;
1301 #endif
1302     if (items < 1 || items > 3)
1303        croak_xs_usage(cv,  "CLASS, outformat = wxDefaultDateTimeFormat, informat = wxDefaultDateTimeFormat");
1304     {
1305         wxString        outformat;
1306         wxString        informat;
1307         char *  CLASS = (char *)SvPV_nolen(ST(0));
1308         wxGridCellDateTimeRenderer *    RETVAL;
1309
1310         if (items < 2)
1311             outformat = wxDefaultDateTimeFormat;
1312         else {
1313     WXSTRING_INPUT( outformat, wxString, ST(1) );
1314         }
1315
1316         if (items < 3)
1317             informat = wxDefaultDateTimeFormat;
1318         else {
1319     WXSTRING_INPUT( informat, wxString, ST(2) );
1320         }
1321
1322         RETVAL = new wxGridCellDateTimeRenderer(outformat, informat);
1323         ST(0) = sv_newmortal();
1324     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellDateTimeRenderer" );
1325     wxPli_thread_sv_register( aTHX_ "Wx::GridCellDateTimeRenderer", SvRV( ST(0) ), ST(0) );
1326
1327     }
1328     XSRETURN(1);
1329 }
1330
1331 #include "cpp/renderer.h"
1332
1333 XS(XS_Wx__PlGridCellRenderer_new); /* prototype to pass -Wmissing-prototypes */
1334 XS(XS_Wx__PlGridCellRenderer_new)
1335 {
1336 #ifdef dVAR
1337     dVAR; dXSARGS;
1338 #else
1339     dXSARGS;
1340 #endif
1341     if (items != 1)
1342        croak_xs_usage(cv,  "CLASS");
1343     {
1344         char *  CLASS = (char *)SvPV_nolen(ST(0));
1345         SV *    RETVAL;
1346     wxPlGridCellRenderer* r = new wxPlGridCellRenderer( CLASS );
1347     r->SetClientObject( new wxPliUserDataCD( r->m_callback.GetSelf() ) );
1348     RETVAL = r->m_callback.GetSelf();
1349     SvREFCNT_inc( RETVAL );
1350         ST(0) = RETVAL;
1351         sv_2mortal(ST(0));
1352     }
1353     XSRETURN(1);
1354 }
1355
1356
1357 XS(XS_Wx__PlGridCellRenderer_Draw); /* prototype to pass -Wmissing-prototypes */
1358 XS(XS_Wx__PlGridCellRenderer_Draw)
1359 {
1360 #ifdef dVAR
1361     dVAR; dXSARGS;
1362 #else
1363     dXSARGS;
1364 #endif
1365     if (items != 8)
1366        croak_xs_usage(cv,  "THIS, grid, attr, dc, rect, row, col, isSelected");
1367     {
1368         wxGrid*    grid = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Grid" );
1369         wxGridCellAttr*    attr = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::GridCellAttr" );
1370         wxDC*    dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::DC" );
1371         wxRect*    rect = (wxRect *) wxPli_sv_2_object( aTHX_ ST(4), "Wx::Rect" );
1372         int     row = (int)SvIV(ST(5));
1373         int     col = (int)SvIV(ST(6));
1374         bool    isSelected = (bool)SvTRUE(ST(7));
1375         wxPlGridCellRenderer *    THIS = (wxPlGridCellRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridCellRenderer" );
1376     THIS->wxGridCellRenderer::Draw( *grid, *attr, *dc, *rect,
1377                                     row, col, isSelected );
1378     }
1379     XSRETURN_EMPTY;
1380 }
1381
1382
1383 /* INCLUDE: Returning to 'XS/GridEvent.xs' from 'XS/GridCellRenderer.xs' */
1384
1385 #if 0
1386 #define XSubPPtmpAAAD 1
1387
1388
1389 XS(XS_Wx__GridEvent_new); /* prototype to pass -Wmissing-prototypes */
1390 XS(XS_Wx__GridEvent_new)
1391 {
1392 #ifdef dVAR
1393     dVAR; dXSARGS;
1394 #else
1395     dXSARGS;
1396 #endif
1397     if (items < 4 || items > 13)
1398        croak_xs_usage(cv,  "CLASS, id, type, obj, row = -1, col = -1, x = -1, y = -1, sel = true, control = true, shift = true, alt = true, meta = true");
1399     {
1400         int     id = (int)SvIV(ST(1));
1401         wxEventType     type = (wxEventType)SvIV(ST(2));
1402         wxObject*    obj = (wxObject *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Object" );
1403         int     row;
1404         int     col;
1405         int     x;
1406         int     y;
1407         bool    sel;
1408         bool    control;
1409         bool    shift;
1410         bool    alt;
1411         bool    meta;
1412         char *  CLASS = (char *)SvPV_nolen(ST(0));
1413         wxGridEvent *   RETVAL;
1414
1415         if (items < 5)
1416             row = -1;
1417         else {
1418             row = (int)SvIV(ST(4));
1419         }
1420
1421         if (items < 6)
1422             col = -1;
1423         else {
1424             col = (int)SvIV(ST(5));
1425         }
1426
1427         if (items < 7)
1428             x = -1;
1429         else {
1430             x = (int)SvIV(ST(6));
1431         }
1432
1433         if (items < 8)
1434             y = -1;
1435         else {
1436             y = (int)SvIV(ST(7));
1437         }
1438
1439         if (items < 9)
1440             sel = true;
1441         else {
1442             sel = (bool)SvTRUE(ST(8));
1443         }
1444
1445         if (items < 10)
1446             control = true;
1447         else {
1448             control = (bool)SvTRUE(ST(9));
1449         }
1450
1451         if (items < 11)
1452             shift = true;
1453         else {
1454             shift = (bool)SvTRUE(ST(10));
1455         }
1456
1457         if (items < 12)
1458             alt = true;
1459         else {
1460             alt = (bool)SvTRUE(ST(11));
1461         }
1462
1463         if (items < 13)
1464             meta = true;
1465         else {
1466             meta = (bool)SvTRUE(ST(12));
1467         }
1468
1469         RETVAL = new wxGridEvent(id, type, obj, row, col, x, y, sel, control, shift, alt, meta);
1470         ST(0) = sv_newmortal();
1471     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1472
1473     }
1474     XSRETURN(1);
1475 }
1476
1477 #endif
1478
1479 XS(XS_Wx__GridEvent_GetRow); /* prototype to pass -Wmissing-prototypes */
1480 XS(XS_Wx__GridEvent_GetRow)
1481 {
1482 #ifdef dVAR
1483     dVAR; dXSARGS;
1484 #else
1485     dXSARGS;
1486 #endif
1487     if (items != 1)
1488        croak_xs_usage(cv,  "THIS");
1489     {
1490         wxGridEvent *    THIS = (wxGridEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridEvent" );
1491         int     RETVAL;
1492         dXSTARG;
1493
1494         RETVAL = THIS->GetRow();
1495         XSprePUSH; PUSHi((IV)RETVAL);
1496     }
1497     XSRETURN(1);
1498 }
1499
1500
1501 XS(XS_Wx__GridEvent_GetCol); /* prototype to pass -Wmissing-prototypes */
1502 XS(XS_Wx__GridEvent_GetCol)
1503 {
1504 #ifdef dVAR
1505     dVAR; dXSARGS;
1506 #else
1507     dXSARGS;
1508 #endif
1509     if (items != 1)
1510        croak_xs_usage(cv,  "THIS");
1511     {
1512         wxGridEvent *    THIS = (wxGridEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridEvent" );
1513         int     RETVAL;
1514         dXSTARG;
1515
1516         RETVAL = THIS->GetCol();
1517         XSprePUSH; PUSHi((IV)RETVAL);
1518     }
1519     XSRETURN(1);
1520 }
1521
1522
1523 XS(XS_Wx__GridEvent_GetPosition); /* prototype to pass -Wmissing-prototypes */
1524 XS(XS_Wx__GridEvent_GetPosition)
1525 {
1526 #ifdef dVAR
1527     dVAR; dXSARGS;
1528 #else
1529     dXSARGS;
1530 #endif
1531     if (items != 1)
1532        croak_xs_usage(cv,  "THIS");
1533     {
1534         wxGridEvent *    THIS = (wxGridEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridEvent" );
1535         wxPoint *       RETVAL;
1536     RETVAL = new wxPoint( THIS->GetPosition() );
1537         ST(0) = sv_newmortal();
1538     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
1539     wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
1540
1541     }
1542     XSRETURN(1);
1543 }
1544
1545
1546 XS(XS_Wx__GridEvent_Selecting); /* prototype to pass -Wmissing-prototypes */
1547 XS(XS_Wx__GridEvent_Selecting)
1548 {
1549 #ifdef dVAR
1550     dVAR; dXSARGS;
1551 #else
1552     dXSARGS;
1553 #endif
1554     if (items != 1)
1555        croak_xs_usage(cv,  "THIS");
1556     {
1557         wxGridEvent *    THIS = (wxGridEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridEvent" );
1558         bool    RETVAL;
1559
1560         RETVAL = THIS->Selecting();
1561         ST(0) = boolSV(RETVAL);
1562         sv_2mortal(ST(0));
1563     }
1564     XSRETURN(1);
1565 }
1566
1567
1568 XS(XS_Wx__GridEvent_ControlDown); /* prototype to pass -Wmissing-prototypes */
1569 XS(XS_Wx__GridEvent_ControlDown)
1570 {
1571 #ifdef dVAR
1572     dVAR; dXSARGS;
1573 #else
1574     dXSARGS;
1575 #endif
1576     if (items != 1)
1577        croak_xs_usage(cv,  "THIS");
1578     {
1579         wxGridEvent *    THIS = (wxGridEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridEvent" );
1580         bool    RETVAL;
1581
1582         RETVAL = THIS->ControlDown();
1583         ST(0) = boolSV(RETVAL);
1584         sv_2mortal(ST(0));
1585     }
1586     XSRETURN(1);
1587 }
1588
1589
1590 XS(XS_Wx__GridEvent_AltDown); /* prototype to pass -Wmissing-prototypes */
1591 XS(XS_Wx__GridEvent_AltDown)
1592 {
1593 #ifdef dVAR
1594     dVAR; dXSARGS;
1595 #else
1596     dXSARGS;
1597 #endif
1598     if (items != 1)
1599        croak_xs_usage(cv,  "THIS");
1600     {
1601         wxGridEvent *    THIS = (wxGridEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridEvent" );
1602         bool    RETVAL;
1603
1604         RETVAL = THIS->AltDown();
1605         ST(0) = boolSV(RETVAL);
1606         sv_2mortal(ST(0));
1607     }
1608     XSRETURN(1);
1609 }
1610
1611
1612 XS(XS_Wx__GridEvent_MetaDown); /* prototype to pass -Wmissing-prototypes */
1613 XS(XS_Wx__GridEvent_MetaDown)
1614 {
1615 #ifdef dVAR
1616     dVAR; dXSARGS;
1617 #else
1618     dXSARGS;
1619 #endif
1620     if (items != 1)
1621        croak_xs_usage(cv,  "THIS");
1622     {
1623         wxGridEvent *    THIS = (wxGridEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridEvent" );
1624         bool    RETVAL;
1625
1626         RETVAL = THIS->MetaDown();
1627         ST(0) = boolSV(RETVAL);
1628         sv_2mortal(ST(0));
1629     }
1630     XSRETURN(1);
1631 }
1632
1633
1634 XS(XS_Wx__GridEvent_ShiftDown); /* prototype to pass -Wmissing-prototypes */
1635 XS(XS_Wx__GridEvent_ShiftDown)
1636 {
1637 #ifdef dVAR
1638     dVAR; dXSARGS;
1639 #else
1640     dXSARGS;
1641 #endif
1642     if (items != 1)
1643        croak_xs_usage(cv,  "THIS");
1644     {
1645         wxGridEvent *    THIS = (wxGridEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridEvent" );
1646         bool    RETVAL;
1647
1648         RETVAL = THIS->ShiftDown();
1649         ST(0) = boolSV(RETVAL);
1650         sv_2mortal(ST(0));
1651     }
1652     XSRETURN(1);
1653 }
1654
1655 #if 0
1656 #define XSubPPtmpAAAE 1
1657
1658
1659 XS(XS_Wx__GridSizeEvent_new); /* prototype to pass -Wmissing-prototypes */
1660 XS(XS_Wx__GridSizeEvent_new)
1661 {
1662 #ifdef dVAR
1663     dVAR; dXSARGS;
1664 #else
1665     dXSARGS;
1666 #endif
1667     if (items < 4 || items > 11)
1668        croak_xs_usage(cv,  "CLASS, id, type, obj, rowOrCol = -1, x = -1, y = -1, control = true, shift = true, alt = true, meta = true");
1669     {
1670         int     id = (int)SvIV(ST(1));
1671         wxEventType     type = (wxEventType)SvIV(ST(2));
1672         wxObject*    obj = (wxObject *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Object" );
1673         int     rowOrCol;
1674         int     x;
1675         int     y;
1676         bool    control;
1677         bool    shift;
1678         bool    alt;
1679         bool    meta;
1680         char *  CLASS = (char *)SvPV_nolen(ST(0));
1681         wxGridSizeEvent *       RETVAL;
1682
1683         if (items < 5)
1684             rowOrCol = -1;
1685         else {
1686             rowOrCol = (int)SvIV(ST(4));
1687         }
1688
1689         if (items < 6)
1690             x = -1;
1691         else {
1692             x = (int)SvIV(ST(5));
1693         }
1694
1695         if (items < 7)
1696             y = -1;
1697         else {
1698             y = (int)SvIV(ST(6));
1699         }
1700
1701         if (items < 8)
1702             control = true;
1703         else {
1704             control = (bool)SvTRUE(ST(7));
1705         }
1706
1707         if (items < 9)
1708             shift = true;
1709         else {
1710             shift = (bool)SvTRUE(ST(8));
1711         }
1712
1713         if (items < 10)
1714             alt = true;
1715         else {
1716             alt = (bool)SvTRUE(ST(9));
1717         }
1718
1719         if (items < 11)
1720             meta = true;
1721         else {
1722             meta = (bool)SvTRUE(ST(10));
1723         }
1724
1725         RETVAL = new wxGridSizeEvent(id, type, obj, rowOrCol, x, y, control, shift, alt, meta);
1726         ST(0) = sv_newmortal();
1727     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1728
1729     }
1730     XSRETURN(1);
1731 }
1732
1733 #endif
1734
1735 XS(XS_Wx__GridSizeEvent_GetRowOrCol); /* prototype to pass -Wmissing-prototypes */
1736 XS(XS_Wx__GridSizeEvent_GetRowOrCol)
1737 {
1738 #ifdef dVAR
1739     dVAR; dXSARGS;
1740 #else
1741     dXSARGS;
1742 #endif
1743     if (items != 1)
1744        croak_xs_usage(cv,  "THIS");
1745     {
1746         wxGridSizeEvent *    THIS = (wxGridSizeEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridSizeEvent" );
1747         int     RETVAL;
1748         dXSTARG;
1749
1750         RETVAL = THIS->GetRowOrCol();
1751         XSprePUSH; PUSHi((IV)RETVAL);
1752     }
1753     XSRETURN(1);
1754 }
1755
1756
1757 XS(XS_Wx__GridSizeEvent_GetPosition); /* prototype to pass -Wmissing-prototypes */
1758 XS(XS_Wx__GridSizeEvent_GetPosition)
1759 {
1760 #ifdef dVAR
1761     dVAR; dXSARGS;
1762 #else
1763     dXSARGS;
1764 #endif
1765     if (items != 1)
1766        croak_xs_usage(cv,  "THIS");
1767     {
1768         wxGridSizeEvent *    THIS = (wxGridSizeEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridSizeEvent" );
1769         wxPoint *       RETVAL;
1770     RETVAL = new wxPoint( THIS->GetPosition() );
1771         ST(0) = sv_newmortal();
1772     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
1773     wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
1774
1775     }
1776     XSRETURN(1);
1777 }
1778
1779
1780 XS(XS_Wx__GridSizeEvent_ControlDown); /* prototype to pass -Wmissing-prototypes */
1781 XS(XS_Wx__GridSizeEvent_ControlDown)
1782 {
1783 #ifdef dVAR
1784     dVAR; dXSARGS;
1785 #else
1786     dXSARGS;
1787 #endif
1788     if (items != 1)
1789        croak_xs_usage(cv,  "THIS");
1790     {
1791         wxGridSizeEvent *    THIS = (wxGridSizeEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridSizeEvent" );
1792         bool    RETVAL;
1793
1794         RETVAL = THIS->ControlDown();
1795         ST(0) = boolSV(RETVAL);
1796         sv_2mortal(ST(0));
1797     }
1798     XSRETURN(1);
1799 }
1800
1801
1802 XS(XS_Wx__GridSizeEvent_AltDown); /* prototype to pass -Wmissing-prototypes */
1803 XS(XS_Wx__GridSizeEvent_AltDown)
1804 {
1805 #ifdef dVAR
1806     dVAR; dXSARGS;
1807 #else
1808     dXSARGS;
1809 #endif
1810     if (items != 1)
1811        croak_xs_usage(cv,  "THIS");
1812     {
1813         wxGridSizeEvent *    THIS = (wxGridSizeEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridSizeEvent" );
1814         bool    RETVAL;
1815
1816         RETVAL = THIS->AltDown();
1817         ST(0) = boolSV(RETVAL);
1818         sv_2mortal(ST(0));
1819     }
1820     XSRETURN(1);
1821 }
1822
1823
1824 XS(XS_Wx__GridSizeEvent_MetaDown); /* prototype to pass -Wmissing-prototypes */
1825 XS(XS_Wx__GridSizeEvent_MetaDown)
1826 {
1827 #ifdef dVAR
1828     dVAR; dXSARGS;
1829 #else
1830     dXSARGS;
1831 #endif
1832     if (items != 1)
1833        croak_xs_usage(cv,  "THIS");
1834     {
1835         wxGridSizeEvent *    THIS = (wxGridSizeEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridSizeEvent" );
1836         bool    RETVAL;
1837
1838         RETVAL = THIS->MetaDown();
1839         ST(0) = boolSV(RETVAL);
1840         sv_2mortal(ST(0));
1841     }
1842     XSRETURN(1);
1843 }
1844
1845
1846 XS(XS_Wx__GridSizeEvent_ShiftDown); /* prototype to pass -Wmissing-prototypes */
1847 XS(XS_Wx__GridSizeEvent_ShiftDown)
1848 {
1849 #ifdef dVAR
1850     dVAR; dXSARGS;
1851 #else
1852     dXSARGS;
1853 #endif
1854     if (items != 1)
1855        croak_xs_usage(cv,  "THIS");
1856     {
1857         wxGridSizeEvent *    THIS = (wxGridSizeEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridSizeEvent" );
1858         bool    RETVAL;
1859
1860         RETVAL = THIS->ShiftDown();
1861         ST(0) = boolSV(RETVAL);
1862         sv_2mortal(ST(0));
1863     }
1864     XSRETURN(1);
1865 }
1866
1867 #if 0
1868 #define XSubPPtmpAAAF 1
1869
1870
1871 XS(XS_Wx__GridRangeSelectEvent_new); /* prototype to pass -Wmissing-prototypes */
1872 XS(XS_Wx__GridRangeSelectEvent_new)
1873 {
1874 #ifdef dVAR
1875     dVAR; dXSARGS;
1876 #else
1877     dXSARGS;
1878 #endif
1879     if (items < 6 || items > 11)
1880        croak_xs_usage(cv,  "CLASS, id, type, obj, topLeft, bottomRight, sel = true, control = false, shift = false, alt = false, meta = false");
1881     {
1882         int     id = (int)SvIV(ST(1));
1883         wxEventType     type = (wxEventType)SvIV(ST(2));
1884         wxObject*    obj = (wxObject *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Object" );
1885         wxGridCellCoords*    topLeft = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(4), "Wx::GridCellCoords" );
1886         wxGridCellCoords*    bottomRight = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(5), "Wx::GridCellCoords" );
1887         bool    sel;
1888         bool    control;
1889         bool    shift;
1890         bool    alt;
1891         bool    meta;
1892         char *  CLASS = (char *)SvPV_nolen(ST(0));
1893         wxGridRangeSelectEvent *        RETVAL;
1894
1895         if (items < 7)
1896             sel = true;
1897         else {
1898             sel = (bool)SvTRUE(ST(6));
1899         }
1900
1901         if (items < 8)
1902             control = false;
1903         else {
1904             control = (bool)SvTRUE(ST(7));
1905         }
1906
1907         if (items < 9)
1908             shift = false;
1909         else {
1910             shift = (bool)SvTRUE(ST(8));
1911         }
1912
1913         if (items < 10)
1914             alt = false;
1915         else {
1916             alt = (bool)SvTRUE(ST(9));
1917         }
1918
1919         if (items < 11)
1920             meta = false;
1921         else {
1922             meta = (bool)SvTRUE(ST(10));
1923         }
1924     RETVAL = new wxGridRangeSelectEvent( id, type, obj, *topLeft,
1925         *bottomRight, sel, control, shift, alt, meta );
1926         ST(0) = sv_newmortal();
1927     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1928
1929     }
1930     XSRETURN(1);
1931 }
1932
1933 #endif
1934
1935 XS(XS_Wx__GridRangeSelectEvent_GetTopLeftCoords); /* prototype to pass -Wmissing-prototypes */
1936 XS(XS_Wx__GridRangeSelectEvent_GetTopLeftCoords)
1937 {
1938 #ifdef dVAR
1939     dVAR; dXSARGS;
1940 #else
1941     dXSARGS;
1942 #endif
1943     if (items != 1)
1944        croak_xs_usage(cv,  "THIS");
1945     {
1946         wxGridRangeSelectEvent *    THIS = (wxGridRangeSelectEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridRangeSelectEvent" );
1947         wxGridCellCoords *      RETVAL;
1948     RETVAL = new wxGridCellCoords( THIS->GetTopLeftCoords() );
1949         ST(0) = sv_newmortal();
1950     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellCoords" );
1951     wxPli_thread_sv_register( aTHX_ "Wx::GridCellCoords", RETVAL, ST(0) );
1952
1953     }
1954     XSRETURN(1);
1955 }
1956
1957
1958 XS(XS_Wx__GridRangeSelectEvent_GetBottomRightCoords); /* prototype to pass -Wmissing-prototypes */
1959 XS(XS_Wx__GridRangeSelectEvent_GetBottomRightCoords)
1960 {
1961 #ifdef dVAR
1962     dVAR; dXSARGS;
1963 #else
1964     dXSARGS;
1965 #endif
1966     if (items != 1)
1967        croak_xs_usage(cv,  "THIS");
1968     {
1969         wxGridRangeSelectEvent *    THIS = (wxGridRangeSelectEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridRangeSelectEvent" );
1970         wxGridCellCoords *      RETVAL;
1971     RETVAL = new wxGridCellCoords( THIS->GetBottomRightCoords() );
1972         ST(0) = sv_newmortal();
1973     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellCoords" );
1974     wxPli_thread_sv_register( aTHX_ "Wx::GridCellCoords", RETVAL, ST(0) );
1975
1976     }
1977     XSRETURN(1);
1978 }
1979
1980
1981 XS(XS_Wx__GridRangeSelectEvent_GetTopRow); /* prototype to pass -Wmissing-prototypes */
1982 XS(XS_Wx__GridRangeSelectEvent_GetTopRow)
1983 {
1984 #ifdef dVAR
1985     dVAR; dXSARGS;
1986 #else
1987     dXSARGS;
1988 #endif
1989     if (items != 1)
1990        croak_xs_usage(cv,  "THIS");
1991     {
1992         wxGridRangeSelectEvent *    THIS = (wxGridRangeSelectEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridRangeSelectEvent" );
1993         int     RETVAL;
1994         dXSTARG;
1995
1996         RETVAL = THIS->GetTopRow();
1997         XSprePUSH; PUSHi((IV)RETVAL);
1998     }
1999     XSRETURN(1);
2000 }
2001
2002
2003 XS(XS_Wx__GridRangeSelectEvent_GetBottomRow); /* prototype to pass -Wmissing-prototypes */
2004 XS(XS_Wx__GridRangeSelectEvent_GetBottomRow)
2005 {
2006 #ifdef dVAR
2007     dVAR; dXSARGS;
2008 #else
2009     dXSARGS;
2010 #endif
2011     if (items != 1)
2012        croak_xs_usage(cv,  "THIS");
2013     {
2014         wxGridRangeSelectEvent *    THIS = (wxGridRangeSelectEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridRangeSelectEvent" );
2015         int     RETVAL;
2016         dXSTARG;
2017
2018         RETVAL = THIS->GetBottomRow();
2019         XSprePUSH; PUSHi((IV)RETVAL);
2020     }
2021     XSRETURN(1);
2022 }
2023
2024
2025 XS(XS_Wx__GridRangeSelectEvent_GetLeftCol); /* prototype to pass -Wmissing-prototypes */
2026 XS(XS_Wx__GridRangeSelectEvent_GetLeftCol)
2027 {
2028 #ifdef dVAR
2029     dVAR; dXSARGS;
2030 #else
2031     dXSARGS;
2032 #endif
2033     if (items != 1)
2034        croak_xs_usage(cv,  "THIS");
2035     {
2036         wxGridRangeSelectEvent *    THIS = (wxGridRangeSelectEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridRangeSelectEvent" );
2037         int     RETVAL;
2038         dXSTARG;
2039
2040         RETVAL = THIS->GetLeftCol();
2041         XSprePUSH; PUSHi((IV)RETVAL);
2042     }
2043     XSRETURN(1);
2044 }
2045
2046
2047 XS(XS_Wx__GridRangeSelectEvent_GetRightCol); /* prototype to pass -Wmissing-prototypes */
2048 XS(XS_Wx__GridRangeSelectEvent_GetRightCol)
2049 {
2050 #ifdef dVAR
2051     dVAR; dXSARGS;
2052 #else
2053     dXSARGS;
2054 #endif
2055     if (items != 1)
2056        croak_xs_usage(cv,  "THIS");
2057     {
2058         wxGridRangeSelectEvent *    THIS = (wxGridRangeSelectEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridRangeSelectEvent" );
2059         int     RETVAL;
2060         dXSTARG;
2061
2062         RETVAL = THIS->GetRightCol();
2063         XSprePUSH; PUSHi((IV)RETVAL);
2064     }
2065     XSRETURN(1);
2066 }
2067
2068
2069 XS(XS_Wx__GridRangeSelectEvent_Selecting); /* prototype to pass -Wmissing-prototypes */
2070 XS(XS_Wx__GridRangeSelectEvent_Selecting)
2071 {
2072 #ifdef dVAR
2073     dVAR; dXSARGS;
2074 #else
2075     dXSARGS;
2076 #endif
2077     if (items != 1)
2078        croak_xs_usage(cv,  "THIS");
2079     {
2080         wxGridRangeSelectEvent *    THIS = (wxGridRangeSelectEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridRangeSelectEvent" );
2081         bool    RETVAL;
2082
2083         RETVAL = THIS->Selecting();
2084         ST(0) = boolSV(RETVAL);
2085         sv_2mortal(ST(0));
2086     }
2087     XSRETURN(1);
2088 }
2089
2090
2091 XS(XS_Wx__GridRangeSelectEvent_ControlDown); /* prototype to pass -Wmissing-prototypes */
2092 XS(XS_Wx__GridRangeSelectEvent_ControlDown)
2093 {
2094 #ifdef dVAR
2095     dVAR; dXSARGS;
2096 #else
2097     dXSARGS;
2098 #endif
2099     if (items != 1)
2100        croak_xs_usage(cv,  "THIS");
2101     {
2102         wxGridRangeSelectEvent *    THIS = (wxGridRangeSelectEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridRangeSelectEvent" );
2103         bool    RETVAL;
2104
2105         RETVAL = THIS->ControlDown();
2106         ST(0) = boolSV(RETVAL);
2107         sv_2mortal(ST(0));
2108     }
2109     XSRETURN(1);
2110 }
2111
2112
2113 XS(XS_Wx__GridRangeSelectEvent_MetaDown); /* prototype to pass -Wmissing-prototypes */
2114 XS(XS_Wx__GridRangeSelectEvent_MetaDown)
2115 {
2116 #ifdef dVAR
2117     dVAR; dXSARGS;
2118 #else
2119     dXSARGS;
2120 #endif
2121     if (items != 1)
2122        croak_xs_usage(cv,  "THIS");
2123     {
2124         wxGridRangeSelectEvent *    THIS = (wxGridRangeSelectEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridRangeSelectEvent" );
2125         bool    RETVAL;
2126
2127         RETVAL = THIS->MetaDown();
2128         ST(0) = boolSV(RETVAL);
2129         sv_2mortal(ST(0));
2130     }
2131     XSRETURN(1);
2132 }
2133
2134
2135 XS(XS_Wx__GridRangeSelectEvent_AltDown); /* prototype to pass -Wmissing-prototypes */
2136 XS(XS_Wx__GridRangeSelectEvent_AltDown)
2137 {
2138 #ifdef dVAR
2139     dVAR; dXSARGS;
2140 #else
2141     dXSARGS;
2142 #endif
2143     if (items != 1)
2144        croak_xs_usage(cv,  "THIS");
2145     {
2146         wxGridRangeSelectEvent *    THIS = (wxGridRangeSelectEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridRangeSelectEvent" );
2147         bool    RETVAL;
2148
2149         RETVAL = THIS->AltDown();
2150         ST(0) = boolSV(RETVAL);
2151         sv_2mortal(ST(0));
2152     }
2153     XSRETURN(1);
2154 }
2155
2156
2157 XS(XS_Wx__GridRangeSelectEvent_ShiftDown); /* prototype to pass -Wmissing-prototypes */
2158 XS(XS_Wx__GridRangeSelectEvent_ShiftDown)
2159 {
2160 #ifdef dVAR
2161     dVAR; dXSARGS;
2162 #else
2163     dXSARGS;
2164 #endif
2165     if (items != 1)
2166        croak_xs_usage(cv,  "THIS");
2167     {
2168         wxGridRangeSelectEvent *    THIS = (wxGridRangeSelectEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridRangeSelectEvent" );
2169         bool    RETVAL;
2170
2171         RETVAL = THIS->ShiftDown();
2172         ST(0) = boolSV(RETVAL);
2173         sv_2mortal(ST(0));
2174     }
2175     XSRETURN(1);
2176 }
2177
2178
2179 XS(XS_Wx__GridEditorCreatedEvent_new); /* prototype to pass -Wmissing-prototypes */
2180 XS(XS_Wx__GridEditorCreatedEvent_new)
2181 {
2182 #ifdef dVAR
2183     dVAR; dXSARGS;
2184 #else
2185     dXSARGS;
2186 #endif
2187     if (items != 7)
2188        croak_xs_usage(cv,  "CLASS, id, type, obj, row, col, ctrl");
2189     {
2190         int     id = (int)SvIV(ST(1));
2191         wxEventType     type = (wxEventType)SvIV(ST(2));
2192         wxObject*    obj = (wxObject *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Object" );
2193         int     row = (int)SvIV(ST(4));
2194         int     col = (int)SvIV(ST(5));
2195         wxControl*    ctrl = (wxControl *) wxPli_sv_2_object( aTHX_ ST(6), "Wx::Control" );
2196         char *  CLASS = (char *)SvPV_nolen(ST(0));
2197         wxGridEditorCreatedEvent *      RETVAL;
2198
2199         RETVAL = new wxGridEditorCreatedEvent(id, type, obj, row, col, ctrl);
2200         ST(0) = sv_newmortal();
2201     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2202
2203     }
2204     XSRETURN(1);
2205 }
2206
2207
2208 XS(XS_Wx__GridEditorCreatedEvent_GetRow); /* prototype to pass -Wmissing-prototypes */
2209 XS(XS_Wx__GridEditorCreatedEvent_GetRow)
2210 {
2211 #ifdef dVAR
2212     dVAR; dXSARGS;
2213 #else
2214     dXSARGS;
2215 #endif
2216     if (items != 1)
2217        croak_xs_usage(cv,  "THIS");
2218     {
2219         wxGridEditorCreatedEvent *    THIS = (wxGridEditorCreatedEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridEditorCreatedEvent" );
2220         int     RETVAL;
2221         dXSTARG;
2222
2223         RETVAL = THIS->GetRow();
2224         XSprePUSH; PUSHi((IV)RETVAL);
2225     }
2226     XSRETURN(1);
2227 }
2228
2229
2230 XS(XS_Wx__GridEditorCreatedEvent_GetCol); /* prototype to pass -Wmissing-prototypes */
2231 XS(XS_Wx__GridEditorCreatedEvent_GetCol)
2232 {
2233 #ifdef dVAR
2234     dVAR; dXSARGS;
2235 #else
2236     dXSARGS;
2237 #endif
2238     if (items != 1)
2239        croak_xs_usage(cv,  "THIS");
2240     {
2241         wxGridEditorCreatedEvent *    THIS = (wxGridEditorCreatedEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridEditorCreatedEvent" );
2242         int     RETVAL;
2243         dXSTARG;
2244
2245         RETVAL = THIS->GetCol();
2246         XSprePUSH; PUSHi((IV)RETVAL);
2247     }
2248     XSRETURN(1);
2249 }
2250
2251
2252 XS(XS_Wx__GridEditorCreatedEvent_GetControl); /* prototype to pass -Wmissing-prototypes */
2253 XS(XS_Wx__GridEditorCreatedEvent_GetControl)
2254 {
2255 #ifdef dVAR
2256     dVAR; dXSARGS;
2257 #else
2258     dXSARGS;
2259 #endif
2260     if (items != 1)
2261        croak_xs_usage(cv,  "THIS");
2262     {
2263         wxGridEditorCreatedEvent *    THIS = (wxGridEditorCreatedEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridEditorCreatedEvent" );
2264         wxControl *     RETVAL;
2265
2266         RETVAL = THIS->GetControl();
2267         ST(0) = sv_newmortal();
2268     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2269
2270     }
2271     XSRETURN(1);
2272 }
2273
2274
2275 XS(XS_Wx__GridEditorCreatedEvent_SetRow); /* prototype to pass -Wmissing-prototypes */
2276 XS(XS_Wx__GridEditorCreatedEvent_SetRow)
2277 {
2278 #ifdef dVAR
2279     dVAR; dXSARGS;
2280 #else
2281     dXSARGS;
2282 #endif
2283     if (items != 2)
2284        croak_xs_usage(cv,  "THIS, row");
2285     {
2286         int     row = (int)SvIV(ST(1));
2287         wxGridEditorCreatedEvent *    THIS = (wxGridEditorCreatedEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridEditorCreatedEvent" );
2288
2289         THIS->SetRow(row);
2290     }
2291     XSRETURN_EMPTY;
2292 }
2293
2294
2295 XS(XS_Wx__GridEditorCreatedEvent_SetCol); /* prototype to pass -Wmissing-prototypes */
2296 XS(XS_Wx__GridEditorCreatedEvent_SetCol)
2297 {
2298 #ifdef dVAR
2299     dVAR; dXSARGS;
2300 #else
2301     dXSARGS;
2302 #endif
2303     if (items != 2)
2304        croak_xs_usage(cv,  "THIS, col");
2305     {
2306         int     col = (int)SvIV(ST(1));
2307         wxGridEditorCreatedEvent *    THIS = (wxGridEditorCreatedEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridEditorCreatedEvent" );
2308
2309         THIS->SetCol(col);
2310     }
2311     XSRETURN_EMPTY;
2312 }
2313
2314
2315 XS(XS_Wx__GridEditorCreatedEvent_SetControl); /* prototype to pass -Wmissing-prototypes */
2316 XS(XS_Wx__GridEditorCreatedEvent_SetControl)
2317 {
2318 #ifdef dVAR
2319     dVAR; dXSARGS;
2320 #else
2321     dXSARGS;
2322 #endif
2323     if (items != 2)
2324        croak_xs_usage(cv,  "THIS, control");
2325     {
2326         wxControl*    control = (wxControl *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Control" );
2327         wxGridEditorCreatedEvent *    THIS = (wxGridEditorCreatedEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridEditorCreatedEvent" );
2328
2329         THIS->SetControl(control);
2330     }
2331     XSRETURN_EMPTY;
2332 }
2333
2334
2335 /* INCLUDE: Returning to 'XS/GridCellAttr.xs' from 'XS/GridEvent.xs' */
2336
2337
2338 XS(XS_Wx__GridCellAttr_new); /* prototype to pass -Wmissing-prototypes */
2339 XS(XS_Wx__GridCellAttr_new)
2340 {
2341 #ifdef dVAR
2342     dVAR; dXSARGS;
2343 #else
2344     dXSARGS;
2345 #endif
2346     if (items != 1)
2347        croak_xs_usage(cv,  "CLASS");
2348     {
2349         char *  CLASS = (char *)SvPV_nolen(ST(0));
2350         wxGridCellAttr *        RETVAL;
2351
2352         RETVAL = new wxGridCellAttr();
2353         ST(0) = sv_newmortal();
2354     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellAttr" );
2355     wxPli_thread_sv_register( aTHX_ "Wx::GridCellAttr", SvRV( ST(0) ), ST(0) );
2356
2357     }
2358     XSRETURN(1);
2359 }
2360
2361
2362 XS(XS_Wx__GridCellAttr_CLONE); /* prototype to pass -Wmissing-prototypes */
2363 XS(XS_Wx__GridCellAttr_CLONE)
2364 {
2365 #ifdef dVAR
2366     dVAR; dXSARGS;
2367 #else
2368     dXSARGS;
2369 #endif
2370     if (items != 1)
2371        croak_xs_usage(cv,  "CLASS");
2372     {
2373         char *  CLASS = (char *)SvPV_nolen(ST(0));
2374     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
2375     }
2376     XSRETURN_EMPTY;
2377 }
2378
2379
2380 XS(XS_Wx__GridCellAttr_DESTROY); /* prototype to pass -Wmissing-prototypes */
2381 XS(XS_Wx__GridCellAttr_DESTROY)
2382 {
2383 #ifdef dVAR
2384     dVAR; dXSARGS;
2385 #else
2386     dXSARGS;
2387 #endif
2388     if (items != 1)
2389        croak_xs_usage(cv,  "THIS");
2390     {
2391         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2392     wxPli_thread_sv_unregister( aTHX_ wxPli_get_class( aTHX_ ST(0) ),
2393                                 SvRV( ST(0) ), ST(0) );
2394     if( THIS )
2395         THIS->DecRef();
2396     }
2397     XSRETURN_EMPTY;
2398 }
2399
2400
2401 XS(XS_Wx__GridCellAttr_IncRef); /* prototype to pass -Wmissing-prototypes */
2402 XS(XS_Wx__GridCellAttr_IncRef)
2403 {
2404 #ifdef dVAR
2405     dVAR; dXSARGS;
2406 #else
2407     dXSARGS;
2408 #endif
2409     if (items != 1)
2410        croak_xs_usage(cv,  "THIS");
2411     {
2412         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2413
2414         THIS->IncRef();
2415     }
2416     XSRETURN_EMPTY;
2417 }
2418
2419
2420 XS(XS_Wx__GridCellAttr_DecRef); /* prototype to pass -Wmissing-prototypes */
2421 XS(XS_Wx__GridCellAttr_DecRef)
2422 {
2423 #ifdef dVAR
2424     dVAR; dXSARGS;
2425 #else
2426     dXSARGS;
2427 #endif
2428     if (items != 1)
2429        croak_xs_usage(cv,  "THIS");
2430     {
2431         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2432
2433         THIS->DecRef();
2434     }
2435     XSRETURN_EMPTY;
2436 }
2437
2438
2439 XS(XS_Wx__GridCellAttr_SetTextColour); /* prototype to pass -Wmissing-prototypes */
2440 XS(XS_Wx__GridCellAttr_SetTextColour)
2441 {
2442 #ifdef dVAR
2443     dVAR; dXSARGS;
2444 #else
2445     dXSARGS;
2446 #endif
2447     if (items != 2)
2448        croak_xs_usage(cv,  "THIS, colour");
2449     {
2450         wxColour    colour = *(wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
2451         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2452
2453         THIS->SetTextColour(colour);
2454     }
2455     XSRETURN_EMPTY;
2456 }
2457
2458
2459 XS(XS_Wx__GridCellAttr_SetBackgroundColour); /* prototype to pass -Wmissing-prototypes */
2460 XS(XS_Wx__GridCellAttr_SetBackgroundColour)
2461 {
2462 #ifdef dVAR
2463     dVAR; dXSARGS;
2464 #else
2465     dXSARGS;
2466 #endif
2467     if (items != 2)
2468        croak_xs_usage(cv,  "THIS, colour");
2469     {
2470         wxColour    colour = *(wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
2471         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2472
2473         THIS->SetBackgroundColour(colour);
2474     }
2475     XSRETURN_EMPTY;
2476 }
2477
2478
2479 XS(XS_Wx__GridCellAttr_SetFont); /* prototype to pass -Wmissing-prototypes */
2480 XS(XS_Wx__GridCellAttr_SetFont)
2481 {
2482 #ifdef dVAR
2483     dVAR; dXSARGS;
2484 #else
2485     dXSARGS;
2486 #endif
2487     if (items != 2)
2488        croak_xs_usage(cv,  "THIS, font");
2489     {
2490         wxFont*    font = (wxFont *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Font" );
2491         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2492     THIS->SetFont( *font );
2493     }
2494     XSRETURN_EMPTY;
2495 }
2496
2497
2498 XS(XS_Wx__GridCellAttr_SetAlignment); /* prototype to pass -Wmissing-prototypes */
2499 XS(XS_Wx__GridCellAttr_SetAlignment)
2500 {
2501 #ifdef dVAR
2502     dVAR; dXSARGS;
2503 #else
2504     dXSARGS;
2505 #endif
2506     if (items != 3)
2507        croak_xs_usage(cv,  "THIS, hAlign, vAlign");
2508     {
2509         int     hAlign = (int)SvIV(ST(1));
2510         int     vAlign = (int)SvIV(ST(2));
2511         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2512
2513         THIS->SetAlignment(hAlign, vAlign);
2514     }
2515     XSRETURN_EMPTY;
2516 }
2517
2518
2519 XS(XS_Wx__GridCellAttr_SetReadOnly); /* prototype to pass -Wmissing-prototypes */
2520 XS(XS_Wx__GridCellAttr_SetReadOnly)
2521 {
2522 #ifdef dVAR
2523     dVAR; dXSARGS;
2524 #else
2525     dXSARGS;
2526 #endif
2527     if (items < 1 || items > 2)
2528        croak_xs_usage(cv,  "THIS, isReadOnly = true");
2529     {
2530         bool    isReadOnly;
2531         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2532
2533         if (items < 2)
2534             isReadOnly = true;
2535         else {
2536             isReadOnly = (bool)SvTRUE(ST(1));
2537         }
2538
2539         THIS->SetReadOnly(isReadOnly);
2540     }
2541     XSRETURN_EMPTY;
2542 }
2543
2544
2545 XS(XS_Wx__GridCellAttr_HasTextColour); /* prototype to pass -Wmissing-prototypes */
2546 XS(XS_Wx__GridCellAttr_HasTextColour)
2547 {
2548 #ifdef dVAR
2549     dVAR; dXSARGS;
2550 #else
2551     dXSARGS;
2552 #endif
2553     if (items != 1)
2554        croak_xs_usage(cv,  "THIS");
2555     {
2556         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2557         bool    RETVAL;
2558
2559         RETVAL = THIS->HasTextColour();
2560         ST(0) = boolSV(RETVAL);
2561         sv_2mortal(ST(0));
2562     }
2563     XSRETURN(1);
2564 }
2565
2566
2567 XS(XS_Wx__GridCellAttr_HasBackgroundColour); /* prototype to pass -Wmissing-prototypes */
2568 XS(XS_Wx__GridCellAttr_HasBackgroundColour)
2569 {
2570 #ifdef dVAR
2571     dVAR; dXSARGS;
2572 #else
2573     dXSARGS;
2574 #endif
2575     if (items != 1)
2576        croak_xs_usage(cv,  "THIS");
2577     {
2578         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2579         bool    RETVAL;
2580
2581         RETVAL = THIS->HasBackgroundColour();
2582         ST(0) = boolSV(RETVAL);
2583         sv_2mortal(ST(0));
2584     }
2585     XSRETURN(1);
2586 }
2587
2588
2589 XS(XS_Wx__GridCellAttr_HasFont); /* prototype to pass -Wmissing-prototypes */
2590 XS(XS_Wx__GridCellAttr_HasFont)
2591 {
2592 #ifdef dVAR
2593     dVAR; dXSARGS;
2594 #else
2595     dXSARGS;
2596 #endif
2597     if (items != 1)
2598        croak_xs_usage(cv,  "THIS");
2599     {
2600         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2601         bool    RETVAL;
2602
2603         RETVAL = THIS->HasFont();
2604         ST(0) = boolSV(RETVAL);
2605         sv_2mortal(ST(0));
2606     }
2607     XSRETURN(1);
2608 }
2609
2610
2611 XS(XS_Wx__GridCellAttr_HasAlignment); /* prototype to pass -Wmissing-prototypes */
2612 XS(XS_Wx__GridCellAttr_HasAlignment)
2613 {
2614 #ifdef dVAR
2615     dVAR; dXSARGS;
2616 #else
2617     dXSARGS;
2618 #endif
2619     if (items != 1)
2620        croak_xs_usage(cv,  "THIS");
2621     {
2622         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2623         bool    RETVAL;
2624
2625         RETVAL = THIS->HasAlignment();
2626         ST(0) = boolSV(RETVAL);
2627         sv_2mortal(ST(0));
2628     }
2629     XSRETURN(1);
2630 }
2631
2632
2633 XS(XS_Wx__GridCellAttr_HasRenderer); /* prototype to pass -Wmissing-prototypes */
2634 XS(XS_Wx__GridCellAttr_HasRenderer)
2635 {
2636 #ifdef dVAR
2637     dVAR; dXSARGS;
2638 #else
2639     dXSARGS;
2640 #endif
2641     if (items != 1)
2642        croak_xs_usage(cv,  "THIS");
2643     {
2644         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2645         bool    RETVAL;
2646
2647         RETVAL = THIS->HasRenderer();
2648         ST(0) = boolSV(RETVAL);
2649         sv_2mortal(ST(0));
2650     }
2651     XSRETURN(1);
2652 }
2653
2654
2655 XS(XS_Wx__GridCellAttr_HasEditor); /* prototype to pass -Wmissing-prototypes */
2656 XS(XS_Wx__GridCellAttr_HasEditor)
2657 {
2658 #ifdef dVAR
2659     dVAR; dXSARGS;
2660 #else
2661     dXSARGS;
2662 #endif
2663     if (items != 1)
2664        croak_xs_usage(cv,  "THIS");
2665     {
2666         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2667         bool    RETVAL;
2668
2669         RETVAL = THIS->HasEditor();
2670         ST(0) = boolSV(RETVAL);
2671         sv_2mortal(ST(0));
2672     }
2673     XSRETURN(1);
2674 }
2675
2676
2677 XS(XS_Wx__GridCellAttr_GetTextColour); /* prototype to pass -Wmissing-prototypes */
2678 XS(XS_Wx__GridCellAttr_GetTextColour)
2679 {
2680 #ifdef dVAR
2681     dVAR; dXSARGS;
2682 #else
2683     dXSARGS;
2684 #endif
2685     if (items != 1)
2686        croak_xs_usage(cv,  "THIS");
2687     {
2688         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2689         wxColour *      RETVAL;
2690     RETVAL = new wxColour( THIS->GetTextColour() );
2691         ST(0) = sv_newmortal();
2692     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
2693     wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
2694
2695     }
2696     XSRETURN(1);
2697 }
2698
2699
2700 XS(XS_Wx__GridCellAttr_GetBackgroundColour); /* prototype to pass -Wmissing-prototypes */
2701 XS(XS_Wx__GridCellAttr_GetBackgroundColour)
2702 {
2703 #ifdef dVAR
2704     dVAR; dXSARGS;
2705 #else
2706     dXSARGS;
2707 #endif
2708     if (items != 1)
2709        croak_xs_usage(cv,  "THIS");
2710     {
2711         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2712         wxColour *      RETVAL;
2713     RETVAL = new wxColour( THIS->GetBackgroundColour() );
2714         ST(0) = sv_newmortal();
2715     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
2716     wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
2717
2718     }
2719     XSRETURN(1);
2720 }
2721
2722
2723 XS(XS_Wx__GridCellAttr_GetEditor); /* prototype to pass -Wmissing-prototypes */
2724 XS(XS_Wx__GridCellAttr_GetEditor)
2725 {
2726 #ifdef dVAR
2727     dVAR; dXSARGS;
2728 #else
2729     dXSARGS;
2730 #endif
2731     if (items != 4)
2732        croak_xs_usage(cv,  "THIS, grid, row, col");
2733     {
2734         wxGrid*    grid = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Grid" );
2735         int     row = (int)SvIV(ST(2));
2736         int     col = (int)SvIV(ST(3));
2737         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2738         wxGridCellEditor *      RETVAL;
2739     RETVAL = THIS->GetEditor( grid, row, col );
2740         ST(0) = sv_newmortal();
2741     wxPli_clientdatacontainer_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellEditor" );
2742     wxPli_thread_sv_register( aTHX_ "Wx::GridCellEditor", SvRV( ST(0) ), ST(0) );
2743
2744     }
2745     XSRETURN(1);
2746 }
2747
2748
2749 XS(XS_Wx__GridCellAttr_GetRenderer); /* prototype to pass -Wmissing-prototypes */
2750 XS(XS_Wx__GridCellAttr_GetRenderer)
2751 {
2752 #ifdef dVAR
2753     dVAR; dXSARGS;
2754 #else
2755     dXSARGS;
2756 #endif
2757     if (items != 4)
2758        croak_xs_usage(cv,  "THIS, grid, row, col");
2759     {
2760         wxGrid*    grid = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Grid" );
2761         int     row = (int)SvIV(ST(2));
2762         int     col = (int)SvIV(ST(3));
2763         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2764         wxGridCellRenderer *    RETVAL;
2765     RETVAL = THIS->GetRenderer( grid, row, col );
2766         ST(0) = sv_newmortal();
2767     wxPli_clientdatacontainer_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellRenderer" );
2768     wxPli_thread_sv_register( aTHX_ "Wx::GridCellRenderer", SvRV( ST(0) ), ST(0) );
2769
2770     }
2771     XSRETURN(1);
2772 }
2773
2774
2775 XS(XS_Wx__GridCellAttr_GetFont); /* prototype to pass -Wmissing-prototypes */
2776 XS(XS_Wx__GridCellAttr_GetFont)
2777 {
2778 #ifdef dVAR
2779     dVAR; dXSARGS;
2780 #else
2781     dXSARGS;
2782 #endif
2783     if (items != 1)
2784        croak_xs_usage(cv,  "THIS");
2785     {
2786         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2787         wxFont *        RETVAL;
2788     RETVAL = new wxFont( THIS->GetFont() );
2789         ST(0) = sv_newmortal();
2790     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2791     wxPli_thread_sv_register( aTHX_ "Wx::Font", RETVAL, ST(0) );
2792
2793     }
2794     XSRETURN(1);
2795 }
2796
2797
2798 XS(XS_Wx__GridCellAttr_GetAlignment); /* prototype to pass -Wmissing-prototypes */
2799 XS(XS_Wx__GridCellAttr_GetAlignment)
2800 {
2801 #ifdef dVAR
2802     dVAR; dXSARGS;
2803 #else
2804     dXSARGS;
2805 #endif
2806     if (items != 1)
2807        croak_xs_usage(cv,  "THIS");
2808     PERL_UNUSED_VAR(ax); /* -Wall */
2809     SP -= items;
2810     {
2811     int x, y;
2812         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2813     THIS->GetAlignment( &x, &y );
2814     EXTEND( SP, 2 );
2815     PUSHs( sv_2mortal( newSViv( x ) ) );
2816     PUSHs( sv_2mortal( newSViv( y ) ) );
2817         PUTBACK;
2818         return;
2819     }
2820 }
2821
2822
2823 XS(XS_Wx__GridCellAttr_IsReadOnly); /* prototype to pass -Wmissing-prototypes */
2824 XS(XS_Wx__GridCellAttr_IsReadOnly)
2825 {
2826 #ifdef dVAR
2827     dVAR; dXSARGS;
2828 #else
2829     dXSARGS;
2830 #endif
2831     if (items != 1)
2832        croak_xs_usage(cv,  "THIS");
2833     {
2834         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2835         bool    RETVAL;
2836
2837         RETVAL = THIS->IsReadOnly();
2838         ST(0) = boolSV(RETVAL);
2839         sv_2mortal(ST(0));
2840     }
2841     XSRETURN(1);
2842 }
2843
2844
2845 XS(XS_Wx__GridCellAttr_SetDefAttr); /* prototype to pass -Wmissing-prototypes */
2846 XS(XS_Wx__GridCellAttr_SetDefAttr)
2847 {
2848 #ifdef dVAR
2849     dVAR; dXSARGS;
2850 #else
2851     dXSARGS;
2852 #endif
2853     if (items != 2)
2854        croak_xs_usage(cv,  "THIS, defAttr");
2855     {
2856         wxGridCellAttr*    defAttr = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridCellAttr" );
2857         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2858
2859         THIS->SetDefAttr(defAttr);
2860     }
2861     XSRETURN_EMPTY;
2862 }
2863
2864
2865 XS(XS_Wx__GridCellAttr_SetEditor); /* prototype to pass -Wmissing-prototypes */
2866 XS(XS_Wx__GridCellAttr_SetEditor)
2867 {
2868 #ifdef dVAR
2869     dVAR; dXSARGS;
2870 #else
2871     dXSARGS;
2872 #endif
2873     if (items != 2)
2874        croak_xs_usage(cv,  "THIS, editor");
2875     {
2876         wxGridCellEditor*    editor = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridCellEditor" );
2877         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2878     editor->IncRef();
2879     THIS->SetEditor( editor );
2880     }
2881     XSRETURN_EMPTY;
2882 }
2883
2884
2885 XS(XS_Wx__GridCellAttr_SetRenderer); /* prototype to pass -Wmissing-prototypes */
2886 XS(XS_Wx__GridCellAttr_SetRenderer)
2887 {
2888 #ifdef dVAR
2889     dVAR; dXSARGS;
2890 #else
2891     dXSARGS;
2892 #endif
2893     if (items != 2)
2894        croak_xs_usage(cv,  "THIS, renderer");
2895     {
2896         wxGridCellRenderer*    renderer = (wxGridCellRenderer *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridCellRenderer" );
2897         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2898     renderer->IncRef();
2899     THIS->SetRenderer( renderer );
2900     }
2901     XSRETURN_EMPTY;
2902 }
2903
2904
2905 XS(XS_Wx__GridCellAttr_GetOverflow); /* prototype to pass -Wmissing-prototypes */
2906 XS(XS_Wx__GridCellAttr_GetOverflow)
2907 {
2908 #ifdef dVAR
2909     dVAR; dXSARGS;
2910 #else
2911     dXSARGS;
2912 #endif
2913     if (items != 1)
2914        croak_xs_usage(cv,  "THIS");
2915     {
2916         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2917         bool    RETVAL;
2918
2919         RETVAL = THIS->GetOverflow();
2920         ST(0) = boolSV(RETVAL);
2921         sv_2mortal(ST(0));
2922     }
2923     XSRETURN(1);
2924 }
2925
2926
2927 XS(XS_Wx__GridCellAttr_SetOverflow); /* prototype to pass -Wmissing-prototypes */
2928 XS(XS_Wx__GridCellAttr_SetOverflow)
2929 {
2930 #ifdef dVAR
2931     dVAR; dXSARGS;
2932 #else
2933     dXSARGS;
2934 #endif
2935     if (items < 1 || items > 2)
2936        croak_xs_usage(cv,  "THIS, allow = true");
2937     {
2938         bool    allow;
2939         wxGridCellAttr *    THIS = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellAttr" );
2940
2941         if (items < 2)
2942             allow = true;
2943         else {
2944             allow = (bool)SvTRUE(ST(1));
2945         }
2946
2947         THIS->SetOverflow(allow);
2948     }
2949     XSRETURN_EMPTY;
2950 }
2951
2952
2953 /* INCLUDE: Returning to 'XS/Grid.xs' from 'XS/GridCellAttr.xs' */
2954
2955 #include <wx/grid.h>
2956 #include "cpp/overload.h"
2957 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
2958 #define XSubPPtmpAAAG 1
2959
2960
2961 XS(XS_Wx__GridUpdateLocker_new); /* prototype to pass -Wmissing-prototypes */
2962 XS(XS_Wx__GridUpdateLocker_new)
2963 {
2964 #ifdef dVAR
2965     dVAR; dXSARGS;
2966 #else
2967     dXSARGS;
2968 #endif
2969     if (items < 1 || items > 2)
2970        croak_xs_usage(cv,  "CLASS, grid = NULL");
2971     {
2972         wxGrid* grid;
2973         char *  CLASS = (char *)SvPV_nolen(ST(0));
2974         wxGridUpdateLocker *    RETVAL;
2975
2976         if (items < 2)
2977             grid = NULL;
2978         else {
2979     grid = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Grid" );
2980         }
2981
2982         RETVAL = new wxGridUpdateLocker(grid);
2983         ST(0) = sv_newmortal();
2984     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridUpdateLocker" );
2985     wxPli_thread_sv_register( aTHX_ "Wx::GridUpdateLocker", RETVAL, ST(0) );
2986
2987     }
2988     XSRETURN(1);
2989 }
2990
2991
2992 XS(XS_Wx__GridUpdateLocker_CLONE); /* prototype to pass -Wmissing-prototypes */
2993 XS(XS_Wx__GridUpdateLocker_CLONE)
2994 {
2995 #ifdef dVAR
2996     dVAR; dXSARGS;
2997 #else
2998     dXSARGS;
2999 #endif
3000     if (items != 1)
3001        croak_xs_usage(cv,  "CLASS");
3002     {
3003         char *  CLASS = (char *)SvPV_nolen(ST(0));
3004     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
3005     }
3006     XSRETURN_EMPTY;
3007 }
3008
3009
3010 XS(XS_Wx__GridUpdateLocker_DESTROY); /* prototype to pass -Wmissing-prototypes */
3011 XS(XS_Wx__GridUpdateLocker_DESTROY)
3012 {
3013 #ifdef dVAR
3014     dVAR; dXSARGS;
3015 #else
3016     dXSARGS;
3017 #endif
3018     if (items != 1)
3019        croak_xs_usage(cv,  "THIS");
3020     {
3021         wxGridUpdateLocker *    THIS = (wxGridUpdateLocker *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridUpdateLocker" );
3022     wxPli_thread_sv_unregister( aTHX_ "Wx::GridUpdateLocker", THIS, ST(0) );
3023     delete THIS;
3024     }
3025     XSRETURN_EMPTY;
3026 }
3027
3028
3029 XS(XS_Wx__GridUpdateLocker_Create); /* prototype to pass -Wmissing-prototypes */
3030 XS(XS_Wx__GridUpdateLocker_Create)
3031 {
3032 #ifdef dVAR
3033     dVAR; dXSARGS;
3034 #else
3035     dXSARGS;
3036 #endif
3037     if (items != 2)
3038        croak_xs_usage(cv,  "THIS, grid");
3039     {
3040         wxGrid*    grid = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Grid" );
3041         wxGridUpdateLocker *    THIS = (wxGridUpdateLocker *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridUpdateLocker" );
3042
3043         THIS->Create(grid);
3044     }
3045     XSRETURN_EMPTY;
3046 }
3047
3048 #endif
3049
3050 XS(XS_Wx__GridCellCoords_new); /* prototype to pass -Wmissing-prototypes */
3051 XS(XS_Wx__GridCellCoords_new)
3052 {
3053 #ifdef dVAR
3054     dVAR; dXSARGS;
3055 #else
3056     dXSARGS;
3057 #endif
3058     if (items != 3)
3059        croak_xs_usage(cv,  "CLASS, r, c");
3060     {
3061         int     r = (int)SvIV(ST(1));
3062         int     c = (int)SvIV(ST(2));
3063         char *  CLASS = (char *)SvPV_nolen(ST(0));
3064         wxGridCellCoords *      RETVAL;
3065
3066         RETVAL = new wxGridCellCoords(r, c);
3067         ST(0) = sv_newmortal();
3068     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellCoords" );
3069     wxPli_thread_sv_register( aTHX_ "Wx::GridCellCoords", RETVAL, ST(0) );
3070
3071     }
3072     XSRETURN(1);
3073 }
3074
3075
3076 XS(XS_Wx__GridCellCoords_CLONE); /* prototype to pass -Wmissing-prototypes */
3077 XS(XS_Wx__GridCellCoords_CLONE)
3078 {
3079 #ifdef dVAR
3080     dVAR; dXSARGS;
3081 #else
3082     dXSARGS;
3083 #endif
3084     if (items != 1)
3085        croak_xs_usage(cv,  "CLASS");
3086     {
3087         char *  CLASS = (char *)SvPV_nolen(ST(0));
3088     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
3089     }
3090     XSRETURN_EMPTY;
3091 }
3092
3093
3094 XS(XS_Wx__GridCellCoords_DESTROY); /* prototype to pass -Wmissing-prototypes */
3095 XS(XS_Wx__GridCellCoords_DESTROY)
3096 {
3097 #ifdef dVAR
3098     dVAR; dXSARGS;
3099 #else
3100     dXSARGS;
3101 #endif
3102     if (items != 1)
3103        croak_xs_usage(cv,  "THIS");
3104     {
3105         wxGridCellCoords *    THIS = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellCoords" );
3106     wxPli_thread_sv_unregister( aTHX_ "Wx::GridCellCoords", THIS, ST(0) );
3107     delete THIS;
3108     }
3109     XSRETURN_EMPTY;
3110 }
3111
3112
3113 XS(XS_Wx__GridCellCoords_GetRow); /* prototype to pass -Wmissing-prototypes */
3114 XS(XS_Wx__GridCellCoords_GetRow)
3115 {
3116 #ifdef dVAR
3117     dVAR; dXSARGS;
3118 #else
3119     dXSARGS;
3120 #endif
3121     if (items != 1)
3122        croak_xs_usage(cv,  "THIS");
3123     {
3124         wxGridCellCoords *    THIS = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellCoords" );
3125         int     RETVAL;
3126         dXSTARG;
3127
3128         RETVAL = THIS->GetRow();
3129         XSprePUSH; PUSHi((IV)RETVAL);
3130     }
3131     XSRETURN(1);
3132 }
3133
3134
3135 XS(XS_Wx__GridCellCoords_GetCol); /* prototype to pass -Wmissing-prototypes */
3136 XS(XS_Wx__GridCellCoords_GetCol)
3137 {
3138 #ifdef dVAR
3139     dVAR; dXSARGS;
3140 #else
3141     dXSARGS;
3142 #endif
3143     if (items != 1)
3144        croak_xs_usage(cv,  "THIS");
3145     {
3146         wxGridCellCoords *    THIS = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellCoords" );
3147         int     RETVAL;
3148         dXSTARG;
3149
3150         RETVAL = THIS->GetCol();
3151         XSprePUSH; PUSHi((IV)RETVAL);
3152     }
3153     XSRETURN(1);
3154 }
3155
3156
3157 XS(XS_Wx__GridCellCoords_SetRow); /* prototype to pass -Wmissing-prototypes */
3158 XS(XS_Wx__GridCellCoords_SetRow)
3159 {
3160 #ifdef dVAR
3161     dVAR; dXSARGS;
3162 #else
3163     dXSARGS;
3164 #endif
3165     if (items != 2)
3166        croak_xs_usage(cv,  "THIS, r");
3167     {
3168         int     r = (int)SvIV(ST(1));
3169         wxGridCellCoords *    THIS = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellCoords" );
3170
3171         THIS->SetRow(r);
3172     }
3173     XSRETURN_EMPTY;
3174 }
3175
3176
3177 XS(XS_Wx__GridCellCoords_SetCol); /* prototype to pass -Wmissing-prototypes */
3178 XS(XS_Wx__GridCellCoords_SetCol)
3179 {
3180 #ifdef dVAR
3181     dVAR; dXSARGS;
3182 #else
3183     dXSARGS;
3184 #endif
3185     if (items != 2)
3186        croak_xs_usage(cv,  "THIS, c");
3187     {
3188         int     c = (int)SvIV(ST(1));
3189         wxGridCellCoords *    THIS = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellCoords" );
3190
3191         THIS->SetCol(c);
3192     }
3193     XSRETURN_EMPTY;
3194 }
3195
3196
3197 XS(XS_Wx__GridCellCoords_Set); /* prototype to pass -Wmissing-prototypes */
3198 XS(XS_Wx__GridCellCoords_Set)
3199 {
3200 #ifdef dVAR
3201     dVAR; dXSARGS;
3202 #else
3203     dXSARGS;
3204 #endif
3205     if (items != 3)
3206        croak_xs_usage(cv,  "THIS, r, c");
3207     {
3208         int     r = (int)SvIV(ST(1));
3209         int     c = (int)SvIV(ST(2));
3210         wxGridCellCoords *    THIS = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridCellCoords" );
3211
3212         THIS->Set(r, c);
3213     }
3214     XSRETURN_EMPTY;
3215 }
3216
3217
3218 XS(XS_Wx__Grid_new); /* prototype to pass -Wmissing-prototypes */
3219 XS(XS_Wx__Grid_new)
3220 {
3221 #ifdef dVAR
3222     dVAR; dXSARGS;
3223 #else
3224     dXSARGS;
3225 #endif
3226     PERL_UNUSED_VAR(cv); /* -W */
3227     PERL_UNUSED_VAR(ax); /* -Wall */
3228     SP -= items;
3229     {
3230     BEGIN_OVERLOAD()
3231         MATCH_VOIDM_REDISP( newDefault )
3232         MATCH_ANY_REDISP( newFull )
3233     END_OVERLOAD( "Wx::Grid::new" )
3234         PUTBACK;
3235         return;
3236     }
3237 }
3238
3239
3240 XS(XS_Wx__Grid_newDefault); /* prototype to pass -Wmissing-prototypes */
3241 XS(XS_Wx__Grid_newDefault)
3242 {
3243 #ifdef dVAR
3244     dVAR; dXSARGS;
3245 #else
3246     dXSARGS;
3247 #endif
3248     if (items != 1)
3249        croak_xs_usage(cv,  "CLASS");
3250     {
3251         PlClassName    CLASS = wxPli_get_class( aTHX_ ST(0) );
3252         wxGrid *        RETVAL;
3253     RETVAL = new wxGrid();
3254     wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
3255         ST(0) = sv_newmortal();
3256     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3257
3258     }
3259     XSRETURN(1);
3260 }
3261
3262
3263 XS(XS_Wx__Grid_newFull); /* prototype to pass -Wmissing-prototypes */
3264 XS(XS_Wx__Grid_newFull)
3265 {
3266 #ifdef dVAR
3267     dVAR; dXSARGS;
3268 #else
3269     dXSARGS;
3270 #endif
3271     if (items < 2 || items > 7)
3272        croak_xs_usage(cv,  "CLASS, parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = wxWANTS_CHARS, name = wxPanelNameStr");
3273     {
3274         PlClassName    CLASS = wxPli_get_class( aTHX_ ST(0) );
3275         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
3276         wxWindowID      id;
3277         wxPoint pos;
3278         wxSize  size;
3279         long    style;
3280         wxString        name;
3281         wxGrid *        RETVAL;
3282
3283         if (items < 3)
3284             id = wxID_ANY;
3285         else {
3286     id = wxPli_get_wxwindowid( aTHX_ ST(2) );
3287         }
3288
3289         if (items < 4)
3290             pos = wxDefaultPosition;
3291         else {
3292     pos = wxPli_sv_2_wxpoint( aTHX_ ST(3) );
3293         }
3294
3295         if (items < 5)
3296             size = wxDefaultSize;
3297         else {
3298     size = wxPli_sv_2_wxsize( aTHX_ ST(4) );
3299         }
3300
3301         if (items < 6)
3302             style = wxWANTS_CHARS;
3303         else {
3304             style = (long)SvIV(ST(5));
3305         }
3306
3307         if (items < 7)
3308             name = wxPanelNameStr;
3309         else {
3310     WXSTRING_INPUT( name, wxString, ST(6) );
3311         }
3312     RETVAL = new wxGrid( parent, id, pos, size, style, name );
3313     wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
3314         ST(0) = sv_newmortal();
3315     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3316
3317     }
3318     XSRETURN(1);
3319 }
3320
3321
3322 XS(XS_Wx__Grid_Create); /* prototype to pass -Wmissing-prototypes */
3323 XS(XS_Wx__Grid_Create)
3324 {
3325 #ifdef dVAR
3326     dVAR; dXSARGS;
3327 #else
3328     dXSARGS;
3329 #endif
3330     if (items < 2 || items > 7)
3331        croak_xs_usage(cv,  "THIS, parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = wxWANTS_CHARS, name = wxPanelNameStr");
3332     {
3333         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
3334         wxWindowID      id;
3335         wxPoint pos;
3336         wxSize  size;
3337         long    style;
3338         wxString        name;
3339         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3340         bool    RETVAL;
3341
3342         if (items < 3)
3343             id = wxID_ANY;
3344         else {
3345     id = wxPli_get_wxwindowid( aTHX_ ST(2) );
3346         }
3347
3348         if (items < 4)
3349             pos = wxDefaultPosition;
3350         else {
3351     pos = wxPli_sv_2_wxpoint( aTHX_ ST(3) );
3352         }
3353
3354         if (items < 5)
3355             size = wxDefaultSize;
3356         else {
3357     size = wxPli_sv_2_wxsize( aTHX_ ST(4) );
3358         }
3359
3360         if (items < 6)
3361             style = wxWANTS_CHARS;
3362         else {
3363             style = (long)SvIV(ST(5));
3364         }
3365
3366         if (items < 7)
3367             name = wxPanelNameStr;
3368         else {
3369     WXSTRING_INPUT( name, wxString, ST(6) );
3370         }
3371
3372         RETVAL = THIS->Create(parent, id, pos, size, style, name);
3373         ST(0) = boolSV(RETVAL);
3374         sv_2mortal(ST(0));
3375     }
3376     XSRETURN(1);
3377 }
3378
3379
3380 XS(XS_Wx__Grid_AppendCols); /* prototype to pass -Wmissing-prototypes */
3381 XS(XS_Wx__Grid_AppendCols)
3382 {
3383 #ifdef dVAR
3384     dVAR; dXSARGS;
3385 #else
3386     dXSARGS;
3387 #endif
3388     if (items < 1 || items > 3)
3389        croak_xs_usage(cv,  "THIS, numCols = 1, updateLabels = true");
3390     {
3391         int     numCols;
3392         bool    updateLabels;
3393         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3394         bool    RETVAL;
3395
3396         if (items < 2)
3397             numCols = 1;
3398         else {
3399             numCols = (int)SvIV(ST(1));
3400         }
3401
3402         if (items < 3)
3403             updateLabels = true;
3404         else {
3405             updateLabels = (bool)SvTRUE(ST(2));
3406         }
3407
3408         RETVAL = THIS->AppendCols(numCols, updateLabels);
3409         ST(0) = boolSV(RETVAL);
3410         sv_2mortal(ST(0));
3411     }
3412     XSRETURN(1);
3413 }
3414
3415
3416 XS(XS_Wx__Grid_AppendRows); /* prototype to pass -Wmissing-prototypes */
3417 XS(XS_Wx__Grid_AppendRows)
3418 {
3419 #ifdef dVAR
3420     dVAR; dXSARGS;
3421 #else
3422     dXSARGS;
3423 #endif
3424     if (items < 1 || items > 3)
3425        croak_xs_usage(cv,  "THIS, numRows = 1, updateLabels = true");
3426     {
3427         int     numRows;
3428         bool    updateLabels;
3429         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3430         bool    RETVAL;
3431
3432         if (items < 2)
3433             numRows = 1;
3434         else {
3435             numRows = (int)SvIV(ST(1));
3436         }
3437
3438         if (items < 3)
3439             updateLabels = true;
3440         else {
3441             updateLabels = (bool)SvTRUE(ST(2));
3442         }
3443
3444         RETVAL = THIS->AppendRows(numRows, updateLabels);
3445         ST(0) = boolSV(RETVAL);
3446         sv_2mortal(ST(0));
3447     }
3448     XSRETURN(1);
3449 }
3450
3451
3452 XS(XS_Wx__Grid_AutoSize); /* prototype to pass -Wmissing-prototypes */
3453 XS(XS_Wx__Grid_AutoSize)
3454 {
3455 #ifdef dVAR
3456     dVAR; dXSARGS;
3457 #else
3458     dXSARGS;
3459 #endif
3460     if (items != 1)
3461        croak_xs_usage(cv,  "THIS");
3462     {
3463         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3464
3465         THIS->AutoSize();
3466     }
3467     XSRETURN_EMPTY;
3468 }
3469
3470
3471 XS(XS_Wx__Grid_AutoSizeColLabelSize); /* prototype to pass -Wmissing-prototypes */
3472 XS(XS_Wx__Grid_AutoSizeColLabelSize)
3473 {
3474 #ifdef dVAR
3475     dVAR; dXSARGS;
3476 #else
3477     dXSARGS;
3478 #endif
3479     if (items != 2)
3480        croak_xs_usage(cv,  "THIS, col");
3481     {
3482         int     col = (int)SvIV(ST(1));
3483         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3484
3485         THIS->AutoSizeColLabelSize(col);
3486     }
3487     XSRETURN_EMPTY;
3488 }
3489
3490
3491 XS(XS_Wx__Grid_AutoSizeRowLabelSize); /* prototype to pass -Wmissing-prototypes */
3492 XS(XS_Wx__Grid_AutoSizeRowLabelSize)
3493 {
3494 #ifdef dVAR
3495     dVAR; dXSARGS;
3496 #else
3497     dXSARGS;
3498 #endif
3499     if (items != 2)
3500        croak_xs_usage(cv,  "THIS, col");
3501     {
3502         int     col = (int)SvIV(ST(1));
3503         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3504
3505         THIS->AutoSizeRowLabelSize(col);
3506     }
3507     XSRETURN_EMPTY;
3508 }
3509
3510
3511 XS(XS_Wx__Grid_AutoSizeColumn); /* prototype to pass -Wmissing-prototypes */
3512 XS(XS_Wx__Grid_AutoSizeColumn)
3513 {
3514 #ifdef dVAR
3515     dVAR; dXSARGS;
3516 #else
3517     dXSARGS;
3518 #endif
3519     if (items < 2 || items > 3)
3520        croak_xs_usage(cv,  "THIS, col, setAsMin = true");
3521     {
3522         int     col = (int)SvIV(ST(1));
3523         bool    setAsMin;
3524         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3525
3526         if (items < 3)
3527             setAsMin = true;
3528         else {
3529             setAsMin = (bool)SvTRUE(ST(2));
3530         }
3531
3532         THIS->AutoSizeColumn(col, setAsMin);
3533     }
3534     XSRETURN_EMPTY;
3535 }
3536
3537
3538 XS(XS_Wx__Grid_AutoSizeColumns); /* prototype to pass -Wmissing-prototypes */
3539 XS(XS_Wx__Grid_AutoSizeColumns)
3540 {
3541 #ifdef dVAR
3542     dVAR; dXSARGS;
3543 #else
3544     dXSARGS;
3545 #endif
3546     if (items < 1 || items > 2)
3547        croak_xs_usage(cv,  "THIS, setAsMin = true");
3548     {
3549         bool    setAsMin;
3550         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3551
3552         if (items < 2)
3553             setAsMin = true;
3554         else {
3555             setAsMin = (bool)SvTRUE(ST(1));
3556         }
3557
3558         THIS->AutoSizeColumns(setAsMin);
3559     }
3560     XSRETURN_EMPTY;
3561 }
3562
3563
3564 XS(XS_Wx__Grid_AutoSizeRow); /* prototype to pass -Wmissing-prototypes */
3565 XS(XS_Wx__Grid_AutoSizeRow)
3566 {
3567 #ifdef dVAR
3568     dVAR; dXSARGS;
3569 #else
3570     dXSARGS;
3571 #endif
3572     if (items < 2 || items > 3)
3573        croak_xs_usage(cv,  "THIS, row, setAsMin = true");
3574     {
3575         int     row = (int)SvIV(ST(1));
3576         bool    setAsMin;
3577         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3578
3579         if (items < 3)
3580             setAsMin = true;
3581         else {
3582             setAsMin = (bool)SvTRUE(ST(2));
3583         }
3584
3585         THIS->AutoSizeRow(row, setAsMin);
3586     }
3587     XSRETURN_EMPTY;
3588 }
3589
3590
3591 XS(XS_Wx__Grid_AutoSizeRows); /* prototype to pass -Wmissing-prototypes */
3592 XS(XS_Wx__Grid_AutoSizeRows)
3593 {
3594 #ifdef dVAR
3595     dVAR; dXSARGS;
3596 #else
3597     dXSARGS;
3598 #endif
3599     if (items < 1 || items > 2)
3600        croak_xs_usage(cv,  "THIS, setAsMin = true");
3601     {
3602         bool    setAsMin;
3603         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3604
3605         if (items < 2)
3606             setAsMin = true;
3607         else {
3608             setAsMin = (bool)SvTRUE(ST(1));
3609         }
3610
3611         THIS->AutoSizeRows(setAsMin);
3612     }
3613     XSRETURN_EMPTY;
3614 }
3615
3616
3617 XS(XS_Wx__Grid_BeginBatch); /* prototype to pass -Wmissing-prototypes */
3618 XS(XS_Wx__Grid_BeginBatch)
3619 {
3620 #ifdef dVAR
3621     dVAR; dXSARGS;
3622 #else
3623     dXSARGS;
3624 #endif
3625     if (items != 1)
3626        croak_xs_usage(cv,  "THIS");
3627     {
3628         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3629
3630         THIS->BeginBatch();
3631     }
3632     XSRETURN_EMPTY;
3633 }
3634
3635
3636 XS(XS_Wx__Grid_BlockToDeviceRect); /* prototype to pass -Wmissing-prototypes */
3637 XS(XS_Wx__Grid_BlockToDeviceRect)
3638 {
3639 #ifdef dVAR
3640     dVAR; dXSARGS;
3641 #else
3642     dXSARGS;
3643 #endif
3644     if (items != 3)
3645        croak_xs_usage(cv,  "THIS, topLeft, bottomRight");
3646     {
3647         wxGridCellCoords*    topLeft = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridCellCoords" );
3648         wxGridCellCoords*    bottomRight = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::GridCellCoords" );
3649         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3650         wxRect *        RETVAL;
3651     RETVAL = new wxRect( THIS->BlockToDeviceRect( *topLeft, *bottomRight ) );
3652         ST(0) = sv_newmortal();
3653     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
3654     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
3655
3656     }
3657     XSRETURN(1);
3658 }
3659
3660
3661 XS(XS_Wx__Grid_CanDragColSize); /* prototype to pass -Wmissing-prototypes */
3662 XS(XS_Wx__Grid_CanDragColSize)
3663 {
3664 #ifdef dVAR
3665     dVAR; dXSARGS;
3666 #else
3667     dXSARGS;
3668 #endif
3669     if (items != 1)
3670        croak_xs_usage(cv,  "THIS");
3671     {
3672         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3673         bool    RETVAL;
3674
3675         RETVAL = THIS->CanDragColSize();
3676         ST(0) = boolSV(RETVAL);
3677         sv_2mortal(ST(0));
3678     }
3679     XSRETURN(1);
3680 }
3681
3682 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
3683 #define XSubPPtmpAAAH 1
3684
3685
3686 XS(XS_Wx__Grid_CanDragColMove); /* prototype to pass -Wmissing-prototypes */
3687 XS(XS_Wx__Grid_CanDragColMove)
3688 {
3689 #ifdef dVAR
3690     dVAR; dXSARGS;
3691 #else
3692     dXSARGS;
3693 #endif
3694     if (items != 1)
3695        croak_xs_usage(cv,  "THIS");
3696     {
3697         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3698         bool    RETVAL;
3699
3700         RETVAL = THIS->CanDragColMove();
3701         ST(0) = boolSV(RETVAL);
3702         sv_2mortal(ST(0));
3703     }
3704     XSRETURN(1);
3705 }
3706
3707 #endif
3708
3709 XS(XS_Wx__Grid_CanDragRowSize); /* prototype to pass -Wmissing-prototypes */
3710 XS(XS_Wx__Grid_CanDragRowSize)
3711 {
3712 #ifdef dVAR
3713     dVAR; dXSARGS;
3714 #else
3715     dXSARGS;
3716 #endif
3717     if (items != 1)
3718        croak_xs_usage(cv,  "THIS");
3719     {
3720         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3721         bool    RETVAL;
3722
3723         RETVAL = THIS->CanDragRowSize();
3724         ST(0) = boolSV(RETVAL);
3725         sv_2mortal(ST(0));
3726     }
3727     XSRETURN(1);
3728 }
3729
3730
3731 XS(XS_Wx__Grid_CanDragGridSize); /* prototype to pass -Wmissing-prototypes */
3732 XS(XS_Wx__Grid_CanDragGridSize)
3733 {
3734 #ifdef dVAR
3735     dVAR; dXSARGS;
3736 #else
3737     dXSARGS;
3738 #endif
3739     if (items != 1)
3740        croak_xs_usage(cv,  "THIS");
3741     {
3742         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3743         bool    RETVAL;
3744
3745         RETVAL = THIS->CanDragGridSize();
3746         ST(0) = boolSV(RETVAL);
3747         sv_2mortal(ST(0));
3748     }
3749     XSRETURN(1);
3750 }
3751
3752
3753 XS(XS_Wx__Grid_CanEnableCellControl); /* prototype to pass -Wmissing-prototypes */
3754 XS(XS_Wx__Grid_CanEnableCellControl)
3755 {
3756 #ifdef dVAR
3757     dVAR; dXSARGS;
3758 #else
3759     dXSARGS;
3760 #endif
3761     if (items != 1)
3762        croak_xs_usage(cv,  "THIS");
3763     {
3764         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3765         bool    RETVAL;
3766
3767         RETVAL = THIS->CanEnableCellControl();
3768         ST(0) = boolSV(RETVAL);
3769         sv_2mortal(ST(0));
3770     }
3771     XSRETURN(1);
3772 }
3773
3774
3775 XS(XS_Wx__Grid_CellToRectXY); /* prototype to pass -Wmissing-prototypes */
3776 XS(XS_Wx__Grid_CellToRectXY)
3777 {
3778 #ifdef dVAR
3779     dVAR; dXSARGS;
3780 #else
3781     dXSARGS;
3782 #endif
3783     if (items != 3)
3784        croak_xs_usage(cv,  "THIS, row, col");
3785     {
3786         int     row = (int)SvIV(ST(1));
3787         int     col = (int)SvIV(ST(2));
3788         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3789         wxRect *        RETVAL;
3790     RETVAL = new wxRect( THIS->CellToRect( row, col ) );
3791         ST(0) = sv_newmortal();
3792     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
3793     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
3794
3795     }
3796     XSRETURN(1);
3797 }
3798
3799
3800 XS(XS_Wx__Grid_CellToRectCo); /* prototype to pass -Wmissing-prototypes */
3801 XS(XS_Wx__Grid_CellToRectCo)
3802 {
3803 #ifdef dVAR
3804     dVAR; dXSARGS;
3805 #else
3806     dXSARGS;
3807 #endif
3808     if (items != 2)
3809        croak_xs_usage(cv,  "THIS, coords");
3810     {
3811         wxGridCellCoords*    coords = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridCellCoords" );
3812         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3813         wxRect *        RETVAL;
3814     RETVAL = new wxRect( THIS->CellToRect( *coords ) );
3815         ST(0) = sv_newmortal();
3816     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
3817     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
3818
3819     }
3820     XSRETURN(1);
3821 }
3822
3823
3824 XS(XS_Wx__Grid_ClearGrid); /* prototype to pass -Wmissing-prototypes */
3825 XS(XS_Wx__Grid_ClearGrid)
3826 {
3827 #ifdef dVAR
3828     dVAR; dXSARGS;
3829 #else
3830     dXSARGS;
3831 #endif
3832     if (items != 1)
3833        croak_xs_usage(cv,  "THIS");
3834     {
3835         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3836
3837         THIS->ClearGrid();
3838     }
3839     XSRETURN_EMPTY;
3840 }
3841
3842
3843 XS(XS_Wx__Grid_ClearSelection); /* prototype to pass -Wmissing-prototypes */
3844 XS(XS_Wx__Grid_ClearSelection)
3845 {
3846 #ifdef dVAR
3847     dVAR; dXSARGS;
3848 #else
3849     dXSARGS;
3850 #endif
3851     if (items != 1)
3852        croak_xs_usage(cv,  "THIS");
3853     {
3854         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3855
3856         THIS->ClearSelection();
3857     }
3858     XSRETURN_EMPTY;
3859 }
3860
3861
3862 XS(XS_Wx__Grid_CreateGrid); /* prototype to pass -Wmissing-prototypes */
3863 XS(XS_Wx__Grid_CreateGrid)
3864 {
3865 #ifdef dVAR
3866     dVAR; dXSARGS;
3867 #else
3868     dXSARGS;
3869 #endif
3870     if (items < 3 || items > 4)
3871        croak_xs_usage(cv,  "THIS, numRows, numCols, selMode = wxGrid::wxGridSelectCells");
3872     {
3873         int     numRows = (int)SvIV(ST(1));
3874         int     numCols = (int)SvIV(ST(2));
3875         wxGridSelectionModes    selMode;
3876         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3877         bool    RETVAL;
3878
3879         if (items < 4)
3880             selMode = wxGrid::wxGridSelectCells;
3881         else {
3882             selMode = (wxGridSelectionModes)SvIV(ST(3));
3883         }
3884
3885         RETVAL = THIS->CreateGrid(numRows, numCols, selMode);
3886         ST(0) = boolSV(RETVAL);
3887         sv_2mortal(ST(0));
3888     }
3889     XSRETURN(1);
3890 }
3891
3892
3893 XS(XS_Wx__Grid_DeleteCols); /* prototype to pass -Wmissing-prototypes */
3894 XS(XS_Wx__Grid_DeleteCols)
3895 {
3896 #ifdef dVAR
3897     dVAR; dXSARGS;
3898 #else
3899     dXSARGS;
3900 #endif
3901     if (items < 1 || items > 4)
3902        croak_xs_usage(cv,  "THIS, pos = 0, numCols = 1, updateLabels = true");
3903     {
3904         int     pos;
3905         int     numCols;
3906         bool    updateLabels;
3907         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3908         bool    RETVAL;
3909
3910         if (items < 2)
3911             pos = 0;
3912         else {
3913             pos = (int)SvIV(ST(1));
3914         }
3915
3916         if (items < 3)
3917             numCols = 1;
3918         else {
3919             numCols = (int)SvIV(ST(2));
3920         }
3921
3922         if (items < 4)
3923             updateLabels = true;
3924         else {
3925             updateLabels = (bool)SvTRUE(ST(3));
3926         }
3927
3928         RETVAL = THIS->DeleteCols(pos, numCols, updateLabels);
3929         ST(0) = boolSV(RETVAL);
3930         sv_2mortal(ST(0));
3931     }
3932     XSRETURN(1);
3933 }
3934
3935
3936 XS(XS_Wx__Grid_DeleteRows); /* prototype to pass -Wmissing-prototypes */
3937 XS(XS_Wx__Grid_DeleteRows)
3938 {
3939 #ifdef dVAR
3940     dVAR; dXSARGS;
3941 #else
3942     dXSARGS;
3943 #endif
3944     if (items < 1 || items > 4)
3945        croak_xs_usage(cv,  "THIS, pos = 0, numRows = 1, updateLabels = true");
3946     {
3947         int     pos;
3948         int     numRows;
3949         bool    updateLabels;
3950         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3951         bool    RETVAL;
3952
3953         if (items < 2)
3954             pos = 0;
3955         else {
3956             pos = (int)SvIV(ST(1));
3957         }
3958
3959         if (items < 3)
3960             numRows = 1;
3961         else {
3962             numRows = (int)SvIV(ST(2));
3963         }
3964
3965         if (items < 4)
3966             updateLabels = true;
3967         else {
3968             updateLabels = (bool)SvTRUE(ST(3));
3969         }
3970
3971         RETVAL = THIS->DeleteRows(pos, numRows, updateLabels);
3972         ST(0) = boolSV(RETVAL);
3973         sv_2mortal(ST(0));
3974     }
3975     XSRETURN(1);
3976 }
3977
3978
3979 XS(XS_Wx__Grid_DisableCellEditControl); /* prototype to pass -Wmissing-prototypes */
3980 XS(XS_Wx__Grid_DisableCellEditControl)
3981 {
3982 #ifdef dVAR
3983     dVAR; dXSARGS;
3984 #else
3985     dXSARGS;
3986 #endif
3987     if (items != 1)
3988        croak_xs_usage(cv,  "THIS");
3989     {
3990         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
3991
3992         THIS->DisableCellEditControl();
3993     }
3994     XSRETURN_EMPTY;
3995 }
3996
3997
3998 XS(XS_Wx__Grid_DisableDragGridSize); /* prototype to pass -Wmissing-prototypes */
3999 XS(XS_Wx__Grid_DisableDragGridSize)
4000 {
4001 #ifdef dVAR
4002     dVAR; dXSARGS;
4003 #else
4004     dXSARGS;
4005 #endif
4006     if (items != 1)
4007        croak_xs_usage(cv,  "THIS");
4008     {
4009         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4010
4011         THIS->DisableDragGridSize();
4012     }
4013     XSRETURN_EMPTY;
4014 }
4015
4016
4017 XS(XS_Wx__Grid_DisableDragRowSize); /* prototype to pass -Wmissing-prototypes */
4018 XS(XS_Wx__Grid_DisableDragRowSize)
4019 {
4020 #ifdef dVAR
4021     dVAR; dXSARGS;
4022 #else
4023     dXSARGS;
4024 #endif
4025     if (items != 1)
4026        croak_xs_usage(cv,  "THIS");
4027     {
4028         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4029
4030         THIS->DisableDragRowSize();
4031     }
4032     XSRETURN_EMPTY;
4033 }
4034
4035
4036 XS(XS_Wx__Grid_DisableDragColSize); /* prototype to pass -Wmissing-prototypes */
4037 XS(XS_Wx__Grid_DisableDragColSize)
4038 {
4039 #ifdef dVAR
4040     dVAR; dXSARGS;
4041 #else
4042     dXSARGS;
4043 #endif
4044     if (items != 1)
4045        croak_xs_usage(cv,  "THIS");
4046     {
4047         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4048
4049         THIS->DisableDragColSize();
4050     }
4051     XSRETURN_EMPTY;
4052 }
4053
4054 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
4055 #define XSubPPtmpAAAI 1
4056
4057
4058 XS(XS_Wx__Grid_DisableDragColMove); /* prototype to pass -Wmissing-prototypes */
4059 XS(XS_Wx__Grid_DisableDragColMove)
4060 {
4061 #ifdef dVAR
4062     dVAR; dXSARGS;
4063 #else
4064     dXSARGS;
4065 #endif
4066     if (items != 1)
4067        croak_xs_usage(cv,  "THIS");
4068     {
4069         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4070
4071         THIS->DisableDragColMove();
4072     }
4073     XSRETURN_EMPTY;
4074 }
4075
4076 #endif
4077
4078 XS(XS_Wx__Grid_EnableCellEditControl); /* prototype to pass -Wmissing-prototypes */
4079 XS(XS_Wx__Grid_EnableCellEditControl)
4080 {
4081 #ifdef dVAR
4082     dVAR; dXSARGS;
4083 #else
4084     dXSARGS;
4085 #endif
4086     if (items < 1 || items > 2)
4087        croak_xs_usage(cv,  "THIS, enable = true");
4088     {
4089         bool    enable;
4090         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4091
4092         if (items < 2)
4093             enable = true;
4094         else {
4095             enable = (bool)SvTRUE(ST(1));
4096         }
4097
4098         THIS->EnableCellEditControl(enable);
4099     }
4100     XSRETURN_EMPTY;
4101 }
4102
4103 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
4104 #define XSubPPtmpAAAJ 1
4105
4106
4107 XS(XS_Wx__Grid_EnableDragColMove); /* prototype to pass -Wmissing-prototypes */
4108 XS(XS_Wx__Grid_EnableDragColMove)
4109 {
4110 #ifdef dVAR
4111     dVAR; dXSARGS;
4112 #else
4113     dXSARGS;
4114 #endif
4115     if (items < 1 || items > 2)
4116        croak_xs_usage(cv,  "THIS, enable = true");
4117     {
4118         bool    enable;
4119         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4120
4121         if (items < 2)
4122             enable = true;
4123         else {
4124             enable = (bool)SvTRUE(ST(1));
4125         }
4126
4127         THIS->EnableDragColMove(enable);
4128     }
4129     XSRETURN_EMPTY;
4130 }
4131
4132 #endif
4133
4134 XS(XS_Wx__Grid_EnableDragColSize); /* prototype to pass -Wmissing-prototypes */
4135 XS(XS_Wx__Grid_EnableDragColSize)
4136 {
4137 #ifdef dVAR
4138     dVAR; dXSARGS;
4139 #else
4140     dXSARGS;
4141 #endif
4142     if (items < 1 || items > 2)
4143        croak_xs_usage(cv,  "THIS, enable = true");
4144     {
4145         bool    enable;
4146         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4147
4148         if (items < 2)
4149             enable = true;
4150         else {
4151             enable = (bool)SvTRUE(ST(1));
4152         }
4153
4154         THIS->EnableDragColSize(enable);
4155     }
4156     XSRETURN_EMPTY;
4157 }
4158
4159
4160 XS(XS_Wx__Grid_EnableDragGridSize); /* prototype to pass -Wmissing-prototypes */
4161 XS(XS_Wx__Grid_EnableDragGridSize)
4162 {
4163 #ifdef dVAR
4164     dVAR; dXSARGS;
4165 #else
4166     dXSARGS;
4167 #endif
4168     if (items < 1 || items > 2)
4169        croak_xs_usage(cv,  "THIS, enable = true");
4170     {
4171         bool    enable;
4172         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4173
4174         if (items < 2)
4175             enable = true;
4176         else {
4177             enable = (bool)SvTRUE(ST(1));
4178         }
4179
4180         THIS->EnableDragGridSize(enable);
4181     }
4182     XSRETURN_EMPTY;
4183 }
4184
4185
4186 XS(XS_Wx__Grid_EnableDragRowSize); /* prototype to pass -Wmissing-prototypes */
4187 XS(XS_Wx__Grid_EnableDragRowSize)
4188 {
4189 #ifdef dVAR
4190     dVAR; dXSARGS;
4191 #else
4192     dXSARGS;
4193 #endif
4194     if (items < 1 || items > 2)
4195        croak_xs_usage(cv,  "THIS, enable = true");
4196     {
4197         bool    enable;
4198         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4199
4200         if (items < 2)
4201             enable = true;
4202         else {
4203             enable = (bool)SvTRUE(ST(1));
4204         }
4205
4206         THIS->EnableDragRowSize(enable);
4207     }
4208     XSRETURN_EMPTY;
4209 }
4210
4211
4212 XS(XS_Wx__Grid_EnableEditing); /* prototype to pass -Wmissing-prototypes */
4213 XS(XS_Wx__Grid_EnableEditing)
4214 {
4215 #ifdef dVAR
4216     dVAR; dXSARGS;
4217 #else
4218     dXSARGS;
4219 #endif
4220     if (items < 1 || items > 2)
4221        croak_xs_usage(cv,  "THIS, enable = true");
4222     {
4223         bool    enable;
4224         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4225
4226         if (items < 2)
4227             enable = true;
4228         else {
4229             enable = (bool)SvTRUE(ST(1));
4230         }
4231
4232         THIS->EnableEditing(enable);
4233     }
4234     XSRETURN_EMPTY;
4235 }
4236
4237
4238 XS(XS_Wx__Grid_EnableGridLines); /* prototype to pass -Wmissing-prototypes */
4239 XS(XS_Wx__Grid_EnableGridLines)
4240 {
4241 #ifdef dVAR
4242     dVAR; dXSARGS;
4243 #else
4244     dXSARGS;
4245 #endif
4246     if (items < 1 || items > 2)
4247        croak_xs_usage(cv,  "THIS, enable = true");
4248     {
4249         bool    enable;
4250         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4251
4252         if (items < 2)
4253             enable = true;
4254         else {
4255             enable = (bool)SvTRUE(ST(1));
4256         }
4257
4258         THIS->EnableGridLines(enable);
4259     }
4260     XSRETURN_EMPTY;
4261 }
4262
4263
4264 XS(XS_Wx__Grid_EndBatch); /* prototype to pass -Wmissing-prototypes */
4265 XS(XS_Wx__Grid_EndBatch)
4266 {
4267 #ifdef dVAR
4268     dVAR; dXSARGS;
4269 #else
4270     dXSARGS;
4271 #endif
4272     if (items != 1)
4273        croak_xs_usage(cv,  "THIS");
4274     {
4275         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4276
4277         THIS->EndBatch();
4278     }
4279     XSRETURN_EMPTY;
4280 }
4281
4282
4283 XS(XS_Wx__Grid_ForceRefresh); /* prototype to pass -Wmissing-prototypes */
4284 XS(XS_Wx__Grid_ForceRefresh)
4285 {
4286 #ifdef dVAR
4287     dVAR; dXSARGS;
4288 #else
4289     dXSARGS;
4290 #endif
4291     if (items != 1)
4292        croak_xs_usage(cv,  "THIS");
4293     {
4294         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4295
4296         THIS->ForceRefresh();
4297     }
4298     XSRETURN_EMPTY;
4299 }
4300
4301
4302 XS(XS_Wx__Grid_GetBatchCount); /* prototype to pass -Wmissing-prototypes */
4303 XS(XS_Wx__Grid_GetBatchCount)
4304 {
4305 #ifdef dVAR
4306     dVAR; dXSARGS;
4307 #else
4308     dXSARGS;
4309 #endif
4310     if (items != 1)
4311        croak_xs_usage(cv,  "THIS");
4312     {
4313         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4314         int     RETVAL;
4315         dXSTARG;
4316
4317         RETVAL = THIS->GetBatchCount();
4318         XSprePUSH; PUSHi((IV)RETVAL);
4319     }
4320     XSRETURN(1);
4321 }
4322
4323
4324 XS(XS_Wx__Grid_GetCellAlignment); /* prototype to pass -Wmissing-prototypes */
4325 XS(XS_Wx__Grid_GetCellAlignment)
4326 {
4327 #ifdef dVAR
4328     dVAR; dXSARGS;
4329 #else
4330     dXSARGS;
4331 #endif
4332     if (items != 3)
4333        croak_xs_usage(cv,  "THIS, row, col");
4334     PERL_UNUSED_VAR(ax); /* -Wall */
4335     SP -= items;
4336     {
4337         int     row = (int)SvIV(ST(1));
4338         int     col = (int)SvIV(ST(2));
4339     int x, y;
4340         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4341     THIS->GetCellAlignment( row, col, &x, &y );
4342     EXTEND( SP, 2 );
4343     PUSHs( sv_2mortal( newSViv( x ) ) );
4344     PUSHs( sv_2mortal( newSViv( y ) ) );
4345         PUTBACK;
4346         return;
4347     }
4348 }
4349
4350
4351 XS(XS_Wx__Grid_GetCellBackgroundColour); /* prototype to pass -Wmissing-prototypes */
4352 XS(XS_Wx__Grid_GetCellBackgroundColour)
4353 {
4354 #ifdef dVAR
4355     dVAR; dXSARGS;
4356 #else
4357     dXSARGS;
4358 #endif
4359     if (items != 3)
4360        croak_xs_usage(cv,  "THIS, row, col");
4361     {
4362         int     row = (int)SvIV(ST(1));
4363         int     col = (int)SvIV(ST(2));
4364         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4365         wxColour *      RETVAL;
4366     RETVAL = new wxColour( THIS->GetCellBackgroundColour( row, col ) );
4367         ST(0) = sv_newmortal();
4368     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
4369     wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
4370
4371     }
4372     XSRETURN(1);
4373 }
4374
4375
4376 XS(XS_Wx__Grid_GetCellEditor); /* prototype to pass -Wmissing-prototypes */
4377 XS(XS_Wx__Grid_GetCellEditor)
4378 {
4379 #ifdef dVAR
4380     dVAR; dXSARGS;
4381 #else
4382     dXSARGS;
4383 #endif
4384     if (items != 3)
4385        croak_xs_usage(cv,  "THIS, row, col");
4386     {
4387         int     row = (int)SvIV(ST(1));
4388         int     col = (int)SvIV(ST(2));
4389         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4390         wxGridCellEditor *      RETVAL;
4391
4392         RETVAL = THIS->GetCellEditor(row, col);
4393         ST(0) = sv_newmortal();
4394     wxPli_clientdatacontainer_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellEditor" );
4395     wxPli_thread_sv_register( aTHX_ "Wx::GridCellEditor", SvRV( ST(0) ), ST(0) );
4396
4397     }
4398     XSRETURN(1);
4399 }
4400
4401
4402 XS(XS_Wx__Grid_GetCellOverflow); /* prototype to pass -Wmissing-prototypes */
4403 XS(XS_Wx__Grid_GetCellOverflow)
4404 {
4405 #ifdef dVAR
4406     dVAR; dXSARGS;
4407 #else
4408     dXSARGS;
4409 #endif
4410     if (items != 3)
4411        croak_xs_usage(cv,  "THIS, row, col");
4412     {
4413         int     row = (int)SvIV(ST(1));
4414         int     col = (int)SvIV(ST(2));
4415         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4416         bool    RETVAL;
4417
4418         RETVAL = THIS->GetCellOverflow(row, col);
4419         ST(0) = boolSV(RETVAL);
4420         sv_2mortal(ST(0));
4421     }
4422     XSRETURN(1);
4423 }
4424
4425
4426 XS(XS_Wx__Grid_GetCellRenderer); /* prototype to pass -Wmissing-prototypes */
4427 XS(XS_Wx__Grid_GetCellRenderer)
4428 {
4429 #ifdef dVAR
4430     dVAR; dXSARGS;
4431 #else
4432     dXSARGS;
4433 #endif
4434     if (items != 3)
4435        croak_xs_usage(cv,  "THIS, row, col");
4436     {
4437         int     row = (int)SvIV(ST(1));
4438         int     col = (int)SvIV(ST(2));
4439         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4440         wxGridCellRenderer *    RETVAL;
4441
4442         RETVAL = THIS->GetCellRenderer(row, col);
4443         ST(0) = sv_newmortal();
4444     wxPli_clientdatacontainer_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellRenderer" );
4445     wxPli_thread_sv_register( aTHX_ "Wx::GridCellRenderer", SvRV( ST(0) ), ST(0) );
4446
4447     }
4448     XSRETURN(1);
4449 }
4450
4451
4452 XS(XS_Wx__Grid_GetCellFont); /* prototype to pass -Wmissing-prototypes */
4453 XS(XS_Wx__Grid_GetCellFont)
4454 {
4455 #ifdef dVAR
4456     dVAR; dXSARGS;
4457 #else
4458     dXSARGS;
4459 #endif
4460     if (items != 3)
4461        croak_xs_usage(cv,  "THIS, row, col");
4462     {
4463         int     row = (int)SvIV(ST(1));
4464         int     col = (int)SvIV(ST(2));
4465         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4466         wxFont *        RETVAL;
4467     RETVAL = new wxFont( THIS->GetCellFont( row, col ) );
4468         ST(0) = sv_newmortal();
4469     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4470     wxPli_thread_sv_register( aTHX_ "Wx::Font", RETVAL, ST(0) );
4471
4472     }
4473     XSRETURN(1);
4474 }
4475
4476
4477 XS(XS_Wx__Grid_GetCellTextColour); /* prototype to pass -Wmissing-prototypes */
4478 XS(XS_Wx__Grid_GetCellTextColour)
4479 {
4480 #ifdef dVAR
4481     dVAR; dXSARGS;
4482 #else
4483     dXSARGS;
4484 #endif
4485     if (items != 3)
4486        croak_xs_usage(cv,  "THIS, row, col");
4487     {
4488         int     row = (int)SvIV(ST(1));
4489         int     col = (int)SvIV(ST(2));
4490         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4491         wxColour *      RETVAL;
4492     RETVAL = new wxColour( THIS->GetCellTextColour( row, col ) );
4493         ST(0) = sv_newmortal();
4494     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
4495     wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
4496
4497     }
4498     XSRETURN(1);
4499 }
4500
4501
4502 XS(XS_Wx__Grid_GetCellValueXY); /* prototype to pass -Wmissing-prototypes */
4503 XS(XS_Wx__Grid_GetCellValueXY)
4504 {
4505 #ifdef dVAR
4506     dVAR; dXSARGS;
4507 #else
4508     dXSARGS;
4509 #endif
4510     if (items != 3)
4511        croak_xs_usage(cv,  "THIS, row, col");
4512     {
4513         int     row = (int)SvIV(ST(1));
4514         int     col = (int)SvIV(ST(2));
4515         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4516         wxString        RETVAL;
4517     RETVAL = THIS->GetCellValue( row, col );
4518         ST(0) = sv_newmortal();
4519     WXSTRING_OUTPUT( RETVAL, ST(0) );
4520
4521     }
4522     XSRETURN(1);
4523 }
4524
4525
4526 XS(XS_Wx__Grid_GetCellValueCo); /* prototype to pass -Wmissing-prototypes */
4527 XS(XS_Wx__Grid_GetCellValueCo)
4528 {
4529 #ifdef dVAR
4530     dVAR; dXSARGS;
4531 #else
4532     dXSARGS;
4533 #endif
4534     if (items != 2)
4535        croak_xs_usage(cv,  "THIS, coord");
4536     {
4537         wxGridCellCoords*    coord = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridCellCoords" );
4538         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4539         wxString        RETVAL;
4540     RETVAL = THIS->GetCellValue( *coord );
4541         ST(0) = sv_newmortal();
4542     WXSTRING_OUTPUT( RETVAL, ST(0) );
4543
4544     }
4545     XSRETURN(1);
4546 }
4547
4548
4549 XS(XS_Wx__Grid_GetColLabelAlignment); /* prototype to pass -Wmissing-prototypes */
4550 XS(XS_Wx__Grid_GetColLabelAlignment)
4551 {
4552 #ifdef dVAR
4553     dVAR; dXSARGS;
4554 #else
4555     dXSARGS;
4556 #endif
4557     if (items != 1)
4558        croak_xs_usage(cv,  "THIS");
4559     PERL_UNUSED_VAR(ax); /* -Wall */
4560     SP -= items;
4561     {
4562     int x, y;
4563         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4564     THIS->GetColLabelAlignment( &x, &y );
4565     EXTEND( SP, 2 );
4566     PUSHs( sv_2mortal( newSViv( x ) ) );
4567     PUSHs( sv_2mortal( newSViv( y ) ) );
4568         PUTBACK;
4569         return;
4570     }
4571 }
4572
4573
4574 XS(XS_Wx__Grid_GetColLabelSize); /* prototype to pass -Wmissing-prototypes */
4575 XS(XS_Wx__Grid_GetColLabelSize)
4576 {
4577 #ifdef dVAR
4578     dVAR; dXSARGS;
4579 #else
4580     dXSARGS;
4581 #endif
4582     if (items != 1)
4583        croak_xs_usage(cv,  "THIS");
4584     {
4585         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4586         int     RETVAL;
4587         dXSTARG;
4588
4589         RETVAL = THIS->GetColLabelSize();
4590         XSprePUSH; PUSHi((IV)RETVAL);
4591     }
4592     XSRETURN(1);
4593 }
4594
4595
4596 XS(XS_Wx__Grid_GetColLabelValue); /* prototype to pass -Wmissing-prototypes */
4597 XS(XS_Wx__Grid_GetColLabelValue)
4598 {
4599 #ifdef dVAR
4600     dVAR; dXSARGS;
4601 #else
4602     dXSARGS;
4603 #endif
4604     if (items != 2)
4605        croak_xs_usage(cv,  "THIS, col");
4606     {
4607         int     col = (int)SvIV(ST(1));
4608         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4609         wxString        RETVAL;
4610
4611         RETVAL = THIS->GetColLabelValue(col);
4612         ST(0) = sv_newmortal();
4613     WXSTRING_OUTPUT( RETVAL, ST(0) );
4614
4615     }
4616     XSRETURN(1);
4617 }
4618
4619 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
4620 #define XSubPPtmpAAAK 1
4621
4622
4623 XS(XS_Wx__Grid_GetColPos); /* prototype to pass -Wmissing-prototypes */
4624 XS(XS_Wx__Grid_GetColPos)
4625 {
4626 #ifdef dVAR
4627     dVAR; dXSARGS;
4628 #else
4629     dXSARGS;
4630 #endif
4631     if (items != 2)
4632        croak_xs_usage(cv,  "THIS, colId");
4633     {
4634         int     colId = (int)SvIV(ST(1));
4635         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4636         int     RETVAL;
4637         dXSTARG;
4638
4639         RETVAL = THIS->GetColPos(colId);
4640         XSprePUSH; PUSHi((IV)RETVAL);
4641     }
4642     XSRETURN(1);
4643 }
4644
4645 #endif
4646
4647 XS(XS_Wx__Grid_GetColSize); /* prototype to pass -Wmissing-prototypes */
4648 XS(XS_Wx__Grid_GetColSize)
4649 {
4650 #ifdef dVAR
4651     dVAR; dXSARGS;
4652 #else
4653     dXSARGS;
4654 #endif
4655     if (items != 2)
4656        croak_xs_usage(cv,  "THIS, col");
4657     {
4658         int     col = (int)SvIV(ST(1));
4659         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4660         int     RETVAL;
4661         dXSTARG;
4662
4663         RETVAL = THIS->GetColSize(col);
4664         XSprePUSH; PUSHi((IV)RETVAL);
4665     }
4666     XSRETURN(1);
4667 }
4668
4669 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
4670 #define XSubPPtmpAAAL 1
4671
4672
4673 XS(XS_Wx__Grid_GetColAt); /* prototype to pass -Wmissing-prototypes */
4674 XS(XS_Wx__Grid_GetColAt)
4675 {
4676 #ifdef dVAR
4677     dVAR; dXSARGS;
4678 #else
4679     dXSARGS;
4680 #endif
4681     if (items != 2)
4682        croak_xs_usage(cv,  "THIS, colPos");
4683     {
4684         int     colPos = (int)SvIV(ST(1));
4685         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4686         int     RETVAL;
4687         dXSTARG;
4688
4689         RETVAL = THIS->GetColAt(colPos);
4690         XSprePUSH; PUSHi((IV)RETVAL);
4691     }
4692     XSRETURN(1);
4693 }
4694
4695 #endif
4696
4697 XS(XS_Wx__Grid_GetDefaultCellAlignment); /* prototype to pass -Wmissing-prototypes */
4698 XS(XS_Wx__Grid_GetDefaultCellAlignment)
4699 {
4700 #ifdef dVAR
4701     dVAR; dXSARGS;
4702 #else
4703     dXSARGS;
4704 #endif
4705     if (items != 1)
4706        croak_xs_usage(cv,  "THIS");
4707     PERL_UNUSED_VAR(ax); /* -Wall */
4708     SP -= items;
4709     {
4710     int x, y;
4711         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4712     THIS->GetDefaultCellAlignment( &x, &y );
4713     EXTEND( SP, 2 );
4714     PUSHs( sv_2mortal( newSViv( x ) ) );
4715     PUSHs( sv_2mortal( newSViv( y ) ) );
4716         PUTBACK;
4717         return;
4718     }
4719 }
4720
4721
4722 XS(XS_Wx__Grid_GetDefaultCellBackgroundColour); /* prototype to pass -Wmissing-prototypes */
4723 XS(XS_Wx__Grid_GetDefaultCellBackgroundColour)
4724 {
4725 #ifdef dVAR
4726     dVAR; dXSARGS;
4727 #else
4728     dXSARGS;
4729 #endif
4730     if (items != 1)
4731        croak_xs_usage(cv,  "THIS");
4732     {
4733         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4734         wxColour *      RETVAL;
4735     RETVAL = new wxColour( THIS->GetDefaultCellBackgroundColour() );
4736         ST(0) = sv_newmortal();
4737     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
4738     wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
4739
4740     }
4741     XSRETURN(1);
4742 }
4743
4744
4745 XS(XS_Wx__Grid_GetDefaultCellFont); /* prototype to pass -Wmissing-prototypes */
4746 XS(XS_Wx__Grid_GetDefaultCellFont)
4747 {
4748 #ifdef dVAR
4749     dVAR; dXSARGS;
4750 #else
4751     dXSARGS;
4752 #endif
4753     if (items != 1)
4754        croak_xs_usage(cv,  "THIS");
4755     {
4756         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4757         wxFont *        RETVAL;
4758     RETVAL = new wxFont( THIS->GetDefaultCellFont() );
4759         ST(0) = sv_newmortal();
4760     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4761     wxPli_thread_sv_register( aTHX_ "Wx::Font", RETVAL, ST(0) );
4762
4763     }
4764     XSRETURN(1);
4765 }
4766
4767
4768 XS(XS_Wx__Grid_GetDefaultCellOverflow); /* prototype to pass -Wmissing-prototypes */
4769 XS(XS_Wx__Grid_GetDefaultCellOverflow)
4770 {
4771 #ifdef dVAR
4772     dVAR; dXSARGS;
4773 #else
4774     dXSARGS;
4775 #endif
4776     if (items != 1)
4777        croak_xs_usage(cv,  "THIS");
4778     {
4779         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4780         bool    RETVAL;
4781
4782         RETVAL = THIS->GetDefaultCellOverflow();
4783         ST(0) = boolSV(RETVAL);
4784         sv_2mortal(ST(0));
4785     }
4786     XSRETURN(1);
4787 }
4788
4789
4790 XS(XS_Wx__Grid_GetDefaultCellTextColour); /* prototype to pass -Wmissing-prototypes */
4791 XS(XS_Wx__Grid_GetDefaultCellTextColour)
4792 {
4793 #ifdef dVAR
4794     dVAR; dXSARGS;
4795 #else
4796     dXSARGS;
4797 #endif
4798     if (items != 1)
4799        croak_xs_usage(cv,  "THIS");
4800     {
4801         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4802         wxColour *      RETVAL;
4803     RETVAL = new wxColour( THIS->GetDefaultCellTextColour() );
4804         ST(0) = sv_newmortal();
4805     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
4806     wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
4807
4808     }
4809     XSRETURN(1);
4810 }
4811
4812
4813 XS(XS_Wx__Grid_GetDefaultColLabelSize); /* prototype to pass -Wmissing-prototypes */
4814 XS(XS_Wx__Grid_GetDefaultColLabelSize)
4815 {
4816 #ifdef dVAR
4817     dVAR; dXSARGS;
4818 #else
4819     dXSARGS;
4820 #endif
4821     if (items != 1)
4822        croak_xs_usage(cv,  "THIS");
4823     {
4824         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4825         int     RETVAL;
4826         dXSTARG;
4827
4828         RETVAL = THIS->GetDefaultColLabelSize();
4829         XSprePUSH; PUSHi((IV)RETVAL);
4830     }
4831     XSRETURN(1);
4832 }
4833
4834
4835 XS(XS_Wx__Grid_GetDefaultColSize); /* prototype to pass -Wmissing-prototypes */
4836 XS(XS_Wx__Grid_GetDefaultColSize)
4837 {
4838 #ifdef dVAR
4839     dVAR; dXSARGS;
4840 #else
4841     dXSARGS;
4842 #endif
4843     if (items != 1)
4844        croak_xs_usage(cv,  "THIS");
4845     {
4846         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4847         int     RETVAL;
4848         dXSTARG;
4849
4850         RETVAL = THIS->GetDefaultColSize();
4851         XSprePUSH; PUSHi((IV)RETVAL);
4852     }
4853     XSRETURN(1);
4854 }
4855
4856
4857 XS(XS_Wx__Grid_GetColMinimalAcceptableWidth); /* prototype to pass -Wmissing-prototypes */
4858 XS(XS_Wx__Grid_GetColMinimalAcceptableWidth)
4859 {
4860 #ifdef dVAR
4861     dVAR; dXSARGS;
4862 #else
4863     dXSARGS;
4864 #endif
4865     if (items != 1)
4866        croak_xs_usage(cv,  "THIS");
4867     {
4868         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4869         int     RETVAL;
4870         dXSTARG;
4871
4872         RETVAL = THIS->GetColMinimalAcceptableWidth();
4873         XSprePUSH; PUSHi((IV)RETVAL);
4874     }
4875     XSRETURN(1);
4876 }
4877
4878 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
4879 #define XSubPPtmpAAAM 1
4880
4881
4882 XS(XS_Wx__Grid_GetOrCreateCellAttr); /* prototype to pass -Wmissing-prototypes */
4883 XS(XS_Wx__Grid_GetOrCreateCellAttr)
4884 {
4885 #ifdef dVAR
4886     dVAR; dXSARGS;
4887 #else
4888     dXSARGS;
4889 #endif
4890     if (items != 3)
4891        croak_xs_usage(cv,  "THIS, row, col");
4892     {
4893         int     row = (int)SvIV(ST(1));
4894         int     col = (int)SvIV(ST(2));
4895         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4896         wxGridCellAttr *        RETVAL;
4897
4898         RETVAL = THIS->GetOrCreateCellAttr(row, col);
4899         ST(0) = sv_newmortal();
4900     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellAttr" );
4901     wxPli_thread_sv_register( aTHX_ "Wx::GridCellAttr", SvRV( ST(0) ), ST(0) );
4902
4903     }
4904     XSRETURN(1);
4905 }
4906
4907 #endif
4908
4909 XS(XS_Wx__Grid_GetRowMinimalAcceptableHeight); /* prototype to pass -Wmissing-prototypes */
4910 XS(XS_Wx__Grid_GetRowMinimalAcceptableHeight)
4911 {
4912 #ifdef dVAR
4913     dVAR; dXSARGS;
4914 #else
4915     dXSARGS;
4916 #endif
4917     if (items != 1)
4918        croak_xs_usage(cv,  "THIS");
4919     {
4920         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4921         int     RETVAL;
4922         dXSTARG;
4923
4924         RETVAL = THIS->GetRowMinimalAcceptableHeight();
4925         XSprePUSH; PUSHi((IV)RETVAL);
4926     }
4927     XSRETURN(1);
4928 }
4929
4930
4931 XS(XS_Wx__Grid_GetDefaultEditor); /* prototype to pass -Wmissing-prototypes */
4932 XS(XS_Wx__Grid_GetDefaultEditor)
4933 {
4934 #ifdef dVAR
4935     dVAR; dXSARGS;
4936 #else
4937     dXSARGS;
4938 #endif
4939     if (items != 1)
4940        croak_xs_usage(cv,  "THIS");
4941     {
4942         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4943         wxGridCellEditor *      RETVAL;
4944
4945         RETVAL = THIS->GetDefaultEditor();
4946         ST(0) = sv_newmortal();
4947     wxPli_clientdatacontainer_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellEditor" );
4948     wxPli_thread_sv_register( aTHX_ "Wx::GridCellEditor", SvRV( ST(0) ), ST(0) );
4949
4950     }
4951     XSRETURN(1);
4952 }
4953
4954
4955 XS(XS_Wx__Grid_GetDefaultEditorForType); /* prototype to pass -Wmissing-prototypes */
4956 XS(XS_Wx__Grid_GetDefaultEditorForType)
4957 {
4958 #ifdef dVAR
4959     dVAR; dXSARGS;
4960 #else
4961     dXSARGS;
4962 #endif
4963     if (items != 2)
4964        croak_xs_usage(cv,  "THIS, typeName");
4965     {
4966         wxString        typeName;
4967         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4968         wxGridCellEditor *      RETVAL;
4969
4970     WXSTRING_INPUT( typeName, wxString, ST(1) );
4971
4972         RETVAL = THIS->GetDefaultEditorForType(typeName);
4973         ST(0) = sv_newmortal();
4974     wxPli_clientdatacontainer_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellEditor" );
4975     wxPli_thread_sv_register( aTHX_ "Wx::GridCellEditor", SvRV( ST(0) ), ST(0) );
4976
4977     }
4978     XSRETURN(1);
4979 }
4980
4981
4982 XS(XS_Wx__Grid_GetDefaultEditorForCellCo); /* prototype to pass -Wmissing-prototypes */
4983 XS(XS_Wx__Grid_GetDefaultEditorForCellCo)
4984 {
4985 #ifdef dVAR
4986     dVAR; dXSARGS;
4987 #else
4988     dXSARGS;
4989 #endif
4990     if (items != 2)
4991        croak_xs_usage(cv,  "THIS, coords");
4992     {
4993         wxGridCellCoords*    coords = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridCellCoords" );
4994         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
4995         wxGridCellEditor *      RETVAL;
4996     RETVAL = THIS->GetDefaultEditorForCell( *coords );
4997         ST(0) = sv_newmortal();
4998     wxPli_clientdatacontainer_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellEditor" );
4999     wxPli_thread_sv_register( aTHX_ "Wx::GridCellEditor", SvRV( ST(0) ), ST(0) );
5000
5001     }
5002     XSRETURN(1);
5003 }
5004
5005
5006 XS(XS_Wx__Grid_GetDefaultEditorForCellXY); /* prototype to pass -Wmissing-prototypes */
5007 XS(XS_Wx__Grid_GetDefaultEditorForCellXY)
5008 {
5009 #ifdef dVAR
5010     dVAR; dXSARGS;
5011 #else
5012     dXSARGS;
5013 #endif
5014     if (items != 3)
5015        croak_xs_usage(cv,  "THIS, x, y");
5016     {
5017         int     x = (int)SvIV(ST(1));
5018         int     y = (int)SvIV(ST(2));
5019         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5020         wxGridCellEditor *      RETVAL;
5021     RETVAL = THIS->GetDefaultEditorForCell( x, y );
5022         ST(0) = sv_newmortal();
5023     wxPli_clientdatacontainer_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellEditor" );
5024     wxPli_thread_sv_register( aTHX_ "Wx::GridCellEditor", SvRV( ST(0) ), ST(0) );
5025
5026     }
5027     XSRETURN(1);
5028 }
5029
5030
5031 XS(XS_Wx__Grid_GetDefaultRenderer); /* prototype to pass -Wmissing-prototypes */
5032 XS(XS_Wx__Grid_GetDefaultRenderer)
5033 {
5034 #ifdef dVAR
5035     dVAR; dXSARGS;
5036 #else
5037     dXSARGS;
5038 #endif
5039     if (items != 1)
5040        croak_xs_usage(cv,  "THIS");
5041     {
5042         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5043         wxGridCellRenderer *    RETVAL;
5044
5045         RETVAL = THIS->GetDefaultRenderer();
5046         ST(0) = sv_newmortal();
5047     wxPli_clientdatacontainer_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellRenderer" );
5048     wxPli_thread_sv_register( aTHX_ "Wx::GridCellRenderer", SvRV( ST(0) ), ST(0) );
5049
5050     }
5051     XSRETURN(1);
5052 }
5053
5054
5055 XS(XS_Wx__Grid_GetDefaultRendererForType); /* prototype to pass -Wmissing-prototypes */
5056 XS(XS_Wx__Grid_GetDefaultRendererForType)
5057 {
5058 #ifdef dVAR
5059     dVAR; dXSARGS;
5060 #else
5061     dXSARGS;
5062 #endif
5063     if (items != 2)
5064        croak_xs_usage(cv,  "THIS, typeName");
5065     {
5066         wxString        typeName;
5067         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5068         wxGridCellRenderer *    RETVAL;
5069
5070     WXSTRING_INPUT( typeName, wxString, ST(1) );
5071
5072         RETVAL = THIS->GetDefaultRendererForType(typeName);
5073         ST(0) = sv_newmortal();
5074     wxPli_clientdatacontainer_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellRenderer" );
5075     wxPli_thread_sv_register( aTHX_ "Wx::GridCellRenderer", SvRV( ST(0) ), ST(0) );
5076
5077     }
5078     XSRETURN(1);
5079 }
5080
5081
5082 XS(XS_Wx__Grid_GetDefaultRendererForCell); /* prototype to pass -Wmissing-prototypes */
5083 XS(XS_Wx__Grid_GetDefaultRendererForCell)
5084 {
5085 #ifdef dVAR
5086     dVAR; dXSARGS;
5087 #else
5088     dXSARGS;
5089 #endif
5090     if (items != 3)
5091        croak_xs_usage(cv,  "THIS, x, y");
5092     {
5093         int     x = (int)SvIV(ST(1));
5094         int     y = (int)SvIV(ST(2));
5095         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5096         wxGridCellRenderer *    RETVAL;
5097     RETVAL = THIS->GetDefaultRendererForCell( x, y );
5098         ST(0) = sv_newmortal();
5099     wxPli_clientdatacontainer_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellRenderer" );
5100     wxPli_thread_sv_register( aTHX_ "Wx::GridCellRenderer", SvRV( ST(0) ), ST(0) );
5101
5102     }
5103     XSRETURN(1);
5104 }
5105
5106
5107 XS(XS_Wx__Grid_GetRowLabelAlignment); /* prototype to pass -Wmissing-prototypes */
5108 XS(XS_Wx__Grid_GetRowLabelAlignment)
5109 {
5110 #ifdef dVAR
5111     dVAR; dXSARGS;
5112 #else
5113     dXSARGS;
5114 #endif
5115     if (items != 1)
5116        croak_xs_usage(cv,  "THIS");
5117     PERL_UNUSED_VAR(ax); /* -Wall */
5118     SP -= items;
5119     {
5120     int x, y;
5121         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5122     THIS->GetRowLabelAlignment( &x, &y );
5123     EXTEND( SP, 2 );
5124     PUSHs( sv_2mortal( newSViv( x ) ) );
5125     PUSHs( sv_2mortal( newSViv( y ) ) );
5126         PUTBACK;
5127         return;
5128     }
5129 }
5130
5131
5132 XS(XS_Wx__Grid_GetDefaultRowLabelSize); /* prototype to pass -Wmissing-prototypes */
5133 XS(XS_Wx__Grid_GetDefaultRowLabelSize)
5134 {
5135 #ifdef dVAR
5136     dVAR; dXSARGS;
5137 #else
5138     dXSARGS;
5139 #endif
5140     if (items != 1)
5141        croak_xs_usage(cv,  "THIS");
5142     {
5143         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5144         int     RETVAL;
5145         dXSTARG;
5146
5147         RETVAL = THIS->GetDefaultRowLabelSize();
5148         XSprePUSH; PUSHi((IV)RETVAL);
5149     }
5150     XSRETURN(1);
5151 }
5152
5153
5154 XS(XS_Wx__Grid_GetDefaultRowSize); /* prototype to pass -Wmissing-prototypes */
5155 XS(XS_Wx__Grid_GetDefaultRowSize)
5156 {
5157 #ifdef dVAR
5158     dVAR; dXSARGS;
5159 #else
5160     dXSARGS;
5161 #endif
5162     if (items != 1)
5163        croak_xs_usage(cv,  "THIS");
5164     {
5165         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5166         int     RETVAL;
5167         dXSTARG;
5168
5169         RETVAL = THIS->GetDefaultRowSize();
5170         XSprePUSH; PUSHi((IV)RETVAL);
5171     }
5172     XSRETURN(1);
5173 }
5174
5175
5176 XS(XS_Wx__Grid_GetGridCursorCol); /* prototype to pass -Wmissing-prototypes */
5177 XS(XS_Wx__Grid_GetGridCursorCol)
5178 {
5179 #ifdef dVAR
5180     dVAR; dXSARGS;
5181 #else
5182     dXSARGS;
5183 #endif
5184     if (items != 1)
5185        croak_xs_usage(cv,  "THIS");
5186     {
5187         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5188         int     RETVAL;
5189         dXSTARG;
5190
5191         RETVAL = THIS->GetGridCursorCol();
5192         XSprePUSH; PUSHi((IV)RETVAL);
5193     }
5194     XSRETURN(1);
5195 }
5196
5197
5198 XS(XS_Wx__Grid_GetGridCursorRow); /* prototype to pass -Wmissing-prototypes */
5199 XS(XS_Wx__Grid_GetGridCursorRow)
5200 {
5201 #ifdef dVAR
5202     dVAR; dXSARGS;
5203 #else
5204     dXSARGS;
5205 #endif
5206     if (items != 1)
5207        croak_xs_usage(cv,  "THIS");
5208     {
5209         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5210         int     RETVAL;
5211         dXSTARG;
5212
5213         RETVAL = THIS->GetGridCursorRow();
5214         XSprePUSH; PUSHi((IV)RETVAL);
5215     }
5216     XSRETURN(1);
5217 }
5218
5219
5220 XS(XS_Wx__Grid_GetGridLineColour); /* prototype to pass -Wmissing-prototypes */
5221 XS(XS_Wx__Grid_GetGridLineColour)
5222 {
5223 #ifdef dVAR
5224     dVAR; dXSARGS;
5225 #else
5226     dXSARGS;
5227 #endif
5228     if (items != 1)
5229        croak_xs_usage(cv,  "THIS");
5230     {
5231         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5232         wxColour *      RETVAL;
5233     RETVAL = new wxColour( THIS->GetGridLineColour() );
5234         ST(0) = sv_newmortal();
5235     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
5236     wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
5237
5238     }
5239     XSRETURN(1);
5240 }
5241
5242 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
5243 #define XSubPPtmpAAAN 1
5244
5245
5246 XS(XS_Wx__Grid_GetDefaultGridLinePen); /* prototype to pass -Wmissing-prototypes */
5247 XS(XS_Wx__Grid_GetDefaultGridLinePen)
5248 {
5249 #ifdef dVAR
5250     dVAR; dXSARGS;
5251 #else
5252     dXSARGS;
5253 #endif
5254     if (items != 1)
5255        croak_xs_usage(cv,  "THIS");
5256     {
5257         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5258         wxPen * RETVAL;
5259     RETVAL = new wxPen( THIS->GetDefaultGridLinePen() );
5260         ST(0) = sv_newmortal();
5261     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5262     wxPli_thread_sv_register( aTHX_ "Wx::Pen", RETVAL, ST(0) );
5263
5264     }
5265     XSRETURN(1);
5266 }
5267
5268
5269 XS(XS_Wx__Grid_GetColGridLinePen); /* prototype to pass -Wmissing-prototypes */
5270 XS(XS_Wx__Grid_GetColGridLinePen)
5271 {
5272 #ifdef dVAR
5273     dVAR; dXSARGS;
5274 #else
5275     dXSARGS;
5276 #endif
5277     if (items != 2)
5278        croak_xs_usage(cv,  "THIS, col");
5279     {
5280         int     col = (int)SvIV(ST(1));
5281         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5282         wxPen * RETVAL;
5283     RETVAL = new wxPen( THIS->GetColGridLinePen( col ) );
5284         ST(0) = sv_newmortal();
5285     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5286     wxPli_thread_sv_register( aTHX_ "Wx::Pen", RETVAL, ST(0) );
5287
5288     }
5289     XSRETURN(1);
5290 }
5291
5292
5293 XS(XS_Wx__Grid_GetRowGridLinePen); /* prototype to pass -Wmissing-prototypes */
5294 XS(XS_Wx__Grid_GetRowGridLinePen)
5295 {
5296 #ifdef dVAR
5297     dVAR; dXSARGS;
5298 #else
5299     dXSARGS;
5300 #endif
5301     if (items != 2)
5302        croak_xs_usage(cv,  "THIS, row");
5303     {
5304         int     row = (int)SvIV(ST(1));
5305         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5306         wxPen * RETVAL;
5307     RETVAL = new wxPen( THIS->GetRowGridLinePen( row ) );
5308         ST(0) = sv_newmortal();
5309     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5310     wxPli_thread_sv_register( aTHX_ "Wx::Pen", RETVAL, ST(0) );
5311
5312     }
5313     XSRETURN(1);
5314 }
5315
5316 #endif
5317
5318 XS(XS_Wx__Grid_GetTable); /* prototype to pass -Wmissing-prototypes */
5319 XS(XS_Wx__Grid_GetTable)
5320 {
5321 #ifdef dVAR
5322     dVAR; dXSARGS;
5323 #else
5324     dXSARGS;
5325 #endif
5326     if (items != 1)
5327        croak_xs_usage(cv,  "THIS");
5328     {
5329         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5330         wxGridTableBase *       RETVAL;
5331
5332         RETVAL = THIS->GetTable();
5333         ST(0) = sv_newmortal();
5334     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5335
5336     }
5337     XSRETURN(1);
5338 }
5339
5340
5341 XS(XS_Wx__Grid_GridLinesEnabled); /* prototype to pass -Wmissing-prototypes */
5342 XS(XS_Wx__Grid_GridLinesEnabled)
5343 {
5344 #ifdef dVAR
5345     dVAR; dXSARGS;
5346 #else
5347     dXSARGS;
5348 #endif
5349     if (items != 1)
5350        croak_xs_usage(cv,  "THIS");
5351     {
5352         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5353         bool    RETVAL;
5354
5355         RETVAL = THIS->GridLinesEnabled();
5356         ST(0) = boolSV(RETVAL);
5357         sv_2mortal(ST(0));
5358     }
5359     XSRETURN(1);
5360 }
5361
5362
5363 XS(XS_Wx__Grid_GetLabelBackgroundColour); /* prototype to pass -Wmissing-prototypes */
5364 XS(XS_Wx__Grid_GetLabelBackgroundColour)
5365 {
5366 #ifdef dVAR
5367     dVAR; dXSARGS;
5368 #else
5369     dXSARGS;
5370 #endif
5371     if (items != 1)
5372        croak_xs_usage(cv,  "THIS");
5373     {
5374         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5375         wxColour *      RETVAL;
5376     RETVAL = new wxColour( THIS->GetLabelBackgroundColour() );
5377         ST(0) = sv_newmortal();
5378     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
5379     wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
5380
5381     }
5382     XSRETURN(1);
5383 }
5384
5385
5386 XS(XS_Wx__Grid_GetLabelFont); /* prototype to pass -Wmissing-prototypes */
5387 XS(XS_Wx__Grid_GetLabelFont)
5388 {
5389 #ifdef dVAR
5390     dVAR; dXSARGS;
5391 #else
5392     dXSARGS;
5393 #endif
5394     if (items != 1)
5395        croak_xs_usage(cv,  "THIS");
5396     {
5397         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5398         wxFont *        RETVAL;
5399     RETVAL = new wxFont( THIS->GetLabelFont() );
5400         ST(0) = sv_newmortal();
5401     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5402     wxPli_thread_sv_register( aTHX_ "Wx::Font", RETVAL, ST(0) );
5403
5404     }
5405     XSRETURN(1);
5406 }
5407
5408
5409 XS(XS_Wx__Grid_GetLabelTextColour); /* prototype to pass -Wmissing-prototypes */
5410 XS(XS_Wx__Grid_GetLabelTextColour)
5411 {
5412 #ifdef dVAR
5413     dVAR; dXSARGS;
5414 #else
5415     dXSARGS;
5416 #endif
5417     if (items != 1)
5418        croak_xs_usage(cv,  "THIS");
5419     {
5420         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5421         wxColour *      RETVAL;
5422     RETVAL = new wxColour( THIS->GetLabelTextColour() );
5423         ST(0) = sv_newmortal();
5424     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
5425     wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
5426
5427     }
5428     XSRETURN(1);
5429 }
5430
5431
5432 XS(XS_Wx__Grid_GetNumberCols); /* prototype to pass -Wmissing-prototypes */
5433 XS(XS_Wx__Grid_GetNumberCols)
5434 {
5435 #ifdef dVAR
5436     dVAR; dXSARGS;
5437 #else
5438     dXSARGS;
5439 #endif
5440     if (items != 1)
5441        croak_xs_usage(cv,  "THIS");
5442     {
5443         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5444         int     RETVAL;
5445         dXSTARG;
5446
5447         RETVAL = THIS->GetNumberCols();
5448         XSprePUSH; PUSHi((IV)RETVAL);
5449     }
5450     XSRETURN(1);
5451 }
5452
5453
5454 XS(XS_Wx__Grid_GetNumberRows); /* prototype to pass -Wmissing-prototypes */
5455 XS(XS_Wx__Grid_GetNumberRows)
5456 {
5457 #ifdef dVAR
5458     dVAR; dXSARGS;
5459 #else
5460     dXSARGS;
5461 #endif
5462     if (items != 1)
5463        croak_xs_usage(cv,  "THIS");
5464     {
5465         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5466         int     RETVAL;
5467         dXSTARG;
5468
5469         RETVAL = THIS->GetNumberRows();
5470         XSprePUSH; PUSHi((IV)RETVAL);
5471     }
5472     XSRETURN(1);
5473 }
5474
5475
5476 XS(XS_Wx__Grid_GetRowLabelSize); /* prototype to pass -Wmissing-prototypes */
5477 XS(XS_Wx__Grid_GetRowLabelSize)
5478 {
5479 #ifdef dVAR
5480     dVAR; dXSARGS;
5481 #else
5482     dXSARGS;
5483 #endif
5484     if (items != 1)
5485        croak_xs_usage(cv,  "THIS");
5486     {
5487         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5488         int     RETVAL;
5489         dXSTARG;
5490
5491         RETVAL = THIS->GetRowLabelSize();
5492         XSprePUSH; PUSHi((IV)RETVAL);
5493     }
5494     XSRETURN(1);
5495 }
5496
5497
5498 XS(XS_Wx__Grid_GetRowLabelValue); /* prototype to pass -Wmissing-prototypes */
5499 XS(XS_Wx__Grid_GetRowLabelValue)
5500 {
5501 #ifdef dVAR
5502     dVAR; dXSARGS;
5503 #else
5504     dXSARGS;
5505 #endif
5506     if (items != 2)
5507        croak_xs_usage(cv,  "THIS, row");
5508     {
5509         int     row = (int)SvIV(ST(1));
5510         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5511         wxString        RETVAL;
5512
5513         RETVAL = THIS->GetRowLabelValue(row);
5514         ST(0) = sv_newmortal();
5515     WXSTRING_OUTPUT( RETVAL, ST(0) );
5516
5517     }
5518     XSRETURN(1);
5519 }
5520
5521
5522 XS(XS_Wx__Grid_GetRowSize); /* prototype to pass -Wmissing-prototypes */
5523 XS(XS_Wx__Grid_GetRowSize)
5524 {
5525 #ifdef dVAR
5526     dVAR; dXSARGS;
5527 #else
5528     dXSARGS;
5529 #endif
5530     if (items != 2)
5531        croak_xs_usage(cv,  "THIS, row");
5532     {
5533         int     row = (int)SvIV(ST(1));
5534         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5535         int     RETVAL;
5536         dXSTARG;
5537
5538         RETVAL = THIS->GetRowSize(row);
5539         XSprePUSH; PUSHi((IV)RETVAL);
5540     }
5541     XSRETURN(1);
5542 }
5543
5544 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
5545 #define XSubPPtmpAAAO 1
5546
5547
5548 XS(XS_Wx__Grid_GetScrollLineX); /* prototype to pass -Wmissing-prototypes */
5549 XS(XS_Wx__Grid_GetScrollLineX)
5550 {
5551 #ifdef dVAR
5552     dVAR; dXSARGS;
5553 #else
5554     dXSARGS;
5555 #endif
5556     if (items != 1)
5557        croak_xs_usage(cv,  "THIS");
5558     {
5559         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5560         int     RETVAL;
5561         dXSTARG;
5562
5563         RETVAL = THIS->GetScrollLineX();
5564         XSprePUSH; PUSHi((IV)RETVAL);
5565     }
5566     XSRETURN(1);
5567 }
5568
5569
5570 XS(XS_Wx__Grid_GetScrollLineY); /* prototype to pass -Wmissing-prototypes */
5571 XS(XS_Wx__Grid_GetScrollLineY)
5572 {
5573 #ifdef dVAR
5574     dVAR; dXSARGS;
5575 #else
5576     dXSARGS;
5577 #endif
5578     if (items != 1)
5579        croak_xs_usage(cv,  "THIS");
5580     {
5581         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5582         int     RETVAL;
5583         dXSTARG;
5584
5585         RETVAL = THIS->GetScrollLineY();
5586         XSprePUSH; PUSHi((IV)RETVAL);
5587     }
5588     XSRETURN(1);
5589 }
5590
5591
5592 XS(XS_Wx__Grid_SetScrollLineX); /* prototype to pass -Wmissing-prototypes */
5593 XS(XS_Wx__Grid_SetScrollLineX)
5594 {
5595 #ifdef dVAR
5596     dVAR; dXSARGS;
5597 #else
5598     dXSARGS;
5599 #endif
5600     if (items != 2)
5601        croak_xs_usage(cv,  "THIS, x");
5602     {
5603         int     x = (int)SvIV(ST(1));
5604         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5605
5606         THIS->SetScrollLineX(x);
5607     }
5608     XSRETURN_EMPTY;
5609 }
5610
5611
5612 XS(XS_Wx__Grid_SetScrollLineY); /* prototype to pass -Wmissing-prototypes */
5613 XS(XS_Wx__Grid_SetScrollLineY)
5614 {
5615 #ifdef dVAR
5616     dVAR; dXSARGS;
5617 #else
5618     dXSARGS;
5619 #endif
5620     if (items != 2)
5621        croak_xs_usage(cv,  "THIS, y");
5622     {
5623         int     y = (int)SvIV(ST(1));
5624         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5625
5626         THIS->SetScrollLineY(y);
5627     }
5628     XSRETURN_EMPTY;
5629 }
5630
5631 #endif
5632
5633 XS(XS_Wx__Grid_GetSelectedCells); /* prototype to pass -Wmissing-prototypes */
5634 XS(XS_Wx__Grid_GetSelectedCells)
5635 {
5636 #ifdef dVAR
5637     dVAR; dXSARGS;
5638 #else
5639     dXSARGS;
5640 #endif
5641     if (items != 1)
5642        croak_xs_usage(cv,  "THIS");
5643     PERL_UNUSED_VAR(ax); /* -Wall */
5644     SP -= items;
5645     {
5646         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5647     PUTBACK;
5648     wxPli_nonobjarray_push<wxGridCellCoordsArray, wxGridCellCoords>
5649         ( aTHX_ THIS->GetSelectedCells(), "Wx::GridCellCoords" );
5650     SPAGAIN;
5651         PUTBACK;
5652         return;
5653     }
5654 }
5655
5656
5657 XS(XS_Wx__Grid_GetSelectionBlockTopLeft); /* prototype to pass -Wmissing-prototypes */
5658 XS(XS_Wx__Grid_GetSelectionBlockTopLeft)
5659 {
5660 #ifdef dVAR
5661     dVAR; dXSARGS;
5662 #else
5663     dXSARGS;
5664 #endif
5665     if (items != 1)
5666        croak_xs_usage(cv,  "THIS");
5667     PERL_UNUSED_VAR(ax); /* -Wall */
5668     SP -= items;
5669     {
5670         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5671     PUTBACK;
5672     wxPli_nonobjarray_push<wxGridCellCoordsArray, wxGridCellCoords>
5673         ( aTHX_ THIS->GetSelectionBlockTopLeft(), "Wx::GridCellCoords" );
5674     SPAGAIN;
5675         PUTBACK;
5676         return;
5677     }
5678 }
5679
5680
5681 XS(XS_Wx__Grid_GetSelectionBlockBottomRight); /* prototype to pass -Wmissing-prototypes */
5682 XS(XS_Wx__Grid_GetSelectionBlockBottomRight)
5683 {
5684 #ifdef dVAR
5685     dVAR; dXSARGS;
5686 #else
5687     dXSARGS;
5688 #endif
5689     if (items != 1)
5690        croak_xs_usage(cv,  "THIS");
5691     PERL_UNUSED_VAR(ax); /* -Wall */
5692     SP -= items;
5693     {
5694         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5695     PUTBACK;
5696     wxPli_nonobjarray_push<wxGridCellCoordsArray, wxGridCellCoords>
5697         ( aTHX_ THIS->GetSelectionBlockBottomRight(), "Wx::GridCellCoords" );
5698     SPAGAIN;
5699         PUTBACK;
5700         return;
5701     }
5702 }
5703
5704
5705 XS(XS_Wx__Grid_GetSelectedCols); /* prototype to pass -Wmissing-prototypes */
5706 XS(XS_Wx__Grid_GetSelectedCols)
5707 {
5708 #ifdef dVAR
5709     dVAR; dXSARGS;
5710 #else
5711     dXSARGS;
5712 #endif
5713     if (items != 1)
5714        croak_xs_usage(cv,  "THIS");
5715     PERL_UNUSED_VAR(ax); /* -Wall */
5716     SP -= items;
5717     {
5718         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5719     PUTBACK;
5720     wxPli_intarray_push( aTHX_ THIS->GetSelectedCols() );
5721     SPAGAIN;
5722         PUTBACK;
5723         return;
5724     }
5725 }
5726
5727
5728 XS(XS_Wx__Grid_GetSelectedRows); /* prototype to pass -Wmissing-prototypes */
5729 XS(XS_Wx__Grid_GetSelectedRows)
5730 {
5731 #ifdef dVAR
5732     dVAR; dXSARGS;
5733 #else
5734     dXSARGS;
5735 #endif
5736     if (items != 1)
5737        croak_xs_usage(cv,  "THIS");
5738     PERL_UNUSED_VAR(ax); /* -Wall */
5739     SP -= items;
5740     {
5741         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5742     PUTBACK;
5743     wxPli_intarray_push( aTHX_ THIS->GetSelectedRows() );
5744     SPAGAIN;
5745         PUTBACK;
5746         return;
5747     }
5748 }
5749
5750
5751 XS(XS_Wx__Grid_GetSelectionBackground); /* prototype to pass -Wmissing-prototypes */
5752 XS(XS_Wx__Grid_GetSelectionBackground)
5753 {
5754 #ifdef dVAR
5755     dVAR; dXSARGS;
5756 #else
5757     dXSARGS;
5758 #endif
5759     if (items != 1)
5760        croak_xs_usage(cv,  "THIS");
5761     {
5762         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5763         wxColour *      RETVAL;
5764     RETVAL = new wxColour( THIS->GetSelectionBackground() );
5765         ST(0) = sv_newmortal();
5766     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
5767     wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
5768
5769     }
5770     XSRETURN(1);
5771 }
5772
5773
5774 XS(XS_Wx__Grid_GetSelectionForeground); /* prototype to pass -Wmissing-prototypes */
5775 XS(XS_Wx__Grid_GetSelectionForeground)
5776 {
5777 #ifdef dVAR
5778     dVAR; dXSARGS;
5779 #else
5780     dXSARGS;
5781 #endif
5782     if (items != 1)
5783        croak_xs_usage(cv,  "THIS");
5784     {
5785         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5786         wxColour *      RETVAL;
5787     RETVAL = new wxColour( THIS->GetSelectionForeground() );
5788         ST(0) = sv_newmortal();
5789     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
5790     wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
5791
5792     }
5793     XSRETURN(1);
5794 }
5795
5796
5797 XS(XS_Wx__Grid_GetSelectionMode); /* prototype to pass -Wmissing-prototypes */
5798 XS(XS_Wx__Grid_GetSelectionMode)
5799 {
5800 #ifdef dVAR
5801     dVAR; dXSARGS;
5802 #else
5803     dXSARGS;
5804 #endif
5805     if (items != 1)
5806        croak_xs_usage(cv,  "THIS");
5807     {
5808         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5809         wxGridSelectionModes    RETVAL;
5810         dXSTARG;
5811
5812         RETVAL = THIS->GetSelectionMode();
5813         XSprePUSH; PUSHi((IV)RETVAL);
5814     }
5815     XSRETURN(1);
5816 }
5817
5818
5819 XS(XS_Wx__Grid_GetViewWidth); /* prototype to pass -Wmissing-prototypes */
5820 XS(XS_Wx__Grid_GetViewWidth)
5821 {
5822 #ifdef dVAR
5823     dVAR; dXSARGS;
5824 #else
5825     dXSARGS;
5826 #endif
5827     if (items != 1)
5828        croak_xs_usage(cv,  "THIS");
5829     {
5830         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5831         int     RETVAL;
5832         dXSTARG;
5833
5834         RETVAL = THIS->GetViewWidth();
5835         XSprePUSH; PUSHi((IV)RETVAL);
5836     }
5837     XSRETURN(1);
5838 }
5839
5840
5841 XS(XS_Wx__Grid_HideCellEditControl); /* prototype to pass -Wmissing-prototypes */
5842 XS(XS_Wx__Grid_HideCellEditControl)
5843 {
5844 #ifdef dVAR
5845     dVAR; dXSARGS;
5846 #else
5847     dXSARGS;
5848 #endif
5849     if (items != 1)
5850        croak_xs_usage(cv,  "THIS");
5851     {
5852         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5853
5854         THIS->HideCellEditControl();
5855     }
5856     XSRETURN_EMPTY;
5857 }
5858
5859 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
5860 #define XSubPPtmpAAAP 1
5861
5862
5863 XS(XS_Wx__Grid_HideRowLabels); /* prototype to pass -Wmissing-prototypes */
5864 XS(XS_Wx__Grid_HideRowLabels)
5865 {
5866 #ifdef dVAR
5867     dVAR; dXSARGS;
5868 #else
5869     dXSARGS;
5870 #endif
5871     if (items != 1)
5872        croak_xs_usage(cv,  "THIS");
5873     {
5874         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5875
5876         THIS->HideRowLabels();
5877     }
5878     XSRETURN_EMPTY;
5879 }
5880
5881
5882 XS(XS_Wx__Grid_HideColLabels); /* prototype to pass -Wmissing-prototypes */
5883 XS(XS_Wx__Grid_HideColLabels)
5884 {
5885 #ifdef dVAR
5886     dVAR; dXSARGS;
5887 #else
5888     dXSARGS;
5889 #endif
5890     if (items != 1)
5891        croak_xs_usage(cv,  "THIS");
5892     {
5893         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5894
5895         THIS->HideColLabels();
5896     }
5897     XSRETURN_EMPTY;
5898 }
5899
5900 #endif
5901
5902 XS(XS_Wx__Grid_InsertCols); /* prototype to pass -Wmissing-prototypes */
5903 XS(XS_Wx__Grid_InsertCols)
5904 {
5905 #ifdef dVAR
5906     dVAR; dXSARGS;
5907 #else
5908     dXSARGS;
5909 #endif
5910     if (items < 1 || items > 4)
5911        croak_xs_usage(cv,  "THIS, pos = 0, numCols = 1, updateLabels = true");
5912     {
5913         int     pos;
5914         int     numCols;
5915         bool    updateLabels;
5916         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5917         bool    RETVAL;
5918
5919         if (items < 2)
5920             pos = 0;
5921         else {
5922             pos = (int)SvIV(ST(1));
5923         }
5924
5925         if (items < 3)
5926             numCols = 1;
5927         else {
5928             numCols = (int)SvIV(ST(2));
5929         }
5930
5931         if (items < 4)
5932             updateLabels = true;
5933         else {
5934             updateLabels = (bool)SvTRUE(ST(3));
5935         }
5936
5937         RETVAL = THIS->InsertCols(pos, numCols, updateLabels);
5938         ST(0) = boolSV(RETVAL);
5939         sv_2mortal(ST(0));
5940     }
5941     XSRETURN(1);
5942 }
5943
5944
5945 XS(XS_Wx__Grid_InsertRows); /* prototype to pass -Wmissing-prototypes */
5946 XS(XS_Wx__Grid_InsertRows)
5947 {
5948 #ifdef dVAR
5949     dVAR; dXSARGS;
5950 #else
5951     dXSARGS;
5952 #endif
5953     if (items < 1 || items > 4)
5954        croak_xs_usage(cv,  "THIS, pos = 0, numRows = 1, updateLabels = true");
5955     {
5956         int     pos;
5957         int     numRows;
5958         bool    updateLabels;
5959         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
5960         bool    RETVAL;
5961
5962         if (items < 2)
5963             pos = 0;
5964         else {
5965             pos = (int)SvIV(ST(1));
5966         }
5967
5968         if (items < 3)
5969             numRows = 1;
5970         else {
5971             numRows = (int)SvIV(ST(2));
5972         }
5973
5974         if (items < 4)
5975             updateLabels = true;
5976         else {
5977             updateLabels = (bool)SvTRUE(ST(3));
5978         }
5979
5980         RETVAL = THIS->InsertRows(pos, numRows, updateLabels);
5981         ST(0) = boolSV(RETVAL);
5982         sv_2mortal(ST(0));
5983     }
5984     XSRETURN(1);
5985 }
5986
5987
5988 XS(XS_Wx__Grid_IsCellEditControlEnabled); /* prototype to pass -Wmissing-prototypes */
5989 XS(XS_Wx__Grid_IsCellEditControlEnabled)
5990 {
5991 #ifdef dVAR
5992     dVAR; dXSARGS;
5993 #else
5994     dXSARGS;
5995 #endif
5996     if (items != 1)
5997        croak_xs_usage(cv,  "THIS");
5998     {
5999         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6000         bool    RETVAL;
6001
6002         RETVAL = THIS->IsCellEditControlEnabled();
6003         ST(0) = boolSV(RETVAL);
6004         sv_2mortal(ST(0));
6005     }
6006     XSRETURN(1);
6007 }
6008
6009
6010 XS(XS_Wx__Grid_IsCurrentCellReadOnly); /* prototype to pass -Wmissing-prototypes */
6011 XS(XS_Wx__Grid_IsCurrentCellReadOnly)
6012 {
6013 #ifdef dVAR
6014     dVAR; dXSARGS;
6015 #else
6016     dXSARGS;
6017 #endif
6018     if (items != 1)
6019        croak_xs_usage(cv,  "THIS");
6020     {
6021         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6022         bool    RETVAL;
6023
6024         RETVAL = THIS->IsCurrentCellReadOnly();
6025         ST(0) = boolSV(RETVAL);
6026         sv_2mortal(ST(0));
6027     }
6028     XSRETURN(1);
6029 }
6030
6031
6032 XS(XS_Wx__Grid_IsEditable); /* prototype to pass -Wmissing-prototypes */
6033 XS(XS_Wx__Grid_IsEditable)
6034 {
6035 #ifdef dVAR
6036     dVAR; dXSARGS;
6037 #else
6038     dXSARGS;
6039 #endif
6040     if (items != 1)
6041        croak_xs_usage(cv,  "THIS");
6042     {
6043         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6044         bool    RETVAL;
6045
6046         RETVAL = THIS->IsEditable();
6047         ST(0) = boolSV(RETVAL);
6048         sv_2mortal(ST(0));
6049     }
6050     XSRETURN(1);
6051 }
6052
6053
6054 XS(XS_Wx__Grid_IsInSelectionXY); /* prototype to pass -Wmissing-prototypes */
6055 XS(XS_Wx__Grid_IsInSelectionXY)
6056 {
6057 #ifdef dVAR
6058     dVAR; dXSARGS;
6059 #else
6060     dXSARGS;
6061 #endif
6062     if (items != 3)
6063        croak_xs_usage(cv,  "THIS, row, col");
6064     {
6065         int     row = (int)SvIV(ST(1));
6066         int     col = (int)SvIV(ST(2));
6067         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6068         bool    RETVAL;
6069     RETVAL = THIS->IsInSelection( row, col );
6070         ST(0) = boolSV(RETVAL);
6071         sv_2mortal(ST(0));
6072     }
6073     XSRETURN(1);
6074 }
6075
6076
6077 XS(XS_Wx__Grid_IsInSelectionCo); /* prototype to pass -Wmissing-prototypes */
6078 XS(XS_Wx__Grid_IsInSelectionCo)
6079 {
6080 #ifdef dVAR
6081     dVAR; dXSARGS;
6082 #else
6083     dXSARGS;
6084 #endif
6085     if (items != 2)
6086        croak_xs_usage(cv,  "THIS, coords");
6087     {
6088         wxGridCellCoords*    coords = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridCellCoords" );
6089         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6090         bool    RETVAL;
6091     RETVAL = THIS->IsInSelection( *coords );
6092         ST(0) = boolSV(RETVAL);
6093         sv_2mortal(ST(0));
6094     }
6095     XSRETURN(1);
6096 }
6097
6098
6099 XS(XS_Wx__Grid_IsReadOnly); /* prototype to pass -Wmissing-prototypes */
6100 XS(XS_Wx__Grid_IsReadOnly)
6101 {
6102 #ifdef dVAR
6103     dVAR; dXSARGS;
6104 #else
6105     dXSARGS;
6106 #endif
6107     if (items != 3)
6108        croak_xs_usage(cv,  "THIS, row, col");
6109     {
6110         int     row = (int)SvIV(ST(1));
6111         int     col = (int)SvIV(ST(2));
6112         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6113         bool    RETVAL;
6114
6115         RETVAL = THIS->IsReadOnly(row, col);
6116         ST(0) = boolSV(RETVAL);
6117         sv_2mortal(ST(0));
6118     }
6119     XSRETURN(1);
6120 }
6121
6122
6123 XS(XS_Wx__Grid_IsSelection); /* prototype to pass -Wmissing-prototypes */
6124 XS(XS_Wx__Grid_IsSelection)
6125 {
6126 #ifdef dVAR
6127     dVAR; dXSARGS;
6128 #else
6129     dXSARGS;
6130 #endif
6131     if (items != 1)
6132        croak_xs_usage(cv,  "THIS");
6133     {
6134         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6135         bool    RETVAL;
6136
6137         RETVAL = THIS->IsSelection();
6138         ST(0) = boolSV(RETVAL);
6139         sv_2mortal(ST(0));
6140     }
6141     XSRETURN(1);
6142 }
6143
6144
6145 XS(XS_Wx__Grid_IsVisibleXY); /* prototype to pass -Wmissing-prototypes */
6146 XS(XS_Wx__Grid_IsVisibleXY)
6147 {
6148 #ifdef dVAR
6149     dVAR; dXSARGS;
6150 #else
6151     dXSARGS;
6152 #endif
6153     if (items < 3 || items > 4)
6154        croak_xs_usage(cv,  "THIS, row, col, wholeCellVisible = true");
6155     {
6156         int     row = (int)SvIV(ST(1));
6157         int     col = (int)SvIV(ST(2));
6158         bool    wholeCellVisible;
6159         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6160         bool    RETVAL;
6161
6162         if (items < 4)
6163             wholeCellVisible = true;
6164         else {
6165             wholeCellVisible = (bool)SvTRUE(ST(3));
6166         }
6167     RETVAL = THIS->IsVisible( row, col, wholeCellVisible );
6168         ST(0) = boolSV(RETVAL);
6169         sv_2mortal(ST(0));
6170     }
6171     XSRETURN(1);
6172 }
6173
6174
6175 XS(XS_Wx__Grid_IsVisibleCo); /* prototype to pass -Wmissing-prototypes */
6176 XS(XS_Wx__Grid_IsVisibleCo)
6177 {
6178 #ifdef dVAR
6179     dVAR; dXSARGS;
6180 #else
6181     dXSARGS;
6182 #endif
6183     if (items < 2 || items > 3)
6184        croak_xs_usage(cv,  "THIS, coords, wholeCellVisible = true");
6185     {
6186         wxGridCellCoords*    coords = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridCellCoords" );
6187         bool    wholeCellVisible;
6188         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6189         bool    RETVAL;
6190
6191         if (items < 3)
6192             wholeCellVisible = true;
6193         else {
6194             wholeCellVisible = (bool)SvTRUE(ST(2));
6195         }
6196     RETVAL = THIS->IsVisible( *coords, wholeCellVisible );
6197         ST(0) = boolSV(RETVAL);
6198         sv_2mortal(ST(0));
6199     }
6200     XSRETURN(1);
6201 }
6202
6203
6204 XS(XS_Wx__Grid_MakeCellVisibleXY); /* prototype to pass -Wmissing-prototypes */
6205 XS(XS_Wx__Grid_MakeCellVisibleXY)
6206 {
6207 #ifdef dVAR
6208     dVAR; dXSARGS;
6209 #else
6210     dXSARGS;
6211 #endif
6212     if (items != 3)
6213        croak_xs_usage(cv,  "THIS, row, col");
6214     {
6215         int     row = (int)SvIV(ST(1));
6216         int     col = (int)SvIV(ST(2));
6217         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6218     THIS->MakeCellVisible( row, col );
6219     }
6220     XSRETURN_EMPTY;
6221 }
6222
6223
6224 XS(XS_Wx__Grid_MakeCellVisibleCo); /* prototype to pass -Wmissing-prototypes */
6225 XS(XS_Wx__Grid_MakeCellVisibleCo)
6226 {
6227 #ifdef dVAR
6228     dVAR; dXSARGS;
6229 #else
6230     dXSARGS;
6231 #endif
6232     if (items != 2)
6233        croak_xs_usage(cv,  "THIS, coords");
6234     {
6235         wxGridCellCoords*    coords = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridCellCoords" );
6236         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6237     THIS->MakeCellVisible( *coords );
6238     }
6239     XSRETURN_EMPTY;
6240 }
6241
6242
6243 XS(XS_Wx__Grid_MoveCursorDown); /* prototype to pass -Wmissing-prototypes */
6244 XS(XS_Wx__Grid_MoveCursorDown)
6245 {
6246 #ifdef dVAR
6247     dVAR; dXSARGS;
6248 #else
6249     dXSARGS;
6250 #endif
6251     if (items != 2)
6252        croak_xs_usage(cv,  "THIS, expandSelection");
6253     {
6254         bool    expandSelection = (bool)SvTRUE(ST(1));
6255         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6256         bool    RETVAL;
6257
6258         RETVAL = THIS->MoveCursorDown(expandSelection);
6259         ST(0) = boolSV(RETVAL);
6260         sv_2mortal(ST(0));
6261     }
6262     XSRETURN(1);
6263 }
6264
6265
6266 XS(XS_Wx__Grid_MoveCursorLeft); /* prototype to pass -Wmissing-prototypes */
6267 XS(XS_Wx__Grid_MoveCursorLeft)
6268 {
6269 #ifdef dVAR
6270     dVAR; dXSARGS;
6271 #else
6272     dXSARGS;
6273 #endif
6274     if (items != 2)
6275        croak_xs_usage(cv,  "THIS, expandSelection");
6276     {
6277         bool    expandSelection = (bool)SvTRUE(ST(1));
6278         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6279         bool    RETVAL;
6280
6281         RETVAL = THIS->MoveCursorLeft(expandSelection);
6282         ST(0) = boolSV(RETVAL);
6283         sv_2mortal(ST(0));
6284     }
6285     XSRETURN(1);
6286 }
6287
6288
6289 XS(XS_Wx__Grid_MoveCursorRight); /* prototype to pass -Wmissing-prototypes */
6290 XS(XS_Wx__Grid_MoveCursorRight)
6291 {
6292 #ifdef dVAR
6293     dVAR; dXSARGS;
6294 #else
6295     dXSARGS;
6296 #endif
6297     if (items != 2)
6298        croak_xs_usage(cv,  "THIS, expandSelection");
6299     {
6300         bool    expandSelection = (bool)SvTRUE(ST(1));
6301         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6302         bool    RETVAL;
6303
6304         RETVAL = THIS->MoveCursorRight(expandSelection);
6305         ST(0) = boolSV(RETVAL);
6306         sv_2mortal(ST(0));
6307     }
6308     XSRETURN(1);
6309 }
6310
6311
6312 XS(XS_Wx__Grid_MoveCursorUp); /* prototype to pass -Wmissing-prototypes */
6313 XS(XS_Wx__Grid_MoveCursorUp)
6314 {
6315 #ifdef dVAR
6316     dVAR; dXSARGS;
6317 #else
6318     dXSARGS;
6319 #endif
6320     if (items != 2)
6321        croak_xs_usage(cv,  "THIS, expandSelection");
6322     {
6323         bool    expandSelection = (bool)SvTRUE(ST(1));
6324         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6325         bool    RETVAL;
6326
6327         RETVAL = THIS->MoveCursorUp(expandSelection);
6328         ST(0) = boolSV(RETVAL);
6329         sv_2mortal(ST(0));
6330     }
6331     XSRETURN(1);
6332 }
6333
6334
6335 XS(XS_Wx__Grid_MoveCursorDownBlock); /* prototype to pass -Wmissing-prototypes */
6336 XS(XS_Wx__Grid_MoveCursorDownBlock)
6337 {
6338 #ifdef dVAR
6339     dVAR; dXSARGS;
6340 #else
6341     dXSARGS;
6342 #endif
6343     if (items != 2)
6344        croak_xs_usage(cv,  "THIS, expandSelection");
6345     {
6346         bool    expandSelection = (bool)SvTRUE(ST(1));
6347         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6348         bool    RETVAL;
6349
6350         RETVAL = THIS->MoveCursorDownBlock(expandSelection);
6351         ST(0) = boolSV(RETVAL);
6352         sv_2mortal(ST(0));
6353     }
6354     XSRETURN(1);
6355 }
6356
6357
6358 XS(XS_Wx__Grid_MoveCursorLeftBlock); /* prototype to pass -Wmissing-prototypes */
6359 XS(XS_Wx__Grid_MoveCursorLeftBlock)
6360 {
6361 #ifdef dVAR
6362     dVAR; dXSARGS;
6363 #else
6364     dXSARGS;
6365 #endif
6366     if (items != 2)
6367        croak_xs_usage(cv,  "THIS, expandSelection");
6368     {
6369         bool    expandSelection = (bool)SvTRUE(ST(1));
6370         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6371         bool    RETVAL;
6372
6373         RETVAL = THIS->MoveCursorLeftBlock(expandSelection);
6374         ST(0) = boolSV(RETVAL);
6375         sv_2mortal(ST(0));
6376     }
6377     XSRETURN(1);
6378 }
6379
6380
6381 XS(XS_Wx__Grid_MoveCursorRightBlock); /* prototype to pass -Wmissing-prototypes */
6382 XS(XS_Wx__Grid_MoveCursorRightBlock)
6383 {
6384 #ifdef dVAR
6385     dVAR; dXSARGS;
6386 #else
6387     dXSARGS;
6388 #endif
6389     if (items != 2)
6390        croak_xs_usage(cv,  "THIS, expandSelection");
6391     {
6392         bool    expandSelection = (bool)SvTRUE(ST(1));
6393         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6394         bool    RETVAL;
6395
6396         RETVAL = THIS->MoveCursorRightBlock(expandSelection);
6397         ST(0) = boolSV(RETVAL);
6398         sv_2mortal(ST(0));
6399     }
6400     XSRETURN(1);
6401 }
6402
6403
6404 XS(XS_Wx__Grid_MoveCursorUpBlock); /* prototype to pass -Wmissing-prototypes */
6405 XS(XS_Wx__Grid_MoveCursorUpBlock)
6406 {
6407 #ifdef dVAR
6408     dVAR; dXSARGS;
6409 #else
6410     dXSARGS;
6411 #endif
6412     if (items != 2)
6413        croak_xs_usage(cv,  "THIS, expandSelection");
6414     {
6415         bool    expandSelection = (bool)SvTRUE(ST(1));
6416         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6417         bool    RETVAL;
6418
6419         RETVAL = THIS->MoveCursorUpBlock(expandSelection);
6420         ST(0) = boolSV(RETVAL);
6421         sv_2mortal(ST(0));
6422     }
6423     XSRETURN(1);
6424 }
6425
6426
6427 XS(XS_Wx__Grid_MovePageDown); /* prototype to pass -Wmissing-prototypes */
6428 XS(XS_Wx__Grid_MovePageDown)
6429 {
6430 #ifdef dVAR
6431     dVAR; dXSARGS;
6432 #else
6433     dXSARGS;
6434 #endif
6435     if (items != 1)
6436        croak_xs_usage(cv,  "THIS");
6437     {
6438         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6439         bool    RETVAL;
6440
6441         RETVAL = THIS->MovePageDown();
6442         ST(0) = boolSV(RETVAL);
6443         sv_2mortal(ST(0));
6444     }
6445     XSRETURN(1);
6446 }
6447
6448
6449 XS(XS_Wx__Grid_MovePageUp); /* prototype to pass -Wmissing-prototypes */
6450 XS(XS_Wx__Grid_MovePageUp)
6451 {
6452 #ifdef dVAR
6453     dVAR; dXSARGS;
6454 #else
6455     dXSARGS;
6456 #endif
6457     if (items != 1)
6458        croak_xs_usage(cv,  "THIS");
6459     {
6460         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6461         bool    RETVAL;
6462
6463         RETVAL = THIS->MovePageUp();
6464         ST(0) = boolSV(RETVAL);
6465         sv_2mortal(ST(0));
6466     }
6467     XSRETURN(1);
6468 }
6469
6470
6471 XS(XS_Wx__Grid_ProcessTableMessage); /* prototype to pass -Wmissing-prototypes */
6472 XS(XS_Wx__Grid_ProcessTableMessage)
6473 {
6474 #ifdef dVAR
6475     dVAR; dXSARGS;
6476 #else
6477     dXSARGS;
6478 #endif
6479     if (items != 2)
6480        croak_xs_usage(cv,  "THIS, msg");
6481     {
6482         wxGridTableMessage*    msg = (wxGridTableMessage *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridTableMessage" );
6483         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6484         bool    RETVAL;
6485
6486         RETVAL = THIS->ProcessTableMessage(*msg);
6487         ST(0) = boolSV(RETVAL);
6488         sv_2mortal(ST(0));
6489     }
6490     XSRETURN(1);
6491 }
6492
6493
6494 XS(XS_Wx__Grid_RegisterDataType); /* prototype to pass -Wmissing-prototypes */
6495 XS(XS_Wx__Grid_RegisterDataType)
6496 {
6497 #ifdef dVAR
6498     dVAR; dXSARGS;
6499 #else
6500     dXSARGS;
6501 #endif
6502     if (items != 4)
6503        croak_xs_usage(cv,  "THIS, typeName, renderer, editor");
6504     {
6505         wxString        typeName;
6506         wxGridCellRenderer*    renderer = (wxGridCellRenderer *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::GridCellRenderer" );
6507         wxGridCellEditor*    editor = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::GridCellEditor" );
6508         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6509
6510     WXSTRING_INPUT( typeName, wxString, ST(1) );
6511     renderer->IncRef();
6512     editor->IncRef();
6513     THIS->RegisterDataType( typeName, renderer, editor );
6514     }
6515     XSRETURN_EMPTY;
6516 }
6517
6518
6519 XS(XS_Wx__Grid_SaveEditControlValue); /* prototype to pass -Wmissing-prototypes */
6520 XS(XS_Wx__Grid_SaveEditControlValue)
6521 {
6522 #ifdef dVAR
6523     dVAR; dXSARGS;
6524 #else
6525     dXSARGS;
6526 #endif
6527     if (items != 1)
6528        croak_xs_usage(cv,  "THIS");
6529     {
6530         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6531
6532         THIS->SaveEditControlValue();
6533     }
6534     XSRETURN_EMPTY;
6535 }
6536
6537
6538 XS(XS_Wx__Grid_SelectAll); /* prototype to pass -Wmissing-prototypes */
6539 XS(XS_Wx__Grid_SelectAll)
6540 {
6541 #ifdef dVAR
6542     dVAR; dXSARGS;
6543 #else
6544     dXSARGS;
6545 #endif
6546     if (items != 1)
6547        croak_xs_usage(cv,  "THIS");
6548     {
6549         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6550
6551         THIS->SelectAll();
6552     }
6553     XSRETURN_EMPTY;
6554 }
6555
6556
6557 XS(XS_Wx__Grid_SelectBlockXYWH); /* prototype to pass -Wmissing-prototypes */
6558 XS(XS_Wx__Grid_SelectBlockXYWH)
6559 {
6560 #ifdef dVAR
6561     dVAR; dXSARGS;
6562 #else
6563     dXSARGS;
6564 #endif
6565     if (items < 5 || items > 6)
6566        croak_xs_usage(cv,  "THIS, topRow, leftCol, bottomRow, rightCol, addToSelected = false");
6567     {
6568         int     topRow = (int)SvIV(ST(1));
6569         int     leftCol = (int)SvIV(ST(2));
6570         int     bottomRow = (int)SvIV(ST(3));
6571         int     rightCol = (int)SvIV(ST(4));
6572         bool    addToSelected;
6573         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6574
6575         if (items < 6)
6576             addToSelected = false;
6577         else {
6578             addToSelected = (bool)SvTRUE(ST(5));
6579         }
6580     THIS->SelectBlock( topRow, leftCol, bottomRow, rightCol, addToSelected );
6581     }
6582     XSRETURN_EMPTY;
6583 }
6584
6585
6586 XS(XS_Wx__Grid_SelectBlockPP); /* prototype to pass -Wmissing-prototypes */
6587 XS(XS_Wx__Grid_SelectBlockPP)
6588 {
6589 #ifdef dVAR
6590     dVAR; dXSARGS;
6591 #else
6592     dXSARGS;
6593 #endif
6594     if (items < 3 || items > 4)
6595        croak_xs_usage(cv,  "THIS, topLeft, bottomRight, addToSelected = false");
6596     {
6597         wxGridCellCoords*    topLeft = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridCellCoords" );
6598         wxGridCellCoords*    bottomRight = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::GridCellCoords" );
6599         bool    addToSelected;
6600         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6601
6602         if (items < 4)
6603             addToSelected = false;
6604         else {
6605             addToSelected = (bool)SvTRUE(ST(3));
6606         }
6607     THIS->SelectBlock( *topLeft, *bottomRight, addToSelected );
6608     }
6609     XSRETURN_EMPTY;
6610 }
6611
6612
6613 XS(XS_Wx__Grid_SelectCol); /* prototype to pass -Wmissing-prototypes */
6614 XS(XS_Wx__Grid_SelectCol)
6615 {
6616 #ifdef dVAR
6617     dVAR; dXSARGS;
6618 #else
6619     dXSARGS;
6620 #endif
6621     if (items < 2 || items > 3)
6622        croak_xs_usage(cv,  "THIS, col, addToSelected = false");
6623     {
6624         int     col = (int)SvIV(ST(1));
6625         bool    addToSelected;
6626         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6627
6628         if (items < 3)
6629             addToSelected = false;
6630         else {
6631             addToSelected = (bool)SvTRUE(ST(2));
6632         }
6633
6634         THIS->SelectCol(col, addToSelected);
6635     }
6636     XSRETURN_EMPTY;
6637 }
6638
6639
6640 XS(XS_Wx__Grid_SelectRow); /* prototype to pass -Wmissing-prototypes */
6641 XS(XS_Wx__Grid_SelectRow)
6642 {
6643 #ifdef dVAR
6644     dVAR; dXSARGS;
6645 #else
6646     dXSARGS;
6647 #endif
6648     if (items < 2 || items > 3)
6649        croak_xs_usage(cv,  "THIS, row, addToSelected = false");
6650     {
6651         int     row = (int)SvIV(ST(1));
6652         bool    addToSelected;
6653         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6654
6655         if (items < 3)
6656             addToSelected = false;
6657         else {
6658             addToSelected = (bool)SvTRUE(ST(2));
6659         }
6660
6661         THIS->SelectRow(row, addToSelected);
6662     }
6663     XSRETURN_EMPTY;
6664 }
6665
6666 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
6667 #define XSubPPtmpAAAQ 1
6668
6669
6670 XS(XS_Wx__Grid_SetUseNativeColLabels); /* prototype to pass -Wmissing-prototypes */
6671 XS(XS_Wx__Grid_SetUseNativeColLabels)
6672 {
6673 #ifdef dVAR
6674     dVAR; dXSARGS;
6675 #else
6676     dXSARGS;
6677 #endif
6678     if (items < 1 || items > 2)
6679        croak_xs_usage(cv,  "THIS, native = true");
6680     {
6681         bool    native;
6682         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6683
6684         if (items < 2)
6685             native = true;
6686         else {
6687             native = (bool)SvTRUE(ST(1));
6688         }
6689
6690         THIS->SetUseNativeColLabels(native);
6691     }
6692     XSRETURN_EMPTY;
6693 }
6694
6695 #endif
6696
6697 XS(XS_Wx__Grid_SetCellAlignment); /* prototype to pass -Wmissing-prototypes */
6698 XS(XS_Wx__Grid_SetCellAlignment)
6699 {
6700 #ifdef dVAR
6701     dVAR; dXSARGS;
6702 #else
6703     dXSARGS;
6704 #endif
6705     if (items != 5)
6706        croak_xs_usage(cv,  "THIS, row, col, horiz, vert");
6707     {
6708         int     row = (int)SvIV(ST(1));
6709         int     col = (int)SvIV(ST(2));
6710         int     horiz = (int)SvIV(ST(3));
6711         int     vert = (int)SvIV(ST(4));
6712         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6713
6714         THIS->SetCellAlignment(row, col, horiz, vert);
6715     }
6716     XSRETURN_EMPTY;
6717 }
6718
6719
6720 XS(XS_Wx__Grid_SetCellBackgroundColour); /* prototype to pass -Wmissing-prototypes */
6721 XS(XS_Wx__Grid_SetCellBackgroundColour)
6722 {
6723 #ifdef dVAR
6724     dVAR; dXSARGS;
6725 #else
6726     dXSARGS;
6727 #endif
6728     if (items != 4)
6729        croak_xs_usage(cv,  "THIS, row, col, colour");
6730     {
6731         int     row = (int)SvIV(ST(1));
6732         int     col = (int)SvIV(ST(2));
6733         wxColour    colour = *(wxColour *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Colour" );
6734         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6735
6736         THIS->SetCellBackgroundColour(row, col, colour);
6737     }
6738     XSRETURN_EMPTY;
6739 }
6740
6741
6742 XS(XS_Wx__Grid_SetCellHighlightColour); /* prototype to pass -Wmissing-prototypes */
6743 XS(XS_Wx__Grid_SetCellHighlightColour)
6744 {
6745 #ifdef dVAR
6746     dVAR; dXSARGS;
6747 #else
6748     dXSARGS;
6749 #endif
6750     if (items != 2)
6751        croak_xs_usage(cv,  "THIS, colour");
6752     {
6753         wxColour*    colour = (wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
6754         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6755
6756         THIS->SetCellHighlightColour(*colour);
6757     }
6758     XSRETURN_EMPTY;
6759 }
6760
6761
6762 XS(XS_Wx__Grid_SetCellHighlightPenWidth); /* prototype to pass -Wmissing-prototypes */
6763 XS(XS_Wx__Grid_SetCellHighlightPenWidth)
6764 {
6765 #ifdef dVAR
6766     dVAR; dXSARGS;
6767 #else
6768     dXSARGS;
6769 #endif
6770     if (items != 2)
6771        croak_xs_usage(cv,  "THIS, width");
6772     {
6773         int     width = (int)SvIV(ST(1));
6774         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6775
6776         THIS->SetCellHighlightPenWidth(width);
6777     }
6778     XSRETURN_EMPTY;
6779 }
6780
6781
6782 XS(XS_Wx__Grid_SetCellHighlightROPenWidth); /* prototype to pass -Wmissing-prototypes */
6783 XS(XS_Wx__Grid_SetCellHighlightROPenWidth)
6784 {
6785 #ifdef dVAR
6786     dVAR; dXSARGS;
6787 #else
6788     dXSARGS;
6789 #endif
6790     if (items != 2)
6791        croak_xs_usage(cv,  "THIS, width");
6792     {
6793         int     width = (int)SvIV(ST(1));
6794         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6795
6796         THIS->SetCellHighlightROPenWidth(width);
6797     }
6798     XSRETURN_EMPTY;
6799 }
6800
6801
6802 XS(XS_Wx__Grid_SetCellEditor); /* prototype to pass -Wmissing-prototypes */
6803 XS(XS_Wx__Grid_SetCellEditor)
6804 {
6805 #ifdef dVAR
6806     dVAR; dXSARGS;
6807 #else
6808     dXSARGS;
6809 #endif
6810     if (items != 4)
6811        croak_xs_usage(cv,  "THIS, row, col, editor");
6812     {
6813         int     row = (int)SvIV(ST(1));
6814         int     col = (int)SvIV(ST(2));
6815         wxGridCellEditor*    editor = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::GridCellEditor" );
6816         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6817     editor->IncRef();
6818     THIS->SetCellEditor( row, col, editor );
6819     }
6820     XSRETURN_EMPTY;
6821 }
6822
6823
6824 XS(XS_Wx__Grid_SetCellRenderer); /* prototype to pass -Wmissing-prototypes */
6825 XS(XS_Wx__Grid_SetCellRenderer)
6826 {
6827 #ifdef dVAR
6828     dVAR; dXSARGS;
6829 #else
6830     dXSARGS;
6831 #endif
6832     if (items != 4)
6833        croak_xs_usage(cv,  "THIS, row, col, renderer");
6834     {
6835         int     row = (int)SvIV(ST(1));
6836         int     col = (int)SvIV(ST(2));
6837         wxGridCellRenderer*    renderer = (wxGridCellRenderer *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::GridCellRenderer" );
6838         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6839     renderer->IncRef();
6840     THIS->SetCellRenderer( row, col, renderer );
6841     }
6842     XSRETURN_EMPTY;
6843 }
6844
6845
6846 XS(XS_Wx__Grid_SetCellFont); /* prototype to pass -Wmissing-prototypes */
6847 XS(XS_Wx__Grid_SetCellFont)
6848 {
6849 #ifdef dVAR
6850     dVAR; dXSARGS;
6851 #else
6852     dXSARGS;
6853 #endif
6854     if (items != 4)
6855        croak_xs_usage(cv,  "THIS, row, col, font");
6856     {
6857         int     row = (int)SvIV(ST(1));
6858         int     col = (int)SvIV(ST(2));
6859         wxFont*    font = (wxFont *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Font" );
6860         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6861     THIS->SetCellFont( row, col, *font );
6862     }
6863     XSRETURN_EMPTY;
6864 }
6865
6866
6867 XS(XS_Wx__Grid_SetCellTextColour); /* prototype to pass -Wmissing-prototypes */
6868 XS(XS_Wx__Grid_SetCellTextColour)
6869 {
6870 #ifdef dVAR
6871     dVAR; dXSARGS;
6872 #else
6873     dXSARGS;
6874 #endif
6875     if (items != 4)
6876        croak_xs_usage(cv,  "THIS, row, col, colour");
6877     {
6878         int     row = (int)SvIV(ST(1));
6879         int     col = (int)SvIV(ST(2));
6880         wxColour    colour = *(wxColour *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Colour" );
6881         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6882
6883         THIS->SetCellTextColour(row, col, colour);
6884     }
6885     XSRETURN_EMPTY;
6886 }
6887
6888
6889 XS(XS_Wx__Grid_SetCellSize); /* prototype to pass -Wmissing-prototypes */
6890 XS(XS_Wx__Grid_SetCellSize)
6891 {
6892 #ifdef dVAR
6893     dVAR; dXSARGS;
6894 #else
6895     dXSARGS;
6896 #endif
6897     if (items != 5)
6898        croak_xs_usage(cv,  "THIS, row, col, rows, cols");
6899     {
6900         int     row = (int)SvIV(ST(1));
6901         int     col = (int)SvIV(ST(2));
6902         int     rows = (int)SvIV(ST(3));
6903         int     cols = (int)SvIV(ST(4));
6904         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6905
6906         THIS->SetCellSize(row, col, rows, cols);
6907     }
6908     XSRETURN_EMPTY;
6909 }
6910
6911
6912 XS(XS_Wx__Grid_SetCellOverflow); /* prototype to pass -Wmissing-prototypes */
6913 XS(XS_Wx__Grid_SetCellOverflow)
6914 {
6915 #ifdef dVAR
6916     dVAR; dXSARGS;
6917 #else
6918     dXSARGS;
6919 #endif
6920     if (items != 4)
6921        croak_xs_usage(cv,  "THIS, row, col, oflo");
6922     {
6923         int     row = (int)SvIV(ST(1));
6924         int     col = (int)SvIV(ST(2));
6925         bool    oflo = (bool)SvTRUE(ST(3));
6926         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6927
6928         THIS->SetCellOverflow(row, col, oflo);
6929     }
6930     XSRETURN_EMPTY;
6931 }
6932
6933
6934 XS(XS_Wx__Grid_SetCellValueXY); /* prototype to pass -Wmissing-prototypes */
6935 XS(XS_Wx__Grid_SetCellValueXY)
6936 {
6937 #ifdef dVAR
6938     dVAR; dXSARGS;
6939 #else
6940     dXSARGS;
6941 #endif
6942     if (items != 4)
6943        croak_xs_usage(cv,  "THIS, row, col, s");
6944     {
6945         int     row = (int)SvIV(ST(1));
6946         int     col = (int)SvIV(ST(2));
6947         wxString        s;
6948         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6949
6950     WXSTRING_INPUT( s, wxString, ST(3) );
6951     THIS->SetCellValue( row, col, s );
6952     }
6953     XSRETURN_EMPTY;
6954 }
6955
6956
6957 XS(XS_Wx__Grid_SetCellValueCo); /* prototype to pass -Wmissing-prototypes */
6958 XS(XS_Wx__Grid_SetCellValueCo)
6959 {
6960 #ifdef dVAR
6961     dVAR; dXSARGS;
6962 #else
6963     dXSARGS;
6964 #endif
6965     if (items != 3)
6966        croak_xs_usage(cv,  "THIS, coords, s");
6967     {
6968         wxGridCellCoords*    coords = (wxGridCellCoords *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridCellCoords" );
6969         wxString        s;
6970         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6971
6972     WXSTRING_INPUT( s, wxString, ST(2) );
6973     THIS->SetCellValue( *coords, s );
6974     }
6975     XSRETURN_EMPTY;
6976 }
6977
6978
6979 XS(XS_Wx__Grid_SetDefaultCellAlignment); /* prototype to pass -Wmissing-prototypes */
6980 XS(XS_Wx__Grid_SetDefaultCellAlignment)
6981 {
6982 #ifdef dVAR
6983     dVAR; dXSARGS;
6984 #else
6985     dXSARGS;
6986 #endif
6987     if (items != 3)
6988        croak_xs_usage(cv,  "THIS, horiz, vert");
6989     {
6990         int     horiz = (int)SvIV(ST(1));
6991         int     vert = (int)SvIV(ST(2));
6992         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
6993
6994         THIS->SetDefaultCellAlignment(horiz, vert);
6995     }
6996     XSRETURN_EMPTY;
6997 }
6998
6999
7000 XS(XS_Wx__Grid_SetDefaultCellBackgroundColour); /* prototype to pass -Wmissing-prototypes */
7001 XS(XS_Wx__Grid_SetDefaultCellBackgroundColour)
7002 {
7003 #ifdef dVAR
7004     dVAR; dXSARGS;
7005 #else
7006     dXSARGS;
7007 #endif
7008     if (items != 2)
7009        croak_xs_usage(cv,  "THIS, colour");
7010     {
7011         wxColour    colour = *(wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
7012         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7013
7014         THIS->SetDefaultCellBackgroundColour(colour);
7015     }
7016     XSRETURN_EMPTY;
7017 }
7018
7019
7020 XS(XS_Wx__Grid_SetDefaultCellFont); /* prototype to pass -Wmissing-prototypes */
7021 XS(XS_Wx__Grid_SetDefaultCellFont)
7022 {
7023 #ifdef dVAR
7024     dVAR; dXSARGS;
7025 #else
7026     dXSARGS;
7027 #endif
7028     if (items != 2)
7029        croak_xs_usage(cv,  "THIS, font");
7030     {
7031         wxFont*    font = (wxFont *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Font" );
7032         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7033     THIS->SetDefaultCellFont( *font );
7034     }
7035     XSRETURN_EMPTY;
7036 }
7037
7038
7039 XS(XS_Wx__Grid_SetDefaultCellOverflow); /* prototype to pass -Wmissing-prototypes */
7040 XS(XS_Wx__Grid_SetDefaultCellOverflow)
7041 {
7042 #ifdef dVAR
7043     dVAR; dXSARGS;
7044 #else
7045     dXSARGS;
7046 #endif
7047     if (items != 2)
7048        croak_xs_usage(cv,  "THIS, oflo");
7049     {
7050         bool    oflo = (bool)SvTRUE(ST(1));
7051         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7052
7053         THIS->SetDefaultCellOverflow(oflo);
7054     }
7055     XSRETURN_EMPTY;
7056 }
7057
7058
7059 XS(XS_Wx__Grid_SetDefaultCellTextColour); /* prototype to pass -Wmissing-prototypes */
7060 XS(XS_Wx__Grid_SetDefaultCellTextColour)
7061 {
7062 #ifdef dVAR
7063     dVAR; dXSARGS;
7064 #else
7065     dXSARGS;
7066 #endif
7067     if (items != 2)
7068        croak_xs_usage(cv,  "THIS, colour");
7069     {
7070         wxColour    colour = *(wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
7071         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7072
7073         THIS->SetDefaultCellTextColour(colour);
7074     }
7075     XSRETURN_EMPTY;
7076 }
7077
7078
7079 XS(XS_Wx__Grid_SetDefaultColSize); /* prototype to pass -Wmissing-prototypes */
7080 XS(XS_Wx__Grid_SetDefaultColSize)
7081 {
7082 #ifdef dVAR
7083     dVAR; dXSARGS;
7084 #else
7085     dXSARGS;
7086 #endif
7087     if (items < 2 || items > 3)
7088        croak_xs_usage(cv,  "THIS, width, resizeExistingCols = false");
7089     {
7090         int     width = (int)SvIV(ST(1));
7091         bool    resizeExistingCols;
7092         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7093
7094         if (items < 3)
7095             resizeExistingCols = false;
7096         else {
7097             resizeExistingCols = (bool)SvTRUE(ST(2));
7098         }
7099
7100         THIS->SetDefaultColSize(width, resizeExistingCols);
7101     }
7102     XSRETURN_EMPTY;
7103 }
7104
7105
7106 XS(XS_Wx__Grid_SetDefaultEditor); /* prototype to pass -Wmissing-prototypes */
7107 XS(XS_Wx__Grid_SetDefaultEditor)
7108 {
7109 #ifdef dVAR
7110     dVAR; dXSARGS;
7111 #else
7112     dXSARGS;
7113 #endif
7114     if (items != 2)
7115        croak_xs_usage(cv,  "THIS, editor");
7116     {
7117         wxGridCellEditor*    editor = (wxGridCellEditor *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridCellEditor" );
7118         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7119     editor->IncRef();
7120     THIS->SetDefaultEditor( editor );
7121     }
7122     XSRETURN_EMPTY;
7123 }
7124
7125
7126 XS(XS_Wx__Grid_SetDefaultRenderer); /* prototype to pass -Wmissing-prototypes */
7127 XS(XS_Wx__Grid_SetDefaultRenderer)
7128 {
7129 #ifdef dVAR
7130     dVAR; dXSARGS;
7131 #else
7132     dXSARGS;
7133 #endif
7134     if (items != 2)
7135        croak_xs_usage(cv,  "THIS, renderer");
7136     {
7137         wxGridCellRenderer*    renderer = (wxGridCellRenderer *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridCellRenderer" );
7138         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7139     renderer->IncRef();
7140     THIS->SetDefaultRenderer( renderer );
7141     }
7142     XSRETURN_EMPTY;
7143 }
7144
7145
7146 XS(XS_Wx__Grid_SetDefaultRowSize); /* prototype to pass -Wmissing-prototypes */
7147 XS(XS_Wx__Grid_SetDefaultRowSize)
7148 {
7149 #ifdef dVAR
7150     dVAR; dXSARGS;
7151 #else
7152     dXSARGS;
7153 #endif
7154     if (items < 2 || items > 3)
7155        croak_xs_usage(cv,  "THIS, height, resizeExistingCols = false");
7156     {
7157         int     height = (int)SvIV(ST(1));
7158         bool    resizeExistingCols;
7159         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7160
7161         if (items < 3)
7162             resizeExistingCols = false;
7163         else {
7164             resizeExistingCols = (bool)SvTRUE(ST(2));
7165         }
7166
7167         THIS->SetDefaultRowSize(height, resizeExistingCols);
7168     }
7169     XSRETURN_EMPTY;
7170 }
7171
7172
7173 XS(XS_Wx__Grid_SetColAttr); /* prototype to pass -Wmissing-prototypes */
7174 XS(XS_Wx__Grid_SetColAttr)
7175 {
7176 #ifdef dVAR
7177     dVAR; dXSARGS;
7178 #else
7179     dXSARGS;
7180 #endif
7181     if (items != 3)
7182        croak_xs_usage(cv,  "THIS, col, attr");
7183     {
7184         int     col = (int)SvIV(ST(1));
7185         wxGridCellAttr*    attr = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::GridCellAttr" );
7186         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7187     attr->IncRef();
7188     THIS->SetColAttr( col, attr );
7189     }
7190     XSRETURN_EMPTY;
7191 }
7192
7193
7194 XS(XS_Wx__Grid_SetColFormatBool); /* prototype to pass -Wmissing-prototypes */
7195 XS(XS_Wx__Grid_SetColFormatBool)
7196 {
7197 #ifdef dVAR
7198     dVAR; dXSARGS;
7199 #else
7200     dXSARGS;
7201 #endif
7202     if (items != 2)
7203        croak_xs_usage(cv,  "THIS, col");
7204     {
7205         int     col = (int)SvIV(ST(1));
7206         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7207
7208         THIS->SetColFormatBool(col);
7209     }
7210     XSRETURN_EMPTY;
7211 }
7212
7213
7214 XS(XS_Wx__Grid_SetColFormatNumber); /* prototype to pass -Wmissing-prototypes */
7215 XS(XS_Wx__Grid_SetColFormatNumber)
7216 {
7217 #ifdef dVAR
7218     dVAR; dXSARGS;
7219 #else
7220     dXSARGS;
7221 #endif
7222     if (items != 2)
7223        croak_xs_usage(cv,  "THIS, col");
7224     {
7225         int     col = (int)SvIV(ST(1));
7226         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7227
7228         THIS->SetColFormatNumber(col);
7229     }
7230     XSRETURN_EMPTY;
7231 }
7232
7233
7234 XS(XS_Wx__Grid_SetColFormatFloat); /* prototype to pass -Wmissing-prototypes */
7235 XS(XS_Wx__Grid_SetColFormatFloat)
7236 {
7237 #ifdef dVAR
7238     dVAR; dXSARGS;
7239 #else
7240     dXSARGS;
7241 #endif
7242     if (items < 2 || items > 4)
7243        croak_xs_usage(cv,  "THIS, col, width = -1, precision = -1");
7244     {
7245         int     col = (int)SvIV(ST(1));
7246         int     width;
7247         int     precision;
7248         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7249
7250         if (items < 3)
7251             width = -1;
7252         else {
7253             width = (int)SvIV(ST(2));
7254         }
7255
7256         if (items < 4)
7257             precision = -1;
7258         else {
7259             precision = (int)SvIV(ST(3));
7260         }
7261
7262         THIS->SetColFormatFloat(col, width, precision);
7263     }
7264     XSRETURN_EMPTY;
7265 }
7266
7267
7268 XS(XS_Wx__Grid_SetColFormatCustom); /* prototype to pass -Wmissing-prototypes */
7269 XS(XS_Wx__Grid_SetColFormatCustom)
7270 {
7271 #ifdef dVAR
7272     dVAR; dXSARGS;
7273 #else
7274     dXSARGS;
7275 #endif
7276     if (items != 3)
7277        croak_xs_usage(cv,  "THIS, col, typeName");
7278     {
7279         int     col = (int)SvIV(ST(1));
7280         wxString        typeName;
7281         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7282
7283     WXSTRING_INPUT( typeName, wxString, ST(2) );
7284
7285         THIS->SetColFormatCustom(col, typeName);
7286     }
7287     XSRETURN_EMPTY;
7288 }
7289
7290
7291 XS(XS_Wx__Grid_SetColLabelAlignment); /* prototype to pass -Wmissing-prototypes */
7292 XS(XS_Wx__Grid_SetColLabelAlignment)
7293 {
7294 #ifdef dVAR
7295     dVAR; dXSARGS;
7296 #else
7297     dXSARGS;
7298 #endif
7299     if (items != 3)
7300        croak_xs_usage(cv,  "THIS, horiz, vert");
7301     {
7302         int     horiz = (int)SvIV(ST(1));
7303         int     vert = (int)SvIV(ST(2));
7304         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7305
7306         THIS->SetColLabelAlignment(horiz, vert);
7307     }
7308     XSRETURN_EMPTY;
7309 }
7310
7311
7312 XS(XS_Wx__Grid_SetColLabelSize); /* prototype to pass -Wmissing-prototypes */
7313 XS(XS_Wx__Grid_SetColLabelSize)
7314 {
7315 #ifdef dVAR
7316     dVAR; dXSARGS;
7317 #else
7318     dXSARGS;
7319 #endif
7320     if (items != 2)
7321        croak_xs_usage(cv,  "THIS, height");
7322     {
7323         int     height = (int)SvIV(ST(1));
7324         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7325
7326         THIS->SetColLabelSize(height);
7327     }
7328     XSRETURN_EMPTY;
7329 }
7330
7331
7332 XS(XS_Wx__Grid_SetColLabelValue); /* prototype to pass -Wmissing-prototypes */
7333 XS(XS_Wx__Grid_SetColLabelValue)
7334 {
7335 #ifdef dVAR
7336     dVAR; dXSARGS;
7337 #else
7338     dXSARGS;
7339 #endif
7340     if (items != 3)
7341        croak_xs_usage(cv,  "THIS, col, value");
7342     {
7343         int     col = (int)SvIV(ST(1));
7344         wxString        value;
7345         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7346
7347     WXSTRING_INPUT( value, wxString, ST(2) );
7348
7349         THIS->SetColLabelValue(col, value);
7350     }
7351     XSRETURN_EMPTY;
7352 }
7353
7354
7355 XS(XS_Wx__Grid_SetColMinimalAcceptableWidth); /* prototype to pass -Wmissing-prototypes */
7356 XS(XS_Wx__Grid_SetColMinimalAcceptableWidth)
7357 {
7358 #ifdef dVAR
7359     dVAR; dXSARGS;
7360 #else
7361     dXSARGS;
7362 #endif
7363     if (items != 2)
7364        croak_xs_usage(cv,  "THIS, width");
7365     {
7366         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7367         int     width = (int)SvIV(ST(1));
7368
7369         THIS->SetColMinimalAcceptableWidth(width);
7370     }
7371     XSRETURN_EMPTY;
7372 }
7373
7374
7375 XS(XS_Wx__Grid_SetRowMinimalAcceptableHeight); /* prototype to pass -Wmissing-prototypes */
7376 XS(XS_Wx__Grid_SetRowMinimalAcceptableHeight)
7377 {
7378 #ifdef dVAR
7379     dVAR; dXSARGS;
7380 #else
7381     dXSARGS;
7382 #endif
7383     if (items != 2)
7384        croak_xs_usage(cv,  "THIS, width");
7385     {
7386         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7387         int     width = (int)SvIV(ST(1));
7388
7389         THIS->SetRowMinimalAcceptableHeight(width);
7390     }
7391     XSRETURN_EMPTY;
7392 }
7393
7394
7395 XS(XS_Wx__Grid_SetColMinimalWidth); /* prototype to pass -Wmissing-prototypes */
7396 XS(XS_Wx__Grid_SetColMinimalWidth)
7397 {
7398 #ifdef dVAR
7399     dVAR; dXSARGS;
7400 #else
7401     dXSARGS;
7402 #endif
7403     if (items != 3)
7404        croak_xs_usage(cv,  "THIS, col, width");
7405     {
7406         int     col = (int)SvIV(ST(1));
7407         int     width = (int)SvIV(ST(2));
7408         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7409
7410         THIS->SetColMinimalWidth(col, width);
7411     }
7412     XSRETURN_EMPTY;
7413 }
7414
7415
7416 XS(XS_Wx__Grid_SetColSize); /* prototype to pass -Wmissing-prototypes */
7417 XS(XS_Wx__Grid_SetColSize)
7418 {
7419 #ifdef dVAR
7420     dVAR; dXSARGS;
7421 #else
7422     dXSARGS;
7423 #endif
7424     if (items != 3)
7425        croak_xs_usage(cv,  "THIS, col, height");
7426     {
7427         int     col = (int)SvIV(ST(1));
7428         int     height = (int)SvIV(ST(2));
7429         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7430
7431         THIS->SetColSize(col, height);
7432     }
7433     XSRETURN_EMPTY;
7434 }
7435
7436 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
7437 #define XSubPPtmpAAAR 1
7438
7439
7440 XS(XS_Wx__Grid_SetColPos); /* prototype to pass -Wmissing-prototypes */
7441 XS(XS_Wx__Grid_SetColPos)
7442 {
7443 #ifdef dVAR
7444     dVAR; dXSARGS;
7445 #else
7446     dXSARGS;
7447 #endif
7448     if (items != 3)
7449        croak_xs_usage(cv,  "THIS, col, pos");
7450     {
7451         int     col = (int)SvIV(ST(1));
7452         int     pos = (int)SvIV(ST(2));
7453         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7454
7455         THIS->SetColPos(col, pos);
7456     }
7457     XSRETURN_EMPTY;
7458 }
7459
7460 #endif
7461
7462 XS(XS_Wx__Grid_SetGridCursor); /* prototype to pass -Wmissing-prototypes */
7463 XS(XS_Wx__Grid_SetGridCursor)
7464 {
7465 #ifdef dVAR
7466     dVAR; dXSARGS;
7467 #else
7468     dXSARGS;
7469 #endif
7470     if (items != 3)
7471        croak_xs_usage(cv,  "THIS, row, col");
7472     {
7473         int     row = (int)SvIV(ST(1));
7474         int     col = (int)SvIV(ST(2));
7475         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7476
7477         THIS->SetGridCursor(row, col);
7478     }
7479     XSRETURN_EMPTY;
7480 }
7481
7482
7483 XS(XS_Wx__Grid_SetGridLineColour); /* prototype to pass -Wmissing-prototypes */
7484 XS(XS_Wx__Grid_SetGridLineColour)
7485 {
7486 #ifdef dVAR
7487     dVAR; dXSARGS;
7488 #else
7489     dXSARGS;
7490 #endif
7491     if (items != 2)
7492        croak_xs_usage(cv,  "THIS, colour");
7493     {
7494         wxColour    colour = *(wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
7495         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7496
7497         THIS->SetGridLineColour(colour);
7498     }
7499     XSRETURN_EMPTY;
7500 }
7501
7502
7503 XS(XS_Wx__Grid_SetLabelBackgroundColour); /* prototype to pass -Wmissing-prototypes */
7504 XS(XS_Wx__Grid_SetLabelBackgroundColour)
7505 {
7506 #ifdef dVAR
7507     dVAR; dXSARGS;
7508 #else
7509     dXSARGS;
7510 #endif
7511     if (items != 2)
7512        croak_xs_usage(cv,  "THIS, colour");
7513     {
7514         wxColour    colour = *(wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
7515         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7516
7517         THIS->SetLabelBackgroundColour(colour);
7518     }
7519     XSRETURN_EMPTY;
7520 }
7521
7522
7523 XS(XS_Wx__Grid_SetLabelFont); /* prototype to pass -Wmissing-prototypes */
7524 XS(XS_Wx__Grid_SetLabelFont)
7525 {
7526 #ifdef dVAR
7527     dVAR; dXSARGS;
7528 #else
7529     dXSARGS;
7530 #endif
7531     if (items != 2)
7532        croak_xs_usage(cv,  "THIS, font");
7533     {
7534         wxFont*    font = (wxFont *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Font" );
7535         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7536     THIS->SetLabelFont( *font );
7537     }
7538     XSRETURN_EMPTY;
7539 }
7540
7541
7542 XS(XS_Wx__Grid_SetLabelTextColour); /* prototype to pass -Wmissing-prototypes */
7543 XS(XS_Wx__Grid_SetLabelTextColour)
7544 {
7545 #ifdef dVAR
7546     dVAR; dXSARGS;
7547 #else
7548     dXSARGS;
7549 #endif
7550     if (items != 2)
7551        croak_xs_usage(cv,  "THIS, colour");
7552     {
7553         wxColour    colour = *(wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
7554         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7555
7556         THIS->SetLabelTextColour(colour);
7557     }
7558     XSRETURN_EMPTY;
7559 }
7560
7561
7562 XS(XS_Wx__Grid_SetMargins); /* prototype to pass -Wmissing-prototypes */
7563 XS(XS_Wx__Grid_SetMargins)
7564 {
7565 #ifdef dVAR
7566     dVAR; dXSARGS;
7567 #else
7568     dXSARGS;
7569 #endif
7570     if (items != 3)
7571        croak_xs_usage(cv,  "THIS, extraWidth, extraHeight");
7572     {
7573         int     extraWidth = (int)SvIV(ST(1));
7574         int     extraHeight = (int)SvIV(ST(2));
7575         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7576
7577         THIS->SetMargins(extraWidth, extraHeight);
7578     }
7579     XSRETURN_EMPTY;
7580 }
7581
7582
7583 XS(XS_Wx__Grid_SetReadOnly); /* prototype to pass -Wmissing-prototypes */
7584 XS(XS_Wx__Grid_SetReadOnly)
7585 {
7586 #ifdef dVAR
7587     dVAR; dXSARGS;
7588 #else
7589     dXSARGS;
7590 #endif
7591     if (items < 3 || items > 4)
7592        croak_xs_usage(cv,  "THIS, row, col, isReadOnly = true");
7593     {
7594         int     row = (int)SvIV(ST(1));
7595         int     col = (int)SvIV(ST(2));
7596         bool    isReadOnly;
7597         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7598
7599         if (items < 4)
7600             isReadOnly = true;
7601         else {
7602             isReadOnly = (bool)SvTRUE(ST(3));
7603         }
7604
7605         THIS->SetReadOnly(row, col, isReadOnly);
7606     }
7607     XSRETURN_EMPTY;
7608 }
7609
7610
7611 XS(XS_Wx__Grid_SetRowAttr); /* prototype to pass -Wmissing-prototypes */
7612 XS(XS_Wx__Grid_SetRowAttr)
7613 {
7614 #ifdef dVAR
7615     dVAR; dXSARGS;
7616 #else
7617     dXSARGS;
7618 #endif
7619     if (items != 3)
7620        croak_xs_usage(cv,  "THIS, row, attr");
7621     {
7622         int     row = (int)SvIV(ST(1));
7623         wxGridCellAttr*    attr = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::GridCellAttr" );
7624         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7625     attr->IncRef();
7626     THIS->SetRowAttr( row, attr );
7627     }
7628     XSRETURN_EMPTY;
7629 }
7630
7631
7632 XS(XS_Wx__Grid_SetRowLabelAlignment); /* prototype to pass -Wmissing-prototypes */
7633 XS(XS_Wx__Grid_SetRowLabelAlignment)
7634 {
7635 #ifdef dVAR
7636     dVAR; dXSARGS;
7637 #else
7638     dXSARGS;
7639 #endif
7640     if (items != 3)
7641        croak_xs_usage(cv,  "THIS, horiz, vert");
7642     {
7643         int     horiz = (int)SvIV(ST(1));
7644         int     vert = (int)SvIV(ST(2));
7645         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7646
7647         THIS->SetRowLabelAlignment(horiz, vert);
7648     }
7649     XSRETURN_EMPTY;
7650 }
7651
7652
7653 XS(XS_Wx__Grid_SetRowLabelSize); /* prototype to pass -Wmissing-prototypes */
7654 XS(XS_Wx__Grid_SetRowLabelSize)
7655 {
7656 #ifdef dVAR
7657     dVAR; dXSARGS;
7658 #else
7659     dXSARGS;
7660 #endif
7661     if (items != 2)
7662        croak_xs_usage(cv,  "THIS, width");
7663     {
7664         int     width = (int)SvIV(ST(1));
7665         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7666
7667         THIS->SetRowLabelSize(width);
7668     }
7669     XSRETURN_EMPTY;
7670 }
7671
7672
7673 XS(XS_Wx__Grid_SetRowLabelValue); /* prototype to pass -Wmissing-prototypes */
7674 XS(XS_Wx__Grid_SetRowLabelValue)
7675 {
7676 #ifdef dVAR
7677     dVAR; dXSARGS;
7678 #else
7679     dXSARGS;
7680 #endif
7681     if (items != 3)
7682        croak_xs_usage(cv,  "THIS, row, value");
7683     {
7684         int     row = (int)SvIV(ST(1));
7685         wxString        value;
7686         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7687
7688     WXSTRING_INPUT( value, wxString, ST(2) );
7689
7690         THIS->SetRowLabelValue(row, value);
7691     }
7692     XSRETURN_EMPTY;
7693 }
7694
7695
7696 XS(XS_Wx__Grid_SetRowMinimalHeight); /* prototype to pass -Wmissing-prototypes */
7697 XS(XS_Wx__Grid_SetRowMinimalHeight)
7698 {
7699 #ifdef dVAR
7700     dVAR; dXSARGS;
7701 #else
7702     dXSARGS;
7703 #endif
7704     if (items != 3)
7705        croak_xs_usage(cv,  "THIS, row, height");
7706     {
7707         int     row = (int)SvIV(ST(1));
7708         int     height = (int)SvIV(ST(2));
7709         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7710
7711         THIS->SetRowMinimalHeight(row, height);
7712     }
7713     XSRETURN_EMPTY;
7714 }
7715
7716
7717 XS(XS_Wx__Grid_SetRowSize); /* prototype to pass -Wmissing-prototypes */
7718 XS(XS_Wx__Grid_SetRowSize)
7719 {
7720 #ifdef dVAR
7721     dVAR; dXSARGS;
7722 #else
7723     dXSARGS;
7724 #endif
7725     if (items != 3)
7726        croak_xs_usage(cv,  "THIS, row, height");
7727     {
7728         int     row = (int)SvIV(ST(1));
7729         int     height = (int)SvIV(ST(2));
7730         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7731
7732         THIS->SetRowSize(row, height);
7733     }
7734     XSRETURN_EMPTY;
7735 }
7736
7737
7738 XS(XS_Wx__Grid_SetSelectionBackground); /* prototype to pass -Wmissing-prototypes */
7739 XS(XS_Wx__Grid_SetSelectionBackground)
7740 {
7741 #ifdef dVAR
7742     dVAR; dXSARGS;
7743 #else
7744     dXSARGS;
7745 #endif
7746     if (items != 2)
7747        croak_xs_usage(cv,  "THIS, colour");
7748     {
7749         wxColour    colour = *(wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
7750         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7751
7752         THIS->SetSelectionBackground(colour);
7753     }
7754     XSRETURN_EMPTY;
7755 }
7756
7757
7758 XS(XS_Wx__Grid_SetSelectionForeground); /* prototype to pass -Wmissing-prototypes */
7759 XS(XS_Wx__Grid_SetSelectionForeground)
7760 {
7761 #ifdef dVAR
7762     dVAR; dXSARGS;
7763 #else
7764     dXSARGS;
7765 #endif
7766     if (items != 2)
7767        croak_xs_usage(cv,  "THIS, colour");
7768     {
7769         wxColour    colour = *(wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
7770         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7771
7772         THIS->SetSelectionForeground(colour);
7773     }
7774     XSRETURN_EMPTY;
7775 }
7776
7777
7778 XS(XS_Wx__Grid_SetSelectionMode); /* prototype to pass -Wmissing-prototypes */
7779 XS(XS_Wx__Grid_SetSelectionMode)
7780 {
7781 #ifdef dVAR
7782     dVAR; dXSARGS;
7783 #else
7784     dXSARGS;
7785 #endif
7786     if (items != 2)
7787        croak_xs_usage(cv,  "THIS, selmode");
7788     {
7789         wxGridSelectionModes    selmode = (wxGridSelectionModes)SvIV(ST(1));
7790         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7791
7792         THIS->SetSelectionMode(selmode);
7793     }
7794     XSRETURN_EMPTY;
7795 }
7796
7797
7798 XS(XS_Wx__Grid_SetTable); /* prototype to pass -Wmissing-prototypes */
7799 XS(XS_Wx__Grid_SetTable)
7800 {
7801 #ifdef dVAR
7802     dVAR; dXSARGS;
7803 #else
7804     dXSARGS;
7805 #endif
7806     if (items < 2 || items > 3)
7807        croak_xs_usage(cv,  "THIS, table, selMode = wxGrid::wxGridSelectCells");
7808     {
7809         wxGridTableBase*    table = (wxGridTableBase *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridTableBase" );
7810         wxGridSelectionModes    selMode;
7811         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7812
7813         if (items < 3)
7814             selMode = wxGrid::wxGridSelectCells;
7815         else {
7816             selMode = (wxGridSelectionModes)SvIV(ST(2));
7817         }
7818
7819         THIS->SetTable(table, selMode);
7820     }
7821     XSRETURN_EMPTY;
7822 }
7823
7824
7825 XS(XS_Wx__Grid_ShowCellEditControl); /* prototype to pass -Wmissing-prototypes */
7826 XS(XS_Wx__Grid_ShowCellEditControl)
7827 {
7828 #ifdef dVAR
7829     dVAR; dXSARGS;
7830 #else
7831     dXSARGS;
7832 #endif
7833     if (items != 1)
7834        croak_xs_usage(cv,  "THIS");
7835     {
7836         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7837
7838         THIS->ShowCellEditControl();
7839     }
7840     XSRETURN_EMPTY;
7841 }
7842
7843
7844 XS(XS_Wx__Grid_XToCol); /* prototype to pass -Wmissing-prototypes */
7845 XS(XS_Wx__Grid_XToCol)
7846 {
7847 #ifdef dVAR
7848     dVAR; dXSARGS;
7849 #else
7850     dXSARGS;
7851 #endif
7852     if (items != 2)
7853        croak_xs_usage(cv,  "THIS, x");
7854     {
7855         int     x = (int)SvIV(ST(1));
7856         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7857         int     RETVAL;
7858         dXSTARG;
7859
7860         RETVAL = THIS->XToCol(x);
7861         XSprePUSH; PUSHi((IV)RETVAL);
7862     }
7863     XSRETURN(1);
7864 }
7865
7866
7867 XS(XS_Wx__Grid_XToEdgeOfCol); /* prototype to pass -Wmissing-prototypes */
7868 XS(XS_Wx__Grid_XToEdgeOfCol)
7869 {
7870 #ifdef dVAR
7871     dVAR; dXSARGS;
7872 #else
7873     dXSARGS;
7874 #endif
7875     if (items != 2)
7876        croak_xs_usage(cv,  "THIS, x");
7877     {
7878         int     x = (int)SvIV(ST(1));
7879         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7880         int     RETVAL;
7881         dXSTARG;
7882
7883         RETVAL = THIS->XToEdgeOfCol(x);
7884         XSprePUSH; PUSHi((IV)RETVAL);
7885     }
7886     XSRETURN(1);
7887 }
7888
7889
7890 XS(XS_Wx__Grid_YToRow); /* prototype to pass -Wmissing-prototypes */
7891 XS(XS_Wx__Grid_YToRow)
7892 {
7893 #ifdef dVAR
7894     dVAR; dXSARGS;
7895 #else
7896     dXSARGS;
7897 #endif
7898     if (items != 2)
7899        croak_xs_usage(cv,  "THIS, y");
7900     {
7901         int     y = (int)SvIV(ST(1));
7902         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7903         int     RETVAL;
7904         dXSTARG;
7905
7906         RETVAL = THIS->YToRow(y);
7907         XSprePUSH; PUSHi((IV)RETVAL);
7908     }
7909     XSRETURN(1);
7910 }
7911
7912
7913 XS(XS_Wx__Grid_YToEdgeOfRow); /* prototype to pass -Wmissing-prototypes */
7914 XS(XS_Wx__Grid_YToEdgeOfRow)
7915 {
7916 #ifdef dVAR
7917     dVAR; dXSARGS;
7918 #else
7919     dXSARGS;
7920 #endif
7921     if (items != 2)
7922        croak_xs_usage(cv,  "THIS, y");
7923     {
7924         int     y = (int)SvIV(ST(1));
7925         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7926         int     RETVAL;
7927         dXSTARG;
7928
7929         RETVAL = THIS->YToEdgeOfRow(y);
7930         XSprePUSH; PUSHi((IV)RETVAL);
7931     }
7932     XSRETURN(1);
7933 }
7934
7935
7936 XS(XS_Wx__Grid_GetGridWindow); /* prototype to pass -Wmissing-prototypes */
7937 XS(XS_Wx__Grid_GetGridWindow)
7938 {
7939 #ifdef dVAR
7940     dVAR; dXSARGS;
7941 #else
7942     dXSARGS;
7943 #endif
7944     if (items != 1)
7945        croak_xs_usage(cv,  "THIS");
7946     {
7947         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7948         wxWindow *      RETVAL;
7949
7950         RETVAL = THIS->GetGridWindow();
7951         ST(0) = sv_newmortal();
7952     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7953
7954     }
7955     XSRETURN(1);
7956 }
7957
7958
7959 XS(XS_Wx__Grid_GetGridRowLabelWindow); /* prototype to pass -Wmissing-prototypes */
7960 XS(XS_Wx__Grid_GetGridRowLabelWindow)
7961 {
7962 #ifdef dVAR
7963     dVAR; dXSARGS;
7964 #else
7965     dXSARGS;
7966 #endif
7967     if (items != 1)
7968        croak_xs_usage(cv,  "THIS");
7969     {
7970         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7971         wxWindow *      RETVAL;
7972
7973         RETVAL = THIS->GetGridRowLabelWindow();
7974         ST(0) = sv_newmortal();
7975     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7976
7977     }
7978     XSRETURN(1);
7979 }
7980
7981
7982 XS(XS_Wx__Grid_GetGridColLabelWindow); /* prototype to pass -Wmissing-prototypes */
7983 XS(XS_Wx__Grid_GetGridColLabelWindow)
7984 {
7985 #ifdef dVAR
7986     dVAR; dXSARGS;
7987 #else
7988     dXSARGS;
7989 #endif
7990     if (items != 1)
7991        croak_xs_usage(cv,  "THIS");
7992     {
7993         wxGrid *    THIS = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Grid" );
7994         wxWindow *      RETVAL;
7995
7996         RETVAL = THIS->GetGridColLabelWindow();
7997         ST(0) = sv_newmortal();
7998     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7999
8000     }
8001     XSRETURN(1);
8002 }
8003
8004
8005 /* INCLUDE: Returning to 'Grid.xs' from 'XS/Grid.xs' */
8006
8007
8008 /* INCLUDE:  Including 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t ../../typemap.xsp XS/GridTable.xsp |' from 'Grid.xs' */
8009
8010 #include "cpp/gridtable.h"
8011 #define wxGridCellAttr__wxAttrKind wxGridCellAttr::wxAttrKind
8012
8013 XS(XS_Wx__PlGridTable_new); /* prototype to pass -Wmissing-prototypes */
8014 XS(XS_Wx__PlGridTable_new)
8015 {
8016 #ifdef dVAR
8017     dVAR; dXSARGS;
8018 #else
8019     dXSARGS;
8020 #endif
8021     if (items != 1)
8022        croak_xs_usage(cv,  "CLASS");
8023     {
8024         char *  CLASS = (char *)SvPV_nolen(ST(0));
8025         wxPlGridTable * RETVAL;
8026      RETVAL = new wxPlGridTable( CLASS ); 
8027         ST(0) = sv_newmortal();
8028     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8029
8030     }
8031     XSRETURN(1);
8032 }
8033
8034
8035 XS(XS_Wx__PlGridTable_Destroy); /* prototype to pass -Wmissing-prototypes */
8036 XS(XS_Wx__PlGridTable_Destroy)
8037 {
8038 #ifdef dVAR
8039     dVAR; dXSARGS;
8040 #else
8041     dXSARGS;
8042 #endif
8043     if (items != 1)
8044        croak_xs_usage(cv,  "THIS");
8045     {
8046         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8047      delete THIS; 
8048     }
8049     XSRETURN_EMPTY;
8050 }
8051
8052
8053 XS(XS_Wx__PlGridTable_GetTypeName); /* prototype to pass -Wmissing-prototypes */
8054 XS(XS_Wx__PlGridTable_GetTypeName)
8055 {
8056 #ifdef dVAR
8057     dVAR; dXSARGS;
8058 #else
8059     dXSARGS;
8060 #endif
8061     if (items != 3)
8062        croak_xs_usage(cv,  "THIS, row, col");
8063     {
8064         int     row = (int)SvIV(ST(1));
8065         int     col = (int)SvIV(ST(2));
8066         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8067         wxString        RETVAL;
8068      RETVAL = THIS->wxGridTableBase::GetTypeName( row, col );  
8069         ST(0) = sv_newmortal();
8070     WXSTRING_OUTPUT( RETVAL, ST(0) );
8071
8072     }
8073     XSRETURN(1);
8074 }
8075
8076
8077 XS(XS_Wx__PlGridTable_CanGetValueAs); /* prototype to pass -Wmissing-prototypes */
8078 XS(XS_Wx__PlGridTable_CanGetValueAs)
8079 {
8080 #ifdef dVAR
8081     dVAR; dXSARGS;
8082 #else
8083     dXSARGS;
8084 #endif
8085     if (items != 4)
8086        croak_xs_usage(cv,  "THIS, row, col, typeName");
8087     {
8088         int     row = (int)SvIV(ST(1));
8089         int     col = (int)SvIV(ST(2));
8090         wxString        typeName;
8091         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8092         bool    RETVAL;
8093
8094     WXSTRING_INPUT( typeName, wxString, ST(3) );
8095      RETVAL = THIS->wxGridTableBase::CanGetValueAs( row, col, typeName ); 
8096         ST(0) = boolSV(RETVAL);
8097         sv_2mortal(ST(0));
8098     }
8099     XSRETURN(1);
8100 }
8101
8102
8103 XS(XS_Wx__PlGridTable_CanSetValueAs); /* prototype to pass -Wmissing-prototypes */
8104 XS(XS_Wx__PlGridTable_CanSetValueAs)
8105 {
8106 #ifdef dVAR
8107     dVAR; dXSARGS;
8108 #else
8109     dXSARGS;
8110 #endif
8111     if (items != 4)
8112        croak_xs_usage(cv,  "THIS, row, col, typeName");
8113     {
8114         int     row = (int)SvIV(ST(1));
8115         int     col = (int)SvIV(ST(2));
8116         wxString        typeName;
8117         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8118         bool    RETVAL;
8119
8120     WXSTRING_INPUT( typeName, wxString, ST(3) );
8121      RETVAL = THIS->wxGridTableBase::CanSetValueAs( row, col, typeName ); 
8122         ST(0) = boolSV(RETVAL);
8123         sv_2mortal(ST(0));
8124     }
8125     XSRETURN(1);
8126 }
8127
8128
8129 XS(XS_Wx__PlGridTable_GetValueAsLong); /* prototype to pass -Wmissing-prototypes */
8130 XS(XS_Wx__PlGridTable_GetValueAsLong)
8131 {
8132 #ifdef dVAR
8133     dVAR; dXSARGS;
8134 #else
8135     dXSARGS;
8136 #endif
8137     if (items != 3)
8138        croak_xs_usage(cv,  "THIS, row, col");
8139     {
8140         int     row = (int)SvIV(ST(1));
8141         int     col = (int)SvIV(ST(2));
8142         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8143         long    RETVAL;
8144         dXSTARG;
8145      RETVAL = THIS->wxGridTableBase::GetValueAsLong( row, col ); 
8146         XSprePUSH; PUSHi((IV)RETVAL);
8147     }
8148     XSRETURN(1);
8149 }
8150
8151
8152 XS(XS_Wx__PlGridTable_GetValueAsDouble); /* prototype to pass -Wmissing-prototypes */
8153 XS(XS_Wx__PlGridTable_GetValueAsDouble)
8154 {
8155 #ifdef dVAR
8156     dVAR; dXSARGS;
8157 #else
8158     dXSARGS;
8159 #endif
8160     if (items != 3)
8161        croak_xs_usage(cv,  "THIS, row, col");
8162     {
8163         int     row = (int)SvIV(ST(1));
8164         int     col = (int)SvIV(ST(2));
8165         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8166         double  RETVAL;
8167         dXSTARG;
8168      RETVAL = THIS->wxGridTableBase::GetValueAsDouble( row, col ); 
8169         XSprePUSH; PUSHn((double)RETVAL);
8170     }
8171     XSRETURN(1);
8172 }
8173
8174
8175 XS(XS_Wx__PlGridTable_GetValueAsBool); /* prototype to pass -Wmissing-prototypes */
8176 XS(XS_Wx__PlGridTable_GetValueAsBool)
8177 {
8178 #ifdef dVAR
8179     dVAR; dXSARGS;
8180 #else
8181     dXSARGS;
8182 #endif
8183     if (items != 3)
8184        croak_xs_usage(cv,  "THIS, row, col");
8185     {
8186         int     row = (int)SvIV(ST(1));
8187         int     col = (int)SvIV(ST(2));
8188         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8189         bool    RETVAL;
8190      RETVAL = THIS->wxGridTableBase::GetValueAsBool( row, col ); 
8191         ST(0) = boolSV(RETVAL);
8192         sv_2mortal(ST(0));
8193     }
8194     XSRETURN(1);
8195 }
8196
8197
8198 XS(XS_Wx__PlGridTable_SetValueAsLong); /* prototype to pass -Wmissing-prototypes */
8199 XS(XS_Wx__PlGridTable_SetValueAsLong)
8200 {
8201 #ifdef dVAR
8202     dVAR; dXSARGS;
8203 #else
8204     dXSARGS;
8205 #endif
8206     if (items != 4)
8207        croak_xs_usage(cv,  "THIS, row, col, value");
8208     {
8209         int     row = (int)SvIV(ST(1));
8210         int     col = (int)SvIV(ST(2));
8211         long    value = (long)SvIV(ST(3));
8212         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8213      THIS->wxGridTableBase::SetValueAsLong( row, col, value ); 
8214     }
8215     XSRETURN_EMPTY;
8216 }
8217
8218
8219 XS(XS_Wx__PlGridTable_SetValueAsDouble); /* prototype to pass -Wmissing-prototypes */
8220 XS(XS_Wx__PlGridTable_SetValueAsDouble)
8221 {
8222 #ifdef dVAR
8223     dVAR; dXSARGS;
8224 #else
8225     dXSARGS;
8226 #endif
8227     if (items != 4)
8228        croak_xs_usage(cv,  "THIS, row, col, value");
8229     {
8230         int     row = (int)SvIV(ST(1));
8231         int     col = (int)SvIV(ST(2));
8232         double  value = (double)SvNV(ST(3));
8233         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8234      THIS->wxGridTableBase::SetValueAsDouble( row, col, value ); 
8235     }
8236     XSRETURN_EMPTY;
8237 }
8238
8239
8240 XS(XS_Wx__PlGridTable_SetValueAsBool); /* prototype to pass -Wmissing-prototypes */
8241 XS(XS_Wx__PlGridTable_SetValueAsBool)
8242 {
8243 #ifdef dVAR
8244     dVAR; dXSARGS;
8245 #else
8246     dXSARGS;
8247 #endif
8248     if (items != 4)
8249        croak_xs_usage(cv,  "THIS, row, col, value");
8250     {
8251         int     row = (int)SvIV(ST(1));
8252         int     col = (int)SvIV(ST(2));
8253         bool    value = (bool)SvTRUE(ST(3));
8254         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8255      THIS->wxGridTableBase::SetValueAsBool( row, col, value ); 
8256     }
8257     XSRETURN_EMPTY;
8258 }
8259
8260
8261 XS(XS_Wx__PlGridTable_SetView); /* prototype to pass -Wmissing-prototypes */
8262 XS(XS_Wx__PlGridTable_SetView)
8263 {
8264 #ifdef dVAR
8265     dVAR; dXSARGS;
8266 #else
8267     dXSARGS;
8268 #endif
8269     if (items != 2)
8270        croak_xs_usage(cv,  "THIS, grid");
8271     {
8272         wxGrid*    grid = (wxGrid *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Grid" );
8273         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8274      THIS->wxGridTableBase::SetView( grid ); 
8275     }
8276     XSRETURN_EMPTY;
8277 }
8278
8279
8280 XS(XS_Wx__PlGridTable_GetView); /* prototype to pass -Wmissing-prototypes */
8281 XS(XS_Wx__PlGridTable_GetView)
8282 {
8283 #ifdef dVAR
8284     dVAR; dXSARGS;
8285 #else
8286     dXSARGS;
8287 #endif
8288     if (items != 1)
8289        croak_xs_usage(cv,  "THIS");
8290     {
8291         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8292         wxGrid *        RETVAL;
8293      RETVAL = THIS->wxGridTableBase::GetView(); 
8294         ST(0) = sv_newmortal();
8295     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8296
8297     }
8298     XSRETURN(1);
8299 }
8300
8301
8302 XS(XS_Wx__PlGridTable_Clear); /* prototype to pass -Wmissing-prototypes */
8303 XS(XS_Wx__PlGridTable_Clear)
8304 {
8305 #ifdef dVAR
8306     dVAR; dXSARGS;
8307 #else
8308     dXSARGS;
8309 #endif
8310     if (items != 1)
8311        croak_xs_usage(cv,  "THIS");
8312     {
8313         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8314      THIS->wxGridTableBase::Clear(); 
8315     }
8316     XSRETURN_EMPTY;
8317 }
8318
8319
8320 XS(XS_Wx__PlGridTable_InsertRows); /* prototype to pass -Wmissing-prototypes */
8321 XS(XS_Wx__PlGridTable_InsertRows)
8322 {
8323 #ifdef dVAR
8324     dVAR; dXSARGS;
8325 #else
8326     dXSARGS;
8327 #endif
8328     if (items < 1 || items > 3)
8329        croak_xs_usage(cv,  "THIS, pos = 0, numRows = 1");
8330     {
8331         size_t  pos;
8332         size_t  numRows;
8333         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8334         bool    RETVAL;
8335
8336         if (items < 2)
8337             pos = 0;
8338         else {
8339     pos = (size_t)SvUV( ST(1) );
8340         }
8341
8342         if (items < 3)
8343             numRows = 1;
8344         else {
8345     numRows = (size_t)SvUV( ST(2) );
8346         }
8347      RETVAL = THIS->wxGridTableBase::InsertRows( pos, numRows ); 
8348         ST(0) = boolSV(RETVAL);
8349         sv_2mortal(ST(0));
8350     }
8351     XSRETURN(1);
8352 }
8353
8354
8355 XS(XS_Wx__PlGridTable_AppendRows); /* prototype to pass -Wmissing-prototypes */
8356 XS(XS_Wx__PlGridTable_AppendRows)
8357 {
8358 #ifdef dVAR
8359     dVAR; dXSARGS;
8360 #else
8361     dXSARGS;
8362 #endif
8363     if (items < 1 || items > 2)
8364        croak_xs_usage(cv,  "THIS, numRows = 1");
8365     {
8366         size_t  numRows;
8367         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8368         bool    RETVAL;
8369
8370         if (items < 2)
8371             numRows = 1;
8372         else {
8373     numRows = (size_t)SvUV( ST(1) );
8374         }
8375      RETVAL = THIS->wxGridTableBase::AppendRows( numRows ); 
8376         ST(0) = boolSV(RETVAL);
8377         sv_2mortal(ST(0));
8378     }
8379     XSRETURN(1);
8380 }
8381
8382
8383 XS(XS_Wx__PlGridTable_DeleteRows); /* prototype to pass -Wmissing-prototypes */
8384 XS(XS_Wx__PlGridTable_DeleteRows)
8385 {
8386 #ifdef dVAR
8387     dVAR; dXSARGS;
8388 #else
8389     dXSARGS;
8390 #endif
8391     if (items < 1 || items > 3)
8392        croak_xs_usage(cv,  "THIS, pos = 0, numRows = 1");
8393     {
8394         size_t  pos;
8395         size_t  numRows;
8396         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8397         bool    RETVAL;
8398
8399         if (items < 2)
8400             pos = 0;
8401         else {
8402     pos = (size_t)SvUV( ST(1) );
8403         }
8404
8405         if (items < 3)
8406             numRows = 1;
8407         else {
8408     numRows = (size_t)SvUV( ST(2) );
8409         }
8410      RETVAL = THIS->wxGridTableBase::DeleteRows( pos, numRows ); 
8411         ST(0) = boolSV(RETVAL);
8412         sv_2mortal(ST(0));
8413     }
8414     XSRETURN(1);
8415 }
8416
8417
8418 XS(XS_Wx__PlGridTable_InsertCols); /* prototype to pass -Wmissing-prototypes */
8419 XS(XS_Wx__PlGridTable_InsertCols)
8420 {
8421 #ifdef dVAR
8422     dVAR; dXSARGS;
8423 #else
8424     dXSARGS;
8425 #endif
8426     if (items < 1 || items > 3)
8427        croak_xs_usage(cv,  "THIS, pos = 0, numCols = 1");
8428     {
8429         size_t  pos;
8430         size_t  numCols;
8431         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8432         bool    RETVAL;
8433
8434         if (items < 2)
8435             pos = 0;
8436         else {
8437     pos = (size_t)SvUV( ST(1) );
8438         }
8439
8440         if (items < 3)
8441             numCols = 1;
8442         else {
8443     numCols = (size_t)SvUV( ST(2) );
8444         }
8445      RETVAL = THIS->wxGridTableBase::InsertCols( pos, numCols ); 
8446         ST(0) = boolSV(RETVAL);
8447         sv_2mortal(ST(0));
8448     }
8449     XSRETURN(1);
8450 }
8451
8452
8453 XS(XS_Wx__PlGridTable_AppendCols); /* prototype to pass -Wmissing-prototypes */
8454 XS(XS_Wx__PlGridTable_AppendCols)
8455 {
8456 #ifdef dVAR
8457     dVAR; dXSARGS;
8458 #else
8459     dXSARGS;
8460 #endif
8461     if (items < 1 || items > 2)
8462        croak_xs_usage(cv,  "THIS, numCols = 1");
8463     {
8464         size_t  numCols;
8465         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8466         bool    RETVAL;
8467
8468         if (items < 2)
8469             numCols = 1;
8470         else {
8471     numCols = (size_t)SvUV( ST(1) );
8472         }
8473      RETVAL = THIS->wxGridTableBase::AppendCols( numCols ); 
8474         ST(0) = boolSV(RETVAL);
8475         sv_2mortal(ST(0));
8476     }
8477     XSRETURN(1);
8478 }
8479
8480
8481 XS(XS_Wx__PlGridTable_DeleteCols); /* prototype to pass -Wmissing-prototypes */
8482 XS(XS_Wx__PlGridTable_DeleteCols)
8483 {
8484 #ifdef dVAR
8485     dVAR; dXSARGS;
8486 #else
8487     dXSARGS;
8488 #endif
8489     if (items < 1 || items > 3)
8490        croak_xs_usage(cv,  "THIS, pos = 0, numCols = 1");
8491     {
8492         size_t  pos;
8493         size_t  numCols;
8494         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8495         bool    RETVAL;
8496
8497         if (items < 2)
8498             pos = 0;
8499         else {
8500     pos = (size_t)SvUV( ST(1) );
8501         }
8502
8503         if (items < 3)
8504             numCols = 1;
8505         else {
8506     numCols = (size_t)SvUV( ST(2) );
8507         }
8508      RETVAL = THIS->wxGridTableBase::DeleteCols( pos, numCols ); 
8509         ST(0) = boolSV(RETVAL);
8510         sv_2mortal(ST(0));
8511     }
8512     XSRETURN(1);
8513 }
8514
8515
8516 XS(XS_Wx__PlGridTable_GetRowLabelValue); /* prototype to pass -Wmissing-prototypes */
8517 XS(XS_Wx__PlGridTable_GetRowLabelValue)
8518 {
8519 #ifdef dVAR
8520     dVAR; dXSARGS;
8521 #else
8522     dXSARGS;
8523 #endif
8524     if (items != 2)
8525        croak_xs_usage(cv,  "THIS, row");
8526     {
8527         int     row = (int)SvIV(ST(1));
8528         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8529         wxString        RETVAL;
8530      RETVAL = THIS->wxGridTableBase::GetRowLabelValue( row ); 
8531         ST(0) = sv_newmortal();
8532     WXSTRING_OUTPUT( RETVAL, ST(0) );
8533
8534     }
8535     XSRETURN(1);
8536 }
8537
8538
8539 XS(XS_Wx__PlGridTable_GetColLabelValue); /* prototype to pass -Wmissing-prototypes */
8540 XS(XS_Wx__PlGridTable_GetColLabelValue)
8541 {
8542 #ifdef dVAR
8543     dVAR; dXSARGS;
8544 #else
8545     dXSARGS;
8546 #endif
8547     if (items != 2)
8548        croak_xs_usage(cv,  "THIS, col");
8549     {
8550         int     col = (int)SvIV(ST(1));
8551         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8552         wxString        RETVAL;
8553      RETVAL = THIS->wxGridTableBase::GetColLabelValue( col ); 
8554         ST(0) = sv_newmortal();
8555     WXSTRING_OUTPUT( RETVAL, ST(0) );
8556
8557     }
8558     XSRETURN(1);
8559 }
8560
8561
8562 XS(XS_Wx__PlGridTable_SetRowLabelValue); /* prototype to pass -Wmissing-prototypes */
8563 XS(XS_Wx__PlGridTable_SetRowLabelValue)
8564 {
8565 #ifdef dVAR
8566     dVAR; dXSARGS;
8567 #else
8568     dXSARGS;
8569 #endif
8570     if (items != 3)
8571        croak_xs_usage(cv,  "THIS, row, value");
8572     {
8573         int     row = (int)SvIV(ST(1));
8574         wxString        value;
8575         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8576
8577     WXSTRING_INPUT( value, wxString, ST(2) );
8578      THIS->wxGridTableBase::SetRowLabelValue( row, value ); 
8579     }
8580     XSRETURN_EMPTY;
8581 }
8582
8583
8584 XS(XS_Wx__PlGridTable_SetColLabelValue); /* prototype to pass -Wmissing-prototypes */
8585 XS(XS_Wx__PlGridTable_SetColLabelValue)
8586 {
8587 #ifdef dVAR
8588     dVAR; dXSARGS;
8589 #else
8590     dXSARGS;
8591 #endif
8592     if (items != 3)
8593        croak_xs_usage(cv,  "THIS, col, value");
8594     {
8595         int     col = (int)SvIV(ST(1));
8596         wxString        value;
8597         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8598
8599     WXSTRING_INPUT( value, wxString, ST(2) );
8600      THIS->wxGridTableBase::SetColLabelValue( col, value ); 
8601     }
8602     XSRETURN_EMPTY;
8603 }
8604
8605
8606 XS(XS_Wx__PlGridTable_CanHaveAttributes); /* prototype to pass -Wmissing-prototypes */
8607 XS(XS_Wx__PlGridTable_CanHaveAttributes)
8608 {
8609 #ifdef dVAR
8610     dVAR; dXSARGS;
8611 #else
8612     dXSARGS;
8613 #endif
8614     if (items != 1)
8615        croak_xs_usage(cv,  "THIS");
8616     {
8617         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8618         bool    RETVAL;
8619      RETVAL = THIS->wxGridTableBase::CanHaveAttributes(); 
8620         ST(0) = boolSV(RETVAL);
8621         sv_2mortal(ST(0));
8622     }
8623     XSRETURN(1);
8624 }
8625
8626
8627 XS(XS_Wx__PlGridTable_GetAttr); /* prototype to pass -Wmissing-prototypes */
8628 XS(XS_Wx__PlGridTable_GetAttr)
8629 {
8630 #ifdef dVAR
8631     dVAR; dXSARGS;
8632 #else
8633     dXSARGS;
8634 #endif
8635     if (items != 4)
8636        croak_xs_usage(cv,  "THIS, row, col, kind");
8637     {
8638         int     row = (int)SvIV(ST(1));
8639         int     col = (int)SvIV(ST(2));
8640         wxGridCellAttr__wxAttrKind      kind = (wxGridCellAttr__wxAttrKind)SvIV(ST(3));
8641         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8642         wxGridCellAttr *        RETVAL;
8643      RETVAL = THIS->wxGridTableBase::GetAttr( row, col, kind ); 
8644         ST(0) = sv_newmortal();
8645     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridCellAttr" );
8646     wxPli_thread_sv_register( aTHX_ "Wx::GridCellAttr", SvRV( ST(0) ), ST(0) );
8647
8648     }
8649     XSRETURN(1);
8650 }
8651
8652
8653 XS(XS_Wx__PlGridTable_SetAttr); /* prototype to pass -Wmissing-prototypes */
8654 XS(XS_Wx__PlGridTable_SetAttr)
8655 {
8656 #ifdef dVAR
8657     dVAR; dXSARGS;
8658 #else
8659     dXSARGS;
8660 #endif
8661     if (items != 4)
8662        croak_xs_usage(cv,  "THIS, attr, row, col");
8663     {
8664         wxGridCellAttr*    attr = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridCellAttr" );
8665         int     row = (int)SvIV(ST(2));
8666         int     col = (int)SvIV(ST(3));
8667         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8668      THIS->wxGridTableBase::SetAttr( attr, row, col ); 
8669     }
8670     XSRETURN_EMPTY;
8671 }
8672
8673
8674 XS(XS_Wx__PlGridTable_SetRowAttr); /* prototype to pass -Wmissing-prototypes */
8675 XS(XS_Wx__PlGridTable_SetRowAttr)
8676 {
8677 #ifdef dVAR
8678     dVAR; dXSARGS;
8679 #else
8680     dXSARGS;
8681 #endif
8682     if (items != 3)
8683        croak_xs_usage(cv,  "THIS, attr, row");
8684     {
8685         wxGridCellAttr*    attr = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridCellAttr" );
8686         int     row = (int)SvIV(ST(2));
8687         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8688      THIS->wxGridTableBase::SetRowAttr( attr, row ); 
8689     }
8690     XSRETURN_EMPTY;
8691 }
8692
8693
8694 XS(XS_Wx__PlGridTable_SetColAttr); /* prototype to pass -Wmissing-prototypes */
8695 XS(XS_Wx__PlGridTable_SetColAttr)
8696 {
8697 #ifdef dVAR
8698     dVAR; dXSARGS;
8699 #else
8700     dXSARGS;
8701 #endif
8702     if (items != 3)
8703        croak_xs_usage(cv,  "THIS, attr, col");
8704     {
8705         wxGridCellAttr*    attr = (wxGridCellAttr *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridCellAttr" );
8706         int     col = (int)SvIV(ST(2));
8707         wxPlGridTable *    THIS = (wxPlGridTable *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlGridTable" );
8708      THIS->wxGridTableBase::SetColAttr( attr, col ); 
8709     }
8710     XSRETURN_EMPTY;
8711 }
8712
8713
8714 /* INCLUDE: Returning to 'Grid.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t ../../typemap.xsp XS/GridTable.xsp |' */
8715
8716
8717 /* INCLUDE:  Including 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t ../../typemap.xsp XS/GridTableMessage.xsp |' from 'Grid.xs' */
8718
8719 #include "wx/grid.h"
8720
8721 XS(XS_Wx__GridTableMessage_new); /* prototype to pass -Wmissing-prototypes */
8722 XS(XS_Wx__GridTableMessage_new)
8723 {
8724 #ifdef dVAR
8725     dVAR; dXSARGS;
8726 #else
8727     dXSARGS;
8728 #endif
8729     if (items < 3 || items > 5)
8730        croak_xs_usage(cv,  "CLASS, table, id, int1 = 0, int2 = 0");
8731     {
8732         wxGridTableBase*    table = (wxGridTableBase *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridTableBase" );
8733         int     id = (int)SvIV(ST(2));
8734         int     int1;
8735         int     int2;
8736         char *  CLASS = (char *)SvPV_nolen(ST(0));
8737         wxGridTableMessage *    RETVAL;
8738
8739         if (items < 4)
8740             int1 = 0;
8741         else {
8742             int1 = (int)SvIV(ST(3));
8743         }
8744
8745         if (items < 5)
8746             int2 = 0;
8747         else {
8748             int2 = (int)SvIV(ST(4));
8749         }
8750
8751         RETVAL = new wxGridTableMessage(table, id, int1, int2);
8752         ST(0) = sv_newmortal();
8753     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::GridTableMessage" );
8754     wxPli_thread_sv_register( aTHX_ "Wx::GridTableMessage", RETVAL, ST(0) );
8755
8756     }
8757     XSRETURN(1);
8758 }
8759
8760
8761 XS(XS_Wx__GridTableMessage_CLONE); /* prototype to pass -Wmissing-prototypes */
8762 XS(XS_Wx__GridTableMessage_CLONE)
8763 {
8764 #ifdef dVAR
8765     dVAR; dXSARGS;
8766 #else
8767     dXSARGS;
8768 #endif
8769     if (items != 1)
8770        croak_xs_usage(cv,  "CLASS");
8771     {
8772         char *  CLASS = (char *)SvPV_nolen(ST(0));
8773     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
8774     }
8775     XSRETURN_EMPTY;
8776 }
8777
8778
8779 XS(XS_Wx__GridTableMessage_DESTROY); /* prototype to pass -Wmissing-prototypes */
8780 XS(XS_Wx__GridTableMessage_DESTROY)
8781 {
8782 #ifdef dVAR
8783     dVAR; dXSARGS;
8784 #else
8785     dXSARGS;
8786 #endif
8787     if (items != 1)
8788        croak_xs_usage(cv,  "THIS");
8789     {
8790         wxGridTableMessage *    THIS = (wxGridTableMessage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridTableMessage" );
8791      wxPli_thread_sv_unregister( aTHX_ "Wx::GridTableMessage", THIS, ST(0) );
8792                 delete THIS;
8793     }
8794     XSRETURN_EMPTY;
8795 }
8796
8797
8798 XS(XS_Wx__GridTableMessage_SetTableObject); /* prototype to pass -Wmissing-prototypes */
8799 XS(XS_Wx__GridTableMessage_SetTableObject)
8800 {
8801 #ifdef dVAR
8802     dVAR; dXSARGS;
8803 #else
8804     dXSARGS;
8805 #endif
8806     if (items != 2)
8807        croak_xs_usage(cv,  "THIS, table");
8808     {
8809         wxGridTableBase*    table = (wxGridTableBase *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GridTableBase" );
8810         wxGridTableMessage *    THIS = (wxGridTableMessage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridTableMessage" );
8811
8812         THIS->SetTableObject(table);
8813     }
8814     XSRETURN_EMPTY;
8815 }
8816
8817
8818 XS(XS_Wx__GridTableMessage_GetTableObject); /* prototype to pass -Wmissing-prototypes */
8819 XS(XS_Wx__GridTableMessage_GetTableObject)
8820 {
8821 #ifdef dVAR
8822     dVAR; dXSARGS;
8823 #else
8824     dXSARGS;
8825 #endif
8826     if (items != 1)
8827        croak_xs_usage(cv,  "THIS");
8828     {
8829         wxGridTableMessage *    THIS = (wxGridTableMessage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridTableMessage" );
8830         wxGridTableBase *       RETVAL;
8831
8832         RETVAL = THIS->GetTableObject();
8833         ST(0) = sv_newmortal();
8834     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8835
8836     }
8837     XSRETURN(1);
8838 }
8839
8840
8841 XS(XS_Wx__GridTableMessage_SetId); /* prototype to pass -Wmissing-prototypes */
8842 XS(XS_Wx__GridTableMessage_SetId)
8843 {
8844 #ifdef dVAR
8845     dVAR; dXSARGS;
8846 #else
8847     dXSARGS;
8848 #endif
8849     if (items != 2)
8850        croak_xs_usage(cv,  "THIS, id");
8851     {
8852         int     id = (int)SvIV(ST(1));
8853         wxGridTableMessage *    THIS = (wxGridTableMessage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridTableMessage" );
8854
8855         THIS->SetId(id);
8856     }
8857     XSRETURN_EMPTY;
8858 }
8859
8860
8861 XS(XS_Wx__GridTableMessage_GetId); /* prototype to pass -Wmissing-prototypes */
8862 XS(XS_Wx__GridTableMessage_GetId)
8863 {
8864 #ifdef dVAR
8865     dVAR; dXSARGS;
8866 #else
8867     dXSARGS;
8868 #endif
8869     if (items != 1)
8870        croak_xs_usage(cv,  "THIS");
8871     {
8872         wxGridTableMessage *    THIS = (wxGridTableMessage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridTableMessage" );
8873         int     RETVAL;
8874         dXSTARG;
8875
8876         RETVAL = THIS->GetId();
8877         XSprePUSH; PUSHi((IV)RETVAL);
8878     }
8879     XSRETURN(1);
8880 }
8881
8882
8883 XS(XS_Wx__GridTableMessage_SetCommandInt); /* prototype to pass -Wmissing-prototypes */
8884 XS(XS_Wx__GridTableMessage_SetCommandInt)
8885 {
8886 #ifdef dVAR
8887     dVAR; dXSARGS;
8888 #else
8889     dXSARGS;
8890 #endif
8891     if (items != 2)
8892        croak_xs_usage(cv,  "THIS, comInt1");
8893     {
8894         int     comInt1 = (int)SvIV(ST(1));
8895         wxGridTableMessage *    THIS = (wxGridTableMessage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridTableMessage" );
8896
8897         THIS->SetCommandInt(comInt1);
8898     }
8899     XSRETURN_EMPTY;
8900 }
8901
8902
8903 XS(XS_Wx__GridTableMessage_GetCommandInt); /* prototype to pass -Wmissing-prototypes */
8904 XS(XS_Wx__GridTableMessage_GetCommandInt)
8905 {
8906 #ifdef dVAR
8907     dVAR; dXSARGS;
8908 #else
8909     dXSARGS;
8910 #endif
8911     if (items != 1)
8912        croak_xs_usage(cv,  "THIS");
8913     {
8914         wxGridTableMessage *    THIS = (wxGridTableMessage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridTableMessage" );
8915         int     RETVAL;
8916         dXSTARG;
8917
8918         RETVAL = THIS->GetCommandInt();
8919         XSprePUSH; PUSHi((IV)RETVAL);
8920     }
8921     XSRETURN(1);
8922 }
8923
8924
8925 XS(XS_Wx__GridTableMessage_SetCommandInt2); /* prototype to pass -Wmissing-prototypes */
8926 XS(XS_Wx__GridTableMessage_SetCommandInt2)
8927 {
8928 #ifdef dVAR
8929     dVAR; dXSARGS;
8930 #else
8931     dXSARGS;
8932 #endif
8933     if (items != 2)
8934        croak_xs_usage(cv,  "THIS, comInt2");
8935     {
8936         int     comInt2 = (int)SvIV(ST(1));
8937         wxGridTableMessage *    THIS = (wxGridTableMessage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridTableMessage" );
8938
8939         THIS->SetCommandInt2(comInt2);
8940     }
8941     XSRETURN_EMPTY;
8942 }
8943
8944
8945 XS(XS_Wx__GridTableMessage_GetCommandInt2); /* prototype to pass -Wmissing-prototypes */
8946 XS(XS_Wx__GridTableMessage_GetCommandInt2)
8947 {
8948 #ifdef dVAR
8949     dVAR; dXSARGS;
8950 #else
8951     dXSARGS;
8952 #endif
8953     if (items != 1)
8954        croak_xs_usage(cv,  "THIS");
8955     {
8956         wxGridTableMessage *    THIS = (wxGridTableMessage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GridTableMessage" );
8957         int     RETVAL;
8958         dXSTARG;
8959
8960         RETVAL = THIS->GetCommandInt2();
8961         XSprePUSH; PUSHi((IV)RETVAL);
8962     }
8963     XSRETURN(1);
8964 }
8965
8966
8967 /* INCLUDE: Returning to 'Grid.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t ../../typemap.xsp XS/GridTableMessage.xsp |' */
8968
8969
8970 XS(XS_Wx__Grid_SetEvents); /* prototype to pass -Wmissing-prototypes */
8971 XS(XS_Wx__Grid_SetEvents)
8972 {
8973 #ifdef dVAR
8974     dVAR; dXSARGS;
8975 #else
8976     dXSARGS;
8977 #endif
8978     if (items != 0)
8979        croak_xs_usage(cv,  "");
8980     {
8981     wxPli_set_events( evts );
8982     }
8983     XSRETURN_EMPTY;
8984 }
8985
8986 #include "cpp/gr_constants.cpp"
8987 #if defined(__WXMSW__)
8988 #undef XS
8989 #define XS( name ) WXXS( name )
8990 #endif
8991 #ifdef __cplusplus
8992 extern "C"
8993 #endif
8994 XS(boot_Wx__Grid); /* prototype to pass -Wmissing-prototypes */
8995 XS(boot_Wx__Grid)
8996 {
8997 #ifdef dVAR
8998     dVAR; dXSARGS;
8999 #else
9000     dXSARGS;
9001 #endif
9002 #if (PERL_REVISION == 5 && PERL_VERSION < 9)
9003     char* file = __FILE__;
9004 #else
9005     const char* file = __FILE__;
9006 #endif
9007
9008     PERL_UNUSED_VAR(cv); /* -W */
9009     PERL_UNUSED_VAR(items); /* -W */
9010     XS_VERSION_BOOTCHECK ;
9011
9012         newXS("Wx::GridCellEditor::CLONE", XS_Wx__GridCellEditor_CLONE, file);
9013         newXS("Wx::GridCellEditor::DESTROY", XS_Wx__GridCellEditor_DESTROY, file);
9014         newXS("Wx::GridCellEditor::IsCreated", XS_Wx__GridCellEditor_IsCreated, file);
9015         newXS("Wx::GridCellEditor::GetControl", XS_Wx__GridCellEditor_GetControl, file);
9016         newXS("Wx::GridCellEditor::SetControl", XS_Wx__GridCellEditor_SetControl, file);
9017         newXS("Wx::GridCellEditor::SetSize", XS_Wx__GridCellEditor_SetSize, file);
9018         newXS("Wx::GridCellEditor::Show", XS_Wx__GridCellEditor_Show, file);
9019         newXS("Wx::GridCellEditor::PaintBackground", XS_Wx__GridCellEditor_PaintBackground, file);
9020         newXS("Wx::GridCellEditor::BeginEdit", XS_Wx__GridCellEditor_BeginEdit, file);
9021 #if XSubPPtmpAAAA
9022         newXS("Wx::GridCellEditor::EndEdit", XS_Wx__GridCellEditor_EndEdit, file);
9023         newXS("Wx::GridCellEditor::ApplyEdit", XS_Wx__GridCellEditor_ApplyEdit, file);
9024 #endif
9025 #if XSubPPtmpAAAB
9026         newXS("Wx::GridCellEditor::EndEdit", XS_Wx__GridCellEditor_EndEdit, file);
9027 #endif
9028         newXS("Wx::GridCellEditor::Reset", XS_Wx__GridCellEditor_Reset, file);
9029         newXS("Wx::GridCellEditor::IsAcceptedKey", XS_Wx__GridCellEditor_IsAcceptedKey, file);
9030         newXS("Wx::GridCellEditor::StartingKey", XS_Wx__GridCellEditor_StartingKey, file);
9031         newXS("Wx::GridCellEditor::StartingClick", XS_Wx__GridCellEditor_StartingClick, file);
9032         newXS("Wx::GridCellEditor::HandleReturn", XS_Wx__GridCellEditor_HandleReturn, file);
9033         newXS("Wx::GridCellEditor::Destroy", XS_Wx__GridCellEditor_Destroy, file);
9034         newXS("Wx::GridCellTextEditor::new", XS_Wx__GridCellTextEditor_new, file);
9035         newXS("Wx::GridCellTextEditor::SetParameters", XS_Wx__GridCellTextEditor_SetParameters, file);
9036         newXS("Wx::GridCellAutoWrapStringEditor::new", XS_Wx__GridCellAutoWrapStringEditor_new, file);
9037         newXS("Wx::GridCellNumberEditor::new", XS_Wx__GridCellNumberEditor_new, file);
9038         newXS("Wx::GridCellNumberEditor::SetParameters", XS_Wx__GridCellNumberEditor_SetParameters, file);
9039         newXS("Wx::GridCellFloatEditor::new", XS_Wx__GridCellFloatEditor_new, file);
9040         newXS("Wx::GridCellFloatEditor::SetParameters", XS_Wx__GridCellFloatEditor_SetParameters, file);
9041         newXS("Wx::GridCellBoolEditor::new", XS_Wx__GridCellBoolEditor_new, file);
9042 #if XSubPPtmpAAAC
9043         newXS("Wx::GridCellBoolEditor::IsTrueValue", XS_Wx__GridCellBoolEditor_IsTrueValue, file);
9044         newXS("Wx::GridCellBoolEditor::UseStringValues", XS_Wx__GridCellBoolEditor_UseStringValues, file);
9045 #endif
9046         newXS("Wx::GridCellChoiceEditor::new", XS_Wx__GridCellChoiceEditor_new, file);
9047         newXS("Wx::GridCellChoiceEditor::SetParameters", XS_Wx__GridCellChoiceEditor_SetParameters, file);
9048         newXS("Wx::GridCellEnumEditor::new", XS_Wx__GridCellEnumEditor_new, file);
9049         newXS("Wx::PlGridCellEditor::new", XS_Wx__PlGridCellEditor_new, file);
9050         newXS("Wx::GridCellRenderer::Draw", XS_Wx__GridCellRenderer_Draw, file);
9051         newXS("Wx::GridCellRenderer::GetBestSize", XS_Wx__GridCellRenderer_GetBestSize, file);
9052         newXS("Wx::GridCellRenderer::CLONE", XS_Wx__GridCellRenderer_CLONE, file);
9053         newXS("Wx::GridCellRenderer::DESTROY", XS_Wx__GridCellRenderer_DESTROY, file);
9054         newXS("Wx::GridCellRenderer::SetParameters", XS_Wx__GridCellRenderer_SetParameters, file);
9055         newXS("Wx::GridCellStringRenderer::new", XS_Wx__GridCellStringRenderer_new, file);
9056         newXS("Wx::GridCellNumberRenderer::new", XS_Wx__GridCellNumberRenderer_new, file);
9057         newXS("Wx::GridCellFloatRenderer::new", XS_Wx__GridCellFloatRenderer_new, file);
9058         newXS("Wx::GridCellFloatRenderer::GetWidth", XS_Wx__GridCellFloatRenderer_GetWidth, file);
9059         newXS("Wx::GridCellFloatRenderer::GetPrecision", XS_Wx__GridCellFloatRenderer_GetPrecision, file);
9060         newXS("Wx::GridCellFloatRenderer::SetWidth", XS_Wx__GridCellFloatRenderer_SetWidth, file);
9061         newXS("Wx::GridCellFloatRenderer::SetPrecision", XS_Wx__GridCellFloatRenderer_SetPrecision, file);
9062         newXS("Wx::GridCellBoolRenderer::new", XS_Wx__GridCellBoolRenderer_new, file);
9063         newXS("Wx::GridCellAutoWrapStringRenderer::new", XS_Wx__GridCellAutoWrapStringRenderer_new, file);
9064         newXS("Wx::GridCellEnumRenderer::new", XS_Wx__GridCellEnumRenderer_new, file);
9065         newXS("Wx::GridCellDateTimeRenderer::new", XS_Wx__GridCellDateTimeRenderer_new, file);
9066         newXS("Wx::PlGridCellRenderer::new", XS_Wx__PlGridCellRenderer_new, file);
9067         newXS("Wx::PlGridCellRenderer::Draw", XS_Wx__PlGridCellRenderer_Draw, file);
9068 #if XSubPPtmpAAAD
9069         newXS("Wx::GridEvent::new", XS_Wx__GridEvent_new, file);
9070 #endif
9071         newXS("Wx::GridEvent::GetRow", XS_Wx__GridEvent_GetRow, file);
9072         newXS("Wx::GridEvent::GetCol", XS_Wx__GridEvent_GetCol, file);
9073         newXS("Wx::GridEvent::GetPosition", XS_Wx__GridEvent_GetPosition, file);
9074         newXS("Wx::GridEvent::Selecting", XS_Wx__GridEvent_Selecting, file);
9075         newXS("Wx::GridEvent::ControlDown", XS_Wx__GridEvent_ControlDown, file);
9076         newXS("Wx::GridEvent::AltDown", XS_Wx__GridEvent_AltDown, file);
9077         newXS("Wx::GridEvent::MetaDown", XS_Wx__GridEvent_MetaDown, file);
9078         newXS("Wx::GridEvent::ShiftDown", XS_Wx__GridEvent_ShiftDown, file);
9079 #if XSubPPtmpAAAE
9080         newXS("Wx::GridSizeEvent::new", XS_Wx__GridSizeEvent_new, file);
9081 #endif
9082         newXS("Wx::GridSizeEvent::GetRowOrCol", XS_Wx__GridSizeEvent_GetRowOrCol, file);
9083         newXS("Wx::GridSizeEvent::GetPosition", XS_Wx__GridSizeEvent_GetPosition, file);
9084         newXS("Wx::GridSizeEvent::ControlDown", XS_Wx__GridSizeEvent_ControlDown, file);
9085         newXS("Wx::GridSizeEvent::AltDown", XS_Wx__GridSizeEvent_AltDown, file);
9086         newXS("Wx::GridSizeEvent::MetaDown", XS_Wx__GridSizeEvent_MetaDown, file);
9087         newXS("Wx::GridSizeEvent::ShiftDown", XS_Wx__GridSizeEvent_ShiftDown, file);
9088 #if XSubPPtmpAAAF
9089         newXS("Wx::GridRangeSelectEvent::new", XS_Wx__GridRangeSelectEvent_new, file);
9090 #endif
9091         newXS("Wx::GridRangeSelectEvent::GetTopLeftCoords", XS_Wx__GridRangeSelectEvent_GetTopLeftCoords, file);
9092         newXS("Wx::GridRangeSelectEvent::GetBottomRightCoords", XS_Wx__GridRangeSelectEvent_GetBottomRightCoords, file);
9093         newXS("Wx::GridRangeSelectEvent::GetTopRow", XS_Wx__GridRangeSelectEvent_GetTopRow, file);
9094         newXS("Wx::GridRangeSelectEvent::GetBottomRow", XS_Wx__GridRangeSelectEvent_GetBottomRow, file);
9095         newXS("Wx::GridRangeSelectEvent::GetLeftCol", XS_Wx__GridRangeSelectEvent_GetLeftCol, file);
9096         newXS("Wx::GridRangeSelectEvent::GetRightCol", XS_Wx__GridRangeSelectEvent_GetRightCol, file);
9097         newXS("Wx::GridRangeSelectEvent::Selecting", XS_Wx__GridRangeSelectEvent_Selecting, file);
9098         newXS("Wx::GridRangeSelectEvent::ControlDown", XS_Wx__GridRangeSelectEvent_ControlDown, file);
9099         newXS("Wx::GridRangeSelectEvent::MetaDown", XS_Wx__GridRangeSelectEvent_MetaDown, file);
9100         newXS("Wx::GridRangeSelectEvent::AltDown", XS_Wx__GridRangeSelectEvent_AltDown, file);
9101         newXS("Wx::GridRangeSelectEvent::ShiftDown", XS_Wx__GridRangeSelectEvent_ShiftDown, file);
9102         newXS("Wx::GridEditorCreatedEvent::new", XS_Wx__GridEditorCreatedEvent_new, file);
9103         newXS("Wx::GridEditorCreatedEvent::GetRow", XS_Wx__GridEditorCreatedEvent_GetRow, file);
9104         newXS("Wx::GridEditorCreatedEvent::GetCol", XS_Wx__GridEditorCreatedEvent_GetCol, file);
9105         newXS("Wx::GridEditorCreatedEvent::GetControl", XS_Wx__GridEditorCreatedEvent_GetControl, file);
9106         newXS("Wx::GridEditorCreatedEvent::SetRow", XS_Wx__GridEditorCreatedEvent_SetRow, file);
9107         newXS("Wx::GridEditorCreatedEvent::SetCol", XS_Wx__GridEditorCreatedEvent_SetCol, file);
9108         newXS("Wx::GridEditorCreatedEvent::SetControl", XS_Wx__GridEditorCreatedEvent_SetControl, file);
9109         newXS("Wx::GridCellAttr::new", XS_Wx__GridCellAttr_new, file);
9110         newXS("Wx::GridCellAttr::CLONE", XS_Wx__GridCellAttr_CLONE, file);
9111         newXS("Wx::GridCellAttr::DESTROY", XS_Wx__GridCellAttr_DESTROY, file);
9112         newXS("Wx::GridCellAttr::IncRef", XS_Wx__GridCellAttr_IncRef, file);
9113         newXS("Wx::GridCellAttr::DecRef", XS_Wx__GridCellAttr_DecRef, file);
9114         newXS("Wx::GridCellAttr::SetTextColour", XS_Wx__GridCellAttr_SetTextColour, file);
9115         newXS("Wx::GridCellAttr::SetBackgroundColour", XS_Wx__GridCellAttr_SetBackgroundColour, file);
9116         newXS("Wx::GridCellAttr::SetFont", XS_Wx__GridCellAttr_SetFont, file);
9117         newXS("Wx::GridCellAttr::SetAlignment", XS_Wx__GridCellAttr_SetAlignment, file);
9118         newXS("Wx::GridCellAttr::SetReadOnly", XS_Wx__GridCellAttr_SetReadOnly, file);
9119         newXS("Wx::GridCellAttr::HasTextColour", XS_Wx__GridCellAttr_HasTextColour, file);
9120         newXS("Wx::GridCellAttr::HasBackgroundColour", XS_Wx__GridCellAttr_HasBackgroundColour, file);
9121         newXS("Wx::GridCellAttr::HasFont", XS_Wx__GridCellAttr_HasFont, file);
9122         newXS("Wx::GridCellAttr::HasAlignment", XS_Wx__GridCellAttr_HasAlignment, file);
9123         newXS("Wx::GridCellAttr::HasRenderer", XS_Wx__GridCellAttr_HasRenderer, file);
9124         newXS("Wx::GridCellAttr::HasEditor", XS_Wx__GridCellAttr_HasEditor, file);
9125         newXS("Wx::GridCellAttr::GetTextColour", XS_Wx__GridCellAttr_GetTextColour, file);
9126         newXS("Wx::GridCellAttr::GetBackgroundColour", XS_Wx__GridCellAttr_GetBackgroundColour, file);
9127         newXS("Wx::GridCellAttr::GetEditor", XS_Wx__GridCellAttr_GetEditor, file);
9128         newXS("Wx::GridCellAttr::GetRenderer", XS_Wx__GridCellAttr_GetRenderer, file);
9129         newXS("Wx::GridCellAttr::GetFont", XS_Wx__GridCellAttr_GetFont, file);
9130         newXS("Wx::GridCellAttr::GetAlignment", XS_Wx__GridCellAttr_GetAlignment, file);
9131         newXS("Wx::GridCellAttr::IsReadOnly", XS_Wx__GridCellAttr_IsReadOnly, file);
9132         newXS("Wx::GridCellAttr::SetDefAttr", XS_Wx__GridCellAttr_SetDefAttr, file);
9133         newXS("Wx::GridCellAttr::SetEditor", XS_Wx__GridCellAttr_SetEditor, file);
9134         newXS("Wx::GridCellAttr::SetRenderer", XS_Wx__GridCellAttr_SetRenderer, file);
9135         newXS("Wx::GridCellAttr::GetOverflow", XS_Wx__GridCellAttr_GetOverflow, file);
9136         newXS("Wx::GridCellAttr::SetOverflow", XS_Wx__GridCellAttr_SetOverflow, file);
9137 #if XSubPPtmpAAAG
9138         newXS("Wx::GridUpdateLocker::new", XS_Wx__GridUpdateLocker_new, file);
9139         newXS("Wx::GridUpdateLocker::CLONE", XS_Wx__GridUpdateLocker_CLONE, file);
9140         newXS("Wx::GridUpdateLocker::DESTROY", XS_Wx__GridUpdateLocker_DESTROY, file);
9141         newXS("Wx::GridUpdateLocker::Create", XS_Wx__GridUpdateLocker_Create, file);
9142 #endif
9143         newXS("Wx::GridCellCoords::new", XS_Wx__GridCellCoords_new, file);
9144         newXS("Wx::GridCellCoords::CLONE", XS_Wx__GridCellCoords_CLONE, file);
9145         newXS("Wx::GridCellCoords::DESTROY", XS_Wx__GridCellCoords_DESTROY, file);
9146         newXS("Wx::GridCellCoords::GetRow", XS_Wx__GridCellCoords_GetRow, file);
9147         newXS("Wx::GridCellCoords::GetCol", XS_Wx__GridCellCoords_GetCol, file);
9148         newXS("Wx::GridCellCoords::SetRow", XS_Wx__GridCellCoords_SetRow, file);
9149         newXS("Wx::GridCellCoords::SetCol", XS_Wx__GridCellCoords_SetCol, file);
9150         newXS("Wx::GridCellCoords::Set", XS_Wx__GridCellCoords_Set, file);
9151         newXS("Wx::Grid::new", XS_Wx__Grid_new, file);
9152         newXS("Wx::Grid::newDefault", XS_Wx__Grid_newDefault, file);
9153         newXS("Wx::Grid::newFull", XS_Wx__Grid_newFull, file);
9154         newXS("Wx::Grid::Create", XS_Wx__Grid_Create, file);
9155         newXS("Wx::Grid::AppendCols", XS_Wx__Grid_AppendCols, file);
9156         newXS("Wx::Grid::AppendRows", XS_Wx__Grid_AppendRows, file);
9157         newXS("Wx::Grid::AutoSize", XS_Wx__Grid_AutoSize, file);
9158         newXS("Wx::Grid::AutoSizeColLabelSize", XS_Wx__Grid_AutoSizeColLabelSize, file);
9159         newXS("Wx::Grid::AutoSizeRowLabelSize", XS_Wx__Grid_AutoSizeRowLabelSize, file);
9160         newXS("Wx::Grid::AutoSizeColumn", XS_Wx__Grid_AutoSizeColumn, file);
9161         newXS("Wx::Grid::AutoSizeColumns", XS_Wx__Grid_AutoSizeColumns, file);
9162         newXS("Wx::Grid::AutoSizeRow", XS_Wx__Grid_AutoSizeRow, file);
9163         newXS("Wx::Grid::AutoSizeRows", XS_Wx__Grid_AutoSizeRows, file);
9164         newXS("Wx::Grid::BeginBatch", XS_Wx__Grid_BeginBatch, file);
9165         newXS("Wx::Grid::BlockToDeviceRect", XS_Wx__Grid_BlockToDeviceRect, file);
9166         newXS("Wx::Grid::CanDragColSize", XS_Wx__Grid_CanDragColSize, file);
9167 #if XSubPPtmpAAAH
9168         newXS("Wx::Grid::CanDragColMove", XS_Wx__Grid_CanDragColMove, file);
9169 #endif
9170         newXS("Wx::Grid::CanDragRowSize", XS_Wx__Grid_CanDragRowSize, file);
9171         newXS("Wx::Grid::CanDragGridSize", XS_Wx__Grid_CanDragGridSize, file);
9172         newXS("Wx::Grid::CanEnableCellControl", XS_Wx__Grid_CanEnableCellControl, file);
9173         newXS("Wx::Grid::CellToRectXY", XS_Wx__Grid_CellToRectXY, file);
9174         newXS("Wx::Grid::CellToRectCo", XS_Wx__Grid_CellToRectCo, file);
9175         newXS("Wx::Grid::ClearGrid", XS_Wx__Grid_ClearGrid, file);
9176         newXS("Wx::Grid::ClearSelection", XS_Wx__Grid_ClearSelection, file);
9177         newXS("Wx::Grid::CreateGrid", XS_Wx__Grid_CreateGrid, file);
9178         newXS("Wx::Grid::DeleteCols", XS_Wx__Grid_DeleteCols, file);
9179         newXS("Wx::Grid::DeleteRows", XS_Wx__Grid_DeleteRows, file);
9180         newXS("Wx::Grid::DisableCellEditControl", XS_Wx__Grid_DisableCellEditControl, file);
9181         newXS("Wx::Grid::DisableDragGridSize", XS_Wx__Grid_DisableDragGridSize, file);
9182         newXS("Wx::Grid::DisableDragRowSize", XS_Wx__Grid_DisableDragRowSize, file);
9183         newXS("Wx::Grid::DisableDragColSize", XS_Wx__Grid_DisableDragColSize, file);
9184 #if XSubPPtmpAAAI
9185         newXS("Wx::Grid::DisableDragColMove", XS_Wx__Grid_DisableDragColMove, file);
9186 #endif
9187         newXS("Wx::Grid::EnableCellEditControl", XS_Wx__Grid_EnableCellEditControl, file);
9188 #if XSubPPtmpAAAJ
9189         newXS("Wx::Grid::EnableDragColMove", XS_Wx__Grid_EnableDragColMove, file);
9190 #endif
9191         newXS("Wx::Grid::EnableDragColSize", XS_Wx__Grid_EnableDragColSize, file);
9192         newXS("Wx::Grid::EnableDragGridSize", XS_Wx__Grid_EnableDragGridSize, file);
9193         newXS("Wx::Grid::EnableDragRowSize", XS_Wx__Grid_EnableDragRowSize, file);
9194         newXS("Wx::Grid::EnableEditing", XS_Wx__Grid_EnableEditing, file);
9195         newXS("Wx::Grid::EnableGridLines", XS_Wx__Grid_EnableGridLines, file);
9196         newXS("Wx::Grid::EndBatch", XS_Wx__Grid_EndBatch, file);
9197         newXS("Wx::Grid::ForceRefresh", XS_Wx__Grid_ForceRefresh, file);
9198         newXS("Wx::Grid::GetBatchCount", XS_Wx__Grid_GetBatchCount, file);
9199         newXS("Wx::Grid::GetCellAlignment", XS_Wx__Grid_GetCellAlignment, file);
9200         newXS("Wx::Grid::GetCellBackgroundColour", XS_Wx__Grid_GetCellBackgroundColour, file);
9201         newXS("Wx::Grid::GetCellEditor", XS_Wx__Grid_GetCellEditor, file);
9202         newXS("Wx::Grid::GetCellOverflow", XS_Wx__Grid_GetCellOverflow, file);
9203         newXS("Wx::Grid::GetCellRenderer", XS_Wx__Grid_GetCellRenderer, file);
9204         newXS("Wx::Grid::GetCellFont", XS_Wx__Grid_GetCellFont, file);
9205         newXS("Wx::Grid::GetCellTextColour", XS_Wx__Grid_GetCellTextColour, file);
9206         newXS("Wx::Grid::GetCellValueXY", XS_Wx__Grid_GetCellValueXY, file);
9207         newXS("Wx::Grid::GetCellValueCo", XS_Wx__Grid_GetCellValueCo, file);
9208         newXS("Wx::Grid::GetColLabelAlignment", XS_Wx__Grid_GetColLabelAlignment, file);
9209         newXS("Wx::Grid::GetColLabelSize", XS_Wx__Grid_GetColLabelSize, file);
9210         newXS("Wx::Grid::GetColLabelValue", XS_Wx__Grid_GetColLabelValue, file);
9211 #if XSubPPtmpAAAK
9212         newXS("Wx::Grid::GetColPos", XS_Wx__Grid_GetColPos, file);
9213 #endif
9214         newXS("Wx::Grid::GetColSize", XS_Wx__Grid_GetColSize, file);
9215 #if XSubPPtmpAAAL
9216         newXS("Wx::Grid::GetColAt", XS_Wx__Grid_GetColAt, file);
9217 #endif
9218         newXS("Wx::Grid::GetDefaultCellAlignment", XS_Wx__Grid_GetDefaultCellAlignment, file);
9219         newXS("Wx::Grid::GetDefaultCellBackgroundColour", XS_Wx__Grid_GetDefaultCellBackgroundColour, file);
9220         newXS("Wx::Grid::GetDefaultCellFont", XS_Wx__Grid_GetDefaultCellFont, file);
9221         newXS("Wx::Grid::GetDefaultCellOverflow", XS_Wx__Grid_GetDefaultCellOverflow, file);
9222         newXS("Wx::Grid::GetDefaultCellTextColour", XS_Wx__Grid_GetDefaultCellTextColour, file);
9223         newXS("Wx::Grid::GetDefaultColLabelSize", XS_Wx__Grid_GetDefaultColLabelSize, file);
9224         newXS("Wx::Grid::GetDefaultColSize", XS_Wx__Grid_GetDefaultColSize, file);
9225         newXS("Wx::Grid::GetColMinimalAcceptableWidth", XS_Wx__Grid_GetColMinimalAcceptableWidth, file);
9226 #if XSubPPtmpAAAM
9227         newXS("Wx::Grid::GetOrCreateCellAttr", XS_Wx__Grid_GetOrCreateCellAttr, file);
9228 #endif
9229         newXS("Wx::Grid::GetRowMinimalAcceptableHeight", XS_Wx__Grid_GetRowMinimalAcceptableHeight, file);
9230         newXS("Wx::Grid::GetDefaultEditor", XS_Wx__Grid_GetDefaultEditor, file);
9231         newXS("Wx::Grid::GetDefaultEditorForType", XS_Wx__Grid_GetDefaultEditorForType, file);
9232         newXS("Wx::Grid::GetDefaultEditorForCellCo", XS_Wx__Grid_GetDefaultEditorForCellCo, file);
9233         newXS("Wx::Grid::GetDefaultEditorForCellXY", XS_Wx__Grid_GetDefaultEditorForCellXY, file);
9234         newXS("Wx::Grid::GetDefaultRenderer", XS_Wx__Grid_GetDefaultRenderer, file);
9235         newXS("Wx::Grid::GetDefaultRendererForType", XS_Wx__Grid_GetDefaultRendererForType, file);
9236         newXS("Wx::Grid::GetDefaultRendererForCell", XS_Wx__Grid_GetDefaultRendererForCell, file);
9237         newXS("Wx::Grid::GetRowLabelAlignment", XS_Wx__Grid_GetRowLabelAlignment, file);
9238         newXS("Wx::Grid::GetDefaultRowLabelSize", XS_Wx__Grid_GetDefaultRowLabelSize, file);
9239         newXS("Wx::Grid::GetDefaultRowSize", XS_Wx__Grid_GetDefaultRowSize, file);
9240         newXS("Wx::Grid::GetGridCursorCol", XS_Wx__Grid_GetGridCursorCol, file);
9241         newXS("Wx::Grid::GetGridCursorRow", XS_Wx__Grid_GetGridCursorRow, file);
9242         newXS("Wx::Grid::GetGridLineColour", XS_Wx__Grid_GetGridLineColour, file);
9243 #if XSubPPtmpAAAN
9244         newXS("Wx::Grid::GetDefaultGridLinePen", XS_Wx__Grid_GetDefaultGridLinePen, file);
9245         newXS("Wx::Grid::GetColGridLinePen", XS_Wx__Grid_GetColGridLinePen, file);
9246         newXS("Wx::Grid::GetRowGridLinePen", XS_Wx__Grid_GetRowGridLinePen, file);
9247 #endif
9248         newXS("Wx::Grid::GetTable", XS_Wx__Grid_GetTable, file);
9249         newXS("Wx::Grid::GridLinesEnabled", XS_Wx__Grid_GridLinesEnabled, file);
9250         newXS("Wx::Grid::GetLabelBackgroundColour", XS_Wx__Grid_GetLabelBackgroundColour, file);
9251         newXS("Wx::Grid::GetLabelFont", XS_Wx__Grid_GetLabelFont, file);
9252         newXS("Wx::Grid::GetLabelTextColour", XS_Wx__Grid_GetLabelTextColour, file);
9253         newXS("Wx::Grid::GetNumberCols", XS_Wx__Grid_GetNumberCols, file);
9254         newXS("Wx::Grid::GetNumberRows", XS_Wx__Grid_GetNumberRows, file);
9255         newXS("Wx::Grid::GetRowLabelSize", XS_Wx__Grid_GetRowLabelSize, file);
9256         newXS("Wx::Grid::GetRowLabelValue", XS_Wx__Grid_GetRowLabelValue, file);
9257         newXS("Wx::Grid::GetRowSize", XS_Wx__Grid_GetRowSize, file);
9258 #if XSubPPtmpAAAO
9259         newXS("Wx::Grid::GetScrollLineX", XS_Wx__Grid_GetScrollLineX, file);
9260         newXS("Wx::Grid::GetScrollLineY", XS_Wx__Grid_GetScrollLineY, file);
9261         newXS("Wx::Grid::SetScrollLineX", XS_Wx__Grid_SetScrollLineX, file);
9262         newXS("Wx::Grid::SetScrollLineY", XS_Wx__Grid_SetScrollLineY, file);
9263 #endif
9264         newXS("Wx::Grid::GetSelectedCells", XS_Wx__Grid_GetSelectedCells, file);
9265         newXS("Wx::Grid::GetSelectionBlockTopLeft", XS_Wx__Grid_GetSelectionBlockTopLeft, file);
9266         newXS("Wx::Grid::GetSelectionBlockBottomRight", XS_Wx__Grid_GetSelectionBlockBottomRight, file);
9267         newXS("Wx::Grid::GetSelectedCols", XS_Wx__Grid_GetSelectedCols, file);
9268         newXS("Wx::Grid::GetSelectedRows", XS_Wx__Grid_GetSelectedRows, file);
9269         newXS("Wx::Grid::GetSelectionBackground", XS_Wx__Grid_GetSelectionBackground, file);
9270         newXS("Wx::Grid::GetSelectionForeground", XS_Wx__Grid_GetSelectionForeground, file);
9271         newXS("Wx::Grid::GetSelectionMode", XS_Wx__Grid_GetSelectionMode, file);
9272         newXS("Wx::Grid::GetViewWidth", XS_Wx__Grid_GetViewWidth, file);
9273         newXS("Wx::Grid::HideCellEditControl", XS_Wx__Grid_HideCellEditControl, file);
9274 #if XSubPPtmpAAAP
9275         newXS("Wx::Grid::HideRowLabels", XS_Wx__Grid_HideRowLabels, file);
9276         newXS("Wx::Grid::HideColLabels", XS_Wx__Grid_HideColLabels, file);
9277 #endif
9278         newXS("Wx::Grid::InsertCols", XS_Wx__Grid_InsertCols, file);
9279         newXS("Wx::Grid::InsertRows", XS_Wx__Grid_InsertRows, file);
9280         newXS("Wx::Grid::IsCellEditControlEnabled", XS_Wx__Grid_IsCellEditControlEnabled, file);
9281         newXS("Wx::Grid::IsCurrentCellReadOnly", XS_Wx__Grid_IsCurrentCellReadOnly, file);
9282         newXS("Wx::Grid::IsEditable", XS_Wx__Grid_IsEditable, file);
9283         newXS("Wx::Grid::IsInSelectionXY", XS_Wx__Grid_IsInSelectionXY, file);
9284         newXS("Wx::Grid::IsInSelectionCo", XS_Wx__Grid_IsInSelectionCo, file);
9285         newXS("Wx::Grid::IsReadOnly", XS_Wx__Grid_IsReadOnly, file);
9286         newXS("Wx::Grid::IsSelection", XS_Wx__Grid_IsSelection, file);
9287         newXS("Wx::Grid::IsVisibleXY", XS_Wx__Grid_IsVisibleXY, file);
9288         newXS("Wx::Grid::IsVisibleCo", XS_Wx__Grid_IsVisibleCo, file);
9289         newXS("Wx::Grid::MakeCellVisibleXY", XS_Wx__Grid_MakeCellVisibleXY, file);
9290         newXS("Wx::Grid::MakeCellVisibleCo", XS_Wx__Grid_MakeCellVisibleCo, file);
9291         newXS("Wx::Grid::MoveCursorDown", XS_Wx__Grid_MoveCursorDown, file);
9292         newXS("Wx::Grid::MoveCursorLeft", XS_Wx__Grid_MoveCursorLeft, file);
9293         newXS("Wx::Grid::MoveCursorRight", XS_Wx__Grid_MoveCursorRight, file);
9294         newXS("Wx::Grid::MoveCursorUp", XS_Wx__Grid_MoveCursorUp, file);
9295         newXS("Wx::Grid::MoveCursorDownBlock", XS_Wx__Grid_MoveCursorDownBlock, file);
9296         newXS("Wx::Grid::MoveCursorLeftBlock", XS_Wx__Grid_MoveCursorLeftBlock, file);
9297         newXS("Wx::Grid::MoveCursorRightBlock", XS_Wx__Grid_MoveCursorRightBlock, file);
9298         newXS("Wx::Grid::MoveCursorUpBlock", XS_Wx__Grid_MoveCursorUpBlock, file);
9299         newXS("Wx::Grid::MovePageDown", XS_Wx__Grid_MovePageDown, file);
9300         newXS("Wx::Grid::MovePageUp", XS_Wx__Grid_MovePageUp, file);
9301         newXS("Wx::Grid::ProcessTableMessage", XS_Wx__Grid_ProcessTableMessage, file);
9302         newXS("Wx::Grid::RegisterDataType", XS_Wx__Grid_RegisterDataType, file);
9303         newXS("Wx::Grid::SaveEditControlValue", XS_Wx__Grid_SaveEditControlValue, file);
9304         newXS("Wx::Grid::SelectAll", XS_Wx__Grid_SelectAll, file);
9305         newXS("Wx::Grid::SelectBlockXYWH", XS_Wx__Grid_SelectBlockXYWH, file);
9306         newXS("Wx::Grid::SelectBlockPP", XS_Wx__Grid_SelectBlockPP, file);
9307         newXS("Wx::Grid::SelectCol", XS_Wx__Grid_SelectCol, file);
9308         newXS("Wx::Grid::SelectRow", XS_Wx__Grid_SelectRow, file);
9309 #if XSubPPtmpAAAQ
9310         newXS("Wx::Grid::SetUseNativeColLabels", XS_Wx__Grid_SetUseNativeColLabels, file);
9311 #endif
9312         newXS("Wx::Grid::SetCellAlignment", XS_Wx__Grid_SetCellAlignment, file);
9313         newXS("Wx::Grid::SetCellBackgroundColour", XS_Wx__Grid_SetCellBackgroundColour, file);
9314         newXS("Wx::Grid::SetCellHighlightColour", XS_Wx__Grid_SetCellHighlightColour, file);
9315         newXS("Wx::Grid::SetCellHighlightPenWidth", XS_Wx__Grid_SetCellHighlightPenWidth, file);
9316         newXS("Wx::Grid::SetCellHighlightROPenWidth", XS_Wx__Grid_SetCellHighlightROPenWidth, file);
9317         newXS("Wx::Grid::SetCellEditor", XS_Wx__Grid_SetCellEditor, file);
9318         newXS("Wx::Grid::SetCellRenderer", XS_Wx__Grid_SetCellRenderer, file);
9319         newXS("Wx::Grid::SetCellFont", XS_Wx__Grid_SetCellFont, file);
9320         newXS("Wx::Grid::SetCellTextColour", XS_Wx__Grid_SetCellTextColour, file);
9321         newXS("Wx::Grid::SetCellSize", XS_Wx__Grid_SetCellSize, file);
9322         newXS("Wx::Grid::SetCellOverflow", XS_Wx__Grid_SetCellOverflow, file);
9323         newXS("Wx::Grid::SetCellValueXY", XS_Wx__Grid_SetCellValueXY, file);
9324         newXS("Wx::Grid::SetCellValueCo", XS_Wx__Grid_SetCellValueCo, file);
9325         newXS("Wx::Grid::SetDefaultCellAlignment", XS_Wx__Grid_SetDefaultCellAlignment, file);
9326         newXS("Wx::Grid::SetDefaultCellBackgroundColour", XS_Wx__Grid_SetDefaultCellBackgroundColour, file);
9327         newXS("Wx::Grid::SetDefaultCellFont", XS_Wx__Grid_SetDefaultCellFont, file);
9328         newXS("Wx::Grid::SetDefaultCellOverflow", XS_Wx__Grid_SetDefaultCellOverflow, file);
9329         newXS("Wx::Grid::SetDefaultCellTextColour", XS_Wx__Grid_SetDefaultCellTextColour, file);
9330         newXS("Wx::Grid::SetDefaultColSize", XS_Wx__Grid_SetDefaultColSize, file);
9331         newXS("Wx::Grid::SetDefaultEditor", XS_Wx__Grid_SetDefaultEditor, file);
9332         newXS("Wx::Grid::SetDefaultRenderer", XS_Wx__Grid_SetDefaultRenderer, file);
9333         newXS("Wx::Grid::SetDefaultRowSize", XS_Wx__Grid_SetDefaultRowSize, file);
9334         newXS("Wx::Grid::SetColAttr", XS_Wx__Grid_SetColAttr, file);
9335         newXS("Wx::Grid::SetColFormatBool", XS_Wx__Grid_SetColFormatBool, file);
9336         newXS("Wx::Grid::SetColFormatNumber", XS_Wx__Grid_SetColFormatNumber, file);
9337         newXS("Wx::Grid::SetColFormatFloat", XS_Wx__Grid_SetColFormatFloat, file);
9338         newXS("Wx::Grid::SetColFormatCustom", XS_Wx__Grid_SetColFormatCustom, file);
9339         newXS("Wx::Grid::SetColLabelAlignment", XS_Wx__Grid_SetColLabelAlignment, file);
9340         newXS("Wx::Grid::SetColLabelSize", XS_Wx__Grid_SetColLabelSize, file);
9341         newXS("Wx::Grid::SetColLabelValue", XS_Wx__Grid_SetColLabelValue, file);
9342         newXS("Wx::Grid::SetColMinimalAcceptableWidth", XS_Wx__Grid_SetColMinimalAcceptableWidth, file);
9343         newXS("Wx::Grid::SetRowMinimalAcceptableHeight", XS_Wx__Grid_SetRowMinimalAcceptableHeight, file);
9344         newXS("Wx::Grid::SetColMinimalWidth", XS_Wx__Grid_SetColMinimalWidth, file);
9345         newXS("Wx::Grid::SetColSize", XS_Wx__Grid_SetColSize, file);
9346 #if XSubPPtmpAAAR
9347         newXS("Wx::Grid::SetColPos", XS_Wx__Grid_SetColPos, file);
9348 #endif
9349         newXS("Wx::Grid::SetGridCursor", XS_Wx__Grid_SetGridCursor, file);
9350         newXS("Wx::Grid::SetGridLineColour", XS_Wx__Grid_SetGridLineColour, file);
9351         newXS("Wx::Grid::SetLabelBackgroundColour", XS_Wx__Grid_SetLabelBackgroundColour, file);
9352         newXS("Wx::Grid::SetLabelFont", XS_Wx__Grid_SetLabelFont, file);
9353         newXS("Wx::Grid::SetLabelTextColour", XS_Wx__Grid_SetLabelTextColour, file);
9354         newXS("Wx::Grid::SetMargins", XS_Wx__Grid_SetMargins, file);
9355         newXS("Wx::Grid::SetReadOnly", XS_Wx__Grid_SetReadOnly, file);
9356         newXS("Wx::Grid::SetRowAttr", XS_Wx__Grid_SetRowAttr, file);
9357         newXS("Wx::Grid::SetRowLabelAlignment", XS_Wx__Grid_SetRowLabelAlignment, file);
9358         newXS("Wx::Grid::SetRowLabelSize", XS_Wx__Grid_SetRowLabelSize, file);
9359         newXS("Wx::Grid::SetRowLabelValue", XS_Wx__Grid_SetRowLabelValue, file);
9360         newXS("Wx::Grid::SetRowMinimalHeight", XS_Wx__Grid_SetRowMinimalHeight, file);
9361         newXS("Wx::Grid::SetRowSize", XS_Wx__Grid_SetRowSize, file);
9362         newXS("Wx::Grid::SetSelectionBackground", XS_Wx__Grid_SetSelectionBackground, file);
9363         newXS("Wx::Grid::SetSelectionForeground", XS_Wx__Grid_SetSelectionForeground, file);
9364         newXS("Wx::Grid::SetSelectionMode", XS_Wx__Grid_SetSelectionMode, file);
9365         newXS("Wx::Grid::SetTable", XS_Wx__Grid_SetTable, file);
9366         newXS("Wx::Grid::ShowCellEditControl", XS_Wx__Grid_ShowCellEditControl, file);
9367         newXS("Wx::Grid::XToCol", XS_Wx__Grid_XToCol, file);
9368         newXS("Wx::Grid::XToEdgeOfCol", XS_Wx__Grid_XToEdgeOfCol, file);
9369         newXS("Wx::Grid::YToRow", XS_Wx__Grid_YToRow, file);
9370         newXS("Wx::Grid::YToEdgeOfRow", XS_Wx__Grid_YToEdgeOfRow, file);
9371         newXS("Wx::Grid::GetGridWindow", XS_Wx__Grid_GetGridWindow, file);
9372         newXS("Wx::Grid::GetGridRowLabelWindow", XS_Wx__Grid_GetGridRowLabelWindow, file);
9373         newXS("Wx::Grid::GetGridColLabelWindow", XS_Wx__Grid_GetGridColLabelWindow, file);
9374         newXS("Wx::PlGridTable::new", XS_Wx__PlGridTable_new, file);
9375         newXS("Wx::PlGridTable::Destroy", XS_Wx__PlGridTable_Destroy, file);
9376         newXS("Wx::PlGridTable::GetTypeName", XS_Wx__PlGridTable_GetTypeName, file);
9377         newXS("Wx::PlGridTable::CanGetValueAs", XS_Wx__PlGridTable_CanGetValueAs, file);
9378         newXS("Wx::PlGridTable::CanSetValueAs", XS_Wx__PlGridTable_CanSetValueAs, file);
9379         newXS("Wx::PlGridTable::GetValueAsLong", XS_Wx__PlGridTable_GetValueAsLong, file);
9380         newXS("Wx::PlGridTable::GetValueAsDouble", XS_Wx__PlGridTable_GetValueAsDouble, file);
9381         newXS("Wx::PlGridTable::GetValueAsBool", XS_Wx__PlGridTable_GetValueAsBool, file);
9382         newXS("Wx::PlGridTable::SetValueAsLong", XS_Wx__PlGridTable_SetValueAsLong, file);
9383         newXS("Wx::PlGridTable::SetValueAsDouble", XS_Wx__PlGridTable_SetValueAsDouble, file);
9384         newXS("Wx::PlGridTable::SetValueAsBool", XS_Wx__PlGridTable_SetValueAsBool, file);
9385         newXS("Wx::PlGridTable::SetView", XS_Wx__PlGridTable_SetView, file);
9386         newXS("Wx::PlGridTable::GetView", XS_Wx__PlGridTable_GetView, file);
9387         newXS("Wx::PlGridTable::Clear", XS_Wx__PlGridTable_Clear, file);
9388         newXS("Wx::PlGridTable::InsertRows", XS_Wx__PlGridTable_InsertRows, file);
9389         newXS("Wx::PlGridTable::AppendRows", XS_Wx__PlGridTable_AppendRows, file);
9390         newXS("Wx::PlGridTable::DeleteRows", XS_Wx__PlGridTable_DeleteRows, file);
9391         newXS("Wx::PlGridTable::InsertCols", XS_Wx__PlGridTable_InsertCols, file);
9392         newXS("Wx::PlGridTable::AppendCols", XS_Wx__PlGridTable_AppendCols, file);
9393         newXS("Wx::PlGridTable::DeleteCols", XS_Wx__PlGridTable_DeleteCols, file);
9394         newXS("Wx::PlGridTable::GetRowLabelValue", XS_Wx__PlGridTable_GetRowLabelValue, file);
9395         newXS("Wx::PlGridTable::GetColLabelValue", XS_Wx__PlGridTable_GetColLabelValue, file);
9396         newXS("Wx::PlGridTable::SetRowLabelValue", XS_Wx__PlGridTable_SetRowLabelValue, file);
9397         newXS("Wx::PlGridTable::SetColLabelValue", XS_Wx__PlGridTable_SetColLabelValue, file);
9398         newXS("Wx::PlGridTable::CanHaveAttributes", XS_Wx__PlGridTable_CanHaveAttributes, file);
9399         newXS("Wx::PlGridTable::GetAttr", XS_Wx__PlGridTable_GetAttr, file);
9400         newXS("Wx::PlGridTable::SetAttr", XS_Wx__PlGridTable_SetAttr, file);
9401         newXS("Wx::PlGridTable::SetRowAttr", XS_Wx__PlGridTable_SetRowAttr, file);
9402         newXS("Wx::PlGridTable::SetColAttr", XS_Wx__PlGridTable_SetColAttr, file);
9403         newXS("Wx::GridTableMessage::new", XS_Wx__GridTableMessage_new, file);
9404         newXS("Wx::GridTableMessage::CLONE", XS_Wx__GridTableMessage_CLONE, file);
9405         newXS("Wx::GridTableMessage::DESTROY", XS_Wx__GridTableMessage_DESTROY, file);
9406         newXS("Wx::GridTableMessage::SetTableObject", XS_Wx__GridTableMessage_SetTableObject, file);
9407         newXS("Wx::GridTableMessage::GetTableObject", XS_Wx__GridTableMessage_GetTableObject, file);
9408         newXS("Wx::GridTableMessage::SetId", XS_Wx__GridTableMessage_SetId, file);
9409         newXS("Wx::GridTableMessage::GetId", XS_Wx__GridTableMessage_GetId, file);
9410         newXS("Wx::GridTableMessage::SetCommandInt", XS_Wx__GridTableMessage_SetCommandInt, file);
9411         newXS("Wx::GridTableMessage::GetCommandInt", XS_Wx__GridTableMessage_GetCommandInt, file);
9412         newXS("Wx::GridTableMessage::SetCommandInt2", XS_Wx__GridTableMessage_SetCommandInt2, file);
9413         newXS("Wx::GridTableMessage::GetCommandInt2", XS_Wx__GridTableMessage_GetCommandInt2, file);
9414         newXS("Wx::Grid::SetEvents", XS_Wx__Grid_SetEvents, file);
9415
9416     /* Initialisation Section */
9417
9418   INIT_PLI_HELPERS( wx_pli_helpers );
9419
9420 #if XSubPPtmpAAAA
9421 #endif
9422 #if XSubPPtmpAAAB
9423 #endif
9424 #if XSubPPtmpAAAC
9425 #endif
9426 #if XSubPPtmpAAAD
9427 #endif
9428 #if XSubPPtmpAAAE
9429 #endif
9430 #if XSubPPtmpAAAF
9431 #endif
9432 #if XSubPPtmpAAAG
9433 #endif
9434 #if XSubPPtmpAAAH
9435 #endif
9436 #if XSubPPtmpAAAI
9437 #endif
9438 #if XSubPPtmpAAAJ
9439 #endif
9440 #if XSubPPtmpAAAK
9441 #endif
9442 #if XSubPPtmpAAAL
9443 #endif
9444 #if XSubPPtmpAAAM
9445 #endif
9446 #if XSubPPtmpAAAN
9447 #endif
9448 #if XSubPPtmpAAAO
9449 #endif
9450 #if XSubPPtmpAAAP
9451 #endif
9452 #if XSubPPtmpAAAQ
9453 #endif
9454 #if XSubPPtmpAAAR
9455 #endif
9456
9457     /* End of Initialisation Section */
9458
9459 #if (PERL_REVISION == 5 && PERL_VERSION >= 9)
9460   if (PL_unitcheckav)
9461        call_list(PL_scopestack_ix, PL_unitcheckav);
9462 #endif
9463     XSRETURN_YES;
9464 }
9465