Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / Wx.c
1 /*
2  * This file was generated automatically by ExtUtils::ParseXS version 2.2202 from the
3  * contents of Wx.xs. Do not edit this file, edit Wx.xs instead.
4  *
5  *      ANY CHANGES MADE HERE WILL BE LOST! 
6  *
7  */
8
9 /////////////////////////////////////////////////////////////////////////////
10 // Name:        Wx.xs
11 // Purpose:     main XS module
12 // Author:      Mattia Barbon
13 // Modified by:
14 // Created:     01/10/2000
15 // RCS-ID:      $Id: Wx.xs 2610 2009-09-20 13:28:54Z mbarbon $
16 // Copyright:   (c) 2000-2002, 2004-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 #undef bool
22 #define PERL_NO_GET_CONTEXT
23
24 #include <stddef.h>
25 #include "cpp/compat.h"
26
27 // THIS IS AN HACK!
28 #if defined(_MSC_VER)
29 #define STRICT
30 #endif
31
32 #include "cpp/wxapi.h"
33
34 #include <wx/window.h>
35 #include <wx/module.h>
36 // FIXME hack
37 #if WXPERL_W_VERSION_GE( 2, 5, 2 ) \
38     && defined(__DARWIN__)
39 #define HACK
40 #include <wx/html/htmlwin.h>
41 #if wxUSE_MEDIACTRL
42 #include <wx/mediactrl.h>
43 #endif
44 #endif
45
46 #if defined(__WXMSW__)
47 #include <wx/msw/private.h>
48 #endif
49
50 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
51     #include <wx/init.h>
52 #else
53 #if defined(__WXGTK__)
54 int  WXDLLEXPORT wxEntryStart( int& argc, char** argv );
55 #else
56 int  WXDLLEXPORT wxEntryStart( int argc, char** argv );
57 #endif
58 int  WXDLLEXPORT wxEntryInitGui();
59 void WXDLLEXPORT wxEntryCleanup();
60 #endif
61
62 #include "cpp/v_cback.h"
63
64 // to declare wxPliUserDataCD
65 #include "cpp/helpers.h"
66 #include "cpp/helpers.cpp"
67 #include "cpp/v_cback.cpp"
68 #include "cpp/overload.cpp"
69 #include "cpp/ovl_const.cpp"
70
71 //
72 // our App
73 //
74 #include <wx/app.h>
75 #include "cpp/app.h"
76
77 IMPLEMENT_APP_NO_MAIN(wxPliApp);
78 static bool wxPerlAppCreated = false;
79 static bool wxPerlInitialized = false;
80 #if !wxUSE_UNICODE
81 bool wxPli_always_utf8;
82 #endif
83
84 #undef THIS
85
86 #ifdef __cplusplus
87 extern "C" {
88 #endif
89     XS( boot_Wx_Const );
90     XS( boot_Wx_Ctrl );
91     XS( boot_Wx_Evt );
92     XS( boot_Wx_Win );
93     XS( boot_Wx_Wnd );
94     XS( boot_Wx_GDI );
95 #if defined( WXPL_STATIC )
96     XS( boot_Wx__DocView );
97 #if wxPERL_USE_STC
98     XS( boot_Wx__STC );
99 #endif
100 #if wxPERL_USE_XRC
101     XS( boot_Wx__XRC );
102 #endif
103     XS( boot_Wx__Print );
104     XS( boot_Wx__MDI );
105     XS( boot_Wx__Html );
106     XS( boot_Wx__Help );
107     XS( boot_Wx__Grid );
108     XS( boot_Wx__FS );
109     XS( boot_Wx__DND );
110 #endif
111 #ifdef __cplusplus
112 }
113 #endif
114
115 extern void SetConstants();
116 extern void SetConstantsOnce();
117
118 static int call_oninit( pTHX_ SV* This, SV* sub )
119 {
120     dSP;
121
122     ENTER;
123     SAVETMPS;
124
125     PUSHMARK( SP );
126     XPUSHs( This );
127     PUTBACK;
128
129     int count = call_sv( sub, G_SCALAR|G_EVAL );
130     int retval = 0;
131
132     SPAGAIN;
133
134     if( SvTRUE( ERRSV ) )
135     {
136         croak( Nullch );
137     }
138     else if( count == 1 )
139     {
140         retval = POPi;
141     }
142
143     PUTBACK;
144
145     FREETMPS;
146     LEAVE;
147
148     return retval;
149 }
150
151
152 #if defined(__WXMOTIF__) && WXPERL_W_VERSION_LT( 2, 5, 1 )
153
154 #include <wx/app.h>
155 #include <wx/log.h>
156
157 int wxEntryStart( int argc, char** argv )
158 {
159 #if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
160     // This seems to be necessary since there are 'rogue'
161     // objects present at this point (perhaps global objects?)
162     // Setting a checkpoint will ignore them as far as the
163     // memory checking facility is concerned.
164     // Of course you may argue that memory allocated in globals should be
165     // checked, but this is a reasonable compromise.
166     wxDebugContext::SetCheckpoint();
167 #endif
168
169     if (!wxApp::Initialize())
170         return -1;
171
172     return 0;
173 }
174
175 int wxEntryInitGui()
176 {
177     int retValue = 0;
178
179     // GUI-specific initialization, such as creating an app context.
180     if( !wxTheApp->OnInitGui() )
181         retValue = -1;
182
183     return retValue;
184 }
185
186 void wxEntryCleanup()
187 {
188     // flush the logged messages if any
189     wxLog *pLog = wxLog::GetActiveTarget();
190     if ( pLog != NULL && pLog->HasPendingMessages() )
191         pLog->Flush();
192
193     delete wxLog::SetActiveTarget(new wxLogStderr); // So dialog boxes aren't used
194     // for further messages
195
196     wxApp::CleanUp();
197
198     // some code moved to _wxApp destructor
199     // since at this point the app is already destroyed
200 }
201
202 #endif
203
204 DEFINE_PLI_HELPERS( st_wxPliHelpers );
205
206 #include <wx/confbase.h>
207 typedef wxConfigBase::EntryType EntryType;
208
209 WXPLI_BOOT_ONCE_EXP(Wx);
210 #define boot_Wx wxPli_boot_Wx
211
212 extern bool Wx_booted, Wx_Const_booted, Wx_Ctrl_booted,
213     Wx_Evt_booted, Wx_Wnd_booted, Wx_GDI_booted, Wx_Win_booted;
214
215 #if WXPERL_W_VERSION_LT( 2, 9, 0 )
216 typedef int wxPolygonFillMode;
217 #endif
218
219 #ifndef PERL_UNUSED_VAR
220 #  define PERL_UNUSED_VAR(var) if (0) var = var
221 #endif
222
223 #ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE
224 #define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params)
225
226 /* prototype to pass -Wmissing-prototypes */
227 STATIC void
228 S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params);
229
230 STATIC void
231 S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params)
232 {
233     const GV *const gv = CvGV(cv);
234
235     PERL_ARGS_ASSERT_CROAK_XS_USAGE;
236
237     if (gv) {
238         const char *const gvname = GvNAME(gv);
239         const HV *const stash = GvSTASH(gv);
240         const char *const hvname = stash ? HvNAME(stash) : NULL;
241
242         if (hvname)
243             Perl_croak(aTHX_ "Usage: %s::%s(%s)", hvname, gvname, params);
244         else
245             Perl_croak(aTHX_ "Usage: %s(%s)", gvname, params);
246     } else {
247         /* Pants. I don't think that it should be possible to get here. */
248         Perl_croak(aTHX_ "Usage: CODE(0x%"UVxf")(%s)", PTR2UV(cv), params);
249     }
250 }
251 #undef  PERL_ARGS_ASSERT_CROAK_XS_USAGE
252
253 #ifdef PERL_IMPLICIT_CONTEXT
254 #define croak_xs_usage(a,b)     S_croak_xs_usage(aTHX_ a,b)
255 #else
256 #define croak_xs_usage          S_croak_xs_usage
257 #endif
258
259 #endif
260
261 /* NOTE: the prototype of newXSproto() is different in versions of perls,
262  * so we define a portable version of newXSproto()
263  */
264 #ifdef newXS_flags
265 #define newXSproto_portable(name, c_impl, file, proto) newXS_flags(name, c_impl, file, proto, 0)
266 #else
267 #define newXSproto_portable(name, c_impl, file, proto) (PL_Sv=(SV*)newXS(name, c_impl, file), sv_setpv(PL_Sv, proto), (CV*)PL_Sv)
268 #endif /* !defined(newXS_flags) */
269
270 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
271 #define wxPliEntryStart( argc, argv ) wxEntryStart( (argc), (argv) )
272 #else
273 #define wxPliEntryStart( argc, argv ) ( wxEntryStart( (argc), (argv) ) == 0 )
274 #endif
275
276 XS(XS_Wx_Load); /* prototype to pass -Wmissing-prototypes */
277 XS(XS_Wx_Load)
278 {
279 #ifdef dVAR
280     dVAR; dXSARGS;
281 #else
282     dXSARGS;
283 #endif
284     if (items != 0)
285        croak_xs_usage(cv,  "");
286     {
287         bool    RETVAL;
288     wxPerlAppCreated = wxTheApp != NULL;
289     if( wxPerlInitialized ) { XSRETURN( true ); }
290     wxPerlInitialized = true;
291
292     NV ver = wxMAJOR_VERSION + wxMINOR_VERSION / 1000.0 + 
293         wxRELEASE_NUMBER / 1000000.0;
294     // set up version as soon as possible
295     SV* tmp = get_sv( "Wx::_wx_version", 1 );
296     sv_setnv( tmp, ver );
297     tmp = get_sv( "Wx::wxVERSION", 1 );
298     sv_setnv( tmp, ver );
299
300     int platform;
301     // change App.pm whenever these change
302 #if defined(__WXMSW__)
303     platform = 1;
304 #elif defined(__WXGTK__)
305     platform = 2;
306 #elif defined(__WXMOTIF__)
307     platform = 3;
308 #elif defined(__WXMAC__)
309     platform = 4;
310 #elif defined(__WXX11__)
311     platform = 5;
312 #else
313 #endif
314
315     tmp = get_sv( "Wx::_platform", 1 );
316     sv_setiv( tmp, platform );
317
318     if( wxPerlAppCreated || wxTopLevelWindows.GetCount() > 0 )
319         return;
320 #if defined(DEBUGGING) && !defined(PERL_USE_SAFE_PUTENV)
321     // avoid crash on exit in Fedora (and other DEBUGGING Perls)
322     PL_use_safe_putenv = 1;
323 #endif
324
325     int argc = 0;
326 #if wxUSE_UNICODE && WXPERL_W_VERSION_GE( 2, 5, 3 )
327     wxChar** argv = 0;
328
329     argc = wxPli_get_args_argc_argv( (void***) &argv, 1 );
330     wxPerlInitialized = wxPliEntryStart( argc, argv );
331 #if WXPERL_W_VERSION_LE( 2, 5, 2 )
332     wxPli_delete_argv( (void***) &argv, 1 );
333 #endif
334 #else
335     char** argv = 0;
336
337     argc = wxPli_get_args_argc_argv( (void***) &argv, 0 );
338     wxPerlInitialized = wxPliEntryStart( argc, argv );
339 #if WXPERL_W_VERSION_LE( 2, 5, 2 )
340     wxPli_delete_argv( (void***) &argv, 0 );
341 #endif
342 #endif
343     RETVAL = wxPerlInitialized;
344         ST(0) = boolSV(RETVAL);
345         sv_2mortal(ST(0));
346     }
347     XSRETURN(1);
348 }
349
350
351 XS(XS_Wx_SetConstants); /* prototype to pass -Wmissing-prototypes */
352 XS(XS_Wx_SetConstants)
353 {
354 #ifdef dVAR
355     dVAR; dXSARGS;
356 #else
357     dXSARGS;
358 #endif
359     if (items != 0)
360        croak_xs_usage(cv,  "");
361     {
362     // this is after wxEntryStart, since
363     // wxInitializeStockObjects needs to be called
364     // (for colours, cursors, pens, etc...)
365     SetConstants();
366     }
367     XSRETURN_EMPTY;
368 }
369
370
371 XS(XS_Wx_SetConstantsOnce); /* prototype to pass -Wmissing-prototypes */
372 XS(XS_Wx_SetConstantsOnce)
373 {
374 #ifdef dVAR
375     dVAR; dXSARGS;
376 #else
377     dXSARGS;
378 #endif
379     if (items != 0)
380        croak_xs_usage(cv,  "");
381     {
382
383         SetConstantsOnce();
384     }
385     XSRETURN_EMPTY;
386 }
387
388
389 XS(XS_Wx_SetOvlConstants); /* prototype to pass -Wmissing-prototypes */
390 XS(XS_Wx_SetOvlConstants)
391 {
392 #ifdef dVAR
393     dVAR; dXSARGS;
394 #else
395     dXSARGS;
396 #endif
397     if (items != 0)
398        croak_xs_usage(cv,  "");
399     {
400
401         SetOvlConstants();
402     }
403     XSRETURN_EMPTY;
404 }
405
406
407 XS(XS_Wx_UnLoad); /* prototype to pass -Wmissing-prototypes */
408 XS(XS_Wx_UnLoad)
409 {
410 #ifdef dVAR
411     dVAR; dXSARGS;
412 #else
413     dXSARGS;
414 #endif
415     if (items != 0)
416        croak_xs_usage(cv,  "");
417     {
418     wxPerlAppCreated = wxTheApp != NULL;
419     Wx_booted = Wx_Const_booted = Wx_Ctrl_booted =
420         Wx_Evt_booted = Wx_Wnd_booted = Wx_GDI_booted = Wx_Win_booted = false;
421     if( wxPerlInitialized && !wxPerlAppCreated )
422         wxEntryCleanup();
423     wxPerlInitialized = false;
424     }
425     XSRETURN_EMPTY;
426 }
427
428
429 XS(XS_Wx_SetAlwaysUTF8); /* prototype to pass -Wmissing-prototypes */
430 XS(XS_Wx_SetAlwaysUTF8)
431 {
432 #ifdef dVAR
433     dVAR; dXSARGS;
434 #else
435     dXSARGS;
436 #endif
437     if (items < 0 || items > 1)
438        croak_xs_usage(cv,  "always_utf8 = true");
439     {
440         bool    always_utf8;
441
442         if (items < 1)
443             always_utf8 = true;
444         else {
445             always_utf8 = (bool)SvTRUE(ST(0));
446         }
447 #if !wxUSE_UNICODE
448     wxPli_always_utf8 = always_utf8;
449 #endif
450     }
451     XSRETURN_EMPTY;
452 }
453
454 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
455 #include <wx/dynload.h>
456 #define XSubPPtmpAAAA 1
457
458
459 XS(XS_Wx__load_plugin); /* prototype to pass -Wmissing-prototypes */
460 XS(XS_Wx__load_plugin)
461 {
462 #ifdef dVAR
463     dVAR; dXSARGS;
464 #else
465     dXSARGS;
466 #endif
467     if (items != 1)
468        croak_xs_usage(cv,  "string");
469     {
470         wxString        string;
471         bool    RETVAL;
472
473     WXSTRING_INPUT( string, wxString, ST(0) );
474 #ifdef HACK
475     delete new wxHtmlWindow();
476 #if wxUSE_MEDIACTRL
477     delete new wxMediaCtrl();
478 #endif
479 #endif
480     RETVAL = wxPluginManager::LoadLibrary( string, wxDL_VERBATIM );
481         ST(0) = boolSV(RETVAL);
482         sv_2mortal(ST(0));
483     }
484     XSRETURN(1);
485 }
486
487
488 XS(XS_Wx__unload_plugin); /* prototype to pass -Wmissing-prototypes */
489 XS(XS_Wx__unload_plugin)
490 {
491 #ifdef dVAR
492     dVAR; dXSARGS;
493 #else
494     dXSARGS;
495 #endif
496     if (items != 1)
497        croak_xs_usage(cv,  "string");
498     {
499         wxString        string;
500         bool    RETVAL;
501
502     WXSTRING_INPUT( string, wxString, ST(0) );
503     RETVAL = wxPluginManager::UnloadLibrary( string );
504         ST(0) = boolSV(RETVAL);
505         sv_2mortal(ST(0));
506     }
507     XSRETURN(1);
508 }
509
510 #endif
511
512 XS(XS_Wx__xsmatch); /* prototype to pass -Wmissing-prototypes */
513 XS(XS_Wx__xsmatch)
514 {
515 #ifdef dVAR
516     dVAR; dXSARGS;
517 #else
518     dXSARGS;
519 #endif
520     if (items < 2 || items > 4)
521        croak_xs_usage(cv,  "avref, proto, required = -1, allowmore = false");
522     {
523         SV*     avref = ST(0);
524         SV*     proto = ST(1);
525         int     required;
526         bool    allowmore;
527     AV* av;
528     wxPliPrototype* prototype;
529     int n, len;
530         bool    RETVAL;
531
532         if (items < 3)
533             required = -1;
534         else {
535             required = (int)SvIV(ST(2));
536         }
537
538         if (items < 4)
539             allowmore = false;
540         else {
541             allowmore = (bool)SvTRUE(ST(3));
542         }
543     av = wxPli_avref_2_av( avref );
544     if( !av ) croak( "first parameter must be an ARRAY reference" );
545     prototype = INT2PTR( wxPliPrototype*, SvIV( proto ) );
546     len = av_len( av ) + 1;
547     EXTEND(SP, len);
548     PUSHMARK(SP);
549     for( int i = 0; i < len; ++i )
550         PUSHs( *av_fetch( av, i, 0 ) );
551     PUTBACK;
552     RETVAL = wxPli_match_arguments( aTHX_ *prototype, required, allowmore );
553     SPAGAIN;
554     POPMARK; // wxPli_match_* does a PUSHMARK
555         ST(0) = boolSV(RETVAL);
556         sv_2mortal(ST(0));
557     }
558     XSRETURN(1);
559 }
560
561
562 XS(XS_Wx_looks_like_number); /* prototype to pass -Wmissing-prototypes */
563 XS(XS_Wx_looks_like_number)
564 {
565 #ifdef dVAR
566     dVAR; dXSARGS;
567 #else
568     dXSARGS;
569 #endif
570     if (items != 1)
571        croak_xs_usage(cv,  "sval");
572     {
573         SV*     sval = ST(0);
574         I32     RETVAL;
575         dXSTARG;
576     RETVAL = my_looks_like_number( aTHX_ sval );
577         XSprePUSH; PUSHi((IV)RETVAL);
578     }
579     XSRETURN(1);
580 }
581
582
583 XS(XS_Wx_CLONE); /* prototype to pass -Wmissing-prototypes */
584 XS(XS_Wx_CLONE)
585 {
586 #ifdef dVAR
587     dVAR; dXSARGS;
588 #else
589     dXSARGS;
590 #endif
591     if (items != 1)
592        croak_xs_usage(cv,  "CLASS");
593     {
594         char*   CLASS = (char *)SvPV_nolen(ST(0));
595     SetConstants();
596     }
597     XSRETURN_EMPTY;
598 }
599
600
601 /* INCLUDE:  Including 'XS/App.xs' from 'Wx.xs' */
602
603
604 /* INCLUDE:  Including 'XS/Caret.xs' from 'XS/App.xs' */
605
606
607 /* INCLUDE:  Including 'XS/Geom.xs' from 'XS/Caret.xs' */
608
609
610 /* INCLUDE:  Including 'XS/Menu.xs' from 'XS/Geom.xs' */
611
612
613 /* INCLUDE:  Including 'XS/Log.xs' from 'XS/Menu.xs' */
614
615
616 /* INCLUDE:  Including 'XS/ToolTip.xs' from 'XS/Log.xs' */
617
618
619 /* INCLUDE:  Including 'XS/Locale.xs' from 'XS/ToolTip.xs' */
620
621
622 /* INCLUDE:  Including 'XS/Utils.xs' from 'XS/Locale.xs' */
623
624
625 /* INCLUDE:  Including 'XS/Timer.xs' from 'XS/Utils.xs' */
626
627
628 /* INCLUDE:  Including 'XS/Stream.xs' from 'XS/Timer.xs' */
629
630
631 /* INCLUDE:  Including 'XS/TaskBarIcon.xs' from 'XS/Stream.xs' */
632
633
634 /* INCLUDE:  Including 'XS/Config.xs' from 'XS/TaskBarIcon.xs' */
635
636
637 /* INCLUDE:  Including 'XS/Process.xs' from 'XS/Config.xs' */
638
639
640 /* INCLUDE:  Including 'XS/FontMapper.xs' from 'XS/Process.xs' */
641
642
643 /* INCLUDE:  Including 'XS/FontEnumerator.xs' from 'XS/FontMapper.xs' */
644
645
646 /* INCLUDE:  Including 'XS/Wave.xs' from 'XS/FontEnumerator.xs' */
647
648
649 /* INCLUDE:  Including 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/ArtProvider.xsp |' from 'XS/Wave.xs' */
650
651 #if WXPERL_W_VERSION_GE( 2, 5, 2 )
652 #include <wx/artprov.h>
653 #include "cpp/artprov.h"
654 #define XSubPPtmpAAAB 1
655
656
657 XS(XS_Wx__ArtProvider_GetBitmap); /* prototype to pass -Wmissing-prototypes */
658 XS(XS_Wx__ArtProvider_GetBitmap)
659 {
660 #ifdef dVAR
661     dVAR; dXSARGS;
662 #else
663     dXSARGS;
664 #endif
665     if (items < 1 || items > 3)
666        croak_xs_usage(cv,  "id, client = wxART_OTHER, size = wxDefaultSize");
667     {
668         wxString        id;
669         wxString        client;
670         wxSize  size;
671         wxBitmap *      RETVAL;
672
673     WXSTRING_INPUT( id, wxString, ST(0) );
674
675         if (items < 2)
676             client = wxART_OTHER;
677         else {
678     WXSTRING_INPUT( client, wxString, ST(1) );
679         }
680
681         if (items < 3)
682             size = wxDefaultSize;
683         else {
684     size = wxPli_sv_2_wxsize( aTHX_ ST(2) );
685         }
686     RETVAL = new wxBitmap( wxArtProvider::GetBitmap( id, client, size ) );
687         ST(0) = sv_newmortal();
688     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
689     wxPli_thread_sv_register( aTHX_ "Wx::Bitmap", RETVAL, ST(0) );
690
691     }
692     XSRETURN(1);
693 }
694
695
696 XS(XS_Wx__ArtProvider_GetIcon); /* prototype to pass -Wmissing-prototypes */
697 XS(XS_Wx__ArtProvider_GetIcon)
698 {
699 #ifdef dVAR
700     dVAR; dXSARGS;
701 #else
702     dXSARGS;
703 #endif
704     if (items < 1 || items > 3)
705        croak_xs_usage(cv,  "id, client = wxART_OTHER, size = wxDefaultSize");
706     {
707         wxString        id;
708         wxString        client;
709         wxSize  size;
710         wxIcon *        RETVAL;
711
712     WXSTRING_INPUT( id, wxString, ST(0) );
713
714         if (items < 2)
715             client = wxART_OTHER;
716         else {
717     WXSTRING_INPUT( client, wxString, ST(1) );
718         }
719
720         if (items < 3)
721             size = wxDefaultSize;
722         else {
723     size = wxPli_sv_2_wxsize( aTHX_ ST(2) );
724         }
725     RETVAL = new wxIcon( wxArtProvider::GetIcon( id, client, size ) );
726         ST(0) = sv_newmortal();
727     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
728     wxPli_thread_sv_register( aTHX_ "Wx::Icon", RETVAL, ST(0) );
729
730     }
731     XSRETURN(1);
732 }
733
734 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
735 #define XSubPPtmpAAAC 1
736
737
738 XS(XS_Wx__ArtProvider_GetIconBundle); /* prototype to pass -Wmissing-prototypes */
739 XS(XS_Wx__ArtProvider_GetIconBundle)
740 {
741 #ifdef dVAR
742     dVAR; dXSARGS;
743 #else
744     dXSARGS;
745 #endif
746     if (items < 1 || items > 2)
747        croak_xs_usage(cv,  "id, client = wxART_OTHER");
748     {
749         wxString        id;
750         wxString        client;
751         wxIconBundle *  RETVAL;
752
753     WXSTRING_INPUT( id, wxString, ST(0) );
754
755         if (items < 2)
756             client = wxART_OTHER;
757         else {
758     WXSTRING_INPUT( client, wxString, ST(1) );
759         }
760     RETVAL = new wxIconBundle( wxArtProvider::GetIconBundle( id, client ) );
761         ST(0) = sv_newmortal();
762     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::IconBundle" );
763
764     }
765     XSRETURN(1);
766 }
767
768 #endif
769
770 XS(XS_Wx__ArtProvider_PopProvider); /* prototype to pass -Wmissing-prototypes */
771 XS(XS_Wx__ArtProvider_PopProvider)
772 {
773 #ifdef dVAR
774     dVAR; dXSARGS;
775 #else
776     dXSARGS;
777 #endif
778     if (items != 0)
779        croak_xs_usage(cv,  "");
780     {
781         bool    RETVAL;
782 #if WXPERL_W_VERSION_GE( 2, 7, 1 )
783     RETVAL = wxArtProvider::Pop();
784 #else
785     RETVAL = wxArtProvider::PopProvider();
786 #endif
787         ST(0) = boolSV(RETVAL);
788         sv_2mortal(ST(0));
789     }
790     XSRETURN(1);
791 }
792
793
794 XS(XS_Wx__ArtProvider_PushProvider); /* prototype to pass -Wmissing-prototypes */
795 XS(XS_Wx__ArtProvider_PushProvider)
796 {
797 #ifdef dVAR
798     dVAR; dXSARGS;
799 #else
800     dXSARGS;
801 #endif
802     if (items != 1)
803        croak_xs_usage(cv,  "provider");
804     {
805         wxArtProvider*    provider = (wxArtProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ArtProvider" );
806 #if WXPERL_W_VERSION_GE( 2, 7, 1 )
807     wxArtProvider::Push( provider);
808 #else
809     wxArtProvider::PushProvider( provider);
810 #endif
811     }
812     XSRETURN_EMPTY;
813 }
814
815 #if WXPERL_W_VERSION_GE( 2, 7, 1 )
816 #define XSubPPtmpAAAD 1
817
818
819 XS(XS_Wx__ArtProvider_InsertProvider); /* prototype to pass -Wmissing-prototypes */
820 XS(XS_Wx__ArtProvider_InsertProvider)
821 {
822 #ifdef dVAR
823     dVAR; dXSARGS;
824 #else
825     dXSARGS;
826 #endif
827     if (items != 1)
828        croak_xs_usage(cv,  "provider");
829     {
830         wxArtProvider*    provider = (wxArtProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ArtProvider" );
831 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
832     wxArtProvider::PushBack( provider);
833 #else
834     wxArtProvider::Insert( provider);
835 #endif
836     }
837     XSRETURN_EMPTY;
838 }
839
840 #endif
841
842 XS(XS_Wx__ArtProvider_RemoveProvider); /* prototype to pass -Wmissing-prototypes */
843 XS(XS_Wx__ArtProvider_RemoveProvider)
844 {
845 #ifdef dVAR
846     dVAR; dXSARGS;
847 #else
848     dXSARGS;
849 #endif
850     if (items != 1)
851        croak_xs_usage(cv,  "provider");
852     {
853         wxArtProvider*    provider = (wxArtProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ArtProvider" );
854         bool    RETVAL;
855 #if WXPERL_W_VERSION_GE( 2, 7, 1 )
856     RETVAL = wxArtProvider::Remove( provider );
857 #else
858     RETVAL = wxArtProvider::RemoveProvider( provider );
859 #endif
860         ST(0) = boolSV(RETVAL);
861         sv_2mortal(ST(0));
862     }
863     XSRETURN(1);
864 }
865
866 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
867 #define XSubPPtmpAAAE 1
868
869
870 XS(XS_Wx__ArtProvider_DeleteProvider); /* prototype to pass -Wmissing-prototypes */
871 XS(XS_Wx__ArtProvider_DeleteProvider)
872 {
873 #ifdef dVAR
874     dVAR; dXSARGS;
875 #else
876     dXSARGS;
877 #endif
878     if (items != 1)
879        croak_xs_usage(cv,  "provider");
880     {
881         wxArtProvider*    provider = (wxArtProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ArtProvider" );
882         bool    RETVAL;
883     RETVAL = wxArtProvider::Delete( provider );
884         ST(0) = boolSV(RETVAL);
885         sv_2mortal(ST(0));
886     }
887     XSRETURN(1);
888 }
889
890 #endif
891
892 XS(XS_Wx__PlArtProvider_new); /* prototype to pass -Wmissing-prototypes */
893 XS(XS_Wx__PlArtProvider_new)
894 {
895 #ifdef dVAR
896     dVAR; dXSARGS;
897 #else
898     dXSARGS;
899 #endif
900     if (items != 1)
901        croak_xs_usage(cv,  "CLASS");
902     {
903         char *  CLASS = (char *)SvPV_nolen(ST(0));
904         wxPlArtProvider *       RETVAL;
905     RETVAL = new wxPlArtProvider( CLASS );
906         ST(0) = sv_newmortal();
907     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
908
909     }
910     XSRETURN(1);
911 }
912
913
914 XS(XS_Wx__PlArtProvider_CreateBitmap); /* prototype to pass -Wmissing-prototypes */
915 XS(XS_Wx__PlArtProvider_CreateBitmap)
916 {
917 #ifdef dVAR
918     dVAR; dXSARGS;
919 #else
920     dXSARGS;
921 #endif
922     if (items != 4)
923        croak_xs_usage(cv,  "THIS, id, client, size");
924     {
925         wxString        id;
926         wxString        client;
927         wxSize    size = wxPli_sv_2_wxsize( aTHX_ ST(3) );
928         wxPlArtProvider *    THIS = (wxPlArtProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlArtProvider" );
929         wxBitmap *      RETVAL;
930
931     WXSTRING_INPUT( id, wxString, ST(1) );
932
933     WXSTRING_INPUT( client, wxString, ST(2) );
934     RETVAL = new wxBitmap( THIS->CreateBitmap( id, client, size ) );
935         ST(0) = sv_newmortal();
936     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
937     wxPli_thread_sv_register( aTHX_ "Wx::Bitmap", RETVAL, ST(0) );
938
939     }
940     XSRETURN(1);
941 }
942
943 #endif
944
945 /* INCLUDE: Returning to 'XS/Wave.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/ArtProvider.xsp |' */
946
947 #if wxPERL_USE_WAVE
948 #include <wx/wave.h>
949 #define XSubPPtmpAAAF 1
950
951
952 XS(XS_Wx__Wave_new); /* prototype to pass -Wmissing-prototypes */
953 XS(XS_Wx__Wave_new)
954 {
955 #ifdef dVAR
956     dVAR; dXSARGS;
957 #else
958     dXSARGS;
959 #endif
960     if (items != 2)
961        croak_xs_usage(cv,  "CLASS, fileName");
962     {
963         wxString        fileName;
964         char *  CLASS = (char *)SvPV_nolen(ST(0));
965         wxWave *        RETVAL;
966
967     WXSTRING_INPUT( fileName, wxString, ST(1) );
968
969         RETVAL = new wxWave(fileName);
970         ST(0) = sv_newmortal();
971     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Wave" );
972
973     }
974     XSRETURN(1);
975 }
976
977
978 XS(XS_Wx__Wave_IsOk); /* prototype to pass -Wmissing-prototypes */
979 XS(XS_Wx__Wave_IsOk)
980 {
981 #ifdef dVAR
982     dVAR; dXSARGS;
983 #else
984     dXSARGS;
985 #endif
986     if (items != 1)
987        croak_xs_usage(cv,  "THIS");
988     {
989         wxWave *    THIS = (wxWave *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Wave" );
990         bool    RETVAL;
991
992         RETVAL = THIS->IsOk();
993         ST(0) = boolSV(RETVAL);
994         sv_2mortal(ST(0));
995     }
996     XSRETURN(1);
997 }
998
999
1000 XS(XS_Wx__Wave_Play); /* prototype to pass -Wmissing-prototypes */
1001 XS(XS_Wx__Wave_Play)
1002 {
1003 #ifdef dVAR
1004     dVAR; dXSARGS;
1005 #else
1006     dXSARGS;
1007 #endif
1008     if (items < 1 || items > 3)
1009        croak_xs_usage(cv,  "THIS, async = true, looped = false");
1010     {
1011         bool    async;
1012         bool    looped;
1013         wxWave *    THIS = (wxWave *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Wave" );
1014         bool    RETVAL;
1015
1016         if (items < 2)
1017             async = true;
1018         else {
1019             async = (bool)SvTRUE(ST(1));
1020         }
1021
1022         if (items < 3)
1023             looped = false;
1024         else {
1025             looped = (bool)SvTRUE(ST(2));
1026         }
1027
1028         RETVAL = THIS->Play(async, looped);
1029         ST(0) = boolSV(RETVAL);
1030         sv_2mortal(ST(0));
1031     }
1032     XSRETURN(1);
1033 }
1034
1035 #endif
1036
1037 /* INCLUDE: Returning to 'XS/FontEnumerator.xs' from 'XS/Wave.xs' */
1038
1039 #include <wx/fontenum.h>
1040
1041 XS(XS_Wx__FontEnumerator_new); /* prototype to pass -Wmissing-prototypes */
1042 XS(XS_Wx__FontEnumerator_new)
1043 {
1044 #ifdef dVAR
1045     dVAR; dXSARGS;
1046 #else
1047     dXSARGS;
1048 #endif
1049     if (items != 1)
1050        croak_xs_usage(cv,  "CLASS");
1051     {
1052         char *  CLASS = (char *)SvPV_nolen(ST(0));
1053         wxFontEnumerator *      RETVAL;
1054
1055         RETVAL = new wxFontEnumerator();
1056         ST(0) = sv_newmortal();
1057     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::FontEnumerator" );
1058     wxPli_thread_sv_register( aTHX_ "Wx::FontEnumerator", RETVAL, ST(0) );
1059
1060     }
1061     XSRETURN(1);
1062 }
1063
1064
1065 XS(XS_Wx__FontEnumerator_CLONE); /* prototype to pass -Wmissing-prototypes */
1066 XS(XS_Wx__FontEnumerator_CLONE)
1067 {
1068 #ifdef dVAR
1069     dVAR; dXSARGS;
1070 #else
1071     dXSARGS;
1072 #endif
1073     if (items != 1)
1074        croak_xs_usage(cv,  "CLASS");
1075     {
1076         char *  CLASS = (char *)SvPV_nolen(ST(0));
1077     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
1078     }
1079     XSRETURN_EMPTY;
1080 }
1081
1082
1083 XS(XS_Wx__FontEnumerator_DESTROY); /* prototype to pass -Wmissing-prototypes */
1084 XS(XS_Wx__FontEnumerator_DESTROY)
1085 {
1086 #ifdef dVAR
1087     dVAR; dXSARGS;
1088 #else
1089     dXSARGS;
1090 #endif
1091     if (items != 1)
1092        croak_xs_usage(cv,  "THIS");
1093     {
1094         wxFontEnumerator *    THIS = (wxFontEnumerator *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FontEnumerator" );
1095     wxPli_thread_sv_unregister( aTHX_ "Wx::FontEnumerator", THIS, ST(0) );
1096     delete THIS;
1097     }
1098     XSRETURN_EMPTY;
1099 }
1100
1101
1102 XS(XS_Wx__FontEnumerator_EnumerateFacenames); /* prototype to pass -Wmissing-prototypes */
1103 XS(XS_Wx__FontEnumerator_EnumerateFacenames)
1104 {
1105 #ifdef dVAR
1106     dVAR; dXSARGS;
1107 #else
1108     dXSARGS;
1109 #endif
1110     if (items < 1 || items > 3)
1111        croak_xs_usage(cv,  "THIS, encoding = wxFONTENCODING_SYSTEM, fixedWidth = false");
1112     {
1113         wxFontEncoding  encoding;
1114         bool    fixedWidth;
1115         wxFontEnumerator *    THIS = (wxFontEnumerator *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FontEnumerator" );
1116         bool    RETVAL;
1117
1118         if (items < 2)
1119             encoding = wxFONTENCODING_SYSTEM;
1120         else {
1121             encoding = (wxFontEncoding)SvIV(ST(1));
1122         }
1123
1124         if (items < 3)
1125             fixedWidth = false;
1126         else {
1127             fixedWidth = (bool)SvTRUE(ST(2));
1128         }
1129
1130         RETVAL = THIS->EnumerateFacenames(encoding, fixedWidth);
1131         ST(0) = boolSV(RETVAL);
1132         sv_2mortal(ST(0));
1133     }
1134     XSRETURN(1);
1135 }
1136
1137
1138 XS(XS_Wx__FontEnumerator_EnumerateEncodings); /* prototype to pass -Wmissing-prototypes */
1139 XS(XS_Wx__FontEnumerator_EnumerateEncodings)
1140 {
1141 #ifdef dVAR
1142     dVAR; dXSARGS;
1143 #else
1144     dXSARGS;
1145 #endif
1146     if (items < 1 || items > 2)
1147        croak_xs_usage(cv,  "THIS, font = wxEmptyString");
1148     {
1149         wxString        font;
1150         wxFontEnumerator *    THIS = (wxFontEnumerator *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FontEnumerator" );
1151         bool    RETVAL;
1152
1153         if (items < 2)
1154             font = wxEmptyString;
1155         else {
1156     WXSTRING_INPUT( font, wxString, ST(1) );
1157         }
1158
1159         RETVAL = THIS->EnumerateEncodings(font);
1160         ST(0) = boolSV(RETVAL);
1161         sv_2mortal(ST(0));
1162     }
1163     XSRETURN(1);
1164 }
1165
1166
1167 XS(XS_Wx__FontEnumerator_GetEncodings); /* prototype to pass -Wmissing-prototypes */
1168 XS(XS_Wx__FontEnumerator_GetEncodings)
1169 {
1170 #ifdef dVAR
1171     dVAR; dXSARGS;
1172 #else
1173     dXSARGS;
1174 #endif
1175     if (items != 1)
1176        croak_xs_usage(cv,  "THIS");
1177     PERL_UNUSED_VAR(ax); /* -Wall */
1178     SP -= items;
1179     {
1180 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
1181     wxArrayString enc;
1182 #else
1183     wxArrayString* enc;
1184 #endif
1185         wxFontEnumerator *    THIS = (wxFontEnumerator *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FontEnumerator" );
1186     enc = THIS->GetEncodings();
1187 #if WXPERL_W_VERSION_LT( 2, 7, 0 )
1188     if( enc )
1189 #endif
1190     {
1191         PUTBACK;
1192 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
1193         wxPli_stringarray_push( aTHX_ enc );
1194 #else
1195         wxPli_stringarray_push( aTHX_ *enc );
1196 #endif
1197         SPAGAIN;
1198     }
1199         PUTBACK;
1200         return;
1201     }
1202 }
1203
1204
1205 XS(XS_Wx__FontEnumerator_GetFacenames); /* prototype to pass -Wmissing-prototypes */
1206 XS(XS_Wx__FontEnumerator_GetFacenames)
1207 {
1208 #ifdef dVAR
1209     dVAR; dXSARGS;
1210 #else
1211     dXSARGS;
1212 #endif
1213     if (items != 1)
1214        croak_xs_usage(cv,  "THIS");
1215     PERL_UNUSED_VAR(ax); /* -Wall */
1216     SP -= items;
1217     {
1218 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
1219     wxArrayString enc;
1220 #else
1221     wxArrayString* enc;
1222 #endif
1223         wxFontEnumerator *    THIS = (wxFontEnumerator *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FontEnumerator" );
1224     enc = THIS->GetFacenames();
1225 #if WXPERL_W_VERSION_LT( 2, 7, 0 )
1226     if( enc )
1227 #endif
1228     {
1229         PUTBACK;
1230 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
1231         wxPli_stringarray_push( aTHX_ enc );
1232 #else
1233         wxPli_stringarray_push( aTHX_ *enc );
1234 #endif
1235         SPAGAIN;
1236     }
1237         PUTBACK;
1238         return;
1239     }
1240 }
1241
1242 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1243 #define XSubPPtmpAAAG 1
1244
1245
1246 XS(XS_Wx__FontEnumerator_IsValidFacename); /* prototype to pass -Wmissing-prototypes */
1247 XS(XS_Wx__FontEnumerator_IsValidFacename)
1248 {
1249 #ifdef dVAR
1250     dVAR; dXSARGS;
1251 #else
1252     dXSARGS;
1253 #endif
1254     if (items != 1)
1255        croak_xs_usage(cv,  "facename");
1256     {
1257         wxString        facename;
1258         bool    RETVAL;
1259
1260     WXSTRING_INPUT( facename, wxString, ST(0) );
1261     RETVAL = wxFontEnumerator::IsValidFacename( facename );
1262         ST(0) = boolSV(RETVAL);
1263         sv_2mortal(ST(0));
1264     }
1265     XSRETURN(1);
1266 }
1267
1268 #endif
1269
1270 /* INCLUDE: Returning to 'XS/FontMapper.xs' from 'XS/FontEnumerator.xs' */
1271
1272 #include <wx/fontmap.h>
1273
1274 XS(XS_Wx__FontMapper_Get); /* prototype to pass -Wmissing-prototypes */
1275 XS(XS_Wx__FontMapper_Get)
1276 {
1277 #ifdef dVAR
1278     dVAR; dXSARGS;
1279 #else
1280     dXSARGS;
1281 #endif
1282     if (items != 0)
1283        croak_xs_usage(cv,  "");
1284     {
1285         wxFontMapper *  RETVAL;
1286     RETVAL = wxFontMapper::Get();
1287         ST(0) = sv_newmortal();
1288     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::FontMapper" );
1289
1290     }
1291     XSRETURN(1);
1292 }
1293
1294
1295 XS(XS_Wx__FontMapper_GetAltForEncoding); /* prototype to pass -Wmissing-prototypes */
1296 XS(XS_Wx__FontMapper_GetAltForEncoding)
1297 {
1298 #ifdef dVAR
1299     dVAR; dXSARGS;
1300 #else
1301     dXSARGS;
1302 #endif
1303     if (items < 2 || items > 4)
1304        croak_xs_usage(cv,  "THIS, encoding, facename = wxEmptyString, interactive = true");
1305     PERL_UNUSED_VAR(ax); /* -Wall */
1306     SP -= items;
1307     {
1308         wxFontEncoding  encoding = (wxFontEncoding)SvIV(ST(1));
1309         wxString        facename;
1310         bool    interactive;
1311     wxFontEncoding retval;
1312     bool result;
1313         wxFontMapper *    THIS = (wxFontMapper *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FontMapper" );
1314
1315         if (items < 3)
1316             facename = wxEmptyString;
1317         else {
1318     WXSTRING_INPUT( facename, wxString, ST(2) );
1319         }
1320
1321         if (items < 4)
1322             interactive = true;
1323         else {
1324             interactive = (bool)SvTRUE(ST(3));
1325         }
1326     result = THIS->GetAltForEncoding( encoding, &retval, facename,
1327                                       interactive );
1328     EXTEND( SP, 2 );
1329     PUSHs( boolSV( result ) );
1330     PUSHs( sv_2mortal( newSViv( retval ) ) );
1331         PUTBACK;
1332         return;
1333     }
1334 }
1335
1336
1337 XS(XS_Wx__FontMapper_IsEncodingAvailable); /* prototype to pass -Wmissing-prototypes */
1338 XS(XS_Wx__FontMapper_IsEncodingAvailable)
1339 {
1340 #ifdef dVAR
1341     dVAR; dXSARGS;
1342 #else
1343     dXSARGS;
1344 #endif
1345     if (items < 2 || items > 3)
1346        croak_xs_usage(cv,  "THIS, encoding, facename = wxEmptyString");
1347     {
1348         wxFontEncoding  encoding = (wxFontEncoding)SvIV(ST(1));
1349         wxString        facename;
1350         wxFontMapper *    THIS = (wxFontMapper *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FontMapper" );
1351         bool    RETVAL;
1352
1353         if (items < 3)
1354             facename = wxEmptyString;
1355         else {
1356     WXSTRING_INPUT( facename, wxString, ST(2) );
1357         }
1358
1359         RETVAL = THIS->IsEncodingAvailable(encoding, facename);
1360         ST(0) = boolSV(RETVAL);
1361         sv_2mortal(ST(0));
1362     }
1363     XSRETURN(1);
1364 }
1365
1366
1367 XS(XS_Wx__FontMapper_CharsetToEncoding); /* prototype to pass -Wmissing-prototypes */
1368 XS(XS_Wx__FontMapper_CharsetToEncoding)
1369 {
1370 #ifdef dVAR
1371     dVAR; dXSARGS;
1372 #else
1373     dXSARGS;
1374 #endif
1375     if (items < 2 || items > 3)
1376        croak_xs_usage(cv,  "THIS, charset, interactive = true");
1377     {
1378         wxString        charset;
1379         bool    interactive;
1380         wxFontMapper *    THIS = (wxFontMapper *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FontMapper" );
1381         wxFontEncoding  RETVAL;
1382         dXSTARG;
1383
1384     WXSTRING_INPUT( charset, wxString, ST(1) );
1385
1386         if (items < 3)
1387             interactive = true;
1388         else {
1389             interactive = (bool)SvTRUE(ST(2));
1390         }
1391
1392         RETVAL = THIS->CharsetToEncoding(charset, interactive);
1393         XSprePUSH; PUSHi((IV)RETVAL);
1394     }
1395     XSRETURN(1);
1396 }
1397
1398
1399 XS(XS_Wx__FontMapper_GetEncodingName); /* prototype to pass -Wmissing-prototypes */
1400 XS(XS_Wx__FontMapper_GetEncodingName)
1401 {
1402 #ifdef dVAR
1403     dVAR; dXSARGS;
1404 #else
1405     dXSARGS;
1406 #endif
1407     if (items != 1)
1408        croak_xs_usage(cv,  "encoding");
1409     {
1410         wxFontEncoding  encoding = (wxFontEncoding)SvIV(ST(0));
1411         wxString        RETVAL;
1412     RETVAL = wxFontMapper::GetEncodingName( encoding );
1413         ST(0) = sv_newmortal();
1414     WXSTRING_OUTPUT( RETVAL, ST(0) );
1415
1416     }
1417     XSRETURN(1);
1418 }
1419
1420
1421 XS(XS_Wx__FontMapper_GetEncodingDescription); /* prototype to pass -Wmissing-prototypes */
1422 XS(XS_Wx__FontMapper_GetEncodingDescription)
1423 {
1424 #ifdef dVAR
1425     dVAR; dXSARGS;
1426 #else
1427     dXSARGS;
1428 #endif
1429     if (items != 1)
1430        croak_xs_usage(cv,  "encoding");
1431     {
1432         wxFontEncoding  encoding = (wxFontEncoding)SvIV(ST(0));
1433         wxString        RETVAL;
1434     RETVAL = wxFontMapper::GetEncodingDescription( encoding );
1435         ST(0) = sv_newmortal();
1436     WXSTRING_OUTPUT( RETVAL, ST(0) );
1437
1438     }
1439     XSRETURN(1);
1440 }
1441
1442 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1443 #define XSubPPtmpAAAH 1
1444
1445
1446 XS(XS_Wx__FontMapper_GetAllEncodingNames); /* prototype to pass -Wmissing-prototypes */
1447 XS(XS_Wx__FontMapper_GetAllEncodingNames)
1448 {
1449 #ifdef dVAR
1450     dVAR; dXSARGS;
1451 #else
1452     dXSARGS;
1453 #endif
1454     if (items != 1)
1455        croak_xs_usage(cv,  "encoding");
1456     PERL_UNUSED_VAR(ax); /* -Wall */
1457     SP -= items;
1458     {
1459         wxFontEncoding  encoding = (wxFontEncoding)SvIV(ST(0));
1460     const wxChar** encodings = wxFontMapper::GetAllEncodingNames( encoding );
1461     if( !encodings )
1462         return;
1463     while( *encodings )
1464     {
1465         XPUSHs( wxPli_wxChar_2_sv( aTHX_ *encodings, sv_newmortal() ) );
1466         ++encodings;        
1467     }
1468         PUTBACK;
1469         return;
1470     }
1471 }
1472
1473 #endif
1474
1475 XS(XS_Wx__FontMapper_GetEncoding); /* prototype to pass -Wmissing-prototypes */
1476 XS(XS_Wx__FontMapper_GetEncoding)
1477 {
1478 #ifdef dVAR
1479     dVAR; dXSARGS;
1480 #else
1481     dXSARGS;
1482 #endif
1483     if (items != 2)
1484        croak_xs_usage(cv,  "THIS, n");
1485     {
1486         size_t    n = (size_t)SvUV( ST(1) );
1487         wxFontMapper *    THIS = (wxFontMapper *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FontMapper" );
1488         wxFontEncoding  RETVAL;
1489         dXSTARG;
1490     RETVAL = wxFontMapper::GetEncoding( n );
1491         XSprePUSH; PUSHi((IV)RETVAL);
1492     }
1493     XSRETURN(1);
1494 }
1495
1496
1497 XS(XS_Wx__FontMapper_GetEncodingFromName); /* prototype to pass -Wmissing-prototypes */
1498 XS(XS_Wx__FontMapper_GetEncodingFromName)
1499 {
1500 #ifdef dVAR
1501     dVAR; dXSARGS;
1502 #else
1503     dXSARGS;
1504 #endif
1505     if (items != 2)
1506        croak_xs_usage(cv,  "THIS, encoding");
1507     {
1508         wxString        encoding;
1509         wxFontMapper *    THIS = (wxFontMapper *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FontMapper" );
1510         wxFontEncoding  RETVAL;
1511         dXSTARG;
1512
1513     WXSTRING_INPUT( encoding, wxString, ST(1) );
1514     RETVAL = wxFontMapper::GetEncodingFromName( encoding );
1515         XSprePUSH; PUSHi((IV)RETVAL);
1516     }
1517     XSRETURN(1);
1518 }
1519
1520
1521 XS(XS_Wx__FontMapper_GetSupportedEncodingsCount); /* prototype to pass -Wmissing-prototypes */
1522 XS(XS_Wx__FontMapper_GetSupportedEncodingsCount)
1523 {
1524 #ifdef dVAR
1525     dVAR; dXSARGS;
1526 #else
1527     dXSARGS;
1528 #endif
1529     if (items != 1)
1530        croak_xs_usage(cv,  "THIS");
1531     {
1532         wxFontMapper *    THIS = (wxFontMapper *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FontMapper" );
1533         size_t  RETVAL;
1534         dXSTARG;
1535     RETVAL = wxFontMapper::GetSupportedEncodingsCount();
1536         XSprePUSH; PUSHu((UV)RETVAL );
1537     }
1538     XSRETURN(1);
1539 }
1540
1541
1542 XS(XS_Wx__FontMapper_SetDialogParent); /* prototype to pass -Wmissing-prototypes */
1543 XS(XS_Wx__FontMapper_SetDialogParent)
1544 {
1545 #ifdef dVAR
1546     dVAR; dXSARGS;
1547 #else
1548     dXSARGS;
1549 #endif
1550     if (items != 2)
1551        croak_xs_usage(cv,  "THIS, parent");
1552     {
1553         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
1554         wxFontMapper *    THIS = (wxFontMapper *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FontMapper" );
1555
1556         THIS->SetDialogParent(parent);
1557     }
1558     XSRETURN_EMPTY;
1559 }
1560
1561
1562 XS(XS_Wx__FontMapper_SetDialogTitle); /* prototype to pass -Wmissing-prototypes */
1563 XS(XS_Wx__FontMapper_SetDialogTitle)
1564 {
1565 #ifdef dVAR
1566     dVAR; dXSARGS;
1567 #else
1568     dXSARGS;
1569 #endif
1570     if (items != 2)
1571        croak_xs_usage(cv,  "THIS, title");
1572     {
1573         wxString        title;
1574         wxFontMapper *    THIS = (wxFontMapper *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FontMapper" );
1575
1576     WXSTRING_INPUT( title, wxString, ST(1) );
1577
1578         THIS->SetDialogTitle(title);
1579     }
1580     XSRETURN_EMPTY;
1581 }
1582
1583 #if WXPERL_W_VERSION_LT( 2, 7, 0 )
1584 #define XSubPPtmpAAAI 1
1585
1586
1587 XS(XS_Wx__FontMapper_SetConfig); /* prototype to pass -Wmissing-prototypes */
1588 XS(XS_Wx__FontMapper_SetConfig)
1589 {
1590 #ifdef dVAR
1591     dVAR; dXSARGS;
1592 #else
1593     dXSARGS;
1594 #endif
1595     if (items != 2)
1596        croak_xs_usage(cv,  "THIS, config");
1597     {
1598         wxConfigBase*    config = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::ConfigBase" );
1599         wxFontMapper *    THIS = (wxFontMapper *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FontMapper" );
1600
1601         THIS->SetConfig(config);
1602     }
1603     XSRETURN_EMPTY;
1604 }
1605
1606 #endif
1607
1608 XS(XS_Wx__FontMapper_SetConfigPath); /* prototype to pass -Wmissing-prototypes */
1609 XS(XS_Wx__FontMapper_SetConfigPath)
1610 {
1611 #ifdef dVAR
1612     dVAR; dXSARGS;
1613 #else
1614     dXSARGS;
1615 #endif
1616     if (items != 2)
1617        croak_xs_usage(cv,  "THIS, path");
1618     {
1619         wxString        path;
1620         wxFontMapper *    THIS = (wxFontMapper *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FontMapper" );
1621
1622     WXSTRING_INPUT( path, wxString, ST(1) );
1623
1624         THIS->SetConfigPath(path);
1625     }
1626     XSRETURN_EMPTY;
1627 }
1628
1629
1630 /* INCLUDE: Returning to 'XS/Process.xs' from 'XS/FontMapper.xs' */
1631
1632 #include <wx/process.h>
1633 #include "cpp/process.h"
1634 #include <wx/utils.h>
1635
1636 XS(XS_Wx__ProcessEvent_new); /* prototype to pass -Wmissing-prototypes */
1637 XS(XS_Wx__ProcessEvent_new)
1638 {
1639 #ifdef dVAR
1640     dVAR; dXSARGS;
1641 #else
1642     dXSARGS;
1643 #endif
1644     if (items < 1 || items > 4)
1645        croak_xs_usage(cv,  "CLASS, id = 0, pid = 0, status = 0");
1646     {
1647         int     id;
1648         int     pid;
1649         int     status;
1650         char *  CLASS = (char *)SvPV_nolen(ST(0));
1651         wxProcessEvent *        RETVAL;
1652
1653         if (items < 2)
1654             id = 0;
1655         else {
1656             id = (int)SvIV(ST(1));
1657         }
1658
1659         if (items < 3)
1660             pid = 0;
1661         else {
1662             pid = (int)SvIV(ST(2));
1663         }
1664
1665         if (items < 4)
1666             status = 0;
1667         else {
1668             status = (int)SvIV(ST(3));
1669         }
1670
1671         RETVAL = new wxProcessEvent(id, pid, status);
1672         ST(0) = sv_newmortal();
1673     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1674     wxPli_thread_sv_register( aTHX_ "Wx::ProcessEvent", RETVAL, ST(0) );
1675
1676     }
1677     XSRETURN(1);
1678 }
1679
1680
1681 XS(XS_Wx__ProcessEvent_GetPid); /* prototype to pass -Wmissing-prototypes */
1682 XS(XS_Wx__ProcessEvent_GetPid)
1683 {
1684 #ifdef dVAR
1685     dVAR; dXSARGS;
1686 #else
1687     dXSARGS;
1688 #endif
1689     if (items != 1)
1690        croak_xs_usage(cv,  "THIS");
1691     {
1692         wxProcessEvent *    THIS = (wxProcessEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ProcessEvent" );
1693         int     RETVAL;
1694         dXSTARG;
1695
1696         RETVAL = THIS->GetPid();
1697         XSprePUSH; PUSHi((IV)RETVAL);
1698     }
1699     XSRETURN(1);
1700 }
1701
1702
1703 XS(XS_Wx__ProcessEvent_GetExitCode); /* prototype to pass -Wmissing-prototypes */
1704 XS(XS_Wx__ProcessEvent_GetExitCode)
1705 {
1706 #ifdef dVAR
1707     dVAR; dXSARGS;
1708 #else
1709     dXSARGS;
1710 #endif
1711     if (items != 1)
1712        croak_xs_usage(cv,  "THIS");
1713     {
1714         wxProcessEvent *    THIS = (wxProcessEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ProcessEvent" );
1715         int     RETVAL;
1716         dXSTARG;
1717
1718         RETVAL = THIS->GetExitCode();
1719         XSprePUSH; PUSHi((IV)RETVAL);
1720     }
1721     XSRETURN(1);
1722 }
1723
1724
1725 XS(XS_Wx__Process_new); /* prototype to pass -Wmissing-prototypes */
1726 XS(XS_Wx__Process_new)
1727 {
1728 #ifdef dVAR
1729     dVAR; dXSARGS;
1730 #else
1731     dXSARGS;
1732 #endif
1733     if (items < 1 || items > 3)
1734        croak_xs_usage(cv,  "CLASS, parent = 0, id = -1");
1735     {
1736         wxEvtHandler*   parent;
1737         int     id;
1738         char *  CLASS = (char *)SvPV_nolen(ST(0));
1739         wxProcess *     RETVAL;
1740
1741         if (items < 2)
1742             parent = 0;
1743         else {
1744     parent = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::EvtHandler" );
1745         }
1746
1747         if (items < 3)
1748             id = -1;
1749         else {
1750             id = (int)SvIV(ST(2));
1751         }
1752     RETVAL = new wxPliProcess( CLASS, parent, id );
1753         ST(0) = sv_newmortal();
1754     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1755
1756     }
1757     XSRETURN(1);
1758 }
1759
1760
1761 XS(XS_Wx__Process_Destroy); /* prototype to pass -Wmissing-prototypes */
1762 XS(XS_Wx__Process_Destroy)
1763 {
1764 #ifdef dVAR
1765     dVAR; dXSARGS;
1766 #else
1767     dXSARGS;
1768 #endif
1769     if (items != 1)
1770        croak_xs_usage(cv,  "THIS");
1771     {
1772         wxProcess *    THIS = (wxProcess *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Process" );
1773     delete THIS;
1774     }
1775     XSRETURN_EMPTY;
1776 }
1777
1778
1779 XS(XS_Wx__Process_CloseOutput); /* prototype to pass -Wmissing-prototypes */
1780 XS(XS_Wx__Process_CloseOutput)
1781 {
1782 #ifdef dVAR
1783     dVAR; dXSARGS;
1784 #else
1785     dXSARGS;
1786 #endif
1787     if (items != 1)
1788        croak_xs_usage(cv,  "THIS");
1789     {
1790         wxProcess *    THIS = (wxProcess *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Process" );
1791
1792         THIS->CloseOutput();
1793     }
1794     XSRETURN_EMPTY;
1795 }
1796
1797
1798 XS(XS_Wx__Process_Detach); /* prototype to pass -Wmissing-prototypes */
1799 XS(XS_Wx__Process_Detach)
1800 {
1801 #ifdef dVAR
1802     dVAR; dXSARGS;
1803 #else
1804     dXSARGS;
1805 #endif
1806     if (items != 1)
1807        croak_xs_usage(cv,  "THIS");
1808     {
1809         wxProcess *    THIS = (wxProcess *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Process" );
1810
1811         THIS->Detach();
1812     }
1813     XSRETURN_EMPTY;
1814 }
1815
1816
1817 XS(XS_Wx__Process_GetErrorStream); /* prototype to pass -Wmissing-prototypes */
1818 XS(XS_Wx__Process_GetErrorStream)
1819 {
1820 #ifdef dVAR
1821     dVAR; dXSARGS;
1822 #else
1823     dXSARGS;
1824 #endif
1825     if (items != 1)
1826        croak_xs_usage(cv,  "THIS");
1827     {
1828         wxProcess *    THIS = (wxProcess *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Process" );
1829         wxInputStream * RETVAL;
1830
1831         RETVAL = THIS->GetErrorStream();
1832         ST(0) = sv_newmortal();
1833     wxPli_stream_2_sv( aTHX_ ST(0), RETVAL, "Wx::InputStream" );
1834
1835     }
1836     XSRETURN(1);
1837 }
1838
1839
1840 XS(XS_Wx__Process_GetInputStream); /* prototype to pass -Wmissing-prototypes */
1841 XS(XS_Wx__Process_GetInputStream)
1842 {
1843 #ifdef dVAR
1844     dVAR; dXSARGS;
1845 #else
1846     dXSARGS;
1847 #endif
1848     if (items != 1)
1849        croak_xs_usage(cv,  "THIS");
1850     {
1851         wxProcess *    THIS = (wxProcess *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Process" );
1852         wxInputStream * RETVAL;
1853
1854         RETVAL = THIS->GetInputStream();
1855         ST(0) = sv_newmortal();
1856     wxPli_stream_2_sv( aTHX_ ST(0), RETVAL, "Wx::InputStream" );
1857
1858     }
1859     XSRETURN(1);
1860 }
1861
1862
1863 XS(XS_Wx__Process_GetOutputStream); /* prototype to pass -Wmissing-prototypes */
1864 XS(XS_Wx__Process_GetOutputStream)
1865 {
1866 #ifdef dVAR
1867     dVAR; dXSARGS;
1868 #else
1869     dXSARGS;
1870 #endif
1871     if (items != 1)
1872        croak_xs_usage(cv,  "THIS");
1873     {
1874         wxProcess *    THIS = (wxProcess *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Process" );
1875         wxOutputStream *        RETVAL;
1876
1877         RETVAL = THIS->GetOutputStream();
1878         ST(0) = sv_newmortal();
1879     wxPli_stream_2_sv( aTHX_ ST(0), RETVAL, "Wx::OutputStream" );
1880
1881     }
1882     XSRETURN(1);
1883 }
1884
1885
1886 XS(XS_Wx__Process_IsErrorAvailable); /* prototype to pass -Wmissing-prototypes */
1887 XS(XS_Wx__Process_IsErrorAvailable)
1888 {
1889 #ifdef dVAR
1890     dVAR; dXSARGS;
1891 #else
1892     dXSARGS;
1893 #endif
1894     if (items != 1)
1895        croak_xs_usage(cv,  "THIS");
1896     {
1897         wxProcess *    THIS = (wxProcess *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Process" );
1898         bool    RETVAL;
1899
1900         RETVAL = THIS->IsErrorAvailable();
1901         ST(0) = boolSV(RETVAL);
1902         sv_2mortal(ST(0));
1903     }
1904     XSRETURN(1);
1905 }
1906
1907
1908 XS(XS_Wx__Process_IsInputAvailable); /* prototype to pass -Wmissing-prototypes */
1909 XS(XS_Wx__Process_IsInputAvailable)
1910 {
1911 #ifdef dVAR
1912     dVAR; dXSARGS;
1913 #else
1914     dXSARGS;
1915 #endif
1916     if (items != 1)
1917        croak_xs_usage(cv,  "THIS");
1918     {
1919         wxProcess *    THIS = (wxProcess *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Process" );
1920         bool    RETVAL;
1921
1922         RETVAL = THIS->IsInputAvailable();
1923         ST(0) = boolSV(RETVAL);
1924         sv_2mortal(ST(0));
1925     }
1926     XSRETURN(1);
1927 }
1928
1929
1930 XS(XS_Wx__Process_IsInputOpened); /* prototype to pass -Wmissing-prototypes */
1931 XS(XS_Wx__Process_IsInputOpened)
1932 {
1933 #ifdef dVAR
1934     dVAR; dXSARGS;
1935 #else
1936     dXSARGS;
1937 #endif
1938     if (items != 1)
1939        croak_xs_usage(cv,  "THIS");
1940     {
1941         wxProcess *    THIS = (wxProcess *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Process" );
1942         bool    RETVAL;
1943
1944         RETVAL = THIS->IsInputOpened();
1945         ST(0) = boolSV(RETVAL);
1946         sv_2mortal(ST(0));
1947     }
1948     XSRETURN(1);
1949 }
1950
1951 #if WXPERL_W_VERSION_LT( 2, 5, 4 )
1952 #define wxKILL_NOCHILDREN 0
1953 #endif
1954
1955 XS(XS_Wx__Process_Kill); /* prototype to pass -Wmissing-prototypes */
1956 XS(XS_Wx__Process_Kill)
1957 {
1958 #ifdef dVAR
1959     dVAR; dXSARGS;
1960 #else
1961     dXSARGS;
1962 #endif
1963     if (items < 1 || items > 3)
1964        croak_xs_usage(cv,  "pid, signal = wxSIGNONE, flags = wxKILL_NOCHILDREN");
1965     {
1966         int     pid = (int)SvIV(ST(0));
1967         wxSignal        signal;
1968         int     flags;
1969         wxKillError     RETVAL;
1970         dXSTARG;
1971
1972         if (items < 2)
1973             signal = wxSIGNONE;
1974         else {
1975             signal = (wxSignal)SvIV(ST(1));
1976         }
1977
1978         if (items < 3)
1979             flags = wxKILL_NOCHILDREN;
1980         else {
1981             flags = (int)SvIV(ST(2));
1982         }
1983 #if WXPERL_W_VERSION_GE( 2, 5, 4 )
1984     RETVAL = wxProcess::Kill( pid, signal, flags );
1985 #else
1986     RETVAL = wxProcess::Kill( pid, signal );
1987 #endif
1988         XSprePUSH; PUSHi((IV)RETVAL);
1989     }
1990     XSRETURN(1);
1991 }
1992
1993
1994 XS(XS_Wx__Process_Exists); /* prototype to pass -Wmissing-prototypes */
1995 XS(XS_Wx__Process_Exists)
1996 {
1997 #ifdef dVAR
1998     dVAR; dXSARGS;
1999 #else
2000     dXSARGS;
2001 #endif
2002     if (items != 1)
2003        croak_xs_usage(cv,  "pid");
2004     {
2005         int     pid = (int)SvIV(ST(0));
2006         bool    RETVAL;
2007     RETVAL = wxProcess::Exists( pid );
2008         ST(0) = boolSV(RETVAL);
2009         sv_2mortal(ST(0));
2010     }
2011     XSRETURN(1);
2012 }
2013
2014
2015 XS(XS_Wx__Process_OnTerminate); /* prototype to pass -Wmissing-prototypes */
2016 XS(XS_Wx__Process_OnTerminate)
2017 {
2018 #ifdef dVAR
2019     dVAR; dXSARGS;
2020 #else
2021     dXSARGS;
2022 #endif
2023     if (items != 3)
2024        croak_xs_usage(cv,  "THIS, pid, status");
2025     {
2026         int     pid = (int)SvIV(ST(1));
2027         int     status = (int)SvIV(ST(2));
2028         wxProcess *    THIS = (wxProcess *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Process" );
2029     THIS->wxProcess::OnTerminate( pid, status );
2030     }
2031     XSRETURN_EMPTY;
2032 }
2033
2034
2035 XS(XS_Wx__Process_Redirect); /* prototype to pass -Wmissing-prototypes */
2036 XS(XS_Wx__Process_Redirect)
2037 {
2038 #ifdef dVAR
2039     dVAR; dXSARGS;
2040 #else
2041     dXSARGS;
2042 #endif
2043     if (items != 1)
2044        croak_xs_usage(cv,  "THIS");
2045     {
2046         wxProcess *    THIS = (wxProcess *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Process" );
2047
2048         THIS->Redirect();
2049     }
2050     XSRETURN_EMPTY;
2051 }
2052
2053
2054 XS(XS_Wx__Process_Open); /* prototype to pass -Wmissing-prototypes */
2055 XS(XS_Wx__Process_Open)
2056 {
2057 #ifdef dVAR
2058     dVAR; dXSARGS;
2059 #else
2060     dXSARGS;
2061 #endif
2062     if (items < 1 || items > 2)
2063        croak_xs_usage(cv,  "cmd, flags = wxEXEC_ASYNC");
2064     {
2065         wxString        cmd;
2066         int     flags;
2067         wxProcess *     RETVAL;
2068
2069     WXSTRING_INPUT( cmd, wxString, ST(0) );
2070
2071         if (items < 2)
2072             flags = wxEXEC_ASYNC;
2073         else {
2074             flags = (int)SvIV(ST(1));
2075         }
2076     RETVAL = wxProcess::Open( cmd, flags );
2077         ST(0) = sv_newmortal();
2078     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2079
2080     }
2081     XSRETURN(1);
2082 }
2083
2084 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
2085 #define XSubPPtmpAAAJ 1
2086
2087
2088 XS(XS_Wx__Process_GetPid); /* prototype to pass -Wmissing-prototypes */
2089 XS(XS_Wx__Process_GetPid)
2090 {
2091 #ifdef dVAR
2092     dVAR; dXSARGS;
2093 #else
2094     dXSARGS;
2095 #endif
2096     if (items != 1)
2097        croak_xs_usage(cv,  "THIS");
2098     {
2099         wxProcess *    THIS = (wxProcess *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Process" );
2100         int     RETVAL;
2101         dXSTARG;
2102
2103         RETVAL = THIS->GetPid();
2104         XSprePUSH; PUSHi((IV)RETVAL);
2105     }
2106     XSRETURN(1);
2107 }
2108
2109 #endif
2110
2111 XS(XS_Wx_ExecuteCommand); /* prototype to pass -Wmissing-prototypes */
2112 XS(XS_Wx_ExecuteCommand)
2113 {
2114 #ifdef dVAR
2115     dVAR; dXSARGS;
2116 #else
2117     dXSARGS;
2118 #endif
2119     if (items < 1 || items > 3)
2120        croak_xs_usage(cv,  "command, sync = wxEXEC_ASYNC, callback = 0");
2121     {
2122         wxString        command;
2123         int     sync;
2124         wxProcess*      callback;
2125         long    RETVAL;
2126         dXSTARG;
2127
2128     WXSTRING_INPUT( command, wxString, ST(0) );
2129
2130         if (items < 2)
2131             sync = wxEXEC_ASYNC;
2132         else {
2133             sync = (int)SvIV(ST(1));
2134         }
2135
2136         if (items < 3)
2137             callback = 0;
2138         else {
2139     callback = (wxProcess *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Process" );
2140         }
2141     RETVAL = wxExecute( command, sync, callback );
2142         XSprePUSH; PUSHi((IV)RETVAL);
2143     }
2144     XSRETURN(1);
2145 }
2146
2147 #if wxUSE_UNICODE
2148 #define XSubPPtmpAAAK 1
2149
2150
2151 XS(XS_Wx_ExecuteArgs); /* prototype to pass -Wmissing-prototypes */
2152 XS(XS_Wx_ExecuteArgs)
2153 {
2154 #ifdef dVAR
2155     dVAR; dXSARGS;
2156 #else
2157     dXSARGS;
2158 #endif
2159     if (items < 1 || items > 3)
2160        croak_xs_usage(cv,  "args, sync = wxEXEC_ASYNC, callback = 0");
2161     {
2162         SV*     args = ST(0);
2163         int     sync;
2164         wxProcess*      callback;
2165     wxChar** argv;
2166     wxChar** t;
2167     int n, i;
2168         long    RETVAL;
2169         dXSTARG;
2170
2171         if (items < 2)
2172             sync = wxEXEC_ASYNC;
2173         else {
2174             sync = (int)SvIV(ST(1));
2175         }
2176
2177         if (items < 3)
2178             callback = 0;
2179         else {
2180     callback = (wxProcess *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Process" );
2181         }
2182     n = wxPli_av_2_wxcharparray( aTHX_ args, &t );
2183     argv = new wxChar*[n+1];
2184     memcpy( argv, t, n*sizeof(char*) );
2185     argv[n] = 0;
2186     RETVAL = wxExecute( argv, sync, callback );
2187     for( i = 0; i < n; ++i )
2188         delete argv[i];
2189     delete[] argv;
2190     delete[] t;
2191         XSprePUSH; PUSHi((IV)RETVAL);
2192     }
2193     XSRETURN(1);
2194 }
2195
2196 #else
2197 #define XSubPPtmpAAAL 1
2198
2199
2200 XS(XS_Wx_ExecuteArgs); /* prototype to pass -Wmissing-prototypes */
2201 XS(XS_Wx_ExecuteArgs)
2202 {
2203 #ifdef dVAR
2204     dVAR; dXSARGS;
2205 #else
2206     dXSARGS;
2207 #endif
2208     if (items < 1 || items > 3)
2209        croak_xs_usage(cv,  "args, sync = wxEXEC_ASYNC, callback = 0");
2210     {
2211         SV*     args = ST(0);
2212         int     sync;
2213         wxProcess*      callback;
2214     char** argv;
2215     char** t;
2216     int n, i;
2217         long    RETVAL;
2218         dXSTARG;
2219
2220         if (items < 2)
2221             sync = wxEXEC_ASYNC;
2222         else {
2223             sync = (int)SvIV(ST(1));
2224         }
2225
2226         if (items < 3)
2227             callback = 0;
2228         else {
2229     callback = (wxProcess *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Process" );
2230         }
2231     n = wxPli_av_2_charparray( aTHX_ args, &t );
2232     argv = new char*[n+1];
2233     memcpy( argv, t, n*sizeof(char*) );
2234     argv[n] = 0;
2235     RETVAL = wxExecute( argv, sync, callback );
2236     for( i = 0; i < n; ++i )
2237         delete argv[i];
2238     delete[] argv;
2239     delete[] t;
2240         XSprePUSH; PUSHi((IV)RETVAL);
2241     }
2242     XSRETURN(1);
2243 }
2244
2245 #endif
2246
2247 XS(XS_Wx_ExecuteStdout); /* prototype to pass -Wmissing-prototypes */
2248 XS(XS_Wx_ExecuteStdout)
2249 {
2250 #ifdef dVAR
2251     dVAR; dXSARGS;
2252 #else
2253     dXSARGS;
2254 #endif
2255     if (items != 1)
2256        croak_xs_usage(cv,  "command");
2257     PERL_UNUSED_VAR(ax); /* -Wall */
2258     SP -= items;
2259     {
2260         wxString        command;
2261     wxArrayString out;
2262     AV* ret;
2263     long code;
2264
2265     WXSTRING_INPUT( command, wxString, ST(0) );
2266     code = wxExecute( command, out );
2267     ret = wxPli_stringarray_2_av( aTHX_ out );
2268     EXTEND( SP, 2 );
2269     PUSHs( sv_2mortal( newSViv( code ) ) );
2270     PUSHs( sv_2mortal( newRV_noinc( (SV*)ret ) ) );
2271         PUTBACK;
2272         return;
2273     }
2274 }
2275
2276
2277 XS(XS_Wx_ExecuteStdoutStderr); /* prototype to pass -Wmissing-prototypes */
2278 XS(XS_Wx_ExecuteStdoutStderr)
2279 {
2280 #ifdef dVAR
2281     dVAR; dXSARGS;
2282 #else
2283     dXSARGS;
2284 #endif
2285     if (items != 1)
2286        croak_xs_usage(cv,  "command");
2287     PERL_UNUSED_VAR(ax); /* -Wall */
2288     SP -= items;
2289     {
2290         wxString        command;
2291     wxArrayString out, err;
2292     AV *rout, *rerr;
2293     long code;
2294
2295     WXSTRING_INPUT( command, wxString, ST(0) );
2296     code = wxExecute( command, out, err );
2297     rout = wxPli_stringarray_2_av( aTHX_ out );
2298     rerr = wxPli_stringarray_2_av( aTHX_ err );
2299     EXTEND( SP, 3 );
2300     PUSHs( sv_2mortal( newSViv( code ) ) );
2301     PUSHs( sv_2mortal( newRV_noinc( (SV*)rout ) ) );
2302     PUSHs( sv_2mortal( newRV_noinc( (SV*)rerr ) ) );
2303         PUTBACK;
2304         return;
2305     }
2306 }
2307
2308
2309 /* INCLUDE: Returning to 'XS/Config.xs' from 'XS/Process.xs' */
2310
2311 #include <wx/confbase.h>
2312
2313 XS(XS_Wx__ConfigBase_Destroy); /* prototype to pass -Wmissing-prototypes */
2314 XS(XS_Wx__ConfigBase_Destroy)
2315 {
2316 #ifdef dVAR
2317     dVAR; dXSARGS;
2318 #else
2319     dXSARGS;
2320 #endif
2321     if (items != 1)
2322        croak_xs_usage(cv,  "THIS");
2323     {
2324         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2325     delete THIS;
2326     }
2327     XSRETURN_EMPTY;
2328 }
2329
2330
2331 XS(XS_Wx__ConfigBase_Create); /* prototype to pass -Wmissing-prototypes */
2332 XS(XS_Wx__ConfigBase_Create)
2333 {
2334 #ifdef dVAR
2335     dVAR; dXSARGS;
2336 #else
2337     dXSARGS;
2338 #endif
2339     if (items != 0)
2340        croak_xs_usage(cv,  "");
2341     {
2342         wxConfigBase *  RETVAL;
2343     RETVAL = wxConfigBase::Create();
2344         ST(0) = sv_newmortal();
2345     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::ConfigBase" );
2346
2347     }
2348     XSRETURN(1);
2349 }
2350
2351
2352 XS(XS_Wx__ConfigBase_DontCreateOnDemand); /* prototype to pass -Wmissing-prototypes */
2353 XS(XS_Wx__ConfigBase_DontCreateOnDemand)
2354 {
2355 #ifdef dVAR
2356     dVAR; dXSARGS;
2357 #else
2358     dXSARGS;
2359 #endif
2360     if (items != 0)
2361        croak_xs_usage(cv,  "");
2362     {
2363     wxConfigBase::DontCreateOnDemand();
2364     }
2365     XSRETURN_EMPTY;
2366 }
2367
2368
2369 XS(XS_Wx__ConfigBase_DeleteAll); /* prototype to pass -Wmissing-prototypes */
2370 XS(XS_Wx__ConfigBase_DeleteAll)
2371 {
2372 #ifdef dVAR
2373     dVAR; dXSARGS;
2374 #else
2375     dXSARGS;
2376 #endif
2377     if (items != 1)
2378        croak_xs_usage(cv,  "THIS");
2379     {
2380         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2381         bool    RETVAL;
2382
2383         RETVAL = THIS->DeleteAll();
2384         ST(0) = boolSV(RETVAL);
2385         sv_2mortal(ST(0));
2386     }
2387     XSRETURN(1);
2388 }
2389
2390
2391 XS(XS_Wx__ConfigBase_DeleteEntry); /* prototype to pass -Wmissing-prototypes */
2392 XS(XS_Wx__ConfigBase_DeleteEntry)
2393 {
2394 #ifdef dVAR
2395     dVAR; dXSARGS;
2396 #else
2397     dXSARGS;
2398 #endif
2399     if (items < 2 || items > 3)
2400        croak_xs_usage(cv,  "THIS, key, deleteGroupIfEmpty = true");
2401     {
2402         wxString        key;
2403         bool    deleteGroupIfEmpty;
2404         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2405         bool    RETVAL;
2406
2407     WXSTRING_INPUT( key, wxString, ST(1) );
2408
2409         if (items < 3)
2410             deleteGroupIfEmpty = true;
2411         else {
2412             deleteGroupIfEmpty = (bool)SvTRUE(ST(2));
2413         }
2414
2415         RETVAL = THIS->DeleteEntry(key, deleteGroupIfEmpty);
2416         ST(0) = boolSV(RETVAL);
2417         sv_2mortal(ST(0));
2418     }
2419     XSRETURN(1);
2420 }
2421
2422
2423 XS(XS_Wx__ConfigBase_DeleteGroup); /* prototype to pass -Wmissing-prototypes */
2424 XS(XS_Wx__ConfigBase_DeleteGroup)
2425 {
2426 #ifdef dVAR
2427     dVAR; dXSARGS;
2428 #else
2429     dXSARGS;
2430 #endif
2431     if (items != 2)
2432        croak_xs_usage(cv,  "THIS, key");
2433     {
2434         wxString        key;
2435         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2436         bool    RETVAL;
2437
2438     WXSTRING_INPUT( key, wxString, ST(1) );
2439
2440         RETVAL = THIS->DeleteGroup(key);
2441         ST(0) = boolSV(RETVAL);
2442         sv_2mortal(ST(0));
2443     }
2444     XSRETURN(1);
2445 }
2446
2447
2448 XS(XS_Wx__ConfigBase_Exists); /* prototype to pass -Wmissing-prototypes */
2449 XS(XS_Wx__ConfigBase_Exists)
2450 {
2451 #ifdef dVAR
2452     dVAR; dXSARGS;
2453 #else
2454     dXSARGS;
2455 #endif
2456     if (items != 2)
2457        croak_xs_usage(cv,  "THIS, key");
2458     {
2459         wxString        key;
2460         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2461         bool    RETVAL;
2462
2463     WXSTRING_INPUT( key, wxString, ST(1) );
2464
2465         RETVAL = THIS->Exists(key);
2466         ST(0) = boolSV(RETVAL);
2467         sv_2mortal(ST(0));
2468     }
2469     XSRETURN(1);
2470 }
2471
2472
2473 XS(XS_Wx__ConfigBase_Flush); /* prototype to pass -Wmissing-prototypes */
2474 XS(XS_Wx__ConfigBase_Flush)
2475 {
2476 #ifdef dVAR
2477     dVAR; dXSARGS;
2478 #else
2479     dXSARGS;
2480 #endif
2481     if (items < 1 || items > 2)
2482        croak_xs_usage(cv,  "THIS, currentOnly = false");
2483     {
2484         bool    currentOnly;
2485         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2486         bool    RETVAL;
2487
2488         if (items < 2)
2489             currentOnly = false;
2490         else {
2491             currentOnly = (bool)SvTRUE(ST(1));
2492         }
2493
2494         RETVAL = THIS->Flush(currentOnly);
2495         ST(0) = boolSV(RETVAL);
2496         sv_2mortal(ST(0));
2497     }
2498     XSRETURN(1);
2499 }
2500
2501
2502 XS(XS_Wx__ConfigBase_Get); /* prototype to pass -Wmissing-prototypes */
2503 XS(XS_Wx__ConfigBase_Get)
2504 {
2505 #ifdef dVAR
2506     dVAR; dXSARGS;
2507 #else
2508     dXSARGS;
2509 #endif
2510     if (items < 0 || items > 1)
2511        croak_xs_usage(cv,  "createOnDemand = true");
2512     {
2513         bool    createOnDemand;
2514         wxConfigBase *  RETVAL;
2515
2516         if (items < 1)
2517             createOnDemand = true;
2518         else {
2519             createOnDemand = (bool)SvTRUE(ST(0));
2520         }
2521     RETVAL = wxConfigBase::Get( createOnDemand );
2522         ST(0) = sv_newmortal();
2523     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::ConfigBase" );
2524
2525     }
2526     XSRETURN(1);
2527 }
2528
2529
2530 XS(XS_Wx__ConfigBase_GetAppName); /* prototype to pass -Wmissing-prototypes */
2531 XS(XS_Wx__ConfigBase_GetAppName)
2532 {
2533 #ifdef dVAR
2534     dVAR; dXSARGS;
2535 #else
2536     dXSARGS;
2537 #endif
2538     if (items != 1)
2539        croak_xs_usage(cv,  "THIS");
2540     {
2541         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2542         wxString        RETVAL;
2543
2544         RETVAL = THIS->GetAppName();
2545         ST(0) = sv_newmortal();
2546     WXSTRING_OUTPUT( RETVAL, ST(0) );
2547
2548     }
2549     XSRETURN(1);
2550 }
2551
2552
2553 XS(XS_Wx__ConfigBase_GetEntryType); /* prototype to pass -Wmissing-prototypes */
2554 XS(XS_Wx__ConfigBase_GetEntryType)
2555 {
2556 #ifdef dVAR
2557     dVAR; dXSARGS;
2558 #else
2559     dXSARGS;
2560 #endif
2561     if (items != 2)
2562        croak_xs_usage(cv,  "THIS, name");
2563     {
2564         wxString        name;
2565         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2566         EntryType       RETVAL;
2567         dXSTARG;
2568
2569     WXSTRING_INPUT( name, wxString, ST(1) );
2570
2571         RETVAL = THIS->GetEntryType(name);
2572         XSprePUSH; PUSHi((IV)RETVAL);
2573     }
2574     XSRETURN(1);
2575 }
2576
2577
2578 XS(XS_Wx__ConfigBase_GetFirstEntry); /* prototype to pass -Wmissing-prototypes */
2579 XS(XS_Wx__ConfigBase_GetFirstEntry)
2580 {
2581 #ifdef dVAR
2582     dVAR; dXSARGS;
2583 #else
2584     dXSARGS;
2585 #endif
2586     if (items != 1)
2587        croak_xs_usage(cv,  "THIS");
2588     PERL_UNUSED_VAR(ax); /* -Wall */
2589     SP -= items;
2590     {
2591     wxString name;
2592     long index;
2593     bool ret;
2594         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2595     ret = THIS->GetFirstEntry( name, index );
2596     EXTEND( SP, 3 );
2597     PUSHs( sv_2mortal( newSViv( ret ) ) );
2598     SV* tmp = newSViv( 0 );
2599     WXSTRING_OUTPUT( name, tmp );
2600     PUSHs( sv_2mortal( tmp ) );
2601     PUSHs( sv_2mortal( newSViv( index ) ) );
2602         PUTBACK;
2603         return;
2604     }
2605 }
2606
2607
2608 XS(XS_Wx__ConfigBase_GetFirstGroup); /* prototype to pass -Wmissing-prototypes */
2609 XS(XS_Wx__ConfigBase_GetFirstGroup)
2610 {
2611 #ifdef dVAR
2612     dVAR; dXSARGS;
2613 #else
2614     dXSARGS;
2615 #endif
2616     if (items != 1)
2617        croak_xs_usage(cv,  "THIS");
2618     PERL_UNUSED_VAR(ax); /* -Wall */
2619     SP -= items;
2620     {
2621     wxString name;
2622     long index;
2623     bool ret;
2624         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2625     ret = THIS->GetFirstGroup( name, index );
2626     EXTEND( SP, 3 );
2627     PUSHs( sv_2mortal( newSViv( ret ) ) );
2628     SV* tmp = newSViv( 0 );
2629     WXSTRING_OUTPUT( name, tmp );
2630     PUSHs( sv_2mortal( tmp ) );
2631     PUSHs( sv_2mortal( newSViv( index ) ) );
2632         PUTBACK;
2633         return;
2634     }
2635 }
2636
2637
2638 XS(XS_Wx__ConfigBase_GetNextEntry); /* prototype to pass -Wmissing-prototypes */
2639 XS(XS_Wx__ConfigBase_GetNextEntry)
2640 {
2641 #ifdef dVAR
2642     dVAR; dXSARGS;
2643 #else
2644     dXSARGS;
2645 #endif
2646     if (items != 2)
2647        croak_xs_usage(cv,  "THIS, index");
2648     PERL_UNUSED_VAR(ax); /* -Wall */
2649     SP -= items;
2650     {
2651         long    index = (long)SvIV(ST(1));
2652     wxString name;
2653     bool ret;
2654         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2655     ret = THIS->GetNextEntry( name, index );
2656     EXTEND( SP, 3 );
2657     PUSHs( sv_2mortal( newSViv( ret ) ) );
2658     SV* tmp = newSViv( 0 );
2659     WXSTRING_OUTPUT( name, tmp );
2660     PUSHs( sv_2mortal( tmp ) );
2661     PUSHs( sv_2mortal( newSViv( index ) ) );
2662         PUTBACK;
2663         return;
2664     }
2665 }
2666
2667
2668 XS(XS_Wx__ConfigBase_GetNextGroup); /* prototype to pass -Wmissing-prototypes */
2669 XS(XS_Wx__ConfigBase_GetNextGroup)
2670 {
2671 #ifdef dVAR
2672     dVAR; dXSARGS;
2673 #else
2674     dXSARGS;
2675 #endif
2676     if (items != 2)
2677        croak_xs_usage(cv,  "THIS, index");
2678     PERL_UNUSED_VAR(ax); /* -Wall */
2679     SP -= items;
2680     {
2681         long    index = (long)SvIV(ST(1));
2682     wxString name;
2683     bool ret;
2684         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2685     ret = THIS->GetNextGroup( name, index );
2686     EXTEND( SP, 3 );
2687     PUSHs( sv_2mortal( newSViv( ret ) ) );
2688     SV* tmp = newSViv( 0 );
2689     WXSTRING_OUTPUT( name, tmp );
2690     PUSHs( sv_2mortal( tmp ) );
2691     PUSHs( sv_2mortal( newSViv( index ) ) );
2692         PUTBACK;
2693         return;
2694     }
2695 }
2696
2697
2698 XS(XS_Wx__ConfigBase_GetNumberOfEntries); /* prototype to pass -Wmissing-prototypes */
2699 XS(XS_Wx__ConfigBase_GetNumberOfEntries)
2700 {
2701 #ifdef dVAR
2702     dVAR; dXSARGS;
2703 #else
2704     dXSARGS;
2705 #endif
2706     if (items < 1 || items > 2)
2707        croak_xs_usage(cv,  "THIS, recursive = false");
2708     {
2709         bool    recursive;
2710         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2711         unsigned int    RETVAL;
2712         dXSTARG;
2713
2714         if (items < 2)
2715             recursive = false;
2716         else {
2717             recursive = (bool)SvTRUE(ST(1));
2718         }
2719
2720         RETVAL = THIS->GetNumberOfEntries(recursive);
2721         XSprePUSH; PUSHu((UV)RETVAL );
2722     }
2723     XSRETURN(1);
2724 }
2725
2726
2727 XS(XS_Wx__ConfigBase_GetNumberOfGroups); /* prototype to pass -Wmissing-prototypes */
2728 XS(XS_Wx__ConfigBase_GetNumberOfGroups)
2729 {
2730 #ifdef dVAR
2731     dVAR; dXSARGS;
2732 #else
2733     dXSARGS;
2734 #endif
2735     if (items < 1 || items > 2)
2736        croak_xs_usage(cv,  "THIS, recursive = false");
2737     {
2738         bool    recursive;
2739         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2740         unsigned int    RETVAL;
2741         dXSTARG;
2742
2743         if (items < 2)
2744             recursive = false;
2745         else {
2746             recursive = (bool)SvTRUE(ST(1));
2747         }
2748
2749         RETVAL = THIS->GetNumberOfGroups(recursive);
2750         XSprePUSH; PUSHu((UV)RETVAL );
2751     }
2752     XSRETURN(1);
2753 }
2754
2755
2756 XS(XS_Wx__ConfigBase_GetPath); /* prototype to pass -Wmissing-prototypes */
2757 XS(XS_Wx__ConfigBase_GetPath)
2758 {
2759 #ifdef dVAR
2760     dVAR; dXSARGS;
2761 #else
2762     dXSARGS;
2763 #endif
2764     if (items != 1)
2765        croak_xs_usage(cv,  "THIS");
2766     {
2767         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2768         wxString        RETVAL;
2769
2770         RETVAL = THIS->GetPath();
2771         ST(0) = sv_newmortal();
2772     WXSTRING_OUTPUT( RETVAL, ST(0) );
2773
2774     }
2775     XSRETURN(1);
2776 }
2777
2778
2779 XS(XS_Wx__ConfigBase_GetVendorName); /* prototype to pass -Wmissing-prototypes */
2780 XS(XS_Wx__ConfigBase_GetVendorName)
2781 {
2782 #ifdef dVAR
2783     dVAR; dXSARGS;
2784 #else
2785     dXSARGS;
2786 #endif
2787     if (items != 1)
2788        croak_xs_usage(cv,  "THIS");
2789     {
2790         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2791         wxString        RETVAL;
2792
2793         RETVAL = THIS->GetVendorName();
2794         ST(0) = sv_newmortal();
2795     WXSTRING_OUTPUT( RETVAL, ST(0) );
2796
2797     }
2798     XSRETURN(1);
2799 }
2800
2801
2802 XS(XS_Wx__ConfigBase_HasEntry); /* prototype to pass -Wmissing-prototypes */
2803 XS(XS_Wx__ConfigBase_HasEntry)
2804 {
2805 #ifdef dVAR
2806     dVAR; dXSARGS;
2807 #else
2808     dXSARGS;
2809 #endif
2810     if (items != 2)
2811        croak_xs_usage(cv,  "THIS, name");
2812     {
2813         wxString        name;
2814         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2815         bool    RETVAL;
2816
2817     WXSTRING_INPUT( name, wxString, ST(1) );
2818
2819         RETVAL = THIS->HasEntry(name);
2820         ST(0) = boolSV(RETVAL);
2821         sv_2mortal(ST(0));
2822     }
2823     XSRETURN(1);
2824 }
2825
2826
2827 XS(XS_Wx__ConfigBase_HasGroup); /* prototype to pass -Wmissing-prototypes */
2828 XS(XS_Wx__ConfigBase_HasGroup)
2829 {
2830 #ifdef dVAR
2831     dVAR; dXSARGS;
2832 #else
2833     dXSARGS;
2834 #endif
2835     if (items != 2)
2836        croak_xs_usage(cv,  "THIS, name");
2837     {
2838         wxString        name;
2839         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2840         bool    RETVAL;
2841
2842     WXSTRING_INPUT( name, wxString, ST(1) );
2843
2844         RETVAL = THIS->HasGroup(name);
2845         ST(0) = boolSV(RETVAL);
2846         sv_2mortal(ST(0));
2847     }
2848     XSRETURN(1);
2849 }
2850
2851
2852 XS(XS_Wx__ConfigBase_IsExpandingEnvVars); /* prototype to pass -Wmissing-prototypes */
2853 XS(XS_Wx__ConfigBase_IsExpandingEnvVars)
2854 {
2855 #ifdef dVAR
2856     dVAR; dXSARGS;
2857 #else
2858     dXSARGS;
2859 #endif
2860     if (items != 1)
2861        croak_xs_usage(cv,  "THIS");
2862     {
2863         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2864         bool    RETVAL;
2865
2866         RETVAL = THIS->IsExpandingEnvVars();
2867         ST(0) = boolSV(RETVAL);
2868         sv_2mortal(ST(0));
2869     }
2870     XSRETURN(1);
2871 }
2872
2873
2874 XS(XS_Wx__ConfigBase_IsRecordingDefaults); /* prototype to pass -Wmissing-prototypes */
2875 XS(XS_Wx__ConfigBase_IsRecordingDefaults)
2876 {
2877 #ifdef dVAR
2878     dVAR; dXSARGS;
2879 #else
2880     dXSARGS;
2881 #endif
2882     if (items != 1)
2883        croak_xs_usage(cv,  "THIS");
2884     {
2885         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2886         bool    RETVAL;
2887
2888         RETVAL = THIS->IsRecordingDefaults();
2889         ST(0) = boolSV(RETVAL);
2890         sv_2mortal(ST(0));
2891     }
2892     XSRETURN(1);
2893 }
2894
2895
2896 XS(XS_Wx__ConfigBase_Read); /* prototype to pass -Wmissing-prototypes */
2897 XS(XS_Wx__ConfigBase_Read)
2898 {
2899 #ifdef dVAR
2900     dVAR; dXSARGS;
2901 #else
2902     dXSARGS;
2903 #endif
2904     if (items < 2 || items > 3)
2905        croak_xs_usage(cv,  "THIS, key, def = wxEmptyString");
2906     {
2907         wxString        key;
2908         wxString        def;
2909         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2910         wxString        RETVAL;
2911
2912     WXSTRING_INPUT( key, wxString, ST(1) );
2913
2914         if (items < 3)
2915             def = wxEmptyString;
2916         else {
2917     WXSTRING_INPUT( def, wxString, ST(2) );
2918         }
2919     THIS->Read( key, &RETVAL, def );
2920         ST(0) = sv_newmortal();
2921     WXSTRING_OUTPUT( RETVAL, ST(0) );
2922
2923     }
2924     XSRETURN(1);
2925 }
2926
2927
2928 XS(XS_Wx__ConfigBase_ReadInt); /* prototype to pass -Wmissing-prototypes */
2929 XS(XS_Wx__ConfigBase_ReadInt)
2930 {
2931 #ifdef dVAR
2932     dVAR; dXSARGS;
2933 #else
2934     dXSARGS;
2935 #endif
2936     if (items < 2 || items > 3)
2937        croak_xs_usage(cv,  "THIS, key, def = 0");
2938     {
2939         wxString        key;
2940         long    def;
2941         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2942         long    RETVAL;
2943         dXSTARG;
2944
2945     WXSTRING_INPUT( key, wxString, ST(1) );
2946
2947         if (items < 3)
2948             def = 0;
2949         else {
2950             def = (long)SvIV(ST(2));
2951         }
2952     THIS->Read( key, &RETVAL, def );
2953         XSprePUSH; PUSHi((IV)RETVAL);
2954     }
2955     XSRETURN(1);
2956 }
2957
2958 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
2959 #define XSubPPtmpAAAM 1
2960
2961
2962 XS(XS_Wx__ConfigBase_ReadLong); /* prototype to pass -Wmissing-prototypes */
2963 XS(XS_Wx__ConfigBase_ReadLong)
2964 {
2965 #ifdef dVAR
2966     dVAR; dXSARGS;
2967 #else
2968     dXSARGS;
2969 #endif
2970     if (items < 2 || items > 3)
2971        croak_xs_usage(cv,  "THIS, key, def = 0");
2972     {
2973         wxString        key;
2974         long    def;
2975         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
2976         long    RETVAL;
2977         dXSTARG;
2978
2979     WXSTRING_INPUT( key, wxString, ST(1) );
2980
2981         if (items < 3)
2982             def = 0;
2983         else {
2984             def = (long)SvIV(ST(2));
2985         }
2986
2987         RETVAL = THIS->ReadLong(key, def);
2988         XSprePUSH; PUSHi((IV)RETVAL);
2989     }
2990     XSRETURN(1);
2991 }
2992
2993
2994 XS(XS_Wx__ConfigBase_ReadDouble); /* prototype to pass -Wmissing-prototypes */
2995 XS(XS_Wx__ConfigBase_ReadDouble)
2996 {
2997 #ifdef dVAR
2998     dVAR; dXSARGS;
2999 #else
3000     dXSARGS;
3001 #endif
3002     if (items < 2 || items > 3)
3003        croak_xs_usage(cv,  "THIS, key, def = 0.0");
3004     {
3005         wxString        key;
3006         double  def;
3007         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
3008         double  RETVAL;
3009         dXSTARG;
3010
3011     WXSTRING_INPUT( key, wxString, ST(1) );
3012
3013         if (items < 3)
3014             def = 0.0;
3015         else {
3016             def = (double)SvNV(ST(2));
3017         }
3018
3019         RETVAL = THIS->ReadDouble(key, def);
3020         XSprePUSH; PUSHn((double)RETVAL);
3021     }
3022     XSRETURN(1);
3023 }
3024
3025
3026 XS(XS_Wx__ConfigBase_ReadBool); /* prototype to pass -Wmissing-prototypes */
3027 XS(XS_Wx__ConfigBase_ReadBool)
3028 {
3029 #ifdef dVAR
3030     dVAR; dXSARGS;
3031 #else
3032     dXSARGS;
3033 #endif
3034     if (items < 2 || items > 3)
3035        croak_xs_usage(cv,  "THIS, key, def = false");
3036     {
3037         wxString        key;
3038         bool    def;
3039         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
3040         bool    RETVAL;
3041
3042     WXSTRING_INPUT( key, wxString, ST(1) );
3043
3044         if (items < 3)
3045             def = false;
3046         else {
3047             def = (bool)SvTRUE(ST(2));
3048         }
3049
3050         RETVAL = THIS->ReadBool(key, def);
3051         ST(0) = boolSV(RETVAL);
3052         sv_2mortal(ST(0));
3053     }
3054     XSRETURN(1);
3055 }
3056
3057 #else
3058 #define XSubPPtmpAAAN 1
3059
3060
3061 XS(XS_Wx__ConfigBase_ReadBool); /* prototype to pass -Wmissing-prototypes */
3062 XS(XS_Wx__ConfigBase_ReadBool)
3063 {
3064 #ifdef dVAR
3065     dVAR; dXSARGS;
3066 #else
3067     dXSARGS;
3068 #endif
3069     if (items < 2 || items > 3)
3070        croak_xs_usage(cv,  "THIS, key, def = false");
3071     {
3072         wxString        key;
3073         bool    def;
3074         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
3075         bool    RETVAL;
3076
3077     WXSTRING_INPUT( key, wxString, ST(1) );
3078
3079         if (items < 3)
3080             def = false;
3081         else {
3082             def = (bool)SvTRUE(ST(2));
3083         }
3084     THIS->Read( key, &RETVAL, def );
3085         ST(0) = boolSV(RETVAL);
3086         sv_2mortal(ST(0));
3087     }
3088     XSRETURN(1);
3089 }
3090
3091 #endif
3092 #if WXPERL_W_VERSION_GE( 2, 9, 0 ) && wxUSE_BASE64
3093 #define XSubPPtmpAAAO 1
3094
3095
3096 XS(XS_Wx__ConfigBase_ReadBinary); /* prototype to pass -Wmissing-prototypes */
3097 XS(XS_Wx__ConfigBase_ReadBinary)
3098 {
3099 #ifdef dVAR
3100     dVAR; dXSARGS;
3101 #else
3102     dXSARGS;
3103 #endif
3104     if (items != 2)
3105        croak_xs_usage(cv,  "THIS, key");
3106     {
3107         wxString        key;
3108         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
3109         SV *    RETVAL;
3110
3111     WXSTRING_INPUT( key, wxString, ST(1) );
3112     wxMemoryBuffer data;
3113     THIS->Read( key, &data );
3114     RETVAL = newSVpvn( (const char*)data.GetData(), data.GetDataLen() );
3115         ST(0) = RETVAL;
3116         sv_2mortal(ST(0));
3117     }
3118     XSRETURN(1);
3119 }
3120
3121 #endif
3122
3123 XS(XS_Wx__ConfigBase_RenameEntry); /* prototype to pass -Wmissing-prototypes */
3124 XS(XS_Wx__ConfigBase_RenameEntry)
3125 {
3126 #ifdef dVAR
3127     dVAR; dXSARGS;
3128 #else
3129     dXSARGS;
3130 #endif
3131     if (items != 3)
3132        croak_xs_usage(cv,  "THIS, oldName, newName");
3133     {
3134         wxString        oldName;
3135         wxString        newName;
3136         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
3137         bool    RETVAL;
3138
3139     WXSTRING_INPUT( oldName, wxString, ST(1) );
3140
3141     WXSTRING_INPUT( newName, wxString, ST(2) );
3142
3143         RETVAL = THIS->RenameEntry(oldName, newName);
3144         ST(0) = boolSV(RETVAL);
3145         sv_2mortal(ST(0));
3146     }
3147     XSRETURN(1);
3148 }
3149
3150
3151 XS(XS_Wx__ConfigBase_RenameGroup); /* prototype to pass -Wmissing-prototypes */
3152 XS(XS_Wx__ConfigBase_RenameGroup)
3153 {
3154 #ifdef dVAR
3155     dVAR; dXSARGS;
3156 #else
3157     dXSARGS;
3158 #endif
3159     if (items != 3)
3160        croak_xs_usage(cv,  "THIS, oldName, newName");
3161     {
3162         wxString        oldName;
3163         wxString        newName;
3164         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
3165         bool    RETVAL;
3166
3167     WXSTRING_INPUT( oldName, wxString, ST(1) );
3168
3169     WXSTRING_INPUT( newName, wxString, ST(2) );
3170
3171         RETVAL = THIS->RenameGroup(oldName, newName);
3172         ST(0) = boolSV(RETVAL);
3173         sv_2mortal(ST(0));
3174     }
3175     XSRETURN(1);
3176 }
3177
3178
3179 XS(XS_Wx__ConfigBase_Set); /* prototype to pass -Wmissing-prototypes */
3180 XS(XS_Wx__ConfigBase_Set)
3181 {
3182 #ifdef dVAR
3183     dVAR; dXSARGS;
3184 #else
3185     dXSARGS;
3186 #endif
3187     if (items != 1)
3188        croak_xs_usage(cv,  "config");
3189     {
3190         wxConfigBase*    config = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
3191     wxConfigBase::Set( config );
3192     }
3193     XSRETURN_EMPTY;
3194 }
3195
3196
3197 XS(XS_Wx__ConfigBase_SetExpandEnvVars); /* prototype to pass -Wmissing-prototypes */
3198 XS(XS_Wx__ConfigBase_SetExpandEnvVars)
3199 {
3200 #ifdef dVAR
3201     dVAR; dXSARGS;
3202 #else
3203     dXSARGS;
3204 #endif
3205     if (items < 1 || items > 2)
3206        croak_xs_usage(cv,  "THIS, doIt = true");
3207     {
3208         bool    doIt;
3209         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
3210
3211         if (items < 2)
3212             doIt = true;
3213         else {
3214             doIt = (bool)SvTRUE(ST(1));
3215         }
3216
3217         THIS->SetExpandEnvVars(doIt);
3218     }
3219     XSRETURN_EMPTY;
3220 }
3221
3222
3223 XS(XS_Wx__ConfigBase_SetPath); /* prototype to pass -Wmissing-prototypes */
3224 XS(XS_Wx__ConfigBase_SetPath)
3225 {
3226 #ifdef dVAR
3227     dVAR; dXSARGS;
3228 #else
3229     dXSARGS;
3230 #endif
3231     if (items != 2)
3232        croak_xs_usage(cv,  "THIS, path");
3233     {
3234         wxString        path;
3235         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
3236
3237     WXSTRING_INPUT( path, wxString, ST(1) );
3238
3239         THIS->SetPath(path);
3240     }
3241     XSRETURN_EMPTY;
3242 }
3243
3244
3245 XS(XS_Wx__ConfigBase_SetRecordDefaults); /* prototype to pass -Wmissing-prototypes */
3246 XS(XS_Wx__ConfigBase_SetRecordDefaults)
3247 {
3248 #ifdef dVAR
3249     dVAR; dXSARGS;
3250 #else
3251     dXSARGS;
3252 #endif
3253     if (items < 1 || items > 2)
3254        croak_xs_usage(cv,  "THIS, doIt = true");
3255     {
3256         bool    doIt;
3257         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
3258
3259         if (items < 2)
3260             doIt = true;
3261         else {
3262             doIt = (bool)SvTRUE(ST(1));
3263         }
3264
3265         THIS->SetRecordDefaults(doIt);
3266     }
3267     XSRETURN_EMPTY;
3268 }
3269
3270
3271 XS(XS_Wx__ConfigBase_Write); /* prototype to pass -Wmissing-prototypes */
3272 XS(XS_Wx__ConfigBase_Write)
3273 {
3274 #ifdef dVAR
3275     dVAR; dXSARGS;
3276 #else
3277     dXSARGS;
3278 #endif
3279     if (items != 3)
3280        croak_xs_usage(cv,  "THIS, key, value");
3281     {
3282         wxString        key;
3283         wxString        value;
3284         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
3285
3286     WXSTRING_INPUT( key, wxString, ST(1) );
3287
3288     WXSTRING_INPUT( value, wxString, ST(2) );
3289     THIS->Write( key, value );
3290     }
3291     XSRETURN_EMPTY;
3292 }
3293
3294
3295 XS(XS_Wx__ConfigBase_WriteInt); /* prototype to pass -Wmissing-prototypes */
3296 XS(XS_Wx__ConfigBase_WriteInt)
3297 {
3298 #ifdef dVAR
3299     dVAR; dXSARGS;
3300 #else
3301     dXSARGS;
3302 #endif
3303     if (items != 3)
3304        croak_xs_usage(cv,  "THIS, key, value");
3305     {
3306         wxString        key;
3307         long    value = (long)SvIV(ST(2));
3308         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
3309
3310     WXSTRING_INPUT( key, wxString, ST(1) );
3311     THIS->Write( key, value );
3312     }
3313     XSRETURN_EMPTY;
3314 }
3315
3316
3317 XS(XS_Wx__ConfigBase_WriteFloat); /* prototype to pass -Wmissing-prototypes */
3318 XS(XS_Wx__ConfigBase_WriteFloat)
3319 {
3320 #ifdef dVAR
3321     dVAR; dXSARGS;
3322 #else
3323     dXSARGS;
3324 #endif
3325     if (items != 3)
3326        croak_xs_usage(cv,  "THIS, key, value");
3327     {
3328         wxString        key;
3329         double  value = (double)SvNV(ST(2));
3330         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
3331
3332     WXSTRING_INPUT( key, wxString, ST(1) );
3333     THIS->Write( key, value );
3334     }
3335     XSRETURN_EMPTY;
3336 }
3337
3338
3339 XS(XS_Wx__ConfigBase_WriteBool); /* prototype to pass -Wmissing-prototypes */
3340 XS(XS_Wx__ConfigBase_WriteBool)
3341 {
3342 #ifdef dVAR
3343     dVAR; dXSARGS;
3344 #else
3345     dXSARGS;
3346 #endif
3347     if (items != 3)
3348        croak_xs_usage(cv,  "THIS, key, value");
3349     {
3350         wxString        key;
3351         bool    value = (bool)SvTRUE(ST(2));
3352         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
3353
3354     WXSTRING_INPUT( key, wxString, ST(1) );
3355     THIS->Write( key, value );
3356     }
3357     XSRETURN_EMPTY;
3358 }
3359
3360 #if WXPERL_W_VERSION_GE( 2, 9, 0 ) && wxUSE_BASE64
3361 #define XSubPPtmpAAAP 1
3362
3363
3364 XS(XS_Wx__ConfigBase_WriteBinary); /* prototype to pass -Wmissing-prototypes */
3365 XS(XS_Wx__ConfigBase_WriteBinary)
3366 {
3367 #ifdef dVAR
3368     dVAR; dXSARGS;
3369 #else
3370     dXSARGS;
3371 #endif
3372     if (items != 3)
3373        croak_xs_usage(cv,  "THIS, key, value");
3374     {
3375         wxString        key;
3376         SV*     value = ST(2);
3377         wxConfigBase *    THIS = (wxConfigBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ConfigBase" );
3378
3379     WXSTRING_INPUT( key, wxString, ST(1) );
3380     STRLEN len;
3381     char* buffer = SvPV( value, len );
3382     wxMemoryBuffer data( len );
3383     data.SetDataLen( len );
3384     memcpy( data.GetData(), buffer, len );
3385     THIS->Write( key, data );
3386     }
3387     XSRETURN_EMPTY;
3388 }
3389
3390 #endif
3391 #if defined(__WXMSW__)
3392 #include <wx/msw/regconf.h>
3393 #define XSubPPtmpAAAQ 1
3394
3395
3396 XS(XS_Wx__RegConfig_new); /* prototype to pass -Wmissing-prototypes */
3397 XS(XS_Wx__RegConfig_new)
3398 {
3399 #ifdef dVAR
3400     dVAR; dXSARGS;
3401 #else
3402     dXSARGS;
3403 #endif
3404     if (items < 1 || items > 6)
3405        croak_xs_usage(cv,  "CLASS, appName = wxEmptyString, vendorName = wxEmptyString, localFilename = wxEmptyString, globalFilename = wxEmptyString, style = 0");
3406     {
3407         wxString        appName;
3408         wxString        vendorName;
3409         wxString        localFilename;
3410         wxString        globalFilename;
3411         long    style;
3412         char *  CLASS = (char *)SvPV_nolen(ST(0));
3413         wxConfigBase *  RETVAL;
3414
3415         if (items < 2)
3416             appName = wxEmptyString;
3417         else {
3418     WXSTRING_INPUT( appName, wxString, ST(1) );
3419         }
3420
3421         if (items < 3)
3422             vendorName = wxEmptyString;
3423         else {
3424     WXSTRING_INPUT( vendorName, wxString, ST(2) );
3425         }
3426
3427         if (items < 4)
3428             localFilename = wxEmptyString;
3429         else {
3430     WXSTRING_INPUT( localFilename, wxString, ST(3) );
3431         }
3432
3433         if (items < 5)
3434             globalFilename = wxEmptyString;
3435         else {
3436     WXSTRING_INPUT( globalFilename, wxString, ST(4) );
3437         }
3438
3439         if (items < 6)
3440             style = 0;
3441         else {
3442             style = (long)SvIV(ST(5));
3443         }
3444
3445         RETVAL = new wxRegConfig(appName, vendorName, localFilename, globalFilename, style);
3446         ST(0) = sv_newmortal();
3447     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::ConfigBase" );
3448
3449     }
3450     XSRETURN(1);
3451 }
3452
3453 #endif
3454 #include <wx/fileconf.h>
3455
3456 XS(XS_Wx__FileConfig_new); /* prototype to pass -Wmissing-prototypes */
3457 XS(XS_Wx__FileConfig_new)
3458 {
3459 #ifdef dVAR
3460     dVAR; dXSARGS;
3461 #else
3462     dXSARGS;
3463 #endif
3464     if (items < 1 || items > 6)
3465        croak_xs_usage(cv,  "CLASS, appName = wxEmptyString, vendorName = wxEmptyString, localFilename = wxEmptyString, globalFilename = wxEmptyString, style = 0");
3466     {
3467         wxString        appName;
3468         wxString        vendorName;
3469         wxString        localFilename;
3470         wxString        globalFilename;
3471         long    style;
3472         char *  CLASS = (char *)SvPV_nolen(ST(0));
3473         wxConfigBase *  RETVAL;
3474
3475         if (items < 2)
3476             appName = wxEmptyString;
3477         else {
3478     WXSTRING_INPUT( appName, wxString, ST(1) );
3479         }
3480
3481         if (items < 3)
3482             vendorName = wxEmptyString;
3483         else {
3484     WXSTRING_INPUT( vendorName, wxString, ST(2) );
3485         }
3486
3487         if (items < 4)
3488             localFilename = wxEmptyString;
3489         else {
3490     WXSTRING_INPUT( localFilename, wxString, ST(3) );
3491         }
3492
3493         if (items < 5)
3494             globalFilename = wxEmptyString;
3495         else {
3496     WXSTRING_INPUT( globalFilename, wxString, ST(4) );
3497         }
3498
3499         if (items < 6)
3500             style = 0;
3501         else {
3502             style = (long)SvIV(ST(5));
3503         }
3504
3505         RETVAL = new wxFileConfig(appName, vendorName, localFilename, globalFilename, style);
3506         ST(0) = sv_newmortal();
3507     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::ConfigBase" );
3508
3509     }
3510     XSRETURN(1);
3511 }
3512
3513
3514 XS(XS_Wx__FileConfig_SetUmask); /* prototype to pass -Wmissing-prototypes */
3515 XS(XS_Wx__FileConfig_SetUmask)
3516 {
3517 #ifdef dVAR
3518     dVAR; dXSARGS;
3519 #else
3520     dXSARGS;
3521 #endif
3522     if (items != 2)
3523        croak_xs_usage(cv,  "THIS, mode");
3524     {
3525         int     mode = (int)SvIV(ST(1));
3526         wxFileConfig *    THIS = (wxFileConfig *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileConfig" );
3527
3528         THIS->SetUmask(mode);
3529     }
3530     XSRETURN_EMPTY;
3531 }
3532
3533
3534 /* INCLUDE: Returning to 'XS/TaskBarIcon.xs' from 'XS/Config.xs' */
3535
3536 #if defined(__WXMSW__) || \
3537     ( WXPERL_W_VERSION_GE( 2, 5, 2 ) && defined( wxHAS_TASK_BAR_ICON ) )
3538 #include <wx/taskbar.h>
3539 #define XSubPPtmpAAAR 1
3540
3541
3542 XS(XS_Wx__TaskBarIcon_new); /* prototype to pass -Wmissing-prototypes */
3543 XS(XS_Wx__TaskBarIcon_new)
3544 {
3545 #ifdef dVAR
3546     dVAR; dXSARGS;
3547 #else
3548     dXSARGS;
3549 #endif
3550     if (items != 1)
3551        croak_xs_usage(cv,  "CLASS");
3552     {
3553         char *  CLASS = (char *)SvPV_nolen(ST(0));
3554         wxTaskBarIcon * RETVAL;
3555
3556         RETVAL = new wxTaskBarIcon();
3557         ST(0) = sv_newmortal();
3558     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3559
3560     }
3561     XSRETURN(1);
3562 }
3563
3564
3565 XS(XS_Wx__TaskBarIcon_Destroy); /* prototype to pass -Wmissing-prototypes */
3566 XS(XS_Wx__TaskBarIcon_Destroy)
3567 {
3568 #ifdef dVAR
3569     dVAR; dXSARGS;
3570 #else
3571     dXSARGS;
3572 #endif
3573     if (items != 1)
3574        croak_xs_usage(cv,  "THIS");
3575     {
3576         wxTaskBarIcon *    THIS = (wxTaskBarIcon *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TaskBarIcon" );
3577     delete THIS;
3578     }
3579     XSRETURN_EMPTY;
3580 }
3581
3582
3583 XS(XS_Wx__TaskBarIcon_IsOk); /* prototype to pass -Wmissing-prototypes */
3584 XS(XS_Wx__TaskBarIcon_IsOk)
3585 {
3586 #ifdef dVAR
3587     dVAR; dXSARGS;
3588 #else
3589     dXSARGS;
3590 #endif
3591     if (items != 1)
3592        croak_xs_usage(cv,  "THIS");
3593     {
3594         wxTaskBarIcon *    THIS = (wxTaskBarIcon *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TaskBarIcon" );
3595         bool    RETVAL;
3596
3597         RETVAL = THIS->IsOk();
3598         ST(0) = boolSV(RETVAL);
3599         sv_2mortal(ST(0));
3600     }
3601     XSRETURN(1);
3602 }
3603
3604
3605 XS(XS_Wx__TaskBarIcon_IsIconInstalled); /* prototype to pass -Wmissing-prototypes */
3606 XS(XS_Wx__TaskBarIcon_IsIconInstalled)
3607 {
3608 #ifdef dVAR
3609     dVAR; dXSARGS;
3610 #else
3611     dXSARGS;
3612 #endif
3613     if (items != 1)
3614        croak_xs_usage(cv,  "THIS");
3615     {
3616         wxTaskBarIcon *    THIS = (wxTaskBarIcon *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TaskBarIcon" );
3617         bool    RETVAL;
3618
3619         RETVAL = THIS->IsIconInstalled();
3620         ST(0) = boolSV(RETVAL);
3621         sv_2mortal(ST(0));
3622     }
3623     XSRETURN(1);
3624 }
3625
3626
3627 XS(XS_Wx__TaskBarIcon_SetIcon); /* prototype to pass -Wmissing-prototypes */
3628 XS(XS_Wx__TaskBarIcon_SetIcon)
3629 {
3630 #ifdef dVAR
3631     dVAR; dXSARGS;
3632 #else
3633     dXSARGS;
3634 #endif
3635     if (items < 2 || items > 3)
3636        croak_xs_usage(cv,  "THIS, icon, tooltip = wxEmptyString");
3637     {
3638         wxIcon*    icon = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Icon" );
3639         wxString        tooltip;
3640         wxTaskBarIcon *    THIS = (wxTaskBarIcon *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TaskBarIcon" );
3641         bool    RETVAL;
3642
3643         if (items < 3)
3644             tooltip = wxEmptyString;
3645         else {
3646     WXSTRING_INPUT( tooltip, wxString, ST(2) );
3647         }
3648     RETVAL = THIS->SetIcon( *icon, tooltip );
3649         ST(0) = boolSV(RETVAL);
3650         sv_2mortal(ST(0));
3651     }
3652     XSRETURN(1);
3653 }
3654
3655
3656 XS(XS_Wx__TaskBarIcon_RemoveIcon); /* prototype to pass -Wmissing-prototypes */
3657 XS(XS_Wx__TaskBarIcon_RemoveIcon)
3658 {
3659 #ifdef dVAR
3660     dVAR; dXSARGS;
3661 #else
3662     dXSARGS;
3663 #endif
3664     if (items != 1)
3665        croak_xs_usage(cv,  "THIS");
3666     {
3667         wxTaskBarIcon *    THIS = (wxTaskBarIcon *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TaskBarIcon" );
3668         bool    RETVAL;
3669
3670         RETVAL = THIS->RemoveIcon();
3671         ST(0) = boolSV(RETVAL);
3672         sv_2mortal(ST(0));
3673     }
3674     XSRETURN(1);
3675 }
3676
3677
3678 XS(XS_Wx__TaskBarIcon_PopupMenu); /* prototype to pass -Wmissing-prototypes */
3679 XS(XS_Wx__TaskBarIcon_PopupMenu)
3680 {
3681 #ifdef dVAR
3682     dVAR; dXSARGS;
3683 #else
3684     dXSARGS;
3685 #endif
3686     if (items != 2)
3687        croak_xs_usage(cv,  "THIS, menu");
3688     {
3689         wxMenu*    menu = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Menu" );
3690         wxTaskBarIcon *    THIS = (wxTaskBarIcon *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TaskBarIcon" );
3691         bool    RETVAL;
3692
3693         RETVAL = THIS->PopupMenu(menu);
3694         ST(0) = boolSV(RETVAL);
3695         sv_2mortal(ST(0));
3696     }
3697     XSRETURN(1);
3698 }
3699
3700
3701 XS(XS_Wx__TaskBarIconEvent_new); /* prototype to pass -Wmissing-prototypes */
3702 XS(XS_Wx__TaskBarIconEvent_new)
3703 {
3704 #ifdef dVAR
3705     dVAR; dXSARGS;
3706 #else
3707     dXSARGS;
3708 #endif
3709     if (items != 3)
3710        croak_xs_usage(cv,  "CLASS, evtType, tbIcon");
3711     {
3712         wxEventType     evtType = (wxEventType)SvIV(ST(1));
3713         wxTaskBarIcon *    tbIcon = (wxTaskBarIcon *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::TaskBarIcon" );
3714         char *  CLASS = (char *)SvPV_nolen(ST(0));
3715         wxTaskBarIconEvent *    RETVAL;
3716
3717         RETVAL = new wxTaskBarIconEvent(evtType, tbIcon);
3718         ST(0) = sv_newmortal();
3719     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3720     wxPli_thread_sv_register( aTHX_ "Wx::TaskBarIconEvent", RETVAL, ST(0) );
3721
3722     }
3723     XSRETURN(1);
3724 }
3725
3726 #endif
3727
3728 /* INCLUDE: Returning to 'XS/Stream.xs' from 'XS/TaskBarIcon.xs' */
3729
3730 #include <wx/wfstream.h>
3731
3732 XS(XS_Wx__Stream_TIEHANDLE); /* prototype to pass -Wmissing-prototypes */
3733 XS(XS_Wx__Stream_TIEHANDLE)
3734 {
3735 #ifdef dVAR
3736     dVAR; dXSARGS;
3737 #else
3738     dXSARGS;
3739 #endif
3740     if (items != 2)
3741        croak_xs_usage(cv,  "package, var");
3742     {
3743         const char*     package = (const char *)SvPV_nolen(ST(0));
3744         void*   var = INT2PTR(void *,SvIV(ST(1)));
3745         SV *    RETVAL;
3746     RETVAL = newSViv( 0 ); // as usual: XSUBpp mortalizes it for us...
3747     sv_setref_pv( RETVAL, CHAR_P package, var );
3748         ST(0) = RETVAL;
3749         sv_2mortal(ST(0));
3750     }
3751     XSRETURN(1);
3752 }
3753
3754
3755 XS(XS_Wx__InputStream_READ); /* prototype to pass -Wmissing-prototypes */
3756 XS(XS_Wx__InputStream_READ)
3757 {
3758 #ifdef dVAR
3759     dVAR; dXSARGS;
3760 #else
3761     dXSARGS;
3762 #endif
3763     if (items < 3 || items > 4)
3764        croak_xs_usage(cv,  "THIS, buf, len, offset = 0");
3765     {
3766         SV*     buf = ST(1);
3767         IV      len = (IV)SvIV(ST(2));
3768         IV      offset;
3769     IV maxlen;
3770         Wx_InputStream *    THIS = (wxInputStream *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::InputStream" );
3771         size_t  RETVAL;
3772         dXSTARG;
3773
3774         if (items < 4)
3775             offset = 0;
3776         else {
3777             offset = (IV)SvIV(ST(3));
3778         }
3779     if( THIS->Eof() ) { SvOK_off( buf ); XSRETURN_IV( 0 ); }
3780
3781     maxlen = SvPOK( buf ) ? SvCUR( buf ) : 0;
3782
3783     if( offset < 0 )
3784     {
3785         if( abs( offset ) > maxlen )
3786         {
3787             XSRETURN_IV( 0 );
3788         }
3789         offset = maxlen + offset;
3790     }
3791
3792     char* buffer = SvGROW( buf, (UV)offset + len + 1 );
3793     SvPOK_on( buf );
3794     if( offset > maxlen )
3795         Zero( buffer + maxlen, offset - maxlen, char );
3796     buffer += offset;
3797     RETVAL = THIS->Read( buffer, len ).LastRead();
3798     SvCUR_set( buf, offset + RETVAL );
3799         XSprePUSH; PUSHu((UV)RETVAL );
3800     }
3801     XSRETURN(1);
3802 }
3803
3804
3805 XS(XS_Wx__InputStream_GETC); /* prototype to pass -Wmissing-prototypes */
3806 XS(XS_Wx__InputStream_GETC)
3807 {
3808 #ifdef dVAR
3809     dVAR; dXSARGS;
3810 #else
3811     dXSARGS;
3812 #endif
3813     if (items != 1)
3814        croak_xs_usage(cv,  "THIS");
3815     {
3816         Wx_InputStream *    THIS = (wxInputStream *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::InputStream" );
3817         SV *    RETVAL;
3818     char value = THIS->GetC();
3819     RETVAL = newSVpvn( &value, 1 );
3820         ST(0) = RETVAL;
3821         sv_2mortal(ST(0));
3822     }
3823     XSRETURN(1);
3824 }
3825
3826
3827 XS(XS_Wx__InputStream_SEEK); /* prototype to pass -Wmissing-prototypes */
3828 XS(XS_Wx__InputStream_SEEK)
3829 {
3830 #ifdef dVAR
3831     dVAR; dXSARGS;
3832 #else
3833     dXSARGS;
3834 #endif
3835     if (items != 3)
3836        croak_xs_usage(cv,  "THIS, position, whence");
3837     {
3838         off_t   position = (off_t)SvIV(ST(1));
3839         int     whence = (int)SvIV(ST(2));
3840     static wxSeekMode s_whence[] = { wxFromStart, wxFromCurrent, wxFromEnd };
3841         Wx_InputStream *    THIS = (wxInputStream *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::InputStream" );
3842         SV *    RETVAL;
3843     if( whence < 0 || whence > 2 )
3844         RETVAL = &PL_sv_undef;
3845     off_t offset = THIS->SeekI( position, s_whence[whence] );
3846     RETVAL = newSViv( offset );
3847         ST(0) = RETVAL;
3848         sv_2mortal(ST(0));
3849     }
3850     XSRETURN(1);
3851 }
3852
3853
3854 XS(XS_Wx__InputStream_TELL); /* prototype to pass -Wmissing-prototypes */
3855 XS(XS_Wx__InputStream_TELL)
3856 {
3857 #ifdef dVAR
3858     dVAR; dXSARGS;
3859 #else
3860     dXSARGS;
3861 #endif
3862     if (items != 1)
3863        croak_xs_usage(cv,  "THIS");
3864     {
3865         Wx_InputStream *    THIS = (wxInputStream *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::InputStream" );
3866         SV *    RETVAL;
3867     off_t offset = THIS->TellI();
3868     RETVAL = newSViv( offset );
3869         ST(0) = RETVAL;
3870         sv_2mortal(ST(0));
3871     }
3872     XSRETURN(1);
3873 }
3874
3875
3876 XS(XS_Wx__InputStream_READLINE); /* prototype to pass -Wmissing-prototypes */
3877 XS(XS_Wx__InputStream_READLINE)
3878 {
3879 #ifdef dVAR
3880     dVAR; dXSARGS;
3881 #else
3882     dXSARGS;
3883 #endif
3884     if (items != 1)
3885        croak_xs_usage(cv,  "THIS");
3886     {
3887     char c;
3888     size_t off = 0;
3889     char* buff;
3890         Wx_InputStream *    THIS = (wxInputStream *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::InputStream" );
3891         SV *    RETVAL;
3892     if( THIS->Eof() ) { XSRETURN_UNDEF; }
3893     RETVAL = newSViv( 0 );
3894     buff = SvPV_nolen( RETVAL );
3895
3896     while( THIS->CanRead() && THIS->Read( &c, 1 ).LastRead() != 0 )
3897     {
3898         if( SvLEN( RETVAL ) <= off )
3899         {
3900             buff = SvGROW( RETVAL, off + 15 );
3901         }
3902         buff[off] = c;
3903         ++off;
3904         if( c == '\n' ) break;
3905     }
3906     SvCUR_set( RETVAL, off );
3907         ST(0) = RETVAL;
3908         sv_2mortal(ST(0));
3909     }
3910     XSRETURN(1);
3911 }
3912
3913
3914 XS(XS_Wx__OutputStream_WRITE); /* prototype to pass -Wmissing-prototypes */
3915 XS(XS_Wx__OutputStream_WRITE)
3916 {
3917 #ifdef dVAR
3918     dVAR; dXSARGS;
3919 #else
3920     dXSARGS;
3921 #endif
3922     if (items < 2 || items > 4)
3923        croak_xs_usage(cv,  "THIS, buf, len = -1, offset = 0");
3924     {
3925         SV*     buf = ST(1);
3926         IV      len;
3927         IV      offset;
3928     IV maxlen = sv_len( buf );
3929     const char* buffer = SvPV_nolen( buf );
3930         Wx_OutputStream *    THIS = (wxOutputStream *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::OutputStream" );
3931         size_t  RETVAL;
3932         dXSTARG;
3933
3934         if (items < 3)
3935             len = -1;
3936         else {
3937             len = (IV)SvIV(ST(2));
3938         }
3939
3940         if (items < 4)
3941             offset = 0;
3942         else {
3943             offset = (IV)SvIV(ST(3));
3944         }
3945     if( abs( offset ) > maxlen )
3946         RETVAL = 0;
3947     else
3948     {
3949         if( offset >=0 )
3950         {
3951             buffer += offset;
3952             maxlen -= offset;
3953         }
3954         else
3955         {
3956             buffer += maxlen + offset;
3957             maxlen = -offset;
3958         }
3959
3960         len = ( len >= maxlen ) ? maxlen : len;
3961
3962         RETVAL = THIS->Write( buffer, len ).LastWrite();
3963     }
3964         XSprePUSH; PUSHu((UV)RETVAL );
3965     }
3966     XSRETURN(1);
3967 }
3968
3969
3970 XS(XS_Wx__OutputStream_SEEK); /* prototype to pass -Wmissing-prototypes */
3971 XS(XS_Wx__OutputStream_SEEK)
3972 {
3973 #ifdef dVAR
3974     dVAR; dXSARGS;
3975 #else
3976     dXSARGS;
3977 #endif
3978     if (items != 3)
3979        croak_xs_usage(cv,  "THIS, position, whence");
3980     {
3981         off_t   position = (off_t)SvIV(ST(1));
3982         int     whence = (int)SvIV(ST(2));
3983     static wxSeekMode s_whence[] = { wxFromStart, wxFromCurrent, wxFromEnd };
3984         Wx_OutputStream *    THIS = (wxOutputStream *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::OutputStream" );
3985         SV *    RETVAL;
3986     if( whence < 0 || whence > 2 )
3987         RETVAL = &PL_sv_undef;
3988     off_t offset = THIS->SeekO( position, s_whence[whence] );
3989     RETVAL = newSViv( offset );
3990         ST(0) = RETVAL;
3991         sv_2mortal(ST(0));
3992     }
3993     XSRETURN(1);
3994 }
3995
3996
3997 XS(XS_Wx__OutputStream_TELL); /* prototype to pass -Wmissing-prototypes */
3998 XS(XS_Wx__OutputStream_TELL)
3999 {
4000 #ifdef dVAR
4001     dVAR; dXSARGS;
4002 #else
4003     dXSARGS;
4004 #endif
4005     if (items != 1)
4006        croak_xs_usage(cv,  "THIS");
4007     {
4008         Wx_OutputStream *    THIS = (wxOutputStream *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::OutputStream" );
4009         SV *    RETVAL;
4010     off_t offset = THIS->TellO();
4011     RETVAL = newSViv( offset );
4012         ST(0) = RETVAL;
4013         sv_2mortal(ST(0));
4014     }
4015     XSRETURN(1);
4016 }
4017
4018
4019 /* INCLUDE: Returning to 'XS/Timer.xs' from 'XS/Stream.xs' */
4020
4021 #include <wx/timer.h>
4022 #include "cpp/timer.h"
4023
4024 XS(XS_Wx__TimerEvent_GetInterval); /* prototype to pass -Wmissing-prototypes */
4025 XS(XS_Wx__TimerEvent_GetInterval)
4026 {
4027 #ifdef dVAR
4028     dVAR; dXSARGS;
4029 #else
4030     dXSARGS;
4031 #endif
4032     if (items != 1)
4033        croak_xs_usage(cv,  "THIS");
4034     {
4035         wxTimerEvent *    THIS = (wxTimerEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TimerEvent" );
4036         int     RETVAL;
4037         dXSTARG;
4038
4039         RETVAL = THIS->GetInterval();
4040         XSprePUSH; PUSHi((IV)RETVAL);
4041     }
4042     XSRETURN(1);
4043 }
4044
4045 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
4046 #define XSubPPtmpAAAS 1
4047
4048
4049 XS(XS_Wx__TimerEvent_GetTimer); /* prototype to pass -Wmissing-prototypes */
4050 XS(XS_Wx__TimerEvent_GetTimer)
4051 {
4052 #ifdef dVAR
4053     dVAR; dXSARGS;
4054 #else
4055     dXSARGS;
4056 #endif
4057     if (items != 1)
4058        croak_xs_usage(cv,  "THIS");
4059     {
4060         wxTimerEvent *    THIS = (wxTimerEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TimerEvent" );
4061         wxTimer *       RETVAL;
4062     RETVAL = &THIS->GetTimer();
4063         ST(0) = sv_newmortal();
4064     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4065
4066     }
4067     XSRETURN(1);
4068 }
4069
4070 #endif
4071
4072 XS(XS_Wx__Timer_newDefault); /* prototype to pass -Wmissing-prototypes */
4073 XS(XS_Wx__Timer_newDefault)
4074 {
4075 #ifdef dVAR
4076     dVAR; dXSARGS;
4077 #else
4078     dXSARGS;
4079 #endif
4080     if (items != 1)
4081        croak_xs_usage(cv,  "Class");
4082     {
4083         SV*     Class = ST(0);
4084     const char* CLASS = wxPli_get_class( aTHX_ Class );
4085         wxTimer *       RETVAL;
4086     RETVAL = new wxPliTimer( CLASS );
4087         ST(0) = sv_newmortal();
4088     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4089
4090     }
4091     XSRETURN(1);
4092 }
4093
4094
4095 XS(XS_Wx__Timer_newEH); /* prototype to pass -Wmissing-prototypes */
4096 XS(XS_Wx__Timer_newEH)
4097 {
4098 #ifdef dVAR
4099     dVAR; dXSARGS;
4100 #else
4101     dXSARGS;
4102 #endif
4103     if (items < 2 || items > 3)
4104        croak_xs_usage(cv,  "Class, owner, id = wxID_ANY");
4105     {
4106         SV*     Class = ST(0);
4107         wxEvtHandler*    owner = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::EvtHandler" );
4108         int     id;
4109     const char* CLASS = wxPli_get_class( aTHX_ Class );
4110         wxTimer *       RETVAL;
4111
4112         if (items < 3)
4113             id = wxID_ANY;
4114         else {
4115             id = (int)SvIV(ST(2));
4116         }
4117     RETVAL = new wxPliTimer( CLASS, owner, id );
4118         ST(0) = sv_newmortal();
4119     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4120
4121     }
4122     XSRETURN(1);
4123 }
4124
4125
4126 XS(XS_Wx__Timer_Destroy); /* prototype to pass -Wmissing-prototypes */
4127 XS(XS_Wx__Timer_Destroy)
4128 {
4129 #ifdef dVAR
4130     dVAR; dXSARGS;
4131 #else
4132     dXSARGS;
4133 #endif
4134     if (items != 1)
4135        croak_xs_usage(cv,  "THIS");
4136     {
4137         wxTimer *    THIS = (wxTimer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Timer" );
4138     delete THIS;
4139     }
4140     XSRETURN_EMPTY;
4141 }
4142
4143
4144 XS(XS_Wx__Timer_GetInterval); /* prototype to pass -Wmissing-prototypes */
4145 XS(XS_Wx__Timer_GetInterval)
4146 {
4147 #ifdef dVAR
4148     dVAR; dXSARGS;
4149 #else
4150     dXSARGS;
4151 #endif
4152     if (items != 1)
4153        croak_xs_usage(cv,  "THIS");
4154     {
4155         wxTimer *    THIS = (wxTimer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Timer" );
4156         int     RETVAL;
4157         dXSTARG;
4158
4159         RETVAL = THIS->GetInterval();
4160         XSprePUSH; PUSHi((IV)RETVAL);
4161     }
4162     XSRETURN(1);
4163 }
4164
4165 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
4166 #define XSubPPtmpAAAT 1
4167
4168
4169 XS(XS_Wx__Timer_GetId); /* prototype to pass -Wmissing-prototypes */
4170 XS(XS_Wx__Timer_GetId)
4171 {
4172 #ifdef dVAR
4173     dVAR; dXSARGS;
4174 #else
4175     dXSARGS;
4176 #endif
4177     if (items != 1)
4178        croak_xs_usage(cv,  "THIS");
4179     {
4180         wxTimer *    THIS = (wxTimer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Timer" );
4181         int     RETVAL;
4182         dXSTARG;
4183
4184         RETVAL = THIS->GetId();
4185         XSprePUSH; PUSHi((IV)RETVAL);
4186     }
4187     XSRETURN(1);
4188 }
4189
4190 #endif
4191
4192 XS(XS_Wx__Timer_IsOneShot); /* prototype to pass -Wmissing-prototypes */
4193 XS(XS_Wx__Timer_IsOneShot)
4194 {
4195 #ifdef dVAR
4196     dVAR; dXSARGS;
4197 #else
4198     dXSARGS;
4199 #endif
4200     if (items != 1)
4201        croak_xs_usage(cv,  "THIS");
4202     {
4203         wxTimer *    THIS = (wxTimer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Timer" );
4204         bool    RETVAL;
4205
4206         RETVAL = THIS->IsOneShot();
4207         ST(0) = boolSV(RETVAL);
4208         sv_2mortal(ST(0));
4209     }
4210     XSRETURN(1);
4211 }
4212
4213
4214 XS(XS_Wx__Timer_IsRunning); /* prototype to pass -Wmissing-prototypes */
4215 XS(XS_Wx__Timer_IsRunning)
4216 {
4217 #ifdef dVAR
4218     dVAR; dXSARGS;
4219 #else
4220     dXSARGS;
4221 #endif
4222     if (items != 1)
4223        croak_xs_usage(cv,  "THIS");
4224     {
4225         wxTimer *    THIS = (wxTimer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Timer" );
4226         bool    RETVAL;
4227
4228         RETVAL = THIS->IsRunning();
4229         ST(0) = boolSV(RETVAL);
4230         sv_2mortal(ST(0));
4231     }
4232     XSRETURN(1);
4233 }
4234
4235
4236 XS(XS_Wx__Timer_SetOwner); /* prototype to pass -Wmissing-prototypes */
4237 XS(XS_Wx__Timer_SetOwner)
4238 {
4239 #ifdef dVAR
4240     dVAR; dXSARGS;
4241 #else
4242     dXSARGS;
4243 #endif
4244     if (items < 2 || items > 3)
4245        croak_xs_usage(cv,  "THIS, owner, id = -1");
4246     {
4247         wxEvtHandler*    owner = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::EvtHandler" );
4248         int     id;
4249         wxTimer *    THIS = (wxTimer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Timer" );
4250
4251         if (items < 3)
4252             id = -1;
4253         else {
4254             id = (int)SvIV(ST(2));
4255         }
4256
4257         THIS->SetOwner(owner, id);
4258     }
4259     XSRETURN_EMPTY;
4260 }
4261
4262
4263 XS(XS_Wx__Timer_Start); /* prototype to pass -Wmissing-prototypes */
4264 XS(XS_Wx__Timer_Start)
4265 {
4266 #ifdef dVAR
4267     dVAR; dXSARGS;
4268 #else
4269     dXSARGS;
4270 #endif
4271     if (items < 1 || items > 3)
4272        croak_xs_usage(cv,  "THIS, milliseconds = -1, oneshot = false");
4273     {
4274         int     milliseconds;
4275         bool    oneshot;
4276         wxTimer *    THIS = (wxTimer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Timer" );
4277         bool    RETVAL;
4278
4279         if (items < 2)
4280             milliseconds = -1;
4281         else {
4282             milliseconds = (int)SvIV(ST(1));
4283         }
4284
4285         if (items < 3)
4286             oneshot = false;
4287         else {
4288             oneshot = (bool)SvTRUE(ST(2));
4289         }
4290
4291         RETVAL = THIS->Start(milliseconds, oneshot);
4292         ST(0) = boolSV(RETVAL);
4293         sv_2mortal(ST(0));
4294     }
4295     XSRETURN(1);
4296 }
4297
4298
4299 XS(XS_Wx__Timer_Stop); /* prototype to pass -Wmissing-prototypes */
4300 XS(XS_Wx__Timer_Stop)
4301 {
4302 #ifdef dVAR
4303     dVAR; dXSARGS;
4304 #else
4305     dXSARGS;
4306 #endif
4307     if (items != 1)
4308        croak_xs_usage(cv,  "THIS");
4309     {
4310         wxTimer *    THIS = (wxTimer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Timer" );
4311
4312         THIS->Stop();
4313     }
4314     XSRETURN_EMPTY;
4315 }
4316
4317
4318 /* INCLUDE: Returning to 'XS/Utils.xs' from 'XS/Timer.xs' */
4319
4320 #include <wx/busyinfo.h>
4321 #include <wx/settings.h>
4322 #include <wx/caret.h>
4323 #include <wx/snglinst.h>
4324 #include <wx/splash.h>
4325 #include <wx/utils.h>
4326 #include <wx/debug.h>
4327 #include <wx/tipdlg.h>
4328 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
4329 #include <wx/sysopt.h>
4330 #endif
4331 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
4332 #ifdef __WXGTK20__
4333 #define __WXGTK20__DEFINED
4334 #undef __WXGTK20__
4335 #endif
4336 #include <wx/stockitem.h>
4337 #ifdef __WXGTK20__DEFINED
4338 #define __WXGTK20__
4339 #endif
4340 #endif
4341 #include "cpp/tipprovider.h"
4342
4343 XS(XS_Wx__CaretSuspend_new); /* prototype to pass -Wmissing-prototypes */
4344 XS(XS_Wx__CaretSuspend_new)
4345 {
4346 #ifdef dVAR
4347     dVAR; dXSARGS;
4348 #else
4349     dXSARGS;
4350 #endif
4351     if (items != 2)
4352        croak_xs_usage(cv,  "CLASS, window");
4353     {
4354         wxWindow*    window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
4355         char *  CLASS = (char *)SvPV_nolen(ST(0));
4356         wxCaretSuspend *        RETVAL;
4357
4358         RETVAL = new wxCaretSuspend(window);
4359         ST(0) = sv_newmortal();
4360     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::CaretSuspend" );
4361     wxPli_thread_sv_register( aTHX_ "Wx::CaretSuspend", RETVAL, ST(0) );
4362
4363     }
4364     XSRETURN(1);
4365 }
4366
4367
4368 XS(XS_Wx__CaretSuspend_CLONE); /* prototype to pass -Wmissing-prototypes */
4369 XS(XS_Wx__CaretSuspend_CLONE)
4370 {
4371 #ifdef dVAR
4372     dVAR; dXSARGS;
4373 #else
4374     dXSARGS;
4375 #endif
4376     if (items != 1)
4377        croak_xs_usage(cv,  "CLASS");
4378     {
4379         char *  CLASS = (char *)SvPV_nolen(ST(0));
4380     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
4381     }
4382     XSRETURN_EMPTY;
4383 }
4384
4385
4386 XS(XS_Wx__CaretSuspend_DESTROY); /* prototype to pass -Wmissing-prototypes */
4387 XS(XS_Wx__CaretSuspend_DESTROY)
4388 {
4389 #ifdef dVAR
4390     dVAR; dXSARGS;
4391 #else
4392     dXSARGS;
4393 #endif
4394     if (items != 1)
4395        croak_xs_usage(cv,  "THIS");
4396     {
4397         wxCaretSuspend *    THIS = (wxCaretSuspend *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::CaretSuspend" );
4398     wxPli_thread_sv_unregister( aTHX_ "Wx::CaretSuspend", THIS, ST(0) );
4399     delete THIS;
4400     }
4401     XSRETURN_EMPTY;
4402 }
4403
4404 #ifndef wxFRAME_FLOAT_ON_PARENT
4405 #define wxFRAME_FLOAT_ON_PARENT 0
4406 #endif
4407 #ifndef wxFRAME_TOOL_WINDOW
4408 #define wxFRAME_TOOL_WINDOW 0
4409 #endif
4410
4411 XS(XS_Wx__SplashScreen_new); /* prototype to pass -Wmissing-prototypes */
4412 XS(XS_Wx__SplashScreen_new)
4413 {
4414 #ifdef dVAR
4415     dVAR; dXSARGS;
4416 #else
4417     dXSARGS;
4418 #endif
4419     if (items < 5 || items > 9)
4420        croak_xs_usage(cv,  "CLASS, bitmap, splashStyle, milliseconds, parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP");
4421     {
4422         wxBitmap*    bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
4423         long    splashStyle = (long)SvIV(ST(2));
4424         int     milliseconds = (int)SvIV(ST(3));
4425         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(4), "Wx::Window" );
4426         wxWindowID      id;
4427         wxPoint pos;
4428         wxSize  size;
4429         long    style;
4430         char *  CLASS = (char *)SvPV_nolen(ST(0));
4431         wxSplashScreen *        RETVAL;
4432
4433         if (items < 6)
4434             id = wxID_ANY;
4435         else {
4436     id = wxPli_get_wxwindowid( aTHX_ ST(5) );
4437         }
4438
4439         if (items < 7)
4440             pos = wxDefaultPosition;
4441         else {
4442     pos = wxPli_sv_2_wxpoint( aTHX_ ST(6) );
4443         }
4444
4445         if (items < 8)
4446             size = wxDefaultSize;
4447         else {
4448     size = wxPli_sv_2_wxsize( aTHX_ ST(7) );
4449         }
4450
4451         if (items < 9)
4452             style = wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP;
4453         else {
4454             style = (long)SvIV(ST(8));
4455         }
4456     RETVAL = new wxSplashScreen( *bitmap, splashStyle, milliseconds, parent,
4457         id, pos, size, style );
4458         ST(0) = sv_newmortal();
4459     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4460
4461     }
4462     XSRETURN(1);
4463 }
4464
4465
4466 XS(XS_Wx__SplashScreen_GetSplashStyle); /* prototype to pass -Wmissing-prototypes */
4467 XS(XS_Wx__SplashScreen_GetSplashStyle)
4468 {
4469 #ifdef dVAR
4470     dVAR; dXSARGS;
4471 #else
4472     dXSARGS;
4473 #endif
4474     if (items != 1)
4475        croak_xs_usage(cv,  "THIS");
4476     {
4477         wxSplashScreen *    THIS = (wxSplashScreen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::SplashScreen" );
4478         long    RETVAL;
4479         dXSTARG;
4480
4481         RETVAL = THIS->GetSplashStyle();
4482         XSprePUSH; PUSHi((IV)RETVAL);
4483     }
4484     XSRETURN(1);
4485 }
4486
4487
4488 XS(XS_Wx__SplashScreen_GetSplashWindow); /* prototype to pass -Wmissing-prototypes */
4489 XS(XS_Wx__SplashScreen_GetSplashWindow)
4490 {
4491 #ifdef dVAR
4492     dVAR; dXSARGS;
4493 #else
4494     dXSARGS;
4495 #endif
4496     if (items != 1)
4497        croak_xs_usage(cv,  "THIS");
4498     {
4499         wxSplashScreen *    THIS = (wxSplashScreen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::SplashScreen" );
4500         wxSplashScreenWindow *  RETVAL;
4501
4502         RETVAL = THIS->GetSplashWindow();
4503         ST(0) = sv_newmortal();
4504     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4505
4506     }
4507     XSRETURN(1);
4508 }
4509
4510
4511 XS(XS_Wx__SplashScreen_GetTimeout); /* prototype to pass -Wmissing-prototypes */
4512 XS(XS_Wx__SplashScreen_GetTimeout)
4513 {
4514 #ifdef dVAR
4515     dVAR; dXSARGS;
4516 #else
4517     dXSARGS;
4518 #endif
4519     if (items != 1)
4520        croak_xs_usage(cv,  "THIS");
4521     {
4522         wxSplashScreen *    THIS = (wxSplashScreen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::SplashScreen" );
4523         int     RETVAL;
4524         dXSTARG;
4525
4526         RETVAL = THIS->GetTimeout();
4527         XSprePUSH; PUSHi((IV)RETVAL);
4528     }
4529     XSRETURN(1);
4530 }
4531
4532
4533 XS(XS_Wx__WindowDisabler_new); /* prototype to pass -Wmissing-prototypes */
4534 XS(XS_Wx__WindowDisabler_new)
4535 {
4536 #ifdef dVAR
4537     dVAR; dXSARGS;
4538 #else
4539     dXSARGS;
4540 #endif
4541     if (items < 1 || items > 2)
4542        croak_xs_usage(cv,  "CLASS, skip = 0");
4543     {
4544         wxWindow*       skip;
4545         char *  CLASS = (char *)SvPV_nolen(ST(0));
4546         wxWindowDisabler *      RETVAL;
4547
4548         if (items < 2)
4549             skip = 0;
4550         else {
4551     skip = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
4552         }
4553
4554         RETVAL = new wxWindowDisabler(skip);
4555         ST(0) = sv_newmortal();
4556     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::WindowDisabler" );
4557     wxPli_thread_sv_register( aTHX_ "Wx::WindowDisabler", RETVAL, ST(0) );
4558
4559     }
4560     XSRETURN(1);
4561 }
4562
4563
4564 XS(XS_Wx__WindowDisabler_CLONE); /* prototype to pass -Wmissing-prototypes */
4565 XS(XS_Wx__WindowDisabler_CLONE)
4566 {
4567 #ifdef dVAR
4568     dVAR; dXSARGS;
4569 #else
4570     dXSARGS;
4571 #endif
4572     if (items != 1)
4573        croak_xs_usage(cv,  "CLASS");
4574     {
4575         char *  CLASS = (char *)SvPV_nolen(ST(0));
4576     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
4577     }
4578     XSRETURN_EMPTY;
4579 }
4580
4581
4582 XS(XS_Wx__WindowDisabler_DESTROY); /* prototype to pass -Wmissing-prototypes */
4583 XS(XS_Wx__WindowDisabler_DESTROY)
4584 {
4585 #ifdef dVAR
4586     dVAR; dXSARGS;
4587 #else
4588     dXSARGS;
4589 #endif
4590     if (items != 1)
4591        croak_xs_usage(cv,  "THIS");
4592     {
4593         wxWindowDisabler *    THIS = (wxWindowDisabler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::WindowDisabler" );
4594     wxPli_thread_sv_unregister( aTHX_ "Wx::WindowDisabler", THIS, ST(0) );
4595     delete THIS;
4596     }
4597     XSRETURN_EMPTY;
4598 }
4599
4600 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
4601 #define XSubPPtmpAAAU 1
4602
4603
4604 XS(XS_Wx__BusyCursor_new); /* prototype to pass -Wmissing-prototypes */
4605 XS(XS_Wx__BusyCursor_new)
4606 {
4607 #ifdef dVAR
4608     dVAR; dXSARGS;
4609 #else
4610     dXSARGS;
4611 #endif
4612     if (items < 1 || items > 2)
4613        croak_xs_usage(cv,  "CLASS, cursor = wxHOURGLASS_CURSOR");
4614     {
4615         const wxCursor* cursor;
4616         char *  CLASS = (char *)SvPV_nolen(ST(0));
4617         wxBusyCursor *  RETVAL;
4618
4619         if (items < 2)
4620             cursor = wxHOURGLASS_CURSOR;
4621         else {
4622     cursor = (const wxCursor *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Cursor" );
4623         }
4624
4625         RETVAL = new wxBusyCursor(cursor);
4626         ST(0) = sv_newmortal();
4627     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::BusyCursor" );
4628     wxPli_thread_sv_register( aTHX_ "Wx::BusyCursor", RETVAL, ST(0) );
4629
4630     }
4631     XSRETURN(1);
4632 }
4633
4634 #else
4635 #define XSubPPtmpAAAV 1
4636
4637
4638 XS(XS_Wx__BusyCursor_new); /* prototype to pass -Wmissing-prototypes */
4639 XS(XS_Wx__BusyCursor_new)
4640 {
4641 #ifdef dVAR
4642     dVAR; dXSARGS;
4643 #else
4644     dXSARGS;
4645 #endif
4646     if (items < 1 || items > 2)
4647        croak_xs_usage(cv,  "CLASS, cursor = wxHOURGLASS_CURSOR");
4648     {
4649         wxCursor*       cursor;
4650         char *  CLASS = (char *)SvPV_nolen(ST(0));
4651         wxBusyCursor *  RETVAL;
4652
4653         if (items < 2)
4654             cursor = wxHOURGLASS_CURSOR;
4655         else {
4656     cursor = (wxCursor *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Cursor" );
4657         }
4658
4659         RETVAL = new wxBusyCursor(cursor);
4660         ST(0) = sv_newmortal();
4661     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::BusyCursor" );
4662     wxPli_thread_sv_register( aTHX_ "Wx::BusyCursor", RETVAL, ST(0) );
4663
4664     }
4665     XSRETURN(1);
4666 }
4667
4668 #endif
4669
4670 XS(XS_Wx__BusyCursor_CLONE); /* prototype to pass -Wmissing-prototypes */
4671 XS(XS_Wx__BusyCursor_CLONE)
4672 {
4673 #ifdef dVAR
4674     dVAR; dXSARGS;
4675 #else
4676     dXSARGS;
4677 #endif
4678     if (items != 1)
4679        croak_xs_usage(cv,  "CLASS");
4680     {
4681         char *  CLASS = (char *)SvPV_nolen(ST(0));
4682     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
4683     }
4684     XSRETURN_EMPTY;
4685 }
4686
4687
4688 XS(XS_Wx__BusyCursor_DESTROY); /* prototype to pass -Wmissing-prototypes */
4689 XS(XS_Wx__BusyCursor_DESTROY)
4690 {
4691 #ifdef dVAR
4692     dVAR; dXSARGS;
4693 #else
4694     dXSARGS;
4695 #endif
4696     if (items != 1)
4697        croak_xs_usage(cv,  "THIS");
4698     {
4699         wxBusyCursor *    THIS = (wxBusyCursor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::BusyCursor" );
4700     wxPli_thread_sv_unregister( aTHX_ "Wx::BusyCursor", THIS, ST(0) );
4701     delete THIS;
4702     }
4703     XSRETURN_EMPTY;
4704 }
4705
4706
4707 XS(XS_Wx__BusyInfo_new); /* prototype to pass -Wmissing-prototypes */
4708 XS(XS_Wx__BusyInfo_new)
4709 {
4710 #ifdef dVAR
4711     dVAR; dXSARGS;
4712 #else
4713     dXSARGS;
4714 #endif
4715     if (items != 2)
4716        croak_xs_usage(cv,  "CLASS, message");
4717     {
4718         wxString        message;
4719         char *  CLASS = (char *)SvPV_nolen(ST(0));
4720         wxBusyInfo *    RETVAL;
4721
4722     WXSTRING_INPUT( message, wxString, ST(1) );
4723
4724         RETVAL = new wxBusyInfo(message);
4725         ST(0) = sv_newmortal();
4726     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::BusyInfo" );
4727     wxPli_thread_sv_register( aTHX_ "Wx::BusyInfo", RETVAL, ST(0) );
4728
4729     }
4730     XSRETURN(1);
4731 }
4732
4733
4734 XS(XS_Wx__BusyInfo_CLONE); /* prototype to pass -Wmissing-prototypes */
4735 XS(XS_Wx__BusyInfo_CLONE)
4736 {
4737 #ifdef dVAR
4738     dVAR; dXSARGS;
4739 #else
4740     dXSARGS;
4741 #endif
4742     if (items != 1)
4743        croak_xs_usage(cv,  "CLASS");
4744     {
4745         char *  CLASS = (char *)SvPV_nolen(ST(0));
4746     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
4747     }
4748     XSRETURN_EMPTY;
4749 }
4750
4751
4752 XS(XS_Wx__BusyInfo_DESTROY); /* prototype to pass -Wmissing-prototypes */
4753 XS(XS_Wx__BusyInfo_DESTROY)
4754 {
4755 #ifdef dVAR
4756     dVAR; dXSARGS;
4757 #else
4758     dXSARGS;
4759 #endif
4760     if (items != 1)
4761        croak_xs_usage(cv,  "THIS");
4762     {
4763         wxBusyInfo *    THIS = (wxBusyInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::BusyInfo" );
4764     wxPli_thread_sv_unregister( aTHX_ "Wx::BusyInfo", THIS, ST(0) );
4765     delete THIS;
4766     }
4767     XSRETURN_EMPTY;
4768 }
4769
4770 #ifdef Pause
4771 #undef Pause
4772 #endif
4773
4774 XS(XS_Wx__StopWatch_new); /* prototype to pass -Wmissing-prototypes */
4775 XS(XS_Wx__StopWatch_new)
4776 {
4777 #ifdef dVAR
4778     dVAR; dXSARGS;
4779 #else
4780     dXSARGS;
4781 #endif
4782     if (items != 1)
4783        croak_xs_usage(cv,  "CLASS");
4784     {
4785         char *  CLASS = (char *)SvPV_nolen(ST(0));
4786         wxStopWatch *   RETVAL;
4787
4788         RETVAL = new wxStopWatch();
4789         ST(0) = sv_newmortal();
4790     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::StopWatch" );
4791     wxPli_thread_sv_register( aTHX_ "Wx::StopWatch", RETVAL, ST(0) );
4792
4793     }
4794     XSRETURN(1);
4795 }
4796
4797
4798 XS(XS_Wx__StopWatch_CLONE); /* prototype to pass -Wmissing-prototypes */
4799 XS(XS_Wx__StopWatch_CLONE)
4800 {
4801 #ifdef dVAR
4802     dVAR; dXSARGS;
4803 #else
4804     dXSARGS;
4805 #endif
4806     if (items != 1)
4807        croak_xs_usage(cv,  "CLASS");
4808     {
4809         char *  CLASS = (char *)SvPV_nolen(ST(0));
4810     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
4811     }
4812     XSRETURN_EMPTY;
4813 }
4814
4815
4816 XS(XS_Wx__StopWatch_DESTROY); /* prototype to pass -Wmissing-prototypes */
4817 XS(XS_Wx__StopWatch_DESTROY)
4818 {
4819 #ifdef dVAR
4820     dVAR; dXSARGS;
4821 #else
4822     dXSARGS;
4823 #endif
4824     if (items != 1)
4825        croak_xs_usage(cv,  "THIS");
4826     {
4827         wxStopWatch *    THIS = (wxStopWatch *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::StopWatch" );
4828     wxPli_thread_sv_unregister( aTHX_ "Wx::StopWatch", THIS, ST(0) );
4829     delete THIS;
4830     }
4831     XSRETURN_EMPTY;
4832 }
4833
4834
4835 XS(XS_Wx__StopWatch_Pause); /* prototype to pass -Wmissing-prototypes */
4836 XS(XS_Wx__StopWatch_Pause)
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         wxStopWatch *    THIS = (wxStopWatch *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::StopWatch" );
4847
4848         THIS->Pause();
4849     }
4850     XSRETURN_EMPTY;
4851 }
4852
4853
4854 XS(XS_Wx__StopWatch_Start); /* prototype to pass -Wmissing-prototypes */
4855 XS(XS_Wx__StopWatch_Start)
4856 {
4857 #ifdef dVAR
4858     dVAR; dXSARGS;
4859 #else
4860     dXSARGS;
4861 #endif
4862     if (items < 1 || items > 2)
4863        croak_xs_usage(cv,  "THIS, milliseconds = 0");
4864     {
4865         long    milliseconds;
4866         wxStopWatch *    THIS = (wxStopWatch *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::StopWatch" );
4867
4868         if (items < 2)
4869             milliseconds = 0;
4870         else {
4871             milliseconds = (long)SvIV(ST(1));
4872         }
4873
4874         THIS->Start(milliseconds);
4875     }
4876     XSRETURN_EMPTY;
4877 }
4878
4879
4880 XS(XS_Wx__StopWatch_Resume); /* prototype to pass -Wmissing-prototypes */
4881 XS(XS_Wx__StopWatch_Resume)
4882 {
4883 #ifdef dVAR
4884     dVAR; dXSARGS;
4885 #else
4886     dXSARGS;
4887 #endif
4888     if (items != 1)
4889        croak_xs_usage(cv,  "THIS");
4890     {
4891         wxStopWatch *    THIS = (wxStopWatch *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::StopWatch" );
4892
4893         THIS->Resume();
4894     }
4895     XSRETURN_EMPTY;
4896 }
4897
4898
4899 XS(XS_Wx__StopWatch_Time); /* prototype to pass -Wmissing-prototypes */
4900 XS(XS_Wx__StopWatch_Time)
4901 {
4902 #ifdef dVAR
4903     dVAR; dXSARGS;
4904 #else
4905     dXSARGS;
4906 #endif
4907     if (items != 1)
4908        croak_xs_usage(cv,  "THIS");
4909     {
4910         wxStopWatch *    THIS = (wxStopWatch *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::StopWatch" );
4911         long    RETVAL;
4912         dXSTARG;
4913
4914         RETVAL = THIS->Time();
4915         XSprePUSH; PUSHi((IV)RETVAL);
4916     }
4917     XSRETURN(1);
4918 }
4919
4920 #if wxUSE_SNGLINST_CHECKER
4921 #define XSubPPtmpAAAW 1
4922
4923
4924 XS(XS_Wx__SingleInstanceChecker_new); /* prototype to pass -Wmissing-prototypes */
4925 XS(XS_Wx__SingleInstanceChecker_new)
4926 {
4927 #ifdef dVAR
4928     dVAR; dXSARGS;
4929 #else
4930     dXSARGS;
4931 #endif
4932     if (items != 1)
4933        croak_xs_usage(cv,  "CLASS");
4934     {
4935         char *  CLASS = (char *)SvPV_nolen(ST(0));
4936         wxSingleInstanceChecker *       RETVAL;
4937
4938         RETVAL = new wxSingleInstanceChecker();
4939         ST(0) = sv_newmortal();
4940     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::SingleInstanceChecker" );
4941     wxPli_thread_sv_register( aTHX_ "Wx::SingleInstanceChecker", RETVAL, ST(0) );
4942
4943     }
4944     XSRETURN(1);
4945 }
4946
4947
4948 XS(XS_Wx__SingleInstanceChecker_CLONE); /* prototype to pass -Wmissing-prototypes */
4949 XS(XS_Wx__SingleInstanceChecker_CLONE)
4950 {
4951 #ifdef dVAR
4952     dVAR; dXSARGS;
4953 #else
4954     dXSARGS;
4955 #endif
4956     if (items != 1)
4957        croak_xs_usage(cv,  "CLASS");
4958     {
4959         char *  CLASS = (char *)SvPV_nolen(ST(0));
4960     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
4961     }
4962     XSRETURN_EMPTY;
4963 }
4964
4965
4966 XS(XS_Wx__SingleInstanceChecker_DESTROY); /* prototype to pass -Wmissing-prototypes */
4967 XS(XS_Wx__SingleInstanceChecker_DESTROY)
4968 {
4969 #ifdef dVAR
4970     dVAR; dXSARGS;
4971 #else
4972     dXSARGS;
4973 #endif
4974     if (items != 1)
4975        croak_xs_usage(cv,  "THIS");
4976     {
4977         wxSingleInstanceChecker *    THIS = (wxSingleInstanceChecker *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::SingleInstanceChecker" );
4978     wxPli_thread_sv_unregister( aTHX_ "Wx::SingleInstanceChecker", THIS, ST(0) );
4979     delete THIS;
4980     }
4981     XSRETURN_EMPTY;
4982 }
4983
4984
4985 XS(XS_Wx__SingleInstanceChecker_Create); /* prototype to pass -Wmissing-prototypes */
4986 XS(XS_Wx__SingleInstanceChecker_Create)
4987 {
4988 #ifdef dVAR
4989     dVAR; dXSARGS;
4990 #else
4991     dXSARGS;
4992 #endif
4993     if (items < 2 || items > 3)
4994        croak_xs_usage(cv,  "THIS, name, path = wxEmptyString");
4995     {
4996         wxString        name;
4997         wxString        path;
4998         wxSingleInstanceChecker *    THIS = (wxSingleInstanceChecker *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::SingleInstanceChecker" );
4999         bool    RETVAL;
5000
5001     WXSTRING_INPUT( name, wxString, ST(1) );
5002
5003         if (items < 3)
5004             path = wxEmptyString;
5005         else {
5006     WXSTRING_INPUT( path, wxString, ST(2) );
5007         }
5008
5009         RETVAL = THIS->Create(name, path);
5010         ST(0) = boolSV(RETVAL);
5011         sv_2mortal(ST(0));
5012     }
5013     XSRETURN(1);
5014 }
5015
5016
5017 XS(XS_Wx__SingleInstanceChecker_IsAnotherRunning); /* prototype to pass -Wmissing-prototypes */
5018 XS(XS_Wx__SingleInstanceChecker_IsAnotherRunning)
5019 {
5020 #ifdef dVAR
5021     dVAR; dXSARGS;
5022 #else
5023     dXSARGS;
5024 #endif
5025     if (items != 1)
5026        croak_xs_usage(cv,  "THIS");
5027     {
5028         wxSingleInstanceChecker *    THIS = (wxSingleInstanceChecker *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::SingleInstanceChecker" );
5029         bool    RETVAL;
5030
5031         RETVAL = THIS->IsAnotherRunning();
5032         ST(0) = boolSV(RETVAL);
5033         sv_2mortal(ST(0));
5034     }
5035     XSRETURN(1);
5036 }
5037
5038 #endif
5039 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
5040 #define wxSystemOptions_SetOption wxSystemOptions::SetOption
5041 #define wxSystemOptions_GetOption wxSystemOptions::GetOption
5042 #define wxSystemOptions_GetOptionInt wxSystemOptions::GetOptionInt
5043 #define wxSystemOptions_HasOption wxSystemOptions::HasOption
5044 #define wxSystemOptions_IsFalse wxSystemOptions::IsFalse
5045 #define XSubPPtmpAAAX 1
5046
5047
5048 XS(XS_Wx__SystemOptions_SetOption); /* prototype to pass -Wmissing-prototypes */
5049 XS(XS_Wx__SystemOptions_SetOption)
5050 {
5051 #ifdef dVAR
5052     dVAR; dXSARGS;
5053 #else
5054     dXSARGS;
5055 #endif
5056     if (items != 2)
5057        croak_xs_usage(cv,  "name, value");
5058     {
5059         wxString        name;
5060         wxString        value;
5061
5062     WXSTRING_INPUT( name, wxString, ST(0) );
5063
5064     WXSTRING_INPUT( value, wxString, ST(1) );
5065     wxSystemOptions_SetOption( name, value);
5066     }
5067     XSRETURN_EMPTY;
5068 }
5069
5070
5071 XS(XS_Wx__SystemOptions_SetOptionInt); /* prototype to pass -Wmissing-prototypes */
5072 XS(XS_Wx__SystemOptions_SetOptionInt)
5073 {
5074 #ifdef dVAR
5075     dVAR; dXSARGS;
5076 #else
5077     dXSARGS;
5078 #endif
5079     if (items != 2)
5080        croak_xs_usage(cv,  "name, value");
5081     {
5082         wxString        name;
5083         int     value = (int)SvIV(ST(1));
5084
5085     WXSTRING_INPUT( name, wxString, ST(0) );
5086     wxSystemOptions_SetOption( name, value);
5087     }
5088     XSRETURN_EMPTY;
5089 }
5090
5091
5092 XS(XS_Wx__SystemOptions_GetOption); /* prototype to pass -Wmissing-prototypes */
5093 XS(XS_Wx__SystemOptions_GetOption)
5094 {
5095 #ifdef dVAR
5096     dVAR; dXSARGS;
5097 #else
5098     dXSARGS;
5099 #endif
5100     if (items != 1)
5101        croak_xs_usage(cv,  "name");
5102     {
5103         wxString        name;
5104         wxString        RETVAL;
5105
5106     WXSTRING_INPUT( name, wxString, ST(0) );
5107     RETVAL = wxSystemOptions_GetOption( name );
5108         ST(0) = sv_newmortal();
5109     WXSTRING_OUTPUT( RETVAL, ST(0) );
5110
5111     }
5112     XSRETURN(1);
5113 }
5114
5115
5116 XS(XS_Wx__SystemOptions_GetOptionInt); /* prototype to pass -Wmissing-prototypes */
5117 XS(XS_Wx__SystemOptions_GetOptionInt)
5118 {
5119 #ifdef dVAR
5120     dVAR; dXSARGS;
5121 #else
5122     dXSARGS;
5123 #endif
5124     if (items != 1)
5125        croak_xs_usage(cv,  "name");
5126     {
5127         wxString        name;
5128         int     RETVAL;
5129         dXSTARG;
5130
5131     WXSTRING_INPUT( name, wxString, ST(0) );
5132     RETVAL = wxSystemOptions_GetOptionInt( name );
5133         XSprePUSH; PUSHi((IV)RETVAL);
5134     }
5135     XSRETURN(1);
5136 }
5137
5138
5139 XS(XS_Wx__SystemOptions_HasOption); /* prototype to pass -Wmissing-prototypes */
5140 XS(XS_Wx__SystemOptions_HasOption)
5141 {
5142 #ifdef dVAR
5143     dVAR; dXSARGS;
5144 #else
5145     dXSARGS;
5146 #endif
5147     if (items != 1)
5148        croak_xs_usage(cv,  "name");
5149     {
5150         wxString        name;
5151         bool    RETVAL;
5152
5153     WXSTRING_INPUT( name, wxString, ST(0) );
5154     RETVAL = wxSystemOptions_HasOption( name );
5155         ST(0) = boolSV(RETVAL);
5156         sv_2mortal(ST(0));
5157     }
5158     XSRETURN(1);
5159 }
5160
5161
5162 XS(XS_Wx__SystemOptions_IsFalse); /* prototype to pass -Wmissing-prototypes */
5163 XS(XS_Wx__SystemOptions_IsFalse)
5164 {
5165 #ifdef dVAR
5166     dVAR; dXSARGS;
5167 #else
5168     dXSARGS;
5169 #endif
5170     if (items != 1)
5171        croak_xs_usage(cv,  "name");
5172     {
5173         wxString        name;
5174         bool    RETVAL;
5175
5176     WXSTRING_INPUT( name, wxString, ST(0) );
5177     RETVAL = wxSystemOptions_IsFalse( name );
5178         ST(0) = boolSV(RETVAL);
5179         sv_2mortal(ST(0));
5180     }
5181     XSRETURN(1);
5182 }
5183
5184 #endif
5185 #if WXPERL_W_VERSION_GE( 2, 5, 2 )
5186 #define wxSystemSettings_GetSystemColour wxSystemSettings::GetColour
5187 #define wxSystemSettings_GetSystemFont wxSystemSettings::GetFont
5188 #define wxSystemSettings_GetSystemMetric wxSystemSettings::GetMetric
5189 #else
5190 #define wxSystemSettings_GetSystemColour wxSystemSettings::GetSystemColour
5191 #define wxSystemSettings_GetSystemFont wxSystemSettings::GetSystemFont
5192 #define wxSystemSettings_GetSystemMetric wxSystemSettings::GetSystemMetric
5193 #endif
5194
5195 XS(XS_Wx__SystemSettings_GetColour); /* prototype to pass -Wmissing-prototypes */
5196 XS(XS_Wx__SystemSettings_GetColour)
5197 {
5198 #ifdef dVAR
5199     dVAR; dXSARGS;
5200 #else
5201     dXSARGS;
5202 #endif
5203     if (items != 1)
5204        croak_xs_usage(cv,  "index");
5205     {
5206         wxSystemColour  index = (wxSystemColour)SvIV(ST(0));
5207         wxColour *      RETVAL;
5208     RETVAL = new wxColour( wxSystemSettings_GetSystemColour( index ) );
5209         ST(0) = sv_newmortal();
5210     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
5211     wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
5212
5213     }
5214     XSRETURN(1);
5215 }
5216
5217
5218 XS(XS_Wx__SystemSettings_GetSystemColour); /* prototype to pass -Wmissing-prototypes */
5219 XS(XS_Wx__SystemSettings_GetSystemColour)
5220 {
5221 #ifdef dVAR
5222     dVAR; dXSARGS;
5223 #else
5224     dXSARGS;
5225 #endif
5226     if (items != 1)
5227        croak_xs_usage(cv,  "index");
5228     {
5229         wxSystemColour  index = (wxSystemColour)SvIV(ST(0));
5230         wxColour *      RETVAL;
5231     RETVAL = new wxColour( wxSystemSettings_GetSystemColour( index ) );
5232         ST(0) = sv_newmortal();
5233     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
5234     wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
5235
5236     }
5237     XSRETURN(1);
5238 }
5239
5240
5241 XS(XS_Wx__SystemSettings_GetFont); /* prototype to pass -Wmissing-prototypes */
5242 XS(XS_Wx__SystemSettings_GetFont)
5243 {
5244 #ifdef dVAR
5245     dVAR; dXSARGS;
5246 #else
5247     dXSARGS;
5248 #endif
5249     if (items != 1)
5250        croak_xs_usage(cv,  "index");
5251     {
5252         wxSystemFont    index = (wxSystemFont)SvIV(ST(0));
5253         wxFont *        RETVAL;
5254     RETVAL = new wxFont( wxSystemSettings_GetSystemFont( index ) );
5255         ST(0) = sv_newmortal();
5256     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5257     wxPli_thread_sv_register( aTHX_ "Wx::Font", RETVAL, ST(0) );
5258
5259     }
5260     XSRETURN(1);
5261 }
5262
5263
5264 XS(XS_Wx__SystemSettings_GetSystemFont); /* prototype to pass -Wmissing-prototypes */
5265 XS(XS_Wx__SystemSettings_GetSystemFont)
5266 {
5267 #ifdef dVAR
5268     dVAR; dXSARGS;
5269 #else
5270     dXSARGS;
5271 #endif
5272     if (items != 1)
5273        croak_xs_usage(cv,  "index");
5274     {
5275         wxSystemFont    index = (wxSystemFont)SvIV(ST(0));
5276         wxFont *        RETVAL;
5277     RETVAL = new wxFont( wxSystemSettings_GetSystemFont( index ) );
5278         ST(0) = sv_newmortal();
5279     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5280     wxPli_thread_sv_register( aTHX_ "Wx::Font", RETVAL, ST(0) );
5281
5282     }
5283     XSRETURN(1);
5284 }
5285
5286
5287 XS(XS_Wx__SystemSettings_GetMetric); /* prototype to pass -Wmissing-prototypes */
5288 XS(XS_Wx__SystemSettings_GetMetric)
5289 {
5290 #ifdef dVAR
5291     dVAR; dXSARGS;
5292 #else
5293     dXSARGS;
5294 #endif
5295     if (items != 1)
5296        croak_xs_usage(cv,  "index");
5297     {
5298         wxSystemMetric  index = (wxSystemMetric)SvIV(ST(0));
5299         int     RETVAL;
5300         dXSTARG;
5301     RETVAL = wxSystemSettings_GetSystemMetric( index );
5302         XSprePUSH; PUSHi((IV)RETVAL);
5303     }
5304     XSRETURN(1);
5305 }
5306
5307
5308 XS(XS_Wx__SystemSettings_GetSystemMetric); /* prototype to pass -Wmissing-prototypes */
5309 XS(XS_Wx__SystemSettings_GetSystemMetric)
5310 {
5311 #ifdef dVAR
5312     dVAR; dXSARGS;
5313 #else
5314     dXSARGS;
5315 #endif
5316     if (items != 1)
5317        croak_xs_usage(cv,  "index");
5318     {
5319         wxSystemMetric  index = (wxSystemMetric)SvIV(ST(0));
5320         int     RETVAL;
5321         dXSTARG;
5322     RETVAL = wxSystemSettings_GetSystemMetric( index );
5323         XSprePUSH; PUSHi((IV)RETVAL);
5324     }
5325     XSRETURN(1);
5326 }
5327
5328
5329 XS(XS_Wx__SystemSettings_GetScreenType); /* prototype to pass -Wmissing-prototypes */
5330 XS(XS_Wx__SystemSettings_GetScreenType)
5331 {
5332 #ifdef dVAR
5333     dVAR; dXSARGS;
5334 #else
5335     dXSARGS;
5336 #endif
5337     if (items != 0)
5338        croak_xs_usage(cv,  "");
5339     {
5340         wxSystemScreenType      RETVAL;
5341         dXSTARG;
5342     RETVAL = wxSystemSettings::GetScreenType();
5343         XSprePUSH; PUSHi((IV)RETVAL);
5344     }
5345     XSRETURN(1);
5346 }
5347
5348
5349 XS(XS_Wx__TipProvider_new); /* prototype to pass -Wmissing-prototypes */
5350 XS(XS_Wx__TipProvider_new)
5351 {
5352 #ifdef dVAR
5353     dVAR; dXSARGS;
5354 #else
5355     dXSARGS;
5356 #endif
5357     if (items != 2)
5358        croak_xs_usage(cv,  "CLASS, currentTip");
5359     {
5360         size_t    currentTip = (size_t)SvUV( ST(1) );
5361         char *  CLASS = (char *)SvPV_nolen(ST(0));
5362         wxTipProvider * RETVAL;
5363     RETVAL = new wxPliTipProvider( CLASS, currentTip );
5364         ST(0) = sv_newmortal();
5365     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::TipProvider" );
5366
5367     }
5368     XSRETURN(1);
5369 }
5370
5371
5372 XS(XS_Wx__TipProvider_Destroy); /* prototype to pass -Wmissing-prototypes */
5373 XS(XS_Wx__TipProvider_Destroy)
5374 {
5375 #ifdef dVAR
5376     dVAR; dXSARGS;
5377 #else
5378     dXSARGS;
5379 #endif
5380     if (items != 1)
5381        croak_xs_usage(cv,  "THIS");
5382     {
5383         wxTipProvider *    THIS = (wxTipProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TipProvider" );
5384     delete THIS;
5385     }
5386     XSRETURN_EMPTY;
5387 }
5388
5389
5390 XS(XS_Wx__TipProvider_GetCurrentTip); /* prototype to pass -Wmissing-prototypes */
5391 XS(XS_Wx__TipProvider_GetCurrentTip)
5392 {
5393 #ifdef dVAR
5394     dVAR; dXSARGS;
5395 #else
5396     dXSARGS;
5397 #endif
5398     if (items != 1)
5399        croak_xs_usage(cv,  "THIS");
5400     {
5401         wxTipProvider *    THIS = (wxTipProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TipProvider" );
5402         size_t  RETVAL;
5403         dXSTARG;
5404
5405         RETVAL = THIS->GetCurrentTip();
5406         XSprePUSH; PUSHu((UV)RETVAL );
5407     }
5408     XSRETURN(1);
5409 }
5410
5411
5412 XS(XS_Wx__TipProvider_GetTip); /* prototype to pass -Wmissing-prototypes */
5413 XS(XS_Wx__TipProvider_GetTip)
5414 {
5415 #ifdef dVAR
5416     dVAR; dXSARGS;
5417 #else
5418     dXSARGS;
5419 #endif
5420     if (items != 1)
5421        croak_xs_usage(cv,  "THIS");
5422     {
5423         wxTipProvider *    THIS = (wxTipProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TipProvider" );
5424         wxString        RETVAL;
5425
5426         RETVAL = THIS->GetTip();
5427         ST(0) = sv_newmortal();
5428     WXSTRING_OUTPUT( RETVAL, ST(0) );
5429
5430     }
5431     XSRETURN(1);
5432 }
5433
5434
5435 XS(XS_Wx__TipProvider_PreprocessTip); /* prototype to pass -Wmissing-prototypes */
5436 XS(XS_Wx__TipProvider_PreprocessTip)
5437 {
5438 #ifdef dVAR
5439     dVAR; dXSARGS;
5440 #else
5441     dXSARGS;
5442 #endif
5443     if (items != 2)
5444        croak_xs_usage(cv,  "THIS, tip");
5445     {
5446         wxString        tip;
5447         wxTipProvider *    THIS = (wxTipProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TipProvider" );
5448         wxString        RETVAL;
5449
5450     WXSTRING_INPUT( tip, wxString, ST(1) );
5451
5452         RETVAL = THIS->PreprocessTip(tip);
5453         ST(0) = sv_newmortal();
5454     WXSTRING_OUTPUT( RETVAL, ST(0) );
5455
5456     }
5457     XSRETURN(1);
5458 }
5459
5460
5461 XS(XS_Wx__TipProvider_SetCurrentTip); /* prototype to pass -Wmissing-prototypes */
5462 XS(XS_Wx__TipProvider_SetCurrentTip)
5463 {
5464 #ifdef dVAR
5465     dVAR; dXSARGS;
5466 #else
5467     dXSARGS;
5468 #endif
5469     if (items != 2)
5470        croak_xs_usage(cv,  "THIS, number");
5471     {
5472         size_t    number = (size_t)SvUV( ST(1) );
5473         wxTipProvider *    THIS = (wxTipProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TipProvider" );
5474     ((wxPliTipProvider*)THIS)->SetCurrentTip( number );
5475     }
5476     XSRETURN_EMPTY;
5477 }
5478
5479 #if wxUSE_THREADS
5480 #include <wx/thread.h>
5481 #define XSubPPtmpAAAY 1
5482
5483
5484 XS(XS_Wx__Thread_IsMain); /* prototype to pass -Wmissing-prototypes */
5485 XS(XS_Wx__Thread_IsMain)
5486 {
5487 #ifdef dVAR
5488     dVAR; dXSARGS;
5489 #else
5490     dXSARGS;
5491 #endif
5492     if (items != 0)
5493        croak_xs_usage(cv,  "");
5494     {
5495         bool    RETVAL;
5496     RETVAL = wxThread::IsMain();
5497         ST(0) = boolSV(RETVAL);
5498         sv_2mortal(ST(0));
5499     }
5500     XSRETURN(1);
5501 }
5502
5503 #endif
5504 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
5505 #define XSubPPtmpAAAZ 1
5506
5507
5508 XS(XS_Wx_IsStockID); /* prototype to pass -Wmissing-prototypes */
5509 XS(XS_Wx_IsStockID)
5510 {
5511 #ifdef dVAR
5512     dVAR; dXSARGS;
5513 #else
5514     dXSARGS;
5515 #endif
5516     if (items != 1)
5517        croak_xs_usage(cv,  "id");
5518     {
5519         bool    RETVAL;
5520         wxWindowID    id = wxPli_get_wxwindowid( aTHX_ ST(0) );
5521
5522         RETVAL = wxIsStockID(id);
5523         ST(0) = boolSV(RETVAL);
5524         sv_2mortal(ST(0));
5525     }
5526     XSRETURN(1);
5527 }
5528
5529
5530 XS(XS_Wx_IsStockLabel); /* prototype to pass -Wmissing-prototypes */
5531 XS(XS_Wx_IsStockLabel)
5532 {
5533 #ifdef dVAR
5534     dVAR; dXSARGS;
5535 #else
5536     dXSARGS;
5537 #endif
5538     if (items != 2)
5539        croak_xs_usage(cv,  "id, label");
5540     {
5541         bool    RETVAL;
5542         wxWindowID    id = wxPli_get_wxwindowid( aTHX_ ST(0) );
5543         wxString        label;
5544
5545     WXSTRING_INPUT( label, wxString, ST(1) );
5546
5547         RETVAL = wxIsStockLabel(id, label);
5548         ST(0) = boolSV(RETVAL);
5549         sv_2mortal(ST(0));
5550     }
5551     XSRETURN(1);
5552 }
5553
5554 #if WXPERL_W_VERSION_GE( 2, 6, 3 )
5555 #if WXPERL_W_VERSION_GE( 2, 7, 1 )
5556 #define XSubPPtmpAABA 1
5557
5558
5559 XS(XS_Wx_GetStockLabel); /* prototype to pass -Wmissing-prototypes */
5560 XS(XS_Wx_GetStockLabel)
5561 {
5562 #ifdef dVAR
5563     dVAR; dXSARGS;
5564 #else
5565     dXSARGS;
5566 #endif
5567     if (items < 1 || items > 2)
5568        croak_xs_usage(cv,  "id, flags= wxSTOCK_WITH_MNEMONIC");
5569     {
5570         wxString        RETVAL;
5571         wxWindowID    id = wxPli_get_wxwindowid( aTHX_ ST(0) );
5572         long    flags;
5573
5574         if (items < 2)
5575             flags = wxSTOCK_WITH_MNEMONIC;
5576         else {
5577             flags = (long)SvIV(ST(1));
5578         }
5579
5580         RETVAL = wxGetStockLabel(id, flags);
5581         ST(0) = sv_newmortal();
5582     WXSTRING_OUTPUT( RETVAL, ST(0) );
5583
5584     }
5585     XSRETURN(1);
5586 }
5587
5588 #else
5589 #define XSubPPtmpAABB 1
5590
5591
5592 XS(XS_Wx_GetStockLabel); /* prototype to pass -Wmissing-prototypes */
5593 XS(XS_Wx_GetStockLabel)
5594 {
5595 #ifdef dVAR
5596     dVAR; dXSARGS;
5597 #else
5598     dXSARGS;
5599 #endif
5600     if (items < 1 || items > 3)
5601        croak_xs_usage(cv,  "id, withCodes= true, accelerator= wxEmptyString");
5602     {
5603         wxString        RETVAL;
5604         wxWindowID    id = wxPli_get_wxwindowid( aTHX_ ST(0) );
5605         bool    withCodes;
5606         wxString        accelerator;
5607
5608         if (items < 2)
5609             withCodes = true;
5610         else {
5611             withCodes = (bool)SvTRUE(ST(1));
5612         }
5613
5614         if (items < 3)
5615             accelerator = wxEmptyString;
5616         else {
5617     WXSTRING_INPUT( accelerator, wxString, ST(2) );
5618         }
5619
5620         RETVAL = wxGetStockLabel(id, withCodes, accelerator);
5621         ST(0) = sv_newmortal();
5622     WXSTRING_OUTPUT( RETVAL, ST(0) );
5623
5624     }
5625     XSRETURN(1);
5626 }
5627
5628 #endif
5629 #else
5630 #define XSubPPtmpAABC 1
5631
5632
5633 XS(XS_Wx_GetStockLabel); /* prototype to pass -Wmissing-prototypes */
5634 XS(XS_Wx_GetStockLabel)
5635 {
5636 #ifdef dVAR
5637     dVAR; dXSARGS;
5638 #else
5639     dXSARGS;
5640 #endif
5641     if (items != 1)
5642        croak_xs_usage(cv,  "id");
5643     {
5644         wxString        RETVAL;
5645         wxWindowID    id = wxPli_get_wxwindowid( aTHX_ ST(0) );
5646
5647         RETVAL = wxGetStockLabel(id);
5648         ST(0) = sv_newmortal();
5649     WXSTRING_OUTPUT( RETVAL, ST(0) );
5650
5651     }
5652     XSRETURN(1);
5653 }
5654
5655 #endif
5656 #endif
5657 #if WXPERL_W_VERSION_GE( 2, 7, 1 )
5658 #define XSubPPtmpAABD 1
5659
5660
5661 XS(XS_Wx_GetStockAccelerator); /* prototype to pass -Wmissing-prototypes */
5662 XS(XS_Wx_GetStockAccelerator)
5663 {
5664 #ifdef dVAR
5665     dVAR; dXSARGS;
5666 #else
5667     dXSARGS;
5668 #endif
5669     if (items != 1)
5670        croak_xs_usage(cv,  "id");
5671     {
5672         wxAcceleratorEntry *    RETVAL;
5673         wxWindowID    id = wxPli_get_wxwindowid( aTHX_ ST(0) );
5674     RETVAL = new wxAcceleratorEntry( wxGetStockAccelerator( id ) );
5675         ST(0) = sv_newmortal();
5676     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::AcceleratorEntry" );
5677     wxPli_thread_sv_register( aTHX_ "Wx::AcceleratorEntry", RETVAL, ST(0) );
5678
5679     }
5680     XSRETURN(1);
5681 }
5682
5683
5684 XS(XS_Wx_GetStockHelpString); /* prototype to pass -Wmissing-prototypes */
5685 XS(XS_Wx_GetStockHelpString)
5686 {
5687 #ifdef dVAR
5688     dVAR; dXSARGS;
5689 #else
5690     dXSARGS;
5691 #endif
5692     if (items < 1 || items > 2)
5693        croak_xs_usage(cv,  "id, client= wxSTOCK_MENU");
5694     {
5695         wxString        RETVAL;
5696         wxWindowID    id = wxPli_get_wxwindowid( aTHX_ ST(0) );
5697         wxStockHelpStringClient client;
5698
5699         if (items < 2)
5700             client = wxSTOCK_MENU;
5701         else {
5702             client = (wxStockHelpStringClient)SvIV(ST(1));
5703         }
5704
5705         RETVAL = wxGetStockHelpString(id, client);
5706         ST(0) = sv_newmortal();
5707     WXSTRING_OUTPUT( RETVAL, ST(0) );
5708
5709     }
5710     XSRETURN(1);
5711 }
5712
5713 #endif
5714 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
5715 #define XSubPPtmpAABE 1
5716
5717
5718 XS(XS_Wx_LaunchDefaultBrowser); /* prototype to pass -Wmissing-prototypes */
5719 XS(XS_Wx_LaunchDefaultBrowser)
5720 {
5721 #ifdef dVAR
5722     dVAR; dXSARGS;
5723 #else
5724     dXSARGS;
5725 #endif
5726     if (items < 1 || items > 2)
5727        croak_xs_usage(cv,  "url, flags = 0");
5728     {
5729         wxString        url;
5730         int     flags;
5731         bool    RETVAL;
5732
5733     WXSTRING_INPUT( url, wxString, ST(0) );
5734
5735         if (items < 2)
5736             flags = 0;
5737         else {
5738             flags = (int)SvIV(ST(1));
5739         }
5740
5741         RETVAL = wxLaunchDefaultBrowser(url, flags);
5742         ST(0) = boolSV(RETVAL);
5743         sv_2mortal(ST(0));
5744     }
5745     XSRETURN(1);
5746 }
5747
5748 #else
5749 #if WXPERL_W_VERSION_GE( 2, 6, 1 )
5750 #define XSubPPtmpAABF 1
5751
5752
5753 XS(XS_Wx_LaunchDefaultBrowser); /* prototype to pass -Wmissing-prototypes */
5754 XS(XS_Wx_LaunchDefaultBrowser)
5755 {
5756 #ifdef dVAR
5757     dVAR; dXSARGS;
5758 #else
5759     dXSARGS;
5760 #endif
5761     if (items != 1)
5762        croak_xs_usage(cv,  "url");
5763     {
5764         wxString        url;
5765         bool    RETVAL;
5766
5767     WXSTRING_INPUT( url, wxString, ST(0) );
5768
5769         RETVAL = wxLaunchDefaultBrowser(url);
5770         ST(0) = boolSV(RETVAL);
5771         sv_2mortal(ST(0));
5772     }
5773     XSRETURN(1);
5774 }
5775
5776 #endif
5777 #endif
5778
5779 XS(XS_Wx_ShowTip); /* prototype to pass -Wmissing-prototypes */
5780 XS(XS_Wx_ShowTip)
5781 {
5782 #ifdef dVAR
5783     dVAR; dXSARGS;
5784 #else
5785     dXSARGS;
5786 #endif
5787     if (items < 2 || items > 3)
5788        croak_xs_usage(cv,  "parent, tipProvider, showAtStartup = true");
5789     {
5790         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Window" );
5791         wxTipProvider*    tipProvider = (wxTipProvider *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::TipProvider" );
5792         bool    showAtStartup;
5793         bool    RETVAL;
5794
5795         if (items < 3)
5796             showAtStartup = true;
5797         else {
5798             showAtStartup = (bool)SvTRUE(ST(2));
5799         }
5800
5801         RETVAL = wxShowTip(parent, tipProvider, showAtStartup);
5802         ST(0) = boolSV(RETVAL);
5803         sv_2mortal(ST(0));
5804     }
5805     XSRETURN(1);
5806 }
5807
5808
5809 XS(XS_Wx_CreateFileTipProvider); /* prototype to pass -Wmissing-prototypes */
5810 XS(XS_Wx_CreateFileTipProvider)
5811 {
5812 #ifdef dVAR
5813     dVAR; dXSARGS;
5814 #else
5815     dXSARGS;
5816 #endif
5817     if (items != 2)
5818        croak_xs_usage(cv,  "filename, currentTip");
5819     {
5820         wxString        filename;
5821         size_t    currentTip = (size_t)SvUV( ST(1) );
5822         wxTipProvider * RETVAL;
5823
5824     WXSTRING_INPUT( filename, wxString, ST(0) );
5825
5826         RETVAL = wxCreateFileTipProvider(filename, currentTip);
5827         ST(0) = sv_newmortal();
5828     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::TipProvider" );
5829
5830     }
5831     XSRETURN(1);
5832 }
5833
5834
5835 XS(XS_Wx_Usleep); /* prototype to pass -Wmissing-prototypes */
5836 XS(XS_Wx_Usleep)
5837 {
5838 #ifdef dVAR
5839     dVAR; dXSARGS;
5840 #else
5841     dXSARGS;
5842 #endif
5843     if (items != 1)
5844        croak_xs_usage(cv,  "ms");
5845     {
5846         unsigned long    ms = (unsigned long)SvUV( ST(0) );
5847 #if WXPERL_W_VERSION_LE( 2, 5, 2 )
5848     wxUsleep( ms );
5849 #else
5850     wxMilliSleep( ms );
5851 #endif
5852     }
5853     XSRETURN_EMPTY;
5854 }
5855
5856 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
5857 #define XSubPPtmpAABG 1
5858
5859
5860 XS(XS_Wx_MicroSleep); /* prototype to pass -Wmissing-prototypes */
5861 XS(XS_Wx_MicroSleep)
5862 {
5863 #ifdef dVAR
5864     dVAR; dXSARGS;
5865 #else
5866     dXSARGS;
5867 #endif
5868     if (items != 1)
5869        croak_xs_usage(cv,  "ms");
5870     {
5871         unsigned long    ms = (unsigned long)SvUV( ST(0) );
5872
5873         wxMicroSleep(ms);
5874     }
5875     XSRETURN_EMPTY;
5876 }
5877
5878 #endif
5879
5880 XS(XS_Wx_MilliSleep); /* prototype to pass -Wmissing-prototypes */
5881 XS(XS_Wx_MilliSleep)
5882 {
5883 #ifdef dVAR
5884     dVAR; dXSARGS;
5885 #else
5886     dXSARGS;
5887 #endif
5888     if (items != 1)
5889        croak_xs_usage(cv,  "ms");
5890     {
5891         unsigned long    ms = (unsigned long)SvUV( ST(0) );
5892 #if WXPERL_W_VERSION_LE( 2, 5, 2 )
5893     wxUsleep( ms );
5894 #else
5895     wxMilliSleep( ms );
5896 #endif
5897     }
5898     XSRETURN_EMPTY;
5899 }
5900
5901
5902 XS(XS_Wx_Sleep); /* prototype to pass -Wmissing-prototypes */
5903 XS(XS_Wx_Sleep)
5904 {
5905 #ifdef dVAR
5906     dVAR; dXSARGS;
5907 #else
5908     dXSARGS;
5909 #endif
5910     if (items != 1)
5911        croak_xs_usage(cv,  "sec");
5912     {
5913         int     sec = (int)SvIV(ST(0));
5914
5915         wxSleep(sec);
5916     }
5917     XSRETURN_EMPTY;
5918 }
5919
5920
5921 XS(XS_Wx_Yield); /* prototype to pass -Wmissing-prototypes */
5922 XS(XS_Wx_Yield)
5923 {
5924 #ifdef dVAR
5925     dVAR; dXSARGS;
5926 #else
5927     dXSARGS;
5928 #endif
5929     if (items != 0)
5930        croak_xs_usage(cv,  "");
5931     {
5932         bool    RETVAL;
5933
5934         RETVAL = wxYield();
5935         ST(0) = boolSV(RETVAL);
5936         sv_2mortal(ST(0));
5937     }
5938     XSRETURN(1);
5939 }
5940
5941
5942 XS(XS_Wx_SafeYield); /* prototype to pass -Wmissing-prototypes */
5943 XS(XS_Wx_SafeYield)
5944 {
5945 #ifdef dVAR
5946     dVAR; dXSARGS;
5947 #else
5948     dXSARGS;
5949 #endif
5950     if (items < 0 || items > 2)
5951        croak_xs_usage(cv,  "window = 0, onlyIfNeeded = false");
5952     {
5953         wxWindow*       window;
5954         bool    onlyIfNeeded;
5955         bool    RETVAL;
5956
5957         if (items < 1)
5958             window = 0;
5959         else {
5960     window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Window" );
5961         }
5962
5963         if (items < 2)
5964             onlyIfNeeded = false;
5965         else {
5966             onlyIfNeeded = (bool)SvTRUE(ST(1));
5967         }
5968
5969         RETVAL = wxSafeYield(window, onlyIfNeeded);
5970         ST(0) = boolSV(RETVAL);
5971         sv_2mortal(ST(0));
5972     }
5973     XSRETURN(1);
5974 }
5975
5976
5977 XS(XS_Wx_YieldIfNeeded); /* prototype to pass -Wmissing-prototypes */
5978 XS(XS_Wx_YieldIfNeeded)
5979 {
5980 #ifdef dVAR
5981     dVAR; dXSARGS;
5982 #else
5983     dXSARGS;
5984 #endif
5985     if (items != 0)
5986        croak_xs_usage(cv,  "");
5987     {
5988         bool    RETVAL;
5989
5990         RETVAL = wxYieldIfNeeded();
5991         ST(0) = boolSV(RETVAL);
5992         sv_2mortal(ST(0));
5993     }
5994     XSRETURN(1);
5995 }
5996
5997
5998 XS(XS_Wx_Trap); /* prototype to pass -Wmissing-prototypes */
5999 XS(XS_Wx_Trap)
6000 {
6001 #ifdef dVAR
6002     dVAR; dXSARGS;
6003 #else
6004     dXSARGS;
6005 #endif
6006     if (items != 0)
6007        croak_xs_usage(cv,  "");
6008     {
6009
6010         wxTrap();
6011     }
6012     XSRETURN_EMPTY;
6013 }
6014
6015
6016 XS(XS_Wx_GetOsDescription); /* prototype to pass -Wmissing-prototypes */
6017 XS(XS_Wx_GetOsDescription)
6018 {
6019 #ifdef dVAR
6020     dVAR; dXSARGS;
6021 #else
6022     dXSARGS;
6023 #endif
6024     if (items != 0)
6025        croak_xs_usage(cv,  "");
6026     {
6027         wxString        RETVAL;
6028
6029         RETVAL = wxGetOsDescription();
6030         ST(0) = sv_newmortal();
6031     WXSTRING_OUTPUT( RETVAL, ST(0) );
6032
6033     }
6034     XSRETURN(1);
6035 }
6036
6037
6038 XS(XS_Wx_NewId); /* prototype to pass -Wmissing-prototypes */
6039 XS(XS_Wx_NewId)
6040 {
6041 #ifdef dVAR
6042     dVAR; dXSARGS;
6043 #else
6044     dXSARGS;
6045 #endif
6046     if (items != 0)
6047        croak_xs_usage(cv,  "");
6048     {
6049         long    RETVAL;
6050         dXSTARG;
6051
6052         RETVAL = wxNewId();
6053         XSprePUSH; PUSHi((IV)RETVAL);
6054     }
6055     XSRETURN(1);
6056 }
6057
6058
6059 XS(XS_Wx_NewEventType); /* prototype to pass -Wmissing-prototypes */
6060 XS(XS_Wx_NewEventType)
6061 {
6062 #ifdef dVAR
6063     dVAR; dXSARGS;
6064 #else
6065     dXSARGS;
6066 #endif
6067     if (items != 0)
6068        croak_xs_usage(cv,  "");
6069     {
6070         wxEventType     RETVAL;
6071         dXSTARG;
6072
6073         RETVAL = wxNewEventType();
6074         XSprePUSH; PUSHi((IV)RETVAL);
6075     }
6076     XSRETURN(1);
6077 }
6078
6079
6080 XS(XS_Wx_RegisterId); /* prototype to pass -Wmissing-prototypes */
6081 XS(XS_Wx_RegisterId)
6082 {
6083 #ifdef dVAR
6084     dVAR; dXSARGS;
6085 #else
6086     dXSARGS;
6087 #endif
6088     if (items != 1)
6089        croak_xs_usage(cv,  "id");
6090     {
6091         long    id = (long)SvIV(ST(0));
6092
6093         wxRegisterId(id);
6094     }
6095     XSRETURN_EMPTY;
6096 }
6097
6098
6099 XS(XS_Wx_Bell); /* prototype to pass -Wmissing-prototypes */
6100 XS(XS_Wx_Bell)
6101 {
6102 #ifdef dVAR
6103     dVAR; dXSARGS;
6104 #else
6105     dXSARGS;
6106 #endif
6107     if (items != 0)
6108        croak_xs_usage(cv,  "");
6109     {
6110
6111         wxBell();
6112     }
6113     XSRETURN_EMPTY;
6114 }
6115
6116
6117 XS(XS_Wx_Exit); /* prototype to pass -Wmissing-prototypes */
6118 XS(XS_Wx_Exit)
6119 {
6120 #ifdef dVAR
6121     dVAR; dXSARGS;
6122 #else
6123     dXSARGS;
6124 #endif
6125     if (items != 0)
6126        croak_xs_usage(cv,  "");
6127     {
6128
6129         wxExit();
6130     }
6131     XSRETURN_EMPTY;
6132 }
6133
6134
6135 XS(XS_Wx_Shell); /* prototype to pass -Wmissing-prototypes */
6136 XS(XS_Wx_Shell)
6137 {
6138 #ifdef dVAR
6139     dVAR; dXSARGS;
6140 #else
6141     dXSARGS;
6142 #endif
6143     if (items < 0 || items > 1)
6144        croak_xs_usage(cv,  "command = wxEmptyString");
6145     {
6146         wxString        command;
6147         bool    RETVAL;
6148
6149         if (items < 1)
6150             command = wxEmptyString;
6151         else {
6152     WXSTRING_INPUT( command, wxString, ST(0) );
6153         }
6154
6155         RETVAL = wxShell(command);
6156         ST(0) = boolSV(RETVAL);
6157         sv_2mortal(ST(0));
6158     }
6159     XSRETURN(1);
6160 }
6161
6162 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
6163 #define XSubPPtmpAABH 1
6164
6165
6166 XS(XS_Wx_GetKeyState); /* prototype to pass -Wmissing-prototypes */
6167 XS(XS_Wx_GetKeyState)
6168 {
6169 #ifdef dVAR
6170     dVAR; dXSARGS;
6171 #else
6172     dXSARGS;
6173 #endif
6174     if (items != 1)
6175        croak_xs_usage(cv,  "key");
6176     {
6177         wxKeyCode    key = wxPli_sv_2_keycode( aTHX_ ST(0) );
6178         bool    RETVAL;
6179
6180         RETVAL = wxGetKeyState(key);
6181         ST(0) = boolSV(RETVAL);
6182         sv_2mortal(ST(0));
6183     }
6184     XSRETURN(1);
6185 }
6186
6187 #endif
6188
6189 XS(XS_Wx__utf8_on); /* prototype to pass -Wmissing-prototypes */
6190 XS(XS_Wx__utf8_on)
6191 {
6192 #ifdef dVAR
6193     dVAR; dXSARGS;
6194 #else
6195     dXSARGS;
6196 #endif
6197     if (items != 1)
6198        croak_xs_usage(cv,  "sv");
6199     {
6200         SV*     sv = ST(0);
6201     SvUTF8_on( sv );
6202     }
6203     XSRETURN_EMPTY;
6204 }
6205
6206
6207 XS(XS_Wx__utf8_off); /* prototype to pass -Wmissing-prototypes */
6208 XS(XS_Wx__utf8_off)
6209 {
6210 #ifdef dVAR
6211     dVAR; dXSARGS;
6212 #else
6213     dXSARGS;
6214 #endif
6215     if (items != 1)
6216        croak_xs_usage(cv,  "sv");
6217     {
6218         SV*     sv = ST(0);
6219     SvUTF8_off( sv );
6220     }
6221     XSRETURN_EMPTY;
6222 }
6223
6224
6225 /* INCLUDE: Returning to 'XS/Locale.xs' from 'XS/Utils.xs' */
6226
6227 #include <wx/intl.h>
6228
6229 XS(XS_Wx__LanguageInfo_new); /* prototype to pass -Wmissing-prototypes */
6230 XS(XS_Wx__LanguageInfo_new)
6231 {
6232 #ifdef dVAR
6233     dVAR; dXSARGS;
6234 #else
6235     dXSARGS;
6236 #endif
6237     if (items != 6)
6238        croak_xs_usage(cv,  "CLASS, language, canonicalName, winLang, winSublang, descr");
6239     {
6240         int     language = (int)SvIV(ST(1));
6241         wxString        canonicalName;
6242         int     winLang = (int)SvIV(ST(3));
6243         int     winSublang = (int)SvIV(ST(4));
6244         wxString        descr;
6245         char *  CLASS = (char *)SvPV_nolen(ST(0));
6246         wxLanguageInfo *        RETVAL;
6247
6248     WXSTRING_INPUT( canonicalName, wxString, ST(2) );
6249
6250     WXSTRING_INPUT( descr, wxString, ST(5) );
6251     RETVAL = new wxLanguageInfo;
6252     RETVAL->Language = language;
6253     RETVAL->CanonicalName = canonicalName;
6254 #if defined( __WXMSW__ )
6255     RETVAL->WinLang = winLang;
6256     RETVAL->WinSublang = winSublang;
6257 #endif
6258     RETVAL->Description = descr;
6259         ST(0) = sv_newmortal();
6260     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::LanguageInfo" );
6261     wxPli_thread_sv_register( aTHX_ "Wx::LanguageInfo", RETVAL, ST(0) );
6262
6263     }
6264     XSRETURN(1);
6265 }
6266
6267
6268 XS(XS_Wx__LanguageInfo_CLONE); /* prototype to pass -Wmissing-prototypes */
6269 XS(XS_Wx__LanguageInfo_CLONE)
6270 {
6271 #ifdef dVAR
6272     dVAR; dXSARGS;
6273 #else
6274     dXSARGS;
6275 #endif
6276     if (items != 1)
6277        croak_xs_usage(cv,  "CLASS");
6278     {
6279         char *  CLASS = (char *)SvPV_nolen(ST(0));
6280     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
6281     }
6282     XSRETURN_EMPTY;
6283 }
6284
6285
6286 XS(XS_Wx__LanguageInfo_DESTROY); /* prototype to pass -Wmissing-prototypes */
6287 XS(XS_Wx__LanguageInfo_DESTROY)
6288 {
6289 #ifdef dVAR
6290     dVAR; dXSARGS;
6291 #else
6292     dXSARGS;
6293 #endif
6294     if (items != 1)
6295        croak_xs_usage(cv,  "THIS");
6296     {
6297         wxLanguageInfo *    THIS = (wxLanguageInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::LanguageInfo" );
6298     if( wxPli_object_is_deleteable( aTHX_ ST(0) ) )
6299         delete THIS;
6300     }
6301     XSRETURN_EMPTY;
6302 }
6303
6304
6305 XS(XS_Wx__LanguageInfo_GetLanguage); /* prototype to pass -Wmissing-prototypes */
6306 XS(XS_Wx__LanguageInfo_GetLanguage)
6307 {
6308 #ifdef dVAR
6309     dVAR; dXSARGS;
6310 #else
6311     dXSARGS;
6312 #endif
6313     if (items != 1)
6314        croak_xs_usage(cv,  "THIS");
6315     {
6316         wxLanguageInfo *    THIS = (wxLanguageInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::LanguageInfo" );
6317         int     RETVAL;
6318         dXSTARG;
6319     RETVAL = THIS->Language;
6320         XSprePUSH; PUSHi((IV)RETVAL);
6321     }
6322     XSRETURN(1);
6323 }
6324
6325
6326 XS(XS_Wx__LanguageInfo_GetCanonicalName); /* prototype to pass -Wmissing-prototypes */
6327 XS(XS_Wx__LanguageInfo_GetCanonicalName)
6328 {
6329 #ifdef dVAR
6330     dVAR; dXSARGS;
6331 #else
6332     dXSARGS;
6333 #endif
6334     if (items != 1)
6335        croak_xs_usage(cv,  "THIS");
6336     {
6337         wxLanguageInfo *    THIS = (wxLanguageInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::LanguageInfo" );
6338         wxString        RETVAL;
6339     RETVAL = THIS->CanonicalName;
6340         ST(0) = sv_newmortal();
6341     WXSTRING_OUTPUT( RETVAL, ST(0) );
6342
6343     }
6344     XSRETURN(1);
6345 }
6346
6347
6348 XS(XS_Wx__LanguageInfo_GetWinLang); /* prototype to pass -Wmissing-prototypes */
6349 XS(XS_Wx__LanguageInfo_GetWinLang)
6350 {
6351 #ifdef dVAR
6352     dVAR; dXSARGS;
6353 #else
6354     dXSARGS;
6355 #endif
6356     if (items != 1)
6357        croak_xs_usage(cv,  "THIS");
6358     {
6359         wxLanguageInfo *    THIS = (wxLanguageInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::LanguageInfo" );
6360         unsigned int    RETVAL;
6361         dXSTARG;
6362 #if defined( __WXMSW__ )
6363     RETVAL = THIS->WinLang;
6364 #else
6365     RETVAL = 0;
6366 #endif
6367         XSprePUSH; PUSHu((UV)RETVAL );
6368     }
6369     XSRETURN(1);
6370 }
6371
6372
6373 XS(XS_Wx__LanguageInfo_GetWinSublang); /* prototype to pass -Wmissing-prototypes */
6374 XS(XS_Wx__LanguageInfo_GetWinSublang)
6375 {
6376 #ifdef dVAR
6377     dVAR; dXSARGS;
6378 #else
6379     dXSARGS;
6380 #endif
6381     if (items != 1)
6382        croak_xs_usage(cv,  "THIS");
6383     {
6384         wxLanguageInfo *    THIS = (wxLanguageInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::LanguageInfo" );
6385         unsigned int    RETVAL;
6386         dXSTARG;
6387 #if defined( __WXMSW__ )
6388     RETVAL = THIS->WinSublang;
6389 #else
6390     RETVAL = 0;
6391 #endif
6392     }
6393     XSRETURN(1);
6394 }
6395
6396
6397 XS(XS_Wx__LanguageInfo_GetDescription); /* prototype to pass -Wmissing-prototypes */
6398 XS(XS_Wx__LanguageInfo_GetDescription)
6399 {
6400 #ifdef dVAR
6401     dVAR; dXSARGS;
6402 #else
6403     dXSARGS;
6404 #endif
6405     if (items != 1)
6406        croak_xs_usage(cv,  "THIS");
6407     {
6408         wxLanguageInfo *    THIS = (wxLanguageInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::LanguageInfo" );
6409         wxString        RETVAL;
6410     RETVAL = THIS->Description;
6411         ST(0) = sv_newmortal();
6412     WXSTRING_OUTPUT( RETVAL, ST(0) );
6413
6414     }
6415     XSRETURN(1);
6416 }
6417
6418
6419 XS(XS_Wx__Locale_newLong); /* prototype to pass -Wmissing-prototypes */
6420 XS(XS_Wx__Locale_newLong)
6421 {
6422 #ifdef dVAR
6423     dVAR; dXSARGS;
6424 #else
6425     dXSARGS;
6426 #endif
6427     if (items < 1 || items > 5)
6428        croak_xs_usage(cv,  "name, shorts = NULL, locale = NULL, loaddefault = true, convertencoding = false");
6429     {
6430         const wxChar*   name;
6431         const wxChar*   shorts;
6432         const wxChar*   locale;
6433         bool    loaddefault;
6434         bool    convertencoding;
6435         wxLocale *      RETVAL;
6436
6437     WXCHAR_INPUT( name, wxChar*, ST(0) );
6438
6439         if (items < 4)
6440             loaddefault = true;
6441         else {
6442             loaddefault = (bool)SvTRUE(ST(3));
6443         }
6444
6445         if (items < 5)
6446             convertencoding = false;
6447         else {
6448             convertencoding = (bool)SvTRUE(ST(4));
6449         }
6450     wxString shorts_tmp, locale_tmp;
6451
6452     if( items < 2 ) shorts = NULL;
6453     else
6454     {
6455         WXSTRING_INPUT( shorts_tmp, const char*, ST(1) );
6456         shorts = shorts_tmp.c_str();
6457     }
6458
6459     if( items < 3 ) locale = NULL;
6460     else
6461     {
6462         WXSTRING_INPUT( locale_tmp, const char*, ST(2) );
6463         locale = locale_tmp.c_str();
6464     }
6465
6466     RETVAL = new wxLocale( name, shorts,
6467         ( locale && wxStrlen( locale ) ) ? locale : NULL,
6468         loaddefault, convertencoding );
6469         ST(0) = sv_newmortal();
6470     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Locale" );
6471     wxPli_thread_sv_register( aTHX_ "Wx::Locale", RETVAL, ST(0) );
6472
6473     }
6474     XSRETURN(1);
6475 }
6476
6477
6478 XS(XS_Wx__Locale_newShort); /* prototype to pass -Wmissing-prototypes */
6479 XS(XS_Wx__Locale_newShort)
6480 {
6481 #ifdef dVAR
6482     dVAR; dXSARGS;
6483 #else
6484     dXSARGS;
6485 #endif
6486     if (items < 1 || items > 2)
6487        croak_xs_usage(cv,  "language, flags = wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING");
6488     {
6489         int     language = (int)SvIV(ST(0));
6490         int     flags;
6491         wxLocale *      RETVAL;
6492
6493         if (items < 2)
6494             flags = wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING;
6495         else {
6496             flags = (int)SvIV(ST(1));
6497         }
6498     RETVAL = new wxLocale( language, flags );
6499         ST(0) = sv_newmortal();
6500     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Locale" );
6501     wxPli_thread_sv_register( aTHX_ "Wx::Locale", RETVAL, ST(0) );
6502
6503     }
6504     XSRETURN(1);
6505 }
6506
6507
6508 XS(XS_Wx__Locale_CLONE); /* prototype to pass -Wmissing-prototypes */
6509 XS(XS_Wx__Locale_CLONE)
6510 {
6511 #ifdef dVAR
6512     dVAR; dXSARGS;
6513 #else
6514     dXSARGS;
6515 #endif
6516     if (items != 1)
6517        croak_xs_usage(cv,  "CLASS");
6518     {
6519         char *  CLASS = (char *)SvPV_nolen(ST(0));
6520     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
6521     }
6522     XSRETURN_EMPTY;
6523 }
6524
6525
6526 XS(XS_Wx__Locale_DESTROY); /* prototype to pass -Wmissing-prototypes */
6527 XS(XS_Wx__Locale_DESTROY)
6528 {
6529 #ifdef dVAR
6530     dVAR; dXSARGS;
6531 #else
6532     dXSARGS;
6533 #endif
6534     if (items != 1)
6535        croak_xs_usage(cv,  "THIS");
6536     {
6537         wxLocale *    THIS = (wxLocale *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Locale" );
6538     wxPli_thread_sv_unregister( aTHX_ "Wx::Locale", THIS, ST(0) );
6539     delete THIS;
6540     }
6541     XSRETURN_EMPTY;
6542 }
6543
6544
6545 XS(XS_Wx__Locale_AddCatalog); /* prototype to pass -Wmissing-prototypes */
6546 XS(XS_Wx__Locale_AddCatalog)
6547 {
6548 #ifdef dVAR
6549     dVAR; dXSARGS;
6550 #else
6551     dXSARGS;
6552 #endif
6553     if (items != 2)
6554        croak_xs_usage(cv,  "THIS, domain");
6555     {
6556         wxString        domain;
6557         wxLocale *    THIS = (wxLocale *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Locale" );
6558         bool    RETVAL;
6559
6560     WXSTRING_INPUT( domain, wxString, ST(1) );
6561
6562         RETVAL = THIS->AddCatalog(domain);
6563         ST(0) = boolSV(RETVAL);
6564         sv_2mortal(ST(0));
6565     }
6566     XSRETURN(1);
6567 }
6568
6569
6570 XS(XS_Wx__Locale_AddCatalogLookupPathPrefix); /* prototype to pass -Wmissing-prototypes */
6571 XS(XS_Wx__Locale_AddCatalogLookupPathPrefix)
6572 {
6573 #ifdef dVAR
6574     dVAR; dXSARGS;
6575 #else
6576     dXSARGS;
6577 #endif
6578     if (items != 2)
6579        croak_xs_usage(cv,  "THIS, prefix");
6580     {
6581         wxString        prefix;
6582         wxLocale *    THIS = (wxLocale *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Locale" );
6583
6584     WXSTRING_INPUT( prefix, wxString, ST(1) );
6585
6586         THIS->AddCatalogLookupPathPrefix(prefix);
6587     }
6588     XSRETURN_EMPTY;
6589 }
6590
6591 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
6592 #define XSubPPtmpAABI 1
6593
6594
6595 XS(XS_Wx__Locale_IsAvailable); /* prototype to pass -Wmissing-prototypes */
6596 XS(XS_Wx__Locale_IsAvailable)
6597 {
6598 #ifdef dVAR
6599     dVAR; dXSARGS;
6600 #else
6601     dXSARGS;
6602 #endif
6603     if (items != 1)
6604        croak_xs_usage(cv,  "lang");
6605     {
6606         int     lang = (int)SvIV(ST(0));
6607         bool    RETVAL;
6608     RETVAL = wxLocale::IsAvailable( lang );
6609         ST(0) = boolSV(RETVAL);
6610         sv_2mortal(ST(0));
6611     }
6612     XSRETURN(1);
6613 }
6614
6615 #endif
6616
6617 XS(XS_Wx__Locale_AddLanguage); /* prototype to pass -Wmissing-prototypes */
6618 XS(XS_Wx__Locale_AddLanguage)
6619 {
6620 #ifdef dVAR
6621     dVAR; dXSARGS;
6622 #else
6623     dXSARGS;
6624 #endif
6625     if (items != 1)
6626        croak_xs_usage(cv,  "info");
6627     {
6628         wxLanguageInfo*    info = (wxLanguageInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::LanguageInfo" );
6629     wxLocale::AddLanguage( *info );
6630     }
6631     XSRETURN_EMPTY;
6632 }
6633
6634
6635 XS(XS_Wx__Locale_GetLocale); /* prototype to pass -Wmissing-prototypes */
6636 XS(XS_Wx__Locale_GetLocale)
6637 {
6638 #ifdef dVAR
6639     dVAR; dXSARGS;
6640 #else
6641     dXSARGS;
6642 #endif
6643     if (items != 1)
6644        croak_xs_usage(cv,  "THIS");
6645     {
6646         wxLocale *    THIS = (wxLocale *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Locale" );
6647         const wxChar *  RETVAL;
6648
6649         RETVAL = THIS->GetLocale();
6650         ST(0) = sv_newmortal();
6651     WXCHAR_OUTPUT( RETVAL, ST(0) );
6652
6653     }
6654     XSRETURN(1);
6655 }
6656
6657
6658 XS(XS_Wx__Locale_GetName); /* prototype to pass -Wmissing-prototypes */
6659 XS(XS_Wx__Locale_GetName)
6660 {
6661 #ifdef dVAR
6662     dVAR; dXSARGS;
6663 #else
6664     dXSARGS;
6665 #endif
6666     if (items != 1)
6667        croak_xs_usage(cv,  "THIS");
6668     {
6669         wxLocale *    THIS = (wxLocale *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Locale" );
6670         wxString        RETVAL;
6671
6672         RETVAL = THIS->GetName();
6673         ST(0) = sv_newmortal();
6674     WXSTRING_OUTPUT( RETVAL, ST(0) );
6675
6676     }
6677     XSRETURN(1);
6678 }
6679
6680
6681 XS(XS_Wx__Locale_GetString); /* prototype to pass -Wmissing-prototypes */
6682 XS(XS_Wx__Locale_GetString)
6683 {
6684 #ifdef dVAR
6685     dVAR; dXSARGS;
6686 #else
6687     dXSARGS;
6688 #endif
6689     if (items < 2 || items > 3)
6690        croak_xs_usage(cv,  "THIS, string, domain = NULL");
6691     {
6692         const wxChar*   string;
6693         const wxChar*   domain;
6694         wxLocale *    THIS = (wxLocale *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Locale" );
6695         const wxChar *  RETVAL;
6696
6697     WXCHAR_INPUT( string, wxChar*, ST(1) );
6698
6699         if (items < 3)
6700             domain = NULL;
6701         else {
6702     WXCHAR_INPUT( domain, wxChar*, ST(2) );
6703         }
6704
6705         RETVAL = THIS->GetString(string, domain);
6706         ST(0) = sv_newmortal();
6707     WXCHAR_OUTPUT( RETVAL, ST(0) );
6708
6709     }
6710     XSRETURN(1);
6711 }
6712
6713 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
6714 #define XSubPPtmpAABJ 1
6715
6716
6717 XS(XS_Wx__Locale_GetHeaderValue); /* prototype to pass -Wmissing-prototypes */
6718 XS(XS_Wx__Locale_GetHeaderValue)
6719 {
6720 #ifdef dVAR
6721     dVAR; dXSARGS;
6722 #else
6723     dXSARGS;
6724 #endif
6725     if (items < 2 || items > 3)
6726        croak_xs_usage(cv,  "THIS, header, domain = NULL");
6727     {
6728         const wxChar*   header;
6729         const wxChar*   domain;
6730         wxLocale *    THIS = (wxLocale *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Locale" );
6731         wxString        RETVAL;
6732
6733     WXCHAR_INPUT( header, wxChar*, ST(1) );
6734
6735         if (items < 3)
6736             domain = NULL;
6737         else {
6738     WXCHAR_INPUT( domain, wxChar*, ST(2) );
6739         }
6740
6741         RETVAL = THIS->GetHeaderValue(header, domain);
6742         ST(0) = sv_newmortal();
6743     WXSTRING_OUTPUT( RETVAL, ST(0) );
6744
6745     }
6746     XSRETURN(1);
6747 }
6748
6749 #endif
6750
6751 XS(XS_Wx__Locale_GetSystemLanguage); /* prototype to pass -Wmissing-prototypes */
6752 XS(XS_Wx__Locale_GetSystemLanguage)
6753 {
6754 #ifdef dVAR
6755     dVAR; dXSARGS;
6756 #else
6757     dXSARGS;
6758 #endif
6759     if (items != 0)
6760        croak_xs_usage(cv,  "");
6761     {
6762         int     RETVAL;
6763         dXSTARG;
6764     RETVAL = wxLocale::GetSystemLanguage();
6765         XSprePUSH; PUSHi((IV)RETVAL);
6766     }
6767     XSRETURN(1);
6768 }
6769
6770
6771 XS(XS_Wx__Locale_GetLanguage); /* prototype to pass -Wmissing-prototypes */
6772 XS(XS_Wx__Locale_GetLanguage)
6773 {
6774 #ifdef dVAR
6775     dVAR; dXSARGS;
6776 #else
6777     dXSARGS;
6778 #endif
6779     if (items != 1)
6780        croak_xs_usage(cv,  "THIS");
6781     {
6782         wxLocale *    THIS = (wxLocale *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Locale" );
6783         int     RETVAL;
6784         dXSTARG;
6785
6786         RETVAL = THIS->GetLanguage();
6787         XSprePUSH; PUSHi((IV)RETVAL);
6788     }
6789     XSRETURN(1);
6790 }
6791
6792 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
6793 #define XSubPPtmpAABK 1
6794
6795
6796 XS(XS_Wx__Locale_GetLanguageName); /* prototype to pass -Wmissing-prototypes */
6797 XS(XS_Wx__Locale_GetLanguageName)
6798 {
6799 #ifdef dVAR
6800     dVAR; dXSARGS;
6801 #else
6802     dXSARGS;
6803 #endif
6804     if (items != 2)
6805        croak_xs_usage(cv,  "THIS, lang");
6806     {
6807         int     lang = (int)SvIV(ST(1));
6808         wxLocale *    THIS = (wxLocale *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Locale" );
6809         wxString        RETVAL;
6810
6811         RETVAL = THIS->GetLanguageName(lang);
6812         ST(0) = sv_newmortal();
6813     WXSTRING_OUTPUT( RETVAL, ST(0) );
6814
6815     }
6816     XSRETURN(1);
6817 }
6818
6819 #endif
6820
6821 XS(XS_Wx__Locale_GetSysName); /* prototype to pass -Wmissing-prototypes */
6822 XS(XS_Wx__Locale_GetSysName)
6823 {
6824 #ifdef dVAR
6825     dVAR; dXSARGS;
6826 #else
6827     dXSARGS;
6828 #endif
6829     if (items != 1)
6830        croak_xs_usage(cv,  "THIS");
6831     {
6832         wxLocale *    THIS = (wxLocale *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Locale" );
6833         wxString        RETVAL;
6834
6835         RETVAL = THIS->GetSysName();
6836         ST(0) = sv_newmortal();
6837     WXSTRING_OUTPUT( RETVAL, ST(0) );
6838
6839     }
6840     XSRETURN(1);
6841 }
6842
6843
6844 XS(XS_Wx__Locale_GetCanonicalName); /* prototype to pass -Wmissing-prototypes */
6845 XS(XS_Wx__Locale_GetCanonicalName)
6846 {
6847 #ifdef dVAR
6848     dVAR; dXSARGS;
6849 #else
6850     dXSARGS;
6851 #endif
6852     if (items != 1)
6853        croak_xs_usage(cv,  "THIS");
6854     {
6855         wxLocale *    THIS = (wxLocale *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Locale" );
6856         wxString        RETVAL;
6857
6858         RETVAL = THIS->GetCanonicalName();
6859         ST(0) = sv_newmortal();
6860     WXSTRING_OUTPUT( RETVAL, ST(0) );
6861
6862     }
6863     XSRETURN(1);
6864 }
6865
6866
6867 XS(XS_Wx__Locale_GetSystemEncoding); /* prototype to pass -Wmissing-prototypes */
6868 XS(XS_Wx__Locale_GetSystemEncoding)
6869 {
6870 #ifdef dVAR
6871     dVAR; dXSARGS;
6872 #else
6873     dXSARGS;
6874 #endif
6875     if (items != 0)
6876        croak_xs_usage(cv,  "");
6877     {
6878         wxFontEncoding  RETVAL;
6879         dXSTARG;
6880     RETVAL = wxLocale::GetSystemEncoding();
6881         XSprePUSH; PUSHi((IV)RETVAL);
6882     }
6883     XSRETURN(1);
6884 }
6885
6886
6887 XS(XS_Wx__Locale_GetSystemEncodingName); /* prototype to pass -Wmissing-prototypes */
6888 XS(XS_Wx__Locale_GetSystemEncodingName)
6889 {
6890 #ifdef dVAR
6891     dVAR; dXSARGS;
6892 #else
6893     dXSARGS;
6894 #endif
6895     if (items != 0)
6896        croak_xs_usage(cv,  "");
6897     {
6898         wxString        RETVAL;
6899     RETVAL = wxLocale::GetSystemEncodingName();
6900         ST(0) = sv_newmortal();
6901     WXSTRING_OUTPUT( RETVAL, ST(0) );
6902
6903     }
6904     XSRETURN(1);
6905 }
6906
6907
6908 XS(XS_Wx__Locale_IsLoaded); /* prototype to pass -Wmissing-prototypes */
6909 XS(XS_Wx__Locale_IsLoaded)
6910 {
6911 #ifdef dVAR
6912     dVAR; dXSARGS;
6913 #else
6914     dXSARGS;
6915 #endif
6916     if (items != 2)
6917        croak_xs_usage(cv,  "THIS, domain");
6918     {
6919         const wxChar*   domain;
6920         wxLocale *    THIS = (wxLocale *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Locale" );
6921         bool    RETVAL;
6922
6923     WXCHAR_INPUT( domain, wxChar*, ST(1) );
6924
6925         RETVAL = THIS->IsLoaded(domain);
6926         ST(0) = boolSV(RETVAL);
6927         sv_2mortal(ST(0));
6928     }
6929     XSRETURN(1);
6930 }
6931
6932
6933 XS(XS_Wx__Locale_IsOk); /* prototype to pass -Wmissing-prototypes */
6934 XS(XS_Wx__Locale_IsOk)
6935 {
6936 #ifdef dVAR
6937     dVAR; dXSARGS;
6938 #else
6939     dXSARGS;
6940 #endif
6941     if (items != 1)
6942        croak_xs_usage(cv,  "THIS");
6943     {
6944         wxLocale *    THIS = (wxLocale *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Locale" );
6945         bool    RETVAL;
6946
6947         RETVAL = THIS->IsOk();
6948         ST(0) = boolSV(RETVAL);
6949         sv_2mortal(ST(0));
6950     }
6951     XSRETURN(1);
6952 }
6953
6954
6955 XS(XS_Wx__Locale_FindLanguageInfo); /* prototype to pass -Wmissing-prototypes */
6956 XS(XS_Wx__Locale_FindLanguageInfo)
6957 {
6958 #ifdef dVAR
6959     dVAR; dXSARGS;
6960 #else
6961     dXSARGS;
6962 #endif
6963     if (items != 1)
6964        croak_xs_usage(cv,  "name");
6965     {
6966         wxString        name;
6967         const wxLanguageInfo *  RETVAL;
6968
6969     WXSTRING_INPUT( name, wxString, ST(0) );
6970     RETVAL = wxLocale::FindLanguageInfo( name );
6971         ST(0) = sv_newmortal();
6972     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::LanguageInfo" );
6973     wxPli_thread_sv_register( aTHX_ "Wx::LanguageInfo", RETVAL, ST(0) );
6974
6975     wxPli_object_set_deleteable( aTHX_ ST(0), false );
6976     }
6977     XSRETURN(1);
6978 }
6979
6980
6981 XS(XS_Wx__Locale_Init); /* prototype to pass -Wmissing-prototypes */
6982 XS(XS_Wx__Locale_Init)
6983 {
6984 #ifdef dVAR
6985     dVAR; dXSARGS;
6986 #else
6987     dXSARGS;
6988 #endif
6989     if (items < 2 || items > 3)
6990        croak_xs_usage(cv,  "THIS, language, flags = wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING");
6991     {
6992         int     language = (int)SvIV(ST(1));
6993         int     flags;
6994         wxLocale *    THIS = (wxLocale *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Locale" );
6995         bool    RETVAL;
6996
6997         if (items < 3)
6998             flags = wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING;
6999         else {
7000             flags = (int)SvIV(ST(2));
7001         }
7002
7003         RETVAL = THIS->Init(language, flags);
7004         ST(0) = boolSV(RETVAL);
7005         sv_2mortal(ST(0));
7006     }
7007     XSRETURN(1);
7008 }
7009
7010
7011 XS(XS_Wx__Locale_GetLanguageInfo); /* prototype to pass -Wmissing-prototypes */
7012 XS(XS_Wx__Locale_GetLanguageInfo)
7013 {
7014 #ifdef dVAR
7015     dVAR; dXSARGS;
7016 #else
7017     dXSARGS;
7018 #endif
7019     if (items != 1)
7020        croak_xs_usage(cv,  "language");
7021     {
7022         int     language = (int)SvIV(ST(0));
7023         const wxLanguageInfo *  RETVAL;
7024     RETVAL = wxLocale::GetLanguageInfo( language );
7025         ST(0) = sv_newmortal();
7026     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::LanguageInfo" );
7027     wxPli_thread_sv_register( aTHX_ "Wx::LanguageInfo", RETVAL, ST(0) );
7028
7029     wxPli_object_set_deleteable( aTHX_ ST(0), false );
7030     }
7031     XSRETURN(1);
7032 }
7033
7034
7035 XS(XS_Wx_GetTranslation); /* prototype to pass -Wmissing-prototypes */
7036 XS(XS_Wx_GetTranslation)
7037 {
7038 #ifdef dVAR
7039     dVAR; dXSARGS;
7040 #else
7041     dXSARGS;
7042 #endif
7043     if (items != 1)
7044        croak_xs_usage(cv,  "string");
7045     {
7046         const wxChar*   string;
7047         const wxChar *  RETVAL;
7048
7049     WXCHAR_INPUT( string, wxChar*, ST(0) );
7050     RETVAL = wxGetTranslation( string );
7051         ST(0) = sv_newmortal();
7052     WXCHAR_OUTPUT( RETVAL, ST(0) );
7053
7054     }
7055     XSRETURN(1);
7056 }
7057
7058
7059 /* INCLUDE: Returning to 'XS/ToolTip.xs' from 'XS/Locale.xs' */
7060
7061 #if wxPERL_USE_TOOLTIPS
7062 #include <wx/tooltip.h>
7063 #define XSubPPtmpAABL 1
7064
7065
7066 XS(XS_Wx__ToolTip_Enable); /* prototype to pass -Wmissing-prototypes */
7067 XS(XS_Wx__ToolTip_Enable)
7068 {
7069 #ifdef dVAR
7070     dVAR; dXSARGS;
7071 #else
7072     dXSARGS;
7073 #endif
7074     if (items != 1)
7075        croak_xs_usage(cv,  "enable");
7076     {
7077         bool    enable = (bool)SvTRUE(ST(0));
7078     wxToolTip::Enable( enable );
7079     }
7080     XSRETURN_EMPTY;
7081 }
7082
7083
7084 XS(XS_Wx__ToolTip_SetDelay); /* prototype to pass -Wmissing-prototypes */
7085 XS(XS_Wx__ToolTip_SetDelay)
7086 {
7087 #ifdef dVAR
7088     dVAR; dXSARGS;
7089 #else
7090     dXSARGS;
7091 #endif
7092     if (items != 1)
7093        croak_xs_usage(cv,  "msecs");
7094     {
7095         long    msecs = (long)SvIV(ST(0));
7096     wxToolTip::SetDelay( msecs );
7097     }
7098     XSRETURN_EMPTY;
7099 }
7100
7101 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
7102 #define XSubPPtmpAABM 1
7103
7104
7105 XS(XS_Wx__ToolTip_SetAutoPop); /* prototype to pass -Wmissing-prototypes */
7106 XS(XS_Wx__ToolTip_SetAutoPop)
7107 {
7108 #ifdef dVAR
7109     dVAR; dXSARGS;
7110 #else
7111     dXSARGS;
7112 #endif
7113     if (items != 1)
7114        croak_xs_usage(cv,  "msecs");
7115     {
7116         long    msecs = (long)SvIV(ST(0));
7117     wxToolTip::SetAutoPop( msecs );
7118     }
7119     XSRETURN_EMPTY;
7120 }
7121
7122
7123 XS(XS_Wx__ToolTip_SetReshow); /* prototype to pass -Wmissing-prototypes */
7124 XS(XS_Wx__ToolTip_SetReshow)
7125 {
7126 #ifdef dVAR
7127     dVAR; dXSARGS;
7128 #else
7129     dXSARGS;
7130 #endif
7131     if (items != 1)
7132        croak_xs_usage(cv,  "msecs");
7133     {
7134         long    msecs = (long)SvIV(ST(0));
7135     wxToolTip::SetReshow( msecs );
7136     }
7137     XSRETURN_EMPTY;
7138 }
7139
7140 #endif
7141
7142 XS(XS_Wx__ToolTip_new); /* prototype to pass -Wmissing-prototypes */
7143 XS(XS_Wx__ToolTip_new)
7144 {
7145 #ifdef dVAR
7146     dVAR; dXSARGS;
7147 #else
7148     dXSARGS;
7149 #endif
7150     if (items != 2)
7151        croak_xs_usage(cv,  "CLASS, string");
7152     {
7153         wxString        string;
7154         char *  CLASS = (char *)SvPV_nolen(ST(0));
7155         wxToolTip *     RETVAL;
7156
7157     WXSTRING_INPUT( string, wxString, ST(1) );
7158
7159         RETVAL = new wxToolTip(string);
7160         ST(0) = sv_newmortal();
7161     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7162
7163     }
7164     XSRETURN(1);
7165 }
7166
7167
7168 XS(XS_Wx__ToolTip_SetTip); /* prototype to pass -Wmissing-prototypes */
7169 XS(XS_Wx__ToolTip_SetTip)
7170 {
7171 #ifdef dVAR
7172     dVAR; dXSARGS;
7173 #else
7174     dXSARGS;
7175 #endif
7176     if (items != 2)
7177        croak_xs_usage(cv,  "THIS, tip");
7178     {
7179         wxString        tip;
7180         wxToolTip *    THIS = (wxToolTip *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ToolTip" );
7181
7182     WXSTRING_INPUT( tip, wxString, ST(1) );
7183
7184         THIS->SetTip(tip);
7185     }
7186     XSRETURN_EMPTY;
7187 }
7188
7189
7190 XS(XS_Wx__ToolTip_GetTip); /* prototype to pass -Wmissing-prototypes */
7191 XS(XS_Wx__ToolTip_GetTip)
7192 {
7193 #ifdef dVAR
7194     dVAR; dXSARGS;
7195 #else
7196     dXSARGS;
7197 #endif
7198     if (items != 1)
7199        croak_xs_usage(cv,  "THIS");
7200     {
7201         wxToolTip *    THIS = (wxToolTip *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ToolTip" );
7202         wxString        RETVAL;
7203
7204         RETVAL = THIS->GetTip();
7205         ST(0) = sv_newmortal();
7206     WXSTRING_OUTPUT( RETVAL, ST(0) );
7207
7208     }
7209     XSRETURN(1);
7210 }
7211
7212
7213 XS(XS_Wx__ToolTip_GetWindow); /* prototype to pass -Wmissing-prototypes */
7214 XS(XS_Wx__ToolTip_GetWindow)
7215 {
7216 #ifdef dVAR
7217     dVAR; dXSARGS;
7218 #else
7219     dXSARGS;
7220 #endif
7221     if (items != 1)
7222        croak_xs_usage(cv,  "THIS");
7223     {
7224         wxToolTip *    THIS = (wxToolTip *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ToolTip" );
7225         wxWindow *      RETVAL;
7226
7227         RETVAL = THIS->GetWindow();
7228         ST(0) = sv_newmortal();
7229     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7230
7231     }
7232     XSRETURN(1);
7233 }
7234
7235 #endif
7236
7237 /* INCLUDE: Returning to 'XS/Log.xs' from 'XS/ToolTip.xs' */
7238
7239 #include <wx/log.h>
7240 #include "cpp/log.h"
7241
7242 XS(XS_Wx__Log_Destroy); /* prototype to pass -Wmissing-prototypes */
7243 XS(XS_Wx__Log_Destroy)
7244 {
7245 #ifdef dVAR
7246     dVAR; dXSARGS;
7247 #else
7248     dXSARGS;
7249 #endif
7250     if (items != 1)
7251        croak_xs_usage(cv,  "THIS");
7252     {
7253         wxLog *    THIS = (wxLog *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Log" );
7254     delete THIS;
7255     }
7256     XSRETURN_EMPTY;
7257 }
7258
7259
7260 XS(XS_Wx__Log_AddTraceMask); /* prototype to pass -Wmissing-prototypes */
7261 XS(XS_Wx__Log_AddTraceMask)
7262 {
7263 #ifdef dVAR
7264     dVAR; dXSARGS;
7265 #else
7266     dXSARGS;
7267 #endif
7268     if (items != 1)
7269        croak_xs_usage(cv,  "mask");
7270     {
7271         wxString        mask;
7272
7273     WXSTRING_INPUT( mask, wxString, ST(0) );
7274     wxLog::AddTraceMask( mask );
7275     }
7276     XSRETURN_EMPTY;
7277 }
7278
7279
7280 XS(XS_Wx__Log_ClearTraceMasks); /* prototype to pass -Wmissing-prototypes */
7281 XS(XS_Wx__Log_ClearTraceMasks)
7282 {
7283 #ifdef dVAR
7284     dVAR; dXSARGS;
7285 #else
7286     dXSARGS;
7287 #endif
7288     if (items != 0)
7289        croak_xs_usage(cv,  "");
7290     {
7291     wxLog::ClearTraceMasks();
7292     }
7293     XSRETURN_EMPTY;
7294 }
7295
7296
7297 XS(XS_Wx__Log_RemoveTraceMask); /* prototype to pass -Wmissing-prototypes */
7298 XS(XS_Wx__Log_RemoveTraceMask)
7299 {
7300 #ifdef dVAR
7301     dVAR; dXSARGS;
7302 #else
7303     dXSARGS;
7304 #endif
7305     if (items != 1)
7306        croak_xs_usage(cv,  "mask");
7307     {
7308         wxString        mask;
7309
7310     WXSTRING_INPUT( mask, wxString, ST(0) );
7311     wxLog::RemoveTraceMask( mask );
7312     }
7313     XSRETURN_EMPTY;
7314 }
7315
7316
7317 XS(XS_Wx__Log_IsAllowedTraceMask); /* prototype to pass -Wmissing-prototypes */
7318 XS(XS_Wx__Log_IsAllowedTraceMask)
7319 {
7320 #ifdef dVAR
7321     dVAR; dXSARGS;
7322 #else
7323     dXSARGS;
7324 #endif
7325     if (items != 1)
7326        croak_xs_usage(cv,  "mask");
7327     {
7328         wxString        mask;
7329         bool    RETVAL;
7330
7331     WXSTRING_INPUT( mask, wxString, ST(0) );
7332     RETVAL = wxLog::IsAllowedTraceMask( mask );
7333         ST(0) = boolSV(RETVAL);
7334         sv_2mortal(ST(0));
7335     }
7336     XSRETURN(1);
7337 }
7338
7339
7340 XS(XS_Wx__Log_GetActiveTarget); /* prototype to pass -Wmissing-prototypes */
7341 XS(XS_Wx__Log_GetActiveTarget)
7342 {
7343 #ifdef dVAR
7344     dVAR; dXSARGS;
7345 #else
7346     dXSARGS;
7347 #endif
7348     if (items != 0)
7349        croak_xs_usage(cv,  "");
7350     {
7351         wxLog * RETVAL;
7352     RETVAL = wxLog::GetActiveTarget();
7353         ST(0) = sv_newmortal();
7354     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Log" );
7355
7356     }
7357     XSRETURN(1);
7358 }
7359
7360
7361 XS(XS_Wx__Log_SetActiveTarget); /* prototype to pass -Wmissing-prototypes */
7362 XS(XS_Wx__Log_SetActiveTarget)
7363 {
7364 #ifdef dVAR
7365     dVAR; dXSARGS;
7366 #else
7367     dXSARGS;
7368 #endif
7369     if (items != 1)
7370        croak_xs_usage(cv,  "target");
7371     {
7372         wxLog*    target = (wxLog *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Log" );
7373         wxLog * RETVAL;
7374     RETVAL = wxLog::SetActiveTarget( target );
7375         ST(0) = sv_newmortal();
7376     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Log" );
7377
7378     }
7379     XSRETURN(1);
7380 }
7381
7382
7383 XS(XS_Wx__Log_DontCreateOnDemand); /* prototype to pass -Wmissing-prototypes */
7384 XS(XS_Wx__Log_DontCreateOnDemand)
7385 {
7386 #ifdef dVAR
7387     dVAR; dXSARGS;
7388 #else
7389     dXSARGS;
7390 #endif
7391     if (items != 0)
7392        croak_xs_usage(cv,  "");
7393     {
7394     wxLog::DontCreateOnDemand();
7395     }
7396     XSRETURN_EMPTY;
7397 }
7398
7399
7400 XS(XS_Wx__Log_Flush); /* prototype to pass -Wmissing-prototypes */
7401 XS(XS_Wx__Log_Flush)
7402 {
7403 #ifdef dVAR
7404     dVAR; dXSARGS;
7405 #else
7406     dXSARGS;
7407 #endif
7408     if (items != 1)
7409        croak_xs_usage(cv,  "THIS");
7410     {
7411         wxLog *    THIS = (wxLog *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Log" );
7412
7413         THIS->Flush();
7414     }
7415     XSRETURN_EMPTY;
7416 }
7417
7418
7419 XS(XS_Wx__Log_FlushActive); /* prototype to pass -Wmissing-prototypes */
7420 XS(XS_Wx__Log_FlushActive)
7421 {
7422 #ifdef dVAR
7423     dVAR; dXSARGS;
7424 #else
7425     dXSARGS;
7426 #endif
7427     if (items != 1)
7428        croak_xs_usage(cv,  "THIS");
7429     {
7430         wxLog *    THIS = (wxLog *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Log" );
7431
7432         THIS->FlushActive();
7433     }
7434     XSRETURN_EMPTY;
7435 }
7436
7437
7438 XS(XS_Wx__Log_HasPendingMessages); /* prototype to pass -Wmissing-prototypes */
7439 XS(XS_Wx__Log_HasPendingMessages)
7440 {
7441 #ifdef dVAR
7442     dVAR; dXSARGS;
7443 #else
7444     dXSARGS;
7445 #endif
7446     if (items != 1)
7447        croak_xs_usage(cv,  "THIS");
7448     {
7449         wxLog *    THIS = (wxLog *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Log" );
7450         bool    RETVAL;
7451
7452         RETVAL = THIS->HasPendingMessages();
7453         ST(0) = boolSV(RETVAL);
7454         sv_2mortal(ST(0));
7455     }
7456     XSRETURN(1);
7457 }
7458
7459
7460 XS(XS_Wx__Log_SetVerbose); /* prototype to pass -Wmissing-prototypes */
7461 XS(XS_Wx__Log_SetVerbose)
7462 {
7463 #ifdef dVAR
7464     dVAR; dXSARGS;
7465 #else
7466     dXSARGS;
7467 #endif
7468     if (items < 1 || items > 2)
7469        croak_xs_usage(cv,  "THIS, verbose = true");
7470     {
7471         bool    verbose;
7472         wxLog *    THIS = (wxLog *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Log" );
7473
7474         if (items < 2)
7475             verbose = true;
7476         else {
7477             verbose = (bool)SvTRUE(ST(1));
7478         }
7479
7480         THIS->SetVerbose(verbose);
7481     }
7482     XSRETURN_EMPTY;
7483 }
7484
7485
7486 XS(XS_Wx__Log_GetVerbose); /* prototype to pass -Wmissing-prototypes */
7487 XS(XS_Wx__Log_GetVerbose)
7488 {
7489 #ifdef dVAR
7490     dVAR; dXSARGS;
7491 #else
7492     dXSARGS;
7493 #endif
7494     if (items != 1)
7495        croak_xs_usage(cv,  "THIS");
7496     {
7497         wxLog *    THIS = (wxLog *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Log" );
7498         bool    RETVAL;
7499
7500         RETVAL = THIS->GetVerbose();
7501         ST(0) = boolSV(RETVAL);
7502         sv_2mortal(ST(0));
7503     }
7504     XSRETURN(1);
7505 }
7506
7507 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
7508 #define XSubPPtmpAABN 1
7509
7510
7511 XS(XS_Wx__Log__SetTimestamp); /* prototype to pass -Wmissing-prototypes */
7512 XS(XS_Wx__Log__SetTimestamp)
7513 {
7514 #ifdef dVAR
7515     dVAR; dXSARGS;
7516 #else
7517     dXSARGS;
7518 #endif
7519     if (items != 2)
7520        croak_xs_usage(cv,  "format, buffer");
7521     {
7522         wxString        format;
7523         SV*     buffer = ST(1);
7524
7525     WXSTRING_INPUT( format, wxString, ST(0) );
7526     wxLog::SetTimestamp( format );
7527     }
7528     XSRETURN_EMPTY;
7529 }
7530
7531
7532 XS(XS_Wx__Log_GetTimestamp); /* prototype to pass -Wmissing-prototypes */
7533 XS(XS_Wx__Log_GetTimestamp)
7534 {
7535 #ifdef dVAR
7536     dVAR; dXSARGS;
7537 #else
7538     dXSARGS;
7539 #endif
7540     if (items != 1)
7541        croak_xs_usage(cv,  "THIS");
7542     {
7543         wxLog *    THIS = (wxLog *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Log" );
7544         wxString        RETVAL;
7545
7546         RETVAL = THIS->GetTimestamp();
7547         ST(0) = sv_newmortal();
7548     WXSTRING_OUTPUT( RETVAL, ST(0) );
7549
7550     }
7551     XSRETURN(1);
7552 }
7553
7554 #else
7555 #define XSubPPtmpAABO 1
7556
7557
7558 XS(XS_Wx__Log__SetTimestamp); /* prototype to pass -Wmissing-prototypes */
7559 XS(XS_Wx__Log__SetTimestamp)
7560 {
7561 #ifdef dVAR
7562     dVAR; dXSARGS;
7563 #else
7564     dXSARGS;
7565 #endif
7566     if (items != 2)
7567        croak_xs_usage(cv,  "format, buffer");
7568     {
7569         SV*     format = ST(0);
7570         SV*     buffer = ST(1);
7571     if( SvOK( ST(0) ) ) {
7572         const wxString format_tmp = ( SvUTF8( format ) ) ?
7573                   ( wxString( SvPVutf8_nolen( format ), wxConvUTF8 ) )
7574                 : ( wxString( SvPV_nolen( format ), wxConvLibc ) );
7575         const wxChar* fmt = (const wxChar*)format_tmp.c_str();
7576         STRLEN size = wxStrlen( fmt ) * sizeof(wxChar) + sizeof(wxChar);
7577         SvUPGRADE( buffer, SVt_PV );
7578         wxLog::SetTimestamp( wxStrcpy( (wxChar*)SvGROW( buffer, size ),
7579                              fmt ) );
7580     } else {
7581         wxLog::SetTimestamp( NULL );
7582     }
7583     }
7584     XSRETURN(1);
7585 }
7586
7587
7588 XS(XS_Wx__Log_GetTimestamp); /* prototype to pass -Wmissing-prototypes */
7589 XS(XS_Wx__Log_GetTimestamp)
7590 {
7591 #ifdef dVAR
7592     dVAR; dXSARGS;
7593 #else
7594     dXSARGS;
7595 #endif
7596     if (items != 1)
7597        croak_xs_usage(cv,  "THIS");
7598     {
7599         wxLog *    THIS = (wxLog *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Log" );
7600         const wxChar *  RETVAL;
7601
7602         RETVAL = THIS->GetTimestamp();
7603         ST(0) = sv_newmortal();
7604     WXCHAR_OUTPUT( RETVAL, ST(0) );
7605
7606     }
7607     XSRETURN(1);
7608 }
7609
7610 #endif
7611
7612 XS(XS_Wx__Log_SetTraceMask); /* prototype to pass -Wmissing-prototypes */
7613 XS(XS_Wx__Log_SetTraceMask)
7614 {
7615 #ifdef dVAR
7616     dVAR; dXSARGS;
7617 #else
7618     dXSARGS;
7619 #endif
7620     if (items != 1)
7621        croak_xs_usage(cv,  "mask");
7622     {
7623         wxTraceMask    mask = (wxTraceMask)SvUV( ST(0) );
7624     wxLog::SetTraceMask( mask );
7625     }
7626     XSRETURN_EMPTY;
7627 }
7628
7629
7630 XS(XS_Wx__Log_GetTraceMask); /* prototype to pass -Wmissing-prototypes */
7631 XS(XS_Wx__Log_GetTraceMask)
7632 {
7633 #ifdef dVAR
7634     dVAR; dXSARGS;
7635 #else
7636     dXSARGS;
7637 #endif
7638     if (items != 0)
7639        croak_xs_usage(cv,  "");
7640     {
7641         wxTraceMask     RETVAL;
7642         dXSTARG;
7643     RETVAL = wxLog::GetTraceMask();
7644         XSprePUSH; PUSHu((UV)RETVAL );
7645     }
7646     XSRETURN(1);
7647 }
7648
7649
7650 XS(XS_Wx__PlLog_new); /* prototype to pass -Wmissing-prototypes */
7651 XS(XS_Wx__PlLog_new)
7652 {
7653 #ifdef dVAR
7654     dVAR; dXSARGS;
7655 #else
7656     dXSARGS;
7657 #endif
7658     if (items != 1)
7659        croak_xs_usage(cv,  "CLASS");
7660     {
7661         char *  CLASS = (char *)SvPV_nolen(ST(0));
7662         wxPlLog *       RETVAL;
7663     RETVAL = new wxPlLog( CLASS );
7664         ST(0) = sv_newmortal();
7665     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::PlLog" );
7666
7667     }
7668     XSRETURN(1);
7669 }
7670
7671
7672 XS(XS_Wx__LogTextCtrl_new); /* prototype to pass -Wmissing-prototypes */
7673 XS(XS_Wx__LogTextCtrl_new)
7674 {
7675 #ifdef dVAR
7676     dVAR; dXSARGS;
7677 #else
7678     dXSARGS;
7679 #endif
7680     if (items != 2)
7681        croak_xs_usage(cv,  "CLASS, ctrl");
7682     {
7683         wxTextCtrl*    ctrl = (wxTextCtrl *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::TextCtrl" );
7684         char *  CLASS = (char *)SvPV_nolen(ST(0));
7685         wxLogTextCtrl * RETVAL;
7686
7687         RETVAL = new wxLogTextCtrl(ctrl);
7688         ST(0) = sv_newmortal();
7689     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::LogTextCtrl" );
7690
7691     }
7692     XSRETURN(1);
7693 }
7694
7695
7696 XS(XS_Wx__LogNull_new); /* prototype to pass -Wmissing-prototypes */
7697 XS(XS_Wx__LogNull_new)
7698 {
7699 #ifdef dVAR
7700     dVAR; dXSARGS;
7701 #else
7702     dXSARGS;
7703 #endif
7704     if (items != 1)
7705        croak_xs_usage(cv,  "CLASS");
7706     {
7707         char *  CLASS = (char *)SvPV_nolen(ST(0));
7708         wxLogNull *     RETVAL;
7709
7710         RETVAL = new wxLogNull();
7711         ST(0) = sv_newmortal();
7712     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::LogNull" );
7713     wxPli_thread_sv_register( aTHX_ "Wx::LogNull", RETVAL, ST(0) );
7714
7715     }
7716     XSRETURN(1);
7717 }
7718
7719
7720 XS(XS_Wx__LogNull_CLONE); /* prototype to pass -Wmissing-prototypes */
7721 XS(XS_Wx__LogNull_CLONE)
7722 {
7723 #ifdef dVAR
7724     dVAR; dXSARGS;
7725 #else
7726     dXSARGS;
7727 #endif
7728     if (items != 1)
7729        croak_xs_usage(cv,  "CLASS");
7730     {
7731         char *  CLASS = (char *)SvPV_nolen(ST(0));
7732     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
7733     }
7734     XSRETURN_EMPTY;
7735 }
7736
7737
7738 XS(XS_Wx__LogNull_DESTROY); /* prototype to pass -Wmissing-prototypes */
7739 XS(XS_Wx__LogNull_DESTROY)
7740 {
7741 #ifdef dVAR
7742     dVAR; dXSARGS;
7743 #else
7744     dXSARGS;
7745 #endif
7746     if (items != 1)
7747        croak_xs_usage(cv,  "THIS");
7748     {
7749         wxLogNull *    THIS = (wxLogNull *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::LogNull" );
7750     wxPli_thread_sv_unregister( aTHX_ "Wx::LogNull", THIS, ST(0) );
7751     delete THIS;
7752     }
7753     XSRETURN_EMPTY;
7754 }
7755
7756
7757 XS(XS_Wx__LogGui_new); /* prototype to pass -Wmissing-prototypes */
7758 XS(XS_Wx__LogGui_new)
7759 {
7760 #ifdef dVAR
7761     dVAR; dXSARGS;
7762 #else
7763     dXSARGS;
7764 #endif
7765     if (items != 1)
7766        croak_xs_usage(cv,  "CLASS");
7767     {
7768         char *  CLASS = (char *)SvPV_nolen(ST(0));
7769         wxLogGui *      RETVAL;
7770
7771         RETVAL = new wxLogGui();
7772         ST(0) = sv_newmortal();
7773     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::LogGui" );
7774
7775     }
7776     XSRETURN(1);
7777 }
7778
7779
7780 XS(XS_Wx__LogWindow_new); /* prototype to pass -Wmissing-prototypes */
7781 XS(XS_Wx__LogWindow_new)
7782 {
7783 #ifdef dVAR
7784     dVAR; dXSARGS;
7785 #else
7786     dXSARGS;
7787 #endif
7788     if (items < 3 || items > 5)
7789        croak_xs_usage(cv,  "CLASS, parent, title, show = true, passtoold = true");
7790     {
7791         wxFrame*    parent = (wxFrame *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Frame" );
7792         wxString        title;
7793         bool    show;
7794         bool    passtoold;
7795         char *  CLASS = (char *)SvPV_nolen(ST(0));
7796         wxLogWindow *   RETVAL;
7797
7798     WXSTRING_INPUT( title, wxString, ST(2) );
7799
7800         if (items < 4)
7801             show = true;
7802         else {
7803             show = (bool)SvTRUE(ST(3));
7804         }
7805
7806         if (items < 5)
7807             passtoold = true;
7808         else {
7809             passtoold = (bool)SvTRUE(ST(4));
7810         }
7811
7812         RETVAL = new wxLogWindow(parent, title, show, passtoold);
7813         ST(0) = sv_newmortal();
7814     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::LogWindow" );
7815
7816     }
7817     XSRETURN(1);
7818 }
7819
7820 #if 0
7821 #define XSINTERFACE__wxstring( _ret, _cv, _f ) \
7822   ( ( void (*)( const wxString& ) ) _f)
7823 #define XSINTERFACE__wxstring_SET( _cv, _f ) \
7824   ( CvXSUBANY( _cv ).any_ptr = (void*) _f ) 
7825 #undef dXSFUNCTION
7826 #define dXSFUNCTION( a ) \
7827   void (*XSFUNCTION)( const wxString& )
7828 #define XSubPPtmpAABP 1
7829
7830
7831 XS(XS_Wx_interface__wxstring); /* prototype to pass -Wmissing-prototypes */
7832 XS(XS_Wx_interface__wxstring)
7833 {
7834 #ifdef dVAR
7835     dVAR; dXSARGS;
7836 #else
7837     dXSARGS;
7838 #endif
7839     dXSFUNCTION(void);
7840     if (items != 1)
7841        croak_xs_usage(cv,  "string");
7842     {
7843         wxString        string;
7844
7845     WXSTRING_INPUT( string, wxString, ST(0) );
7846         XSFUNCTION = XSINTERFACE__wxstring(void,cv,XSANY.any_dptr);
7847
7848         XSFUNCTION(string);
7849     }
7850     XSRETURN_EMPTY;
7851 }
7852
7853 #else
7854 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
7855 #define XSubPPtmpAABQ 1
7856
7857
7858 XS(XS_Wx_wxLogError); /* prototype to pass -Wmissing-prototypes */
7859 XS(XS_Wx_wxLogError)
7860 {
7861 #ifdef dVAR
7862     dVAR; dXSARGS;
7863 #else
7864     dXSARGS;
7865 #endif
7866     if (items != 1)
7867        croak_xs_usage(cv,  "string");
7868     {
7869         wxString        string;
7870
7871     WXSTRING_INPUT( string, wxString, ST(0) );
7872
7873         wxLogError(string);
7874     }
7875     XSRETURN_EMPTY;
7876 }
7877
7878
7879 XS(XS_Wx_wxLogFatalError); /* prototype to pass -Wmissing-prototypes */
7880 XS(XS_Wx_wxLogFatalError)
7881 {
7882 #ifdef dVAR
7883     dVAR; dXSARGS;
7884 #else
7885     dXSARGS;
7886 #endif
7887     if (items != 1)
7888        croak_xs_usage(cv,  "string");
7889     {
7890         wxString        string;
7891
7892     WXSTRING_INPUT( string, wxString, ST(0) );
7893
7894         wxLogFatalError(string);
7895     }
7896     XSRETURN_EMPTY;
7897 }
7898
7899
7900 XS(XS_Wx_wxLogWarning); /* prototype to pass -Wmissing-prototypes */
7901 XS(XS_Wx_wxLogWarning)
7902 {
7903 #ifdef dVAR
7904     dVAR; dXSARGS;
7905 #else
7906     dXSARGS;
7907 #endif
7908     if (items != 1)
7909        croak_xs_usage(cv,  "string");
7910     {
7911         wxString        string;
7912
7913     WXSTRING_INPUT( string, wxString, ST(0) );
7914
7915         wxLogWarning(string);
7916     }
7917     XSRETURN_EMPTY;
7918 }
7919
7920
7921 XS(XS_Wx_wxLogMessage); /* prototype to pass -Wmissing-prototypes */
7922 XS(XS_Wx_wxLogMessage)
7923 {
7924 #ifdef dVAR
7925     dVAR; dXSARGS;
7926 #else
7927     dXSARGS;
7928 #endif
7929     if (items != 1)
7930        croak_xs_usage(cv,  "string");
7931     {
7932         wxString        string;
7933
7934     WXSTRING_INPUT( string, wxString, ST(0) );
7935
7936         wxLogMessage(string);
7937     }
7938     XSRETURN_EMPTY;
7939 }
7940
7941
7942 XS(XS_Wx_wxLogVerbose); /* prototype to pass -Wmissing-prototypes */
7943 XS(XS_Wx_wxLogVerbose)
7944 {
7945 #ifdef dVAR
7946     dVAR; dXSARGS;
7947 #else
7948     dXSARGS;
7949 #endif
7950     if (items != 1)
7951        croak_xs_usage(cv,  "string");
7952     {
7953         wxString        string;
7954
7955     WXSTRING_INPUT( string, wxString, ST(0) );
7956
7957         wxLogVerbose(string);
7958     }
7959     XSRETURN_EMPTY;
7960 }
7961
7962
7963 XS(XS_Wx_wxLogDebug); /* prototype to pass -Wmissing-prototypes */
7964 XS(XS_Wx_wxLogDebug)
7965 {
7966 #ifdef dVAR
7967     dVAR; dXSARGS;
7968 #else
7969     dXSARGS;
7970 #endif
7971     if (items != 1)
7972        croak_xs_usage(cv,  "string");
7973     {
7974         wxString        string;
7975
7976     WXSTRING_INPUT( string, wxString, ST(0) );
7977
7978         wxLogDebug(string);
7979     }
7980     XSRETURN_EMPTY;
7981 }
7982
7983 #else
7984 #define XSubPPtmpAABR 1
7985
7986
7987 XS(XS_Wx_wxLogError); /* prototype to pass -Wmissing-prototypes */
7988 XS(XS_Wx_wxLogError)
7989 {
7990 #ifdef dVAR
7991     dVAR; dXSARGS;
7992 #else
7993     dXSARGS;
7994 #endif
7995     if (items != 1)
7996        croak_xs_usage(cv,  "string");
7997     {
7998         const wxChar*   string;
7999
8000     WXCHAR_INPUT( string, wxChar*, ST(0) );
8001
8002         wxLogError(string);
8003     }
8004     XSRETURN_EMPTY;
8005 }
8006
8007
8008 XS(XS_Wx_wxLogFatalError); /* prototype to pass -Wmissing-prototypes */
8009 XS(XS_Wx_wxLogFatalError)
8010 {
8011 #ifdef dVAR
8012     dVAR; dXSARGS;
8013 #else
8014     dXSARGS;
8015 #endif
8016     if (items != 1)
8017        croak_xs_usage(cv,  "string");
8018     {
8019         const wxChar*   string;
8020
8021     WXCHAR_INPUT( string, wxChar*, ST(0) );
8022
8023         wxLogFatalError(string);
8024     }
8025     XSRETURN_EMPTY;
8026 }
8027
8028
8029 XS(XS_Wx_wxLogWarning); /* prototype to pass -Wmissing-prototypes */
8030 XS(XS_Wx_wxLogWarning)
8031 {
8032 #ifdef dVAR
8033     dVAR; dXSARGS;
8034 #else
8035     dXSARGS;
8036 #endif
8037     if (items != 1)
8038        croak_xs_usage(cv,  "string");
8039     {
8040         const wxChar*   string;
8041
8042     WXCHAR_INPUT( string, wxChar*, ST(0) );
8043
8044         wxLogWarning(string);
8045     }
8046     XSRETURN_EMPTY;
8047 }
8048
8049
8050 XS(XS_Wx_wxLogMessage); /* prototype to pass -Wmissing-prototypes */
8051 XS(XS_Wx_wxLogMessage)
8052 {
8053 #ifdef dVAR
8054     dVAR; dXSARGS;
8055 #else
8056     dXSARGS;
8057 #endif
8058     if (items != 1)
8059        croak_xs_usage(cv,  "string");
8060     {
8061         const wxChar*   string;
8062
8063     WXCHAR_INPUT( string, wxChar*, ST(0) );
8064
8065         wxLogMessage(string);
8066     }
8067     XSRETURN_EMPTY;
8068 }
8069
8070
8071 XS(XS_Wx_wxLogVerbose); /* prototype to pass -Wmissing-prototypes */
8072 XS(XS_Wx_wxLogVerbose)
8073 {
8074 #ifdef dVAR
8075     dVAR; dXSARGS;
8076 #else
8077     dXSARGS;
8078 #endif
8079     if (items != 1)
8080        croak_xs_usage(cv,  "string");
8081     {
8082         const wxChar*   string;
8083
8084     WXCHAR_INPUT( string, wxChar*, ST(0) );
8085
8086         wxLogVerbose(string);
8087     }
8088     XSRETURN_EMPTY;
8089 }
8090
8091
8092 XS(XS_Wx_wxLogDebug); /* prototype to pass -Wmissing-prototypes */
8093 XS(XS_Wx_wxLogDebug)
8094 {
8095 #ifdef dVAR
8096     dVAR; dXSARGS;
8097 #else
8098     dXSARGS;
8099 #endif
8100     if (items != 1)
8101        croak_xs_usage(cv,  "string");
8102     {
8103         const wxChar*   string;
8104
8105     WXCHAR_INPUT( string, wxChar*, ST(0) );
8106
8107         wxLogDebug(string);
8108     }
8109     XSRETURN_EMPTY;
8110 }
8111
8112 #endif
8113 #endif
8114
8115 XS(XS_Wx_wxLogStatusFrame); /* prototype to pass -Wmissing-prototypes */
8116 XS(XS_Wx_wxLogStatusFrame)
8117 {
8118 #ifdef dVAR
8119     dVAR; dXSARGS;
8120 #else
8121     dXSARGS;
8122 #endif
8123     if (items != 2)
8124        croak_xs_usage(cv,  "frame, string");
8125     {
8126         wxFrame*    frame = (wxFrame *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Frame" );
8127         const wxChar*   string;
8128
8129     WXCHAR_INPUT( string, wxChar*, ST(1) );
8130     wxLogStatus( frame, string );
8131     }
8132     XSRETURN_EMPTY;
8133 }
8134
8135
8136 XS(XS_Wx_wxLogStatus); /* prototype to pass -Wmissing-prototypes */
8137 XS(XS_Wx_wxLogStatus)
8138 {
8139 #ifdef dVAR
8140     dVAR; dXSARGS;
8141 #else
8142     dXSARGS;
8143 #endif
8144     if (items != 1)
8145        croak_xs_usage(cv,  "string");
8146     {
8147         const wxChar*   string;
8148
8149     WXCHAR_INPUT( string, wxChar*, ST(0) );
8150
8151         wxLogStatus(string);
8152     }
8153     XSRETURN_EMPTY;
8154 }
8155
8156 #if WXPERL_W_VERSION_LE( 2, 5, 0 )
8157 #define XSubPPtmpAABS 1
8158
8159
8160 XS(XS_Wx_wxLogTrace); /* prototype to pass -Wmissing-prototypes */
8161 XS(XS_Wx_wxLogTrace)
8162 {
8163 #ifdef dVAR
8164     dVAR; dXSARGS;
8165 #else
8166     dXSARGS;
8167 #endif
8168     if (items != 1)
8169        croak_xs_usage(cv,  "string");
8170     {
8171         const wxChar*   string;
8172
8173     WXCHAR_INPUT( string, wxChar*, ST(0) );
8174
8175         wxLogTrace(string);
8176     }
8177     XSRETURN_EMPTY;
8178 }
8179
8180 #endif
8181
8182 XS(XS_Wx_wxLogTraceMask); /* prototype to pass -Wmissing-prototypes */
8183 XS(XS_Wx_wxLogTraceMask)
8184 {
8185 #ifdef dVAR
8186     dVAR; dXSARGS;
8187 #else
8188     dXSARGS;
8189 #endif
8190     if (items != 2)
8191        croak_xs_usage(cv,  "mask, string");
8192     {
8193         const wxChar*   mask;
8194         const wxChar*   string;
8195
8196     WXCHAR_INPUT( mask, wxChar*, ST(0) );
8197
8198     WXCHAR_INPUT( string, wxChar*, ST(1) );
8199     wxLogTrace( mask, string );
8200     }
8201     XSRETURN_EMPTY;
8202 }
8203
8204
8205 XS(XS_Wx_wxLogSysError); /* prototype to pass -Wmissing-prototypes */
8206 XS(XS_Wx_wxLogSysError)
8207 {
8208 #ifdef dVAR
8209     dVAR; dXSARGS;
8210 #else
8211     dXSARGS;
8212 #endif
8213     if (items != 1)
8214        croak_xs_usage(cv,  "string");
8215     {
8216         const wxChar*   string;
8217
8218     WXCHAR_INPUT( string, wxChar*, ST(0) );
8219
8220         wxLogSysError(string);
8221     }
8222     XSRETURN_EMPTY;
8223 }
8224
8225
8226 XS(XS_Wx_SysErrorCode); /* prototype to pass -Wmissing-prototypes */
8227 XS(XS_Wx_SysErrorCode)
8228 {
8229 #ifdef dVAR
8230     dVAR; dXSARGS;
8231 #else
8232     dXSARGS;
8233 #endif
8234     if (items != 0)
8235        croak_xs_usage(cv,  "");
8236     {
8237         unsigned long   RETVAL;
8238         dXSTARG;
8239
8240         RETVAL = wxSysErrorCode();
8241         XSprePUSH; PUSHu((UV)RETVAL );
8242     }
8243     XSRETURN(1);
8244 }
8245
8246
8247 XS(XS_Wx_SysErrorMsg); /* prototype to pass -Wmissing-prototypes */
8248 XS(XS_Wx_SysErrorMsg)
8249 {
8250 #ifdef dVAR
8251     dVAR; dXSARGS;
8252 #else
8253     dXSARGS;
8254 #endif
8255     if (items < 0 || items > 1)
8256        croak_xs_usage(cv,  "errCode = 0");
8257     {
8258         unsigned long   errCode;
8259         const wxChar *  RETVAL;
8260
8261         if (items < 1)
8262             errCode = 0;
8263         else {
8264     errCode = (unsigned long)SvUV( ST(0) );
8265         }
8266
8267         RETVAL = wxSysErrorMsg(errCode);
8268         ST(0) = sv_newmortal();
8269     WXCHAR_OUTPUT( RETVAL, ST(0) );
8270
8271     }
8272     XSRETURN(1);
8273 }
8274
8275
8276 XS(XS_Wx__LogChain_new); /* prototype to pass -Wmissing-prototypes */
8277 XS(XS_Wx__LogChain_new)
8278 {
8279 #ifdef dVAR
8280     dVAR; dXSARGS;
8281 #else
8282     dXSARGS;
8283 #endif
8284     if (items != 2)
8285        croak_xs_usage(cv,  "CLASS, logger");
8286     {
8287         wxLog*    logger = (wxLog *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Log" );
8288         char *  CLASS = (char *)SvPV_nolen(ST(0));
8289         wxLogChain *    RETVAL;
8290
8291         RETVAL = new wxLogChain(logger);
8292         ST(0) = sv_newmortal();
8293     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::LogChain" );
8294
8295     }
8296     XSRETURN(1);
8297 }
8298
8299
8300 XS(XS_Wx__LogChain_GetOldLog); /* prototype to pass -Wmissing-prototypes */
8301 XS(XS_Wx__LogChain_GetOldLog)
8302 {
8303 #ifdef dVAR
8304     dVAR; dXSARGS;
8305 #else
8306     dXSARGS;
8307 #endif
8308     if (items != 1)
8309        croak_xs_usage(cv,  "THIS");
8310     {
8311         wxLogChain *    THIS = (wxLogChain *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::LogChain" );
8312         wxLog * RETVAL;
8313
8314         RETVAL = THIS->GetOldLog();
8315         ST(0) = sv_newmortal();
8316     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Log" );
8317
8318     }
8319     XSRETURN(1);
8320 }
8321
8322
8323 XS(XS_Wx__LogChain_IsPassingMessages); /* prototype to pass -Wmissing-prototypes */
8324 XS(XS_Wx__LogChain_IsPassingMessages)
8325 {
8326 #ifdef dVAR
8327     dVAR; dXSARGS;
8328 #else
8329     dXSARGS;
8330 #endif
8331     if (items != 1)
8332        croak_xs_usage(cv,  "THIS");
8333     {
8334         wxLogChain *    THIS = (wxLogChain *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::LogChain" );
8335         bool    RETVAL;
8336
8337         RETVAL = THIS->IsPassingMessages();
8338         ST(0) = boolSV(RETVAL);
8339         sv_2mortal(ST(0));
8340     }
8341     XSRETURN(1);
8342 }
8343
8344
8345 XS(XS_Wx__LogChain_PassMessages); /* prototype to pass -Wmissing-prototypes */
8346 XS(XS_Wx__LogChain_PassMessages)
8347 {
8348 #ifdef dVAR
8349     dVAR; dXSARGS;
8350 #else
8351     dXSARGS;
8352 #endif
8353     if (items != 2)
8354        croak_xs_usage(cv,  "THIS, passMessages");
8355     {
8356         bool    passMessages = (bool)SvTRUE(ST(1));
8357         wxLogChain *    THIS = (wxLogChain *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::LogChain" );
8358
8359         THIS->PassMessages(passMessages);
8360     }
8361     XSRETURN_EMPTY;
8362 }
8363
8364
8365 XS(XS_Wx__LogChain_SetLog); /* prototype to pass -Wmissing-prototypes */
8366 XS(XS_Wx__LogChain_SetLog)
8367 {
8368 #ifdef dVAR
8369     dVAR; dXSARGS;
8370 #else
8371     dXSARGS;
8372 #endif
8373     if (items != 2)
8374        croak_xs_usage(cv,  "THIS, logger");
8375     {
8376         wxLog*    logger = (wxLog *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Log" );
8377         wxLogChain *    THIS = (wxLogChain *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::LogChain" );
8378
8379         THIS->SetLog(logger);
8380     }
8381     XSRETURN_EMPTY;
8382 }
8383
8384
8385 XS(XS_Wx__LogPassThrough_new); /* prototype to pass -Wmissing-prototypes */
8386 XS(XS_Wx__LogPassThrough_new)
8387 {
8388 #ifdef dVAR
8389     dVAR; dXSARGS;
8390 #else
8391     dXSARGS;
8392 #endif
8393     if (items != 1)
8394        croak_xs_usage(cv,  "CLASS");
8395     {
8396         char *  CLASS = (char *)SvPV_nolen(ST(0));
8397         wxLogPassThrough *      RETVAL;
8398
8399         RETVAL = new wxLogPassThrough();
8400         ST(0) = sv_newmortal();
8401     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::LogPassThrough" );
8402
8403     }
8404     XSRETURN(1);
8405 }
8406
8407
8408 XS(XS_Wx__PlLogPassThrough_new); /* prototype to pass -Wmissing-prototypes */
8409 XS(XS_Wx__PlLogPassThrough_new)
8410 {
8411 #ifdef dVAR
8412     dVAR; dXSARGS;
8413 #else
8414     dXSARGS;
8415 #endif
8416     if (items != 1)
8417        croak_xs_usage(cv,  "CLASS");
8418     {
8419         char *  CLASS = (char *)SvPV_nolen(ST(0));
8420         wxPlLogPassThrough *    RETVAL;
8421     RETVAL = new wxPlLogPassThrough( CLASS );
8422         ST(0) = sv_newmortal();
8423     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::PlLogPassThrough" );
8424
8425     }
8426     XSRETURN(1);
8427 }
8428
8429
8430 XS(XS_Wx__LogStderr_new); /* prototype to pass -Wmissing-prototypes */
8431 XS(XS_Wx__LogStderr_new)
8432 {
8433 #ifdef dVAR
8434     dVAR; dXSARGS;
8435 #else
8436     dXSARGS;
8437 #endif
8438     if (items < 1 || items > 2)
8439        croak_xs_usage(cv,  "CLASS, fp = NULL");
8440     {
8441         FILE*   fp;
8442         char *  CLASS = (char *)SvPV_nolen(ST(0));
8443         wxLogStderr *   RETVAL;
8444
8445         if (items < 2)
8446             fp = NULL;
8447         else {
8448             fp = PerlIO_findFILE(IoIFP(sv_2io(ST(1))));
8449         }
8450
8451         RETVAL = new wxLogStderr(fp);
8452         ST(0) = sv_newmortal();
8453     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::LogStderr" );
8454
8455     }
8456     XSRETURN(1);
8457 }
8458
8459
8460 /* INCLUDE: Returning to 'XS/Menu.xs' from 'XS/Log.xs' */
8461
8462 #include <wx/menu.h>
8463
8464 XS(XS_Wx__Menu_new); /* prototype to pass -Wmissing-prototypes */
8465 XS(XS_Wx__Menu_new)
8466 {
8467 #ifdef dVAR
8468     dVAR; dXSARGS;
8469 #else
8470     dXSARGS;
8471 #endif
8472     if (items < 1 || items > 3)
8473        croak_xs_usage(cv,  "CLASS, title = wxEmptyString, style = 0");
8474     {
8475         wxString        title;
8476         long    style;
8477         char *  CLASS = (char *)SvPV_nolen(ST(0));
8478         wxMenu *        RETVAL;
8479
8480         if (items < 2)
8481             title = wxEmptyString;
8482         else {
8483     WXSTRING_INPUT( title, wxString, ST(1) );
8484         }
8485
8486         if (items < 3)
8487             style = 0;
8488         else {
8489             style = (long)SvIV(ST(2));
8490         }
8491
8492         RETVAL = new wxMenu(title, style);
8493         ST(0) = sv_newmortal();
8494     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8495
8496     }
8497     XSRETURN(1);
8498 }
8499
8500 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
8501 #define XSubPPtmpAABT 1
8502
8503
8504 XS(XS_Wx__Menu_AppendSubMenu); /* prototype to pass -Wmissing-prototypes */
8505 XS(XS_Wx__Menu_AppendSubMenu)
8506 {
8507 #ifdef dVAR
8508     dVAR; dXSARGS;
8509 #else
8510     dXSARGS;
8511 #endif
8512     if (items < 3 || items > 4)
8513        croak_xs_usage(cv,  "THIS, submenu, text, help = wxEmptyString");
8514     {
8515         wxMenu*    submenu = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Menu" );
8516         wxString        text;
8517         wxString        help;
8518         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
8519         wxMenuItem *    RETVAL;
8520
8521     WXSTRING_INPUT( text, wxString, ST(2) );
8522
8523         if (items < 4)
8524             help = wxEmptyString;
8525         else {
8526     WXSTRING_INPUT( help, wxString, ST(3) );
8527         }
8528
8529         RETVAL = THIS->AppendSubMenu(submenu, text, help);
8530         ST(0) = sv_newmortal();
8531     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8532
8533     }
8534     XSRETURN(1);
8535 }
8536
8537 #endif
8538
8539 XS(XS_Wx__Menu_AppendString); /* prototype to pass -Wmissing-prototypes */
8540 XS(XS_Wx__Menu_AppendString)
8541 {
8542 #ifdef dVAR
8543     dVAR; dXSARGS;
8544 #else
8545     dXSARGS;
8546 #endif
8547     if (items < 2 || items > 5)
8548        croak_xs_usage(cv,  "THIS, id, item = wxEmptyString, help = wxEmptyString, kind = wxITEM_NORMAL");
8549     PERL_UNUSED_VAR(ax); /* -Wall */
8550     SP -= items;
8551     {
8552         int     id = (int)SvIV(ST(1));
8553         wxString        item;
8554         wxString        help;
8555         wxItemKind      kind;
8556         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
8557
8558         if (items < 3)
8559             item = wxEmptyString;
8560         else {
8561     WXSTRING_INPUT( item, wxString, ST(2) );
8562         }
8563
8564         if (items < 4)
8565             help = wxEmptyString;
8566         else {
8567     WXSTRING_INPUT( help, wxString, ST(3) );
8568         }
8569
8570         if (items < 5)
8571             kind = wxITEM_NORMAL;
8572         else {
8573             kind = (wxItemKind)SvIV(ST(4));
8574         }
8575 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
8576     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(),
8577             THIS->Append( id, item, help, kind ) ) );
8578 #else
8579     THIS->Append( id, item, help, kind );
8580 #endif
8581         PUTBACK;
8582         return;
8583     }
8584 }
8585
8586
8587 XS(XS_Wx__Menu_AppendSubMenu_); /* prototype to pass -Wmissing-prototypes */
8588 XS(XS_Wx__Menu_AppendSubMenu_)
8589 {
8590 #ifdef dVAR
8591     dVAR; dXSARGS;
8592 #else
8593     dXSARGS;
8594 #endif
8595     if (items < 4 || items > 5)
8596        croak_xs_usage(cv,  "THIS, id, item, subMenu, helpString = wxEmptyString");
8597     PERL_UNUSED_VAR(ax); /* -Wall */
8598     SP -= items;
8599     {
8600         int     id = (int)SvIV(ST(1));
8601         wxString        item;
8602         wxMenu*    subMenu = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Menu" );
8603         wxString        helpString;
8604         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
8605
8606     WXSTRING_INPUT( item, wxString, ST(2) );
8607
8608         if (items < 5)
8609             helpString = wxEmptyString;
8610         else {
8611     WXSTRING_INPUT( helpString, wxString, ST(4) );
8612         }
8613 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
8614     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(),
8615             THIS->Append( id, item, subMenu, helpString ) ) );
8616 #else
8617     THIS->Append( id, item, subMenu, helpString );
8618 #endif
8619         PUTBACK;
8620         return;
8621     }
8622 }
8623
8624
8625 XS(XS_Wx__Menu_AppendItem); /* prototype to pass -Wmissing-prototypes */
8626 XS(XS_Wx__Menu_AppendItem)
8627 {
8628 #ifdef dVAR
8629     dVAR; dXSARGS;
8630 #else
8631     dXSARGS;
8632 #endif
8633     if (items != 2)
8634        croak_xs_usage(cv,  "THIS, menuItem");
8635     PERL_UNUSED_VAR(ax); /* -Wall */
8636     SP -= items;
8637     {
8638         wxMenuItem*    menuItem = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::MenuItem" );
8639         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
8640 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
8641     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(),
8642             THIS->Append( menuItem ) ) );
8643 #else
8644     THIS->Append( menuItem );
8645 #endif
8646         PUTBACK;
8647         return;
8648     }
8649 }
8650
8651
8652 XS(XS_Wx__Menu_AppendCheckItem); /* prototype to pass -Wmissing-prototypes */
8653 XS(XS_Wx__Menu_AppendCheckItem)
8654 {
8655 #ifdef dVAR
8656     dVAR; dXSARGS;
8657 #else
8658     dXSARGS;
8659 #endif
8660     if (items < 3 || items > 4)
8661        croak_xs_usage(cv,  "THIS, id, item, helpString = wxEmptyString");
8662     PERL_UNUSED_VAR(ax); /* -Wall */
8663     SP -= items;
8664     {
8665         int     id = (int)SvIV(ST(1));
8666         wxString        item;
8667         wxString        helpString;
8668         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
8669
8670     WXSTRING_INPUT( item, wxString, ST(2) );
8671
8672         if (items < 4)
8673             helpString = wxEmptyString;
8674         else {
8675     WXSTRING_INPUT( helpString, wxString, ST(3) );
8676         }
8677 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
8678     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(),
8679             THIS->AppendCheckItem( id, item, helpString ) ) );
8680 #else
8681     THIS->AppendCheckItem( id, item, helpString );
8682 #endif
8683         PUTBACK;
8684         return;
8685     }
8686 }
8687
8688
8689 XS(XS_Wx__Menu_AppendRadioItem); /* prototype to pass -Wmissing-prototypes */
8690 XS(XS_Wx__Menu_AppendRadioItem)
8691 {
8692 #ifdef dVAR
8693     dVAR; dXSARGS;
8694 #else
8695     dXSARGS;
8696 #endif
8697     if (items < 3 || items > 4)
8698        croak_xs_usage(cv,  "THIS, id, item, helpString = wxEmptyString");
8699     PERL_UNUSED_VAR(ax); /* -Wall */
8700     SP -= items;
8701     {
8702         int     id = (int)SvIV(ST(1));
8703         wxString        item;
8704         wxString        helpString;
8705         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
8706
8707     WXSTRING_INPUT( item, wxString, ST(2) );
8708
8709         if (items < 4)
8710             helpString = wxEmptyString;
8711         else {
8712     WXSTRING_INPUT( helpString, wxString, ST(3) );
8713         }
8714 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
8715     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(),
8716             THIS->AppendRadioItem( id, item, helpString ) ) );
8717 #else
8718     THIS->AppendRadioItem( id, item, helpString );
8719 #endif
8720         PUTBACK;
8721         return;
8722     }
8723 }
8724
8725
8726 XS(XS_Wx__Menu_AppendSeparator); /* prototype to pass -Wmissing-prototypes */
8727 XS(XS_Wx__Menu_AppendSeparator)
8728 {
8729 #ifdef dVAR
8730     dVAR; dXSARGS;
8731 #else
8732     dXSARGS;
8733 #endif
8734     if (items != 1)
8735        croak_xs_usage(cv,  "THIS");
8736     PERL_UNUSED_VAR(ax); /* -Wall */
8737     SP -= items;
8738     {
8739         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
8740 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
8741     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(),
8742             THIS->AppendSeparator() ) );
8743 #else
8744     THIS->AppendSeparator();
8745 #endif
8746         PUTBACK;
8747         return;
8748     }
8749 }
8750
8751
8752 XS(XS_Wx__Menu_Break); /* prototype to pass -Wmissing-prototypes */
8753 XS(XS_Wx__Menu_Break)
8754 {
8755 #ifdef dVAR
8756     dVAR; dXSARGS;
8757 #else
8758     dXSARGS;
8759 #endif
8760     if (items != 1)
8761        croak_xs_usage(cv,  "THIS");
8762     {
8763         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
8764
8765         THIS->Break();
8766     }
8767     XSRETURN_EMPTY;
8768 }
8769
8770
8771 XS(XS_Wx__Menu_Check); /* prototype to pass -Wmissing-prototypes */
8772 XS(XS_Wx__Menu_Check)
8773 {
8774 #ifdef dVAR
8775     dVAR; dXSARGS;
8776 #else
8777     dXSARGS;
8778 #endif
8779     if (items != 3)
8780        croak_xs_usage(cv,  "THIS, id, check");
8781     {
8782         int     id = (int)SvIV(ST(1));
8783         bool    check = (bool)SvTRUE(ST(2));
8784         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
8785
8786         THIS->Check(id, check);
8787     }
8788     XSRETURN_EMPTY;
8789 }
8790
8791
8792 XS(XS_Wx__Menu_DeleteId); /* prototype to pass -Wmissing-prototypes */
8793 XS(XS_Wx__Menu_DeleteId)
8794 {
8795 #ifdef dVAR
8796     dVAR; dXSARGS;
8797 #else
8798     dXSARGS;
8799 #endif
8800     if (items != 2)
8801        croak_xs_usage(cv,  "THIS, id");
8802     {
8803         int     id = (int)SvIV(ST(1));
8804         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
8805     THIS->Delete( id );
8806     }
8807     XSRETURN_EMPTY;
8808 }
8809
8810
8811 XS(XS_Wx__Menu_DeleteItem); /* prototype to pass -Wmissing-prototypes */
8812 XS(XS_Wx__Menu_DeleteItem)
8813 {
8814 #ifdef dVAR
8815     dVAR; dXSARGS;
8816 #else
8817     dXSARGS;
8818 #endif
8819     if (items != 2)
8820        croak_xs_usage(cv,  "THIS, item");
8821     {
8822         wxMenuItem*    item = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::MenuItem" );
8823         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
8824     THIS->Delete( item );
8825     }
8826     XSRETURN_EMPTY;
8827 }
8828
8829
8830 XS(XS_Wx__Menu_DestroyMenu); /* prototype to pass -Wmissing-prototypes */
8831 XS(XS_Wx__Menu_DestroyMenu)
8832 {
8833 #ifdef dVAR
8834     dVAR; dXSARGS;
8835 #else
8836     dXSARGS;
8837 #endif
8838     if (items != 1)
8839        croak_xs_usage(cv,  "THIS");
8840     {
8841         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
8842     delete THIS;
8843     }
8844     XSRETURN_EMPTY;
8845 }
8846
8847
8848 XS(XS_Wx__Menu_DestroyId); /* prototype to pass -Wmissing-prototypes */
8849 XS(XS_Wx__Menu_DestroyId)
8850 {
8851 #ifdef dVAR
8852     dVAR; dXSARGS;
8853 #else
8854     dXSARGS;
8855 #endif
8856     if (items != 2)
8857        croak_xs_usage(cv,  "THIS, id");
8858     {
8859         int     id = (int)SvIV(ST(1));
8860         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
8861     THIS->Destroy( id );
8862     }
8863     XSRETURN_EMPTY;
8864 }
8865
8866
8867 XS(XS_Wx__Menu_DestroyItem); /* prototype to pass -Wmissing-prototypes */
8868 XS(XS_Wx__Menu_DestroyItem)
8869 {
8870 #ifdef dVAR
8871     dVAR; dXSARGS;
8872 #else
8873     dXSARGS;
8874 #endif
8875     if (items != 2)
8876        croak_xs_usage(cv,  "THIS, item");
8877     {
8878         wxMenuItem*    item = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::MenuItem" );
8879         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
8880     THIS->Destroy( item );
8881     }
8882     XSRETURN_EMPTY;
8883 }
8884
8885
8886 XS(XS_Wx__Menu_Enable); /* prototype to pass -Wmissing-prototypes */
8887 XS(XS_Wx__Menu_Enable)
8888 {
8889 #ifdef dVAR
8890     dVAR; dXSARGS;
8891 #else
8892     dXSARGS;
8893 #endif
8894     if (items != 3)
8895        croak_xs_usage(cv,  "THIS, id, enable");
8896     {
8897         int     id = (int)SvIV(ST(1));
8898         bool    enable = (bool)SvTRUE(ST(2));
8899         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
8900
8901         THIS->Enable(id, enable);
8902     }
8903     XSRETURN_EMPTY;
8904 }
8905
8906 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
8907 #define XSubPPtmpAABU 1
8908
8909
8910 XS(XS_Wx__Menu_FindItemByPosition); /* prototype to pass -Wmissing-prototypes */
8911 XS(XS_Wx__Menu_FindItemByPosition)
8912 {
8913 #ifdef dVAR
8914     dVAR; dXSARGS;
8915 #else
8916     dXSARGS;
8917 #endif
8918     if (items != 2)
8919        croak_xs_usage(cv,  "THIS, pos");
8920     {
8921         size_t    pos = (size_t)SvUV( ST(1) );
8922         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
8923         wxMenuItem *    RETVAL;
8924
8925         RETVAL = THIS->FindItemByPosition(pos);
8926         ST(0) = sv_newmortal();
8927     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8928
8929     }
8930     XSRETURN(1);
8931 }
8932
8933 #endif
8934
8935 XS(XS_Wx__Menu_FindItem); /* prototype to pass -Wmissing-prototypes */
8936 XS(XS_Wx__Menu_FindItem)
8937 {
8938 #ifdef dVAR
8939     dVAR; dXSARGS;
8940 #else
8941     dXSARGS;
8942 #endif
8943     if (items != 2)
8944        croak_xs_usage(cv,  "THIS, item");
8945     PERL_UNUSED_VAR(ax); /* -Wall */
8946     SP -= items;
8947     {
8948         SV*     item = ST(1);
8949         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
8950     if( looks_like_number( item ) ) {
8951       int id = SvIV( item );
8952       wxMenu* submenu;
8953       wxMenuItem* ret;
8954
8955       ret = THIS->FindItem( id, &submenu );
8956
8957       SV* mi = sv_newmortal();
8958
8959       if( GIMME_V == G_ARRAY ) {
8960         EXTEND( SP, 2 );
8961         SV* sm = sv_newmortal();
8962
8963         PUSHs( wxPli_object_2_sv( aTHX_ mi, ret ) );
8964         PUSHs( wxPli_object_2_sv( aTHX_ sm, submenu ) );
8965       }
8966       else {
8967         EXTEND( SP, 1 );
8968         PUSHs( wxPli_object_2_sv( aTHX_ mi, ret ) );
8969       }
8970     }
8971     else {
8972       wxString string;
8973       WXSTRING_INPUT( string, const char*, item );
8974       int id = THIS->FindItem( string );
8975
8976       EXTEND( SP, 1 );
8977       PUSHs( sv_2mortal( newSViv( id ) ) );
8978     }
8979         PUTBACK;
8980         return;
8981     }
8982 }
8983
8984
8985 XS(XS_Wx__Menu_GetHelpString); /* prototype to pass -Wmissing-prototypes */
8986 XS(XS_Wx__Menu_GetHelpString)
8987 {
8988 #ifdef dVAR
8989     dVAR; dXSARGS;
8990 #else
8991     dXSARGS;
8992 #endif
8993     if (items != 2)
8994        croak_xs_usage(cv,  "THIS, id");
8995     {
8996         int     id = (int)SvIV(ST(1));
8997         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
8998         wxString        RETVAL;
8999
9000         RETVAL = THIS->GetHelpString(id);
9001         ST(0) = sv_newmortal();
9002     WXSTRING_OUTPUT( RETVAL, ST(0) );
9003
9004     }
9005     XSRETURN(1);
9006 }
9007
9008
9009 XS(XS_Wx__Menu_GetLabel); /* prototype to pass -Wmissing-prototypes */
9010 XS(XS_Wx__Menu_GetLabel)
9011 {
9012 #ifdef dVAR
9013     dVAR; dXSARGS;
9014 #else
9015     dXSARGS;
9016 #endif
9017     if (items != 2)
9018        croak_xs_usage(cv,  "THIS, id");
9019     {
9020         int     id = (int)SvIV(ST(1));
9021         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9022         wxString        RETVAL;
9023
9024         RETVAL = THIS->GetLabel(id);
9025         ST(0) = sv_newmortal();
9026     WXSTRING_OUTPUT( RETVAL, ST(0) );
9027
9028     }
9029     XSRETURN(1);
9030 }
9031
9032 #if WXPERL_W_VERSION_GE( 2, 8, 5 )
9033 #define XSubPPtmpAABV 1
9034
9035
9036 XS(XS_Wx__Menu_GetLabelText); /* prototype to pass -Wmissing-prototypes */
9037 XS(XS_Wx__Menu_GetLabelText)
9038 {
9039 #ifdef dVAR
9040     dVAR; dXSARGS;
9041 #else
9042     dXSARGS;
9043 #endif
9044     if (items != 2)
9045        croak_xs_usage(cv,  "THIS, id");
9046     {
9047         int     id = (int)SvIV(ST(1));
9048         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9049         wxString        RETVAL;
9050
9051         RETVAL = THIS->GetLabelText(id);
9052         ST(0) = sv_newmortal();
9053     WXSTRING_OUTPUT( RETVAL, ST(0) );
9054
9055     }
9056     XSRETURN(1);
9057 }
9058
9059 #endif
9060
9061 XS(XS_Wx__Menu_GetMenuItemCount); /* prototype to pass -Wmissing-prototypes */
9062 XS(XS_Wx__Menu_GetMenuItemCount)
9063 {
9064 #ifdef dVAR
9065     dVAR; dXSARGS;
9066 #else
9067     dXSARGS;
9068 #endif
9069     if (items != 1)
9070        croak_xs_usage(cv,  "THIS");
9071     {
9072         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9073         int     RETVAL;
9074         dXSTARG;
9075
9076         RETVAL = THIS->GetMenuItemCount();
9077         XSprePUSH; PUSHi((IV)RETVAL);
9078     }
9079     XSRETURN(1);
9080 }
9081
9082
9083 XS(XS_Wx__Menu_GetMenuItems); /* prototype to pass -Wmissing-prototypes */
9084 XS(XS_Wx__Menu_GetMenuItems)
9085 {
9086 #ifdef dVAR
9087     dVAR; dXSARGS;
9088 #else
9089     dXSARGS;
9090 #endif
9091     if (items != 1)
9092        croak_xs_usage(cv,  "THIS");
9093     PERL_UNUSED_VAR(ax); /* -Wall */
9094     SP -= items;
9095     {
9096         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9097     wxMenuItemList& data = THIS->GetMenuItems();
9098     wxMenuItemList::compatibility_iterator node;
9099
9100     EXTEND( SP, (IV) data.GetCount() );
9101     for( node = data.GetFirst(); node; node = node->GetNext() )
9102     {
9103       PUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(), node->GetData() ) );
9104     }
9105         PUTBACK;
9106         return;
9107     }
9108 }
9109
9110
9111 XS(XS_Wx__Menu_GetTitle); /* prototype to pass -Wmissing-prototypes */
9112 XS(XS_Wx__Menu_GetTitle)
9113 {
9114 #ifdef dVAR
9115     dVAR; dXSARGS;
9116 #else
9117     dXSARGS;
9118 #endif
9119     if (items != 1)
9120        croak_xs_usage(cv,  "THIS");
9121     {
9122         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9123         wxString        RETVAL;
9124
9125         RETVAL = THIS->GetTitle();
9126         ST(0) = sv_newmortal();
9127     WXSTRING_OUTPUT( RETVAL, ST(0) );
9128
9129     }
9130     XSRETURN(1);
9131 }
9132
9133
9134 XS(XS_Wx__Menu_InsertItem); /* prototype to pass -Wmissing-prototypes */
9135 XS(XS_Wx__Menu_InsertItem)
9136 {
9137 #ifdef dVAR
9138     dVAR; dXSARGS;
9139 #else
9140     dXSARGS;
9141 #endif
9142     if (items != 3)
9143        croak_xs_usage(cv,  "THIS, pos, item");
9144     PERL_UNUSED_VAR(ax); /* -Wall */
9145     SP -= items;
9146     {
9147         int     pos = (int)SvIV(ST(1));
9148         wxMenuItem*    item = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::MenuItem" );
9149         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9150 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
9151     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(),
9152             THIS->Insert( pos, item ) ) );
9153 #else
9154     XPUSHs( THIS->Insert( pos, item ) ? &PL_sv_yes : &PL_sv_no );
9155 #endif
9156         PUTBACK;
9157         return;
9158     }
9159 }
9160
9161
9162 XS(XS_Wx__Menu_InsertString); /* prototype to pass -Wmissing-prototypes */
9163 XS(XS_Wx__Menu_InsertString)
9164 {
9165 #ifdef dVAR
9166     dVAR; dXSARGS;
9167 #else
9168     dXSARGS;
9169 #endif
9170     if (items < 3 || items > 6)
9171        croak_xs_usage(cv,  "THIS, pos, id, item = wxEmptyString, helpString = wxEmptyString, kind = wxITEM_NORMAL");
9172     PERL_UNUSED_VAR(ax); /* -Wall */
9173     SP -= items;
9174     {
9175         int     pos = (int)SvIV(ST(1));
9176         int     id = (int)SvIV(ST(2));
9177         wxString        item;
9178         wxString        helpString;
9179         wxItemKind      kind;
9180         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9181
9182         if (items < 4)
9183             item = wxEmptyString;
9184         else {
9185     WXSTRING_INPUT( item, wxString, ST(3) );
9186         }
9187
9188         if (items < 5)
9189             helpString = wxEmptyString;
9190         else {
9191     WXSTRING_INPUT( helpString, wxString, ST(4) );
9192         }
9193
9194         if (items < 6)
9195             kind = wxITEM_NORMAL;
9196         else {
9197             kind = (wxItemKind)SvIV(ST(5));
9198         }
9199 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
9200     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(),
9201             THIS->Insert( pos, id, item, helpString, kind ) ) );
9202 #else
9203     THIS->Insert( pos, id, item, helpString, kind );
9204 #endif
9205         PUTBACK;
9206         return;
9207     }
9208 }
9209
9210
9211 XS(XS_Wx__Menu_InsertSubMenu); /* prototype to pass -Wmissing-prototypes */
9212 XS(XS_Wx__Menu_InsertSubMenu)
9213 {
9214 #ifdef dVAR
9215     dVAR; dXSARGS;
9216 #else
9217     dXSARGS;
9218 #endif
9219     if (items < 5 || items > 6)
9220        croak_xs_usage(cv,  "THIS, pos, id, text, submenu, help = wxEmptyString");
9221     PERL_UNUSED_VAR(ax); /* -Wall */
9222     SP -= items;
9223     {
9224         int     pos = (int)SvIV(ST(1));
9225         int     id = (int)SvIV(ST(2));
9226         wxString        text;
9227         wxMenu*    submenu = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(4), "Wx::Menu" );
9228         wxString        help;
9229         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9230
9231     WXSTRING_INPUT( text, wxString, ST(3) );
9232
9233         if (items < 6)
9234             help = wxEmptyString;
9235         else {
9236     WXSTRING_INPUT( help, wxString, ST(5) );
9237         }
9238 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
9239     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(),
9240             THIS->Insert( pos, id, text, submenu, help ) ) );
9241 #else
9242     THIS->Insert( pos, id, text, submenu, help );
9243 #endif
9244         PUTBACK;
9245         return;
9246     }
9247 }
9248
9249
9250 XS(XS_Wx__Menu_InsertCheckItem); /* prototype to pass -Wmissing-prototypes */
9251 XS(XS_Wx__Menu_InsertCheckItem)
9252 {
9253 #ifdef dVAR
9254     dVAR; dXSARGS;
9255 #else
9256     dXSARGS;
9257 #endif
9258     if (items != 5)
9259        croak_xs_usage(cv,  "THIS, pos, id, item, helpString");
9260     PERL_UNUSED_VAR(ax); /* -Wall */
9261     SP -= items;
9262     {
9263         size_t    pos = (size_t)SvUV( ST(1) );
9264         int     id = (int)SvIV(ST(2));
9265         wxString        item;
9266         wxString        helpString;
9267         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9268
9269     WXSTRING_INPUT( item, wxString, ST(3) );
9270
9271     WXSTRING_INPUT( helpString, wxString, ST(4) );
9272 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
9273     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(),
9274             THIS->InsertCheckItem( pos, id, item, helpString ) ) );
9275 #else
9276     THIS->InsertCheckItem( pos, id, item, helpString );
9277 #endif
9278         PUTBACK;
9279         return;
9280     }
9281 }
9282
9283
9284 XS(XS_Wx__Menu_InsertRadioItem); /* prototype to pass -Wmissing-prototypes */
9285 XS(XS_Wx__Menu_InsertRadioItem)
9286 {
9287 #ifdef dVAR
9288     dVAR; dXSARGS;
9289 #else
9290     dXSARGS;
9291 #endif
9292     if (items != 5)
9293        croak_xs_usage(cv,  "THIS, pos, id, item, helpString");
9294     PERL_UNUSED_VAR(ax); /* -Wall */
9295     SP -= items;
9296     {
9297         size_t    pos = (size_t)SvUV( ST(1) );
9298         int     id = (int)SvIV(ST(2));
9299         wxString        item;
9300         wxString        helpString;
9301         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9302
9303     WXSTRING_INPUT( item, wxString, ST(3) );
9304
9305     WXSTRING_INPUT( helpString, wxString, ST(4) );
9306 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
9307     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(),
9308             THIS->InsertRadioItem( pos, id, item, helpString ) ) );
9309 #else
9310     THIS->InsertRadioItem( pos, id, item, helpString );
9311 #endif
9312         PUTBACK;
9313         return;
9314     }
9315 }
9316
9317
9318 XS(XS_Wx__Menu_InsertSeparator); /* prototype to pass -Wmissing-prototypes */
9319 XS(XS_Wx__Menu_InsertSeparator)
9320 {
9321 #ifdef dVAR
9322     dVAR; dXSARGS;
9323 #else
9324     dXSARGS;
9325 #endif
9326     if (items != 2)
9327        croak_xs_usage(cv,  "THIS, pos");
9328     PERL_UNUSED_VAR(ax); /* -Wall */
9329     SP -= items;
9330     {
9331         size_t    pos = (size_t)SvUV( ST(1) );
9332         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9333 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
9334     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(),
9335             THIS->InsertSeparator( pos ) ) );
9336 #else
9337     THIS->InsertSeparator( pos );
9338 #endif
9339         PUTBACK;
9340         return;
9341     }
9342 }
9343
9344
9345 XS(XS_Wx__Menu_IsChecked); /* prototype to pass -Wmissing-prototypes */
9346 XS(XS_Wx__Menu_IsChecked)
9347 {
9348 #ifdef dVAR
9349     dVAR; dXSARGS;
9350 #else
9351     dXSARGS;
9352 #endif
9353     if (items != 2)
9354        croak_xs_usage(cv,  "THIS, id");
9355     {
9356         int     id = (int)SvIV(ST(1));
9357         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9358         bool    RETVAL;
9359
9360         RETVAL = THIS->IsChecked(id);
9361         ST(0) = boolSV(RETVAL);
9362         sv_2mortal(ST(0));
9363     }
9364     XSRETURN(1);
9365 }
9366
9367
9368 XS(XS_Wx__Menu_IsEnabled); /* prototype to pass -Wmissing-prototypes */
9369 XS(XS_Wx__Menu_IsEnabled)
9370 {
9371 #ifdef dVAR
9372     dVAR; dXSARGS;
9373 #else
9374     dXSARGS;
9375 #endif
9376     if (items != 2)
9377        croak_xs_usage(cv,  "THIS, id");
9378     {
9379         int     id = (int)SvIV(ST(1));
9380         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9381         bool    RETVAL;
9382
9383         RETVAL = THIS->IsEnabled(id);
9384         ST(0) = boolSV(RETVAL);
9385         sv_2mortal(ST(0));
9386     }
9387     XSRETURN(1);
9388 }
9389
9390
9391 XS(XS_Wx__Menu_PrependString); /* prototype to pass -Wmissing-prototypes */
9392 XS(XS_Wx__Menu_PrependString)
9393 {
9394 #ifdef dVAR
9395     dVAR; dXSARGS;
9396 #else
9397     dXSARGS;
9398 #endif
9399     if (items < 2 || items > 5)
9400        croak_xs_usage(cv,  "THIS, id, item = wxEmptyString, help = wxEmptyString, kind = wxITEM_NORMAL");
9401     PERL_UNUSED_VAR(ax); /* -Wall */
9402     SP -= items;
9403     {
9404         int     id = (int)SvIV(ST(1));
9405         wxString        item;
9406         wxString        help;
9407         wxItemKind      kind;
9408         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9409
9410         if (items < 3)
9411             item = wxEmptyString;
9412         else {
9413     WXSTRING_INPUT( item, wxString, ST(2) );
9414         }
9415
9416         if (items < 4)
9417             help = wxEmptyString;
9418         else {
9419     WXSTRING_INPUT( help, wxString, ST(3) );
9420         }
9421
9422         if (items < 5)
9423             kind = wxITEM_NORMAL;
9424         else {
9425             kind = (wxItemKind)SvIV(ST(4));
9426         }
9427 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
9428     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(),
9429             THIS->Prepend( id, item, help, kind ) ) );
9430 #else
9431     THIS->Prepend( id, item, help, kind );
9432 #endif
9433         PUTBACK;
9434         return;
9435     }
9436 }
9437
9438
9439 XS(XS_Wx__Menu_PrependItem); /* prototype to pass -Wmissing-prototypes */
9440 XS(XS_Wx__Menu_PrependItem)
9441 {
9442 #ifdef dVAR
9443     dVAR; dXSARGS;
9444 #else
9445     dXSARGS;
9446 #endif
9447     if (items != 2)
9448        croak_xs_usage(cv,  "THIS, menuItem");
9449     {
9450         wxMenuItem*    menuItem = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::MenuItem" );
9451         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9452 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
9453     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(),
9454             THIS->Prepend( menuItem ) ) );
9455 #else
9456     THIS->Prepend( menuItem );
9457 #endif
9458     }
9459     XSRETURN_EMPTY;
9460 }
9461
9462
9463 XS(XS_Wx__Menu_PrependSubMenu); /* prototype to pass -Wmissing-prototypes */
9464 XS(XS_Wx__Menu_PrependSubMenu)
9465 {
9466 #ifdef dVAR
9467     dVAR; dXSARGS;
9468 #else
9469     dXSARGS;
9470 #endif
9471     if (items < 4 || items > 5)
9472        croak_xs_usage(cv,  "THIS, id, item, subMenu, helpString = wxEmptyString");
9473     {
9474         int     id = (int)SvIV(ST(1));
9475         wxString        item;
9476         wxMenu*    subMenu = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Menu" );
9477         wxString        helpString;
9478         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9479
9480     WXSTRING_INPUT( item, wxString, ST(2) );
9481
9482         if (items < 5)
9483             helpString = wxEmptyString;
9484         else {
9485     WXSTRING_INPUT( helpString, wxString, ST(4) );
9486         }
9487 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
9488     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(),
9489             THIS->Prepend( id, item, subMenu, helpString ) ) );
9490 #else
9491     THIS->Prepend( id, item, subMenu, helpString );
9492 #endif
9493     }
9494     XSRETURN_EMPTY;
9495 }
9496
9497
9498 XS(XS_Wx__Menu_PrependCheckItem); /* prototype to pass -Wmissing-prototypes */
9499 XS(XS_Wx__Menu_PrependCheckItem)
9500 {
9501 #ifdef dVAR
9502     dVAR; dXSARGS;
9503 #else
9504     dXSARGS;
9505 #endif
9506     if (items < 3 || items > 4)
9507        croak_xs_usage(cv,  "THIS, id, item, helpString = wxEmptyString");
9508     PERL_UNUSED_VAR(ax); /* -Wall */
9509     SP -= items;
9510     {
9511         int     id = (int)SvIV(ST(1));
9512         wxString        item;
9513         wxString        helpString;
9514         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9515
9516     WXSTRING_INPUT( item, wxString, ST(2) );
9517
9518         if (items < 4)
9519             helpString = wxEmptyString;
9520         else {
9521     WXSTRING_INPUT( helpString, wxString, ST(3) );
9522         }
9523 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
9524     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(),
9525             THIS->PrependCheckItem( id, item, helpString ) ) );
9526 #else
9527    THIS->PrependCheckItem( id, item, helpString );
9528 #endif
9529         PUTBACK;
9530         return;
9531     }
9532 }
9533
9534
9535 XS(XS_Wx__Menu_PrependRadioItem); /* prototype to pass -Wmissing-prototypes */
9536 XS(XS_Wx__Menu_PrependRadioItem)
9537 {
9538 #ifdef dVAR
9539     dVAR; dXSARGS;
9540 #else
9541     dXSARGS;
9542 #endif
9543     if (items < 3 || items > 4)
9544        croak_xs_usage(cv,  "THIS, id, item, helpString = wxEmptyString");
9545     PERL_UNUSED_VAR(ax); /* -Wall */
9546     SP -= items;
9547     {
9548         int     id = (int)SvIV(ST(1));
9549         wxString        item;
9550         wxString        helpString;
9551         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9552
9553     WXSTRING_INPUT( item, wxString, ST(2) );
9554
9555         if (items < 4)
9556             helpString = wxEmptyString;
9557         else {
9558     WXSTRING_INPUT( helpString, wxString, ST(3) );
9559         }
9560 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
9561     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(),
9562             THIS->PrependRadioItem( id, item, helpString ) ) );
9563 #else
9564     THIS->PrependRadioItem( id, item, helpString );
9565 #endif
9566         PUTBACK;
9567         return;
9568     }
9569 }
9570
9571
9572 XS(XS_Wx__Menu_PrependSeparator); /* prototype to pass -Wmissing-prototypes */
9573 XS(XS_Wx__Menu_PrependSeparator)
9574 {
9575 #ifdef dVAR
9576     dVAR; dXSARGS;
9577 #else
9578     dXSARGS;
9579 #endif
9580     if (items != 1)
9581        croak_xs_usage(cv,  "THIS");
9582     PERL_UNUSED_VAR(ax); /* -Wall */
9583     SP -= items;
9584     {
9585         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9586 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
9587     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(),
9588             THIS->PrependSeparator() ) );
9589 #else
9590     THIS->PrependSeparator();
9591 #endif
9592         PUTBACK;
9593         return;
9594     }
9595 }
9596
9597
9598 XS(XS_Wx__Menu_RemoveId); /* prototype to pass -Wmissing-prototypes */
9599 XS(XS_Wx__Menu_RemoveId)
9600 {
9601 #ifdef dVAR
9602     dVAR; dXSARGS;
9603 #else
9604     dXSARGS;
9605 #endif
9606     if (items != 2)
9607        croak_xs_usage(cv,  "THIS, id");
9608     {
9609         int     id = (int)SvIV(ST(1));
9610         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9611         wxMenuItem *    RETVAL;
9612     RETVAL = THIS->Remove( id );
9613         ST(0) = sv_newmortal();
9614     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
9615
9616     }
9617     XSRETURN(1);
9618 }
9619
9620
9621 XS(XS_Wx__Menu_RemoveItem); /* prototype to pass -Wmissing-prototypes */
9622 XS(XS_Wx__Menu_RemoveItem)
9623 {
9624 #ifdef dVAR
9625     dVAR; dXSARGS;
9626 #else
9627     dXSARGS;
9628 #endif
9629     if (items != 2)
9630        croak_xs_usage(cv,  "THIS, item");
9631     {
9632         wxMenuItem*    item = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::MenuItem" );
9633         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9634         wxMenuItem *    RETVAL;
9635     RETVAL = THIS->Remove( item );
9636         ST(0) = sv_newmortal();
9637     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
9638
9639     }
9640     XSRETURN(1);
9641 }
9642
9643
9644 XS(XS_Wx__Menu_SetHelpString); /* prototype to pass -Wmissing-prototypes */
9645 XS(XS_Wx__Menu_SetHelpString)
9646 {
9647 #ifdef dVAR
9648     dVAR; dXSARGS;
9649 #else
9650     dXSARGS;
9651 #endif
9652     if (items != 3)
9653        croak_xs_usage(cv,  "THIS, id, helpString");
9654     {
9655         int     id = (int)SvIV(ST(1));
9656         wxString        helpString;
9657         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9658
9659     WXSTRING_INPUT( helpString, wxString, ST(2) );
9660
9661         THIS->SetHelpString(id, helpString);
9662     }
9663     XSRETURN_EMPTY;
9664 }
9665
9666
9667 XS(XS_Wx__Menu_SetLabel); /* prototype to pass -Wmissing-prototypes */
9668 XS(XS_Wx__Menu_SetLabel)
9669 {
9670 #ifdef dVAR
9671     dVAR; dXSARGS;
9672 #else
9673     dXSARGS;
9674 #endif
9675     if (items != 3)
9676        croak_xs_usage(cv,  "THIS, id, label");
9677     {
9678         int     id = (int)SvIV(ST(1));
9679         wxString        label;
9680         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9681
9682     WXSTRING_INPUT( label, wxString, ST(2) );
9683
9684         THIS->SetLabel(id, label);
9685     }
9686     XSRETURN_EMPTY;
9687 }
9688
9689
9690 XS(XS_Wx__Menu_SetTitle); /* prototype to pass -Wmissing-prototypes */
9691 XS(XS_Wx__Menu_SetTitle)
9692 {
9693 #ifdef dVAR
9694     dVAR; dXSARGS;
9695 #else
9696     dXSARGS;
9697 #endif
9698     if (items != 2)
9699        croak_xs_usage(cv,  "THIS, title");
9700     {
9701         wxString        title;
9702         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9703
9704     WXSTRING_INPUT( title, wxString, ST(1) );
9705
9706         THIS->SetTitle(title);
9707     }
9708     XSRETURN_EMPTY;
9709 }
9710
9711
9712 XS(XS_Wx__Menu_UpdateUI); /* prototype to pass -Wmissing-prototypes */
9713 XS(XS_Wx__Menu_UpdateUI)
9714 {
9715 #ifdef dVAR
9716     dVAR; dXSARGS;
9717 #else
9718     dXSARGS;
9719 #endif
9720     if (items < 1 || items > 2)
9721        croak_xs_usage(cv,  "THIS, source = 0");
9722     {
9723         wxEvtHandler*   source;
9724         wxMenu *    THIS = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Menu" );
9725
9726         if (items < 2)
9727             source = 0;
9728         else {
9729     source = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::EvtHandler" );
9730         }
9731
9732         THIS->UpdateUI(source);
9733     }
9734     XSRETURN_EMPTY;
9735 }
9736
9737
9738 XS(XS_Wx__MenuBar_new); /* prototype to pass -Wmissing-prototypes */
9739 XS(XS_Wx__MenuBar_new)
9740 {
9741 #ifdef dVAR
9742     dVAR; dXSARGS;
9743 #else
9744     dXSARGS;
9745 #endif
9746     if (items < 1 || items > 2)
9747        croak_xs_usage(cv,  "CLASS, style = 0");
9748     {
9749         long    style;
9750         char *  CLASS = (char *)SvPV_nolen(ST(0));
9751         wxMenuBar *     RETVAL;
9752
9753         if (items < 2)
9754             style = 0;
9755         else {
9756             style = (long)SvIV(ST(1));
9757         }
9758
9759         RETVAL = new wxMenuBar(style);
9760         ST(0) = sv_newmortal();
9761     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
9762
9763     }
9764     XSRETURN(1);
9765 }
9766
9767
9768 XS(XS_Wx__MenuBar_Append); /* prototype to pass -Wmissing-prototypes */
9769 XS(XS_Wx__MenuBar_Append)
9770 {
9771 #ifdef dVAR
9772     dVAR; dXSARGS;
9773 #else
9774     dXSARGS;
9775 #endif
9776     if (items != 3)
9777        croak_xs_usage(cv,  "THIS, menu, title");
9778     {
9779         wxMenu*    menu = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Menu" );
9780         wxString        title;
9781         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
9782         bool    RETVAL;
9783
9784     WXSTRING_INPUT( title, wxString, ST(2) );
9785
9786         RETVAL = THIS->Append(menu, title);
9787         ST(0) = boolSV(RETVAL);
9788         sv_2mortal(ST(0));
9789     }
9790     XSRETURN(1);
9791 }
9792
9793
9794 XS(XS_Wx__MenuBar_Check); /* prototype to pass -Wmissing-prototypes */
9795 XS(XS_Wx__MenuBar_Check)
9796 {
9797 #ifdef dVAR
9798     dVAR; dXSARGS;
9799 #else
9800     dXSARGS;
9801 #endif
9802     if (items != 3)
9803        croak_xs_usage(cv,  "THIS, id, check");
9804     {
9805         int     id = (int)SvIV(ST(1));
9806         bool    check = (bool)SvTRUE(ST(2));
9807         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
9808
9809         THIS->Check(id, check);
9810     }
9811     XSRETURN_EMPTY;
9812 }
9813
9814
9815 XS(XS_Wx__MenuBar_Enable); /* prototype to pass -Wmissing-prototypes */
9816 XS(XS_Wx__MenuBar_Enable)
9817 {
9818 #ifdef dVAR
9819     dVAR; dXSARGS;
9820 #else
9821     dXSARGS;
9822 #endif
9823     if (items != 3)
9824        croak_xs_usage(cv,  "THIS, id, enable");
9825     {
9826         int     id = (int)SvIV(ST(1));
9827         bool    enable = (bool)SvTRUE(ST(2));
9828         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
9829
9830         THIS->Enable(id, enable);
9831     }
9832     XSRETURN_EMPTY;
9833 }
9834
9835
9836 XS(XS_Wx__MenuBar_EnableTop); /* prototype to pass -Wmissing-prototypes */
9837 XS(XS_Wx__MenuBar_EnableTop)
9838 {
9839 #ifdef dVAR
9840     dVAR; dXSARGS;
9841 #else
9842     dXSARGS;
9843 #endif
9844     if (items != 3)
9845        croak_xs_usage(cv,  "THIS, pos, enable");
9846     {
9847         int     pos = (int)SvIV(ST(1));
9848         bool    enable = (bool)SvTRUE(ST(2));
9849         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
9850
9851         THIS->EnableTop(pos, enable);
9852     }
9853     XSRETURN_EMPTY;
9854 }
9855
9856
9857 XS(XS_Wx__MenuBar_FindItem); /* prototype to pass -Wmissing-prototypes */
9858 XS(XS_Wx__MenuBar_FindItem)
9859 {
9860 #ifdef dVAR
9861     dVAR; dXSARGS;
9862 #else
9863     dXSARGS;
9864 #endif
9865     if (items != 2)
9866        croak_xs_usage(cv,  "THIS, id");
9867     PERL_UNUSED_VAR(ax); /* -Wall */
9868     SP -= items;
9869     {
9870         int     id = (int)SvIV(ST(1));
9871         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
9872     wxMenu* submenu;
9873     wxMenuItem* ret;
9874
9875     ret = THIS->FindItem( id, &submenu );
9876
9877     SV* mi = sv_newmortal();
9878
9879     if( GIMME_V == G_ARRAY ) {
9880       EXTEND( SP, 2 );
9881       SV* sm = sv_newmortal();
9882
9883       PUSHs( wxPli_object_2_sv( aTHX_ mi, ret ) );
9884       PUSHs( wxPli_object_2_sv( aTHX_ sm, submenu ) );
9885     }
9886     else {
9887       EXTEND( SP, 1 );
9888       PUSHs( wxPli_object_2_sv( aTHX_ mi, ret ) );
9889     }
9890         PUTBACK;
9891         return;
9892     }
9893 }
9894
9895
9896 XS(XS_Wx__MenuBar_FindMenu); /* prototype to pass -Wmissing-prototypes */
9897 XS(XS_Wx__MenuBar_FindMenu)
9898 {
9899 #ifdef dVAR
9900     dVAR; dXSARGS;
9901 #else
9902     dXSARGS;
9903 #endif
9904     if (items != 2)
9905        croak_xs_usage(cv,  "THIS, title");
9906     {
9907         wxString        title;
9908         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
9909         int     RETVAL;
9910         dXSTARG;
9911
9912     WXSTRING_INPUT( title, wxString, ST(1) );
9913
9914         RETVAL = THIS->FindMenu(title);
9915         XSprePUSH; PUSHi((IV)RETVAL);
9916     }
9917     XSRETURN(1);
9918 }
9919
9920
9921 XS(XS_Wx__MenuBar_FindMenuItem); /* prototype to pass -Wmissing-prototypes */
9922 XS(XS_Wx__MenuBar_FindMenuItem)
9923 {
9924 #ifdef dVAR
9925     dVAR; dXSARGS;
9926 #else
9927     dXSARGS;
9928 #endif
9929     if (items != 3)
9930        croak_xs_usage(cv,  "THIS, menuString, itemString");
9931     {
9932         wxString        menuString;
9933         wxString        itemString;
9934         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
9935         int     RETVAL;
9936         dXSTARG;
9937
9938     WXSTRING_INPUT( menuString, wxString, ST(1) );
9939
9940     WXSTRING_INPUT( itemString, wxString, ST(2) );
9941
9942         RETVAL = THIS->FindMenuItem(menuString, itemString);
9943         XSprePUSH; PUSHi((IV)RETVAL);
9944     }
9945     XSRETURN(1);
9946 }
9947
9948
9949 XS(XS_Wx__MenuBar_GetHelpString); /* prototype to pass -Wmissing-prototypes */
9950 XS(XS_Wx__MenuBar_GetHelpString)
9951 {
9952 #ifdef dVAR
9953     dVAR; dXSARGS;
9954 #else
9955     dXSARGS;
9956 #endif
9957     if (items != 2)
9958        croak_xs_usage(cv,  "THIS, id");
9959     {
9960         int     id = (int)SvIV(ST(1));
9961         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
9962         wxString        RETVAL;
9963
9964         RETVAL = THIS->GetHelpString(id);
9965         ST(0) = sv_newmortal();
9966     WXSTRING_OUTPUT( RETVAL, ST(0) );
9967
9968     }
9969     XSRETURN(1);
9970 }
9971
9972
9973 XS(XS_Wx__MenuBar_GetLabel); /* prototype to pass -Wmissing-prototypes */
9974 XS(XS_Wx__MenuBar_GetLabel)
9975 {
9976 #ifdef dVAR
9977     dVAR; dXSARGS;
9978 #else
9979     dXSARGS;
9980 #endif
9981     if (items != 2)
9982        croak_xs_usage(cv,  "THIS, id");
9983     {
9984         int     id = (int)SvIV(ST(1));
9985         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
9986         wxString        RETVAL;
9987
9988         RETVAL = THIS->GetLabel(id);
9989         ST(0) = sv_newmortal();
9990     WXSTRING_OUTPUT( RETVAL, ST(0) );
9991
9992     }
9993     XSRETURN(1);
9994 }
9995
9996 #if !WXPERL_W_VERSION_GE( 2, 9, 0 ) || WXWIN_COMPATIBILITY_2_8
9997 #define XSubPPtmpAABW 1
9998
9999
10000 XS(XS_Wx__MenuBar_GetLabelTop); /* prototype to pass -Wmissing-prototypes */
10001 XS(XS_Wx__MenuBar_GetLabelTop)
10002 {
10003 #ifdef dVAR
10004     dVAR; dXSARGS;
10005 #else
10006     dXSARGS;
10007 #endif
10008     if (items != 2)
10009        croak_xs_usage(cv,  "THIS, id");
10010     {
10011         int     id = (int)SvIV(ST(1));
10012         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
10013         wxString        RETVAL;
10014
10015         RETVAL = THIS->GetLabelTop(id);
10016         ST(0) = sv_newmortal();
10017     WXSTRING_OUTPUT( RETVAL, ST(0) );
10018
10019     }
10020     XSRETURN(1);
10021 }
10022
10023 #endif
10024 #if WXPERL_W_VERSION_GE( 2, 8, 5 )
10025 #define XSubPPtmpAABX 1
10026
10027
10028 XS(XS_Wx__MenuBar_GetMenuLabel); /* prototype to pass -Wmissing-prototypes */
10029 XS(XS_Wx__MenuBar_GetMenuLabel)
10030 {
10031 #ifdef dVAR
10032     dVAR; dXSARGS;
10033 #else
10034     dXSARGS;
10035 #endif
10036     if (items != 2)
10037        croak_xs_usage(cv,  "THIS, id");
10038     {
10039         int     id = (int)SvIV(ST(1));
10040         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
10041         wxString        RETVAL;
10042
10043         RETVAL = THIS->GetMenuLabel(id);
10044         ST(0) = sv_newmortal();
10045     WXSTRING_OUTPUT( RETVAL, ST(0) );
10046
10047     }
10048     XSRETURN(1);
10049 }
10050
10051
10052 XS(XS_Wx__MenuBar_GetMenuLabelText); /* prototype to pass -Wmissing-prototypes */
10053 XS(XS_Wx__MenuBar_GetMenuLabelText)
10054 {
10055 #ifdef dVAR
10056     dVAR; dXSARGS;
10057 #else
10058     dXSARGS;
10059 #endif
10060     if (items != 2)
10061        croak_xs_usage(cv,  "THIS, id");
10062     {
10063         int     id = (int)SvIV(ST(1));
10064         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
10065         wxString        RETVAL;
10066
10067         RETVAL = THIS->GetMenuLabelText(id);
10068         ST(0) = sv_newmortal();
10069     WXSTRING_OUTPUT( RETVAL, ST(0) );
10070
10071     }
10072     XSRETURN(1);
10073 }
10074
10075 #endif
10076
10077 XS(XS_Wx__MenuBar_GetMenu); /* prototype to pass -Wmissing-prototypes */
10078 XS(XS_Wx__MenuBar_GetMenu)
10079 {
10080 #ifdef dVAR
10081     dVAR; dXSARGS;
10082 #else
10083     dXSARGS;
10084 #endif
10085     if (items != 2)
10086        croak_xs_usage(cv,  "THIS, index");
10087     {
10088         int     index = (int)SvIV(ST(1));
10089         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
10090         wxMenu *        RETVAL;
10091
10092         RETVAL = THIS->GetMenu(index);
10093         ST(0) = sv_newmortal();
10094     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
10095
10096     }
10097     XSRETURN(1);
10098 }
10099
10100
10101 XS(XS_Wx__MenuBar_GetMenuCount); /* prototype to pass -Wmissing-prototypes */
10102 XS(XS_Wx__MenuBar_GetMenuCount)
10103 {
10104 #ifdef dVAR
10105     dVAR; dXSARGS;
10106 #else
10107     dXSARGS;
10108 #endif
10109     if (items != 1)
10110        croak_xs_usage(cv,  "THIS");
10111     {
10112         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
10113         int     RETVAL;
10114         dXSTARG;
10115
10116         RETVAL = THIS->GetMenuCount();
10117         XSprePUSH; PUSHi((IV)RETVAL);
10118     }
10119     XSRETURN(1);
10120 }
10121
10122
10123 XS(XS_Wx__MenuBar_Insert); /* prototype to pass -Wmissing-prototypes */
10124 XS(XS_Wx__MenuBar_Insert)
10125 {
10126 #ifdef dVAR
10127     dVAR; dXSARGS;
10128 #else
10129     dXSARGS;
10130 #endif
10131     if (items != 4)
10132        croak_xs_usage(cv,  "THIS, pos, menu, title");
10133     {
10134         int     pos = (int)SvIV(ST(1));
10135         wxMenu*    menu = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Menu" );
10136         wxString        title;
10137         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
10138         bool    RETVAL;
10139
10140     WXSTRING_INPUT( title, wxString, ST(3) );
10141
10142         RETVAL = THIS->Insert(pos, menu, title);
10143         ST(0) = boolSV(RETVAL);
10144         sv_2mortal(ST(0));
10145     }
10146     XSRETURN(1);
10147 }
10148
10149
10150 XS(XS_Wx__MenuBar_IsChecked); /* prototype to pass -Wmissing-prototypes */
10151 XS(XS_Wx__MenuBar_IsChecked)
10152 {
10153 #ifdef dVAR
10154     dVAR; dXSARGS;
10155 #else
10156     dXSARGS;
10157 #endif
10158     if (items != 2)
10159        croak_xs_usage(cv,  "THIS, id");
10160     {
10161         int     id = (int)SvIV(ST(1));
10162         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
10163         bool    RETVAL;
10164
10165         RETVAL = THIS->IsChecked(id);
10166         ST(0) = boolSV(RETVAL);
10167         sv_2mortal(ST(0));
10168     }
10169     XSRETURN(1);
10170 }
10171
10172
10173 XS(XS_Wx__MenuBar_IsEnabled); /* prototype to pass -Wmissing-prototypes */
10174 XS(XS_Wx__MenuBar_IsEnabled)
10175 {
10176 #ifdef dVAR
10177     dVAR; dXSARGS;
10178 #else
10179     dXSARGS;
10180 #endif
10181     if (items != 2)
10182        croak_xs_usage(cv,  "THIS, id");
10183     {
10184         int     id = (int)SvIV(ST(1));
10185         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
10186         bool    RETVAL;
10187
10188         RETVAL = THIS->IsEnabled(id);
10189         ST(0) = boolSV(RETVAL);
10190         sv_2mortal(ST(0));
10191     }
10192     XSRETURN(1);
10193 }
10194
10195
10196 XS(XS_Wx__MenuBar_Refresh); /* prototype to pass -Wmissing-prototypes */
10197 XS(XS_Wx__MenuBar_Refresh)
10198 {
10199 #ifdef dVAR
10200     dVAR; dXSARGS;
10201 #else
10202     dXSARGS;
10203 #endif
10204     if (items != 1)
10205        croak_xs_usage(cv,  "THIS");
10206     {
10207         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
10208
10209         THIS->Refresh();
10210     }
10211     XSRETURN_EMPTY;
10212 }
10213
10214
10215 XS(XS_Wx__MenuBar_Remove); /* prototype to pass -Wmissing-prototypes */
10216 XS(XS_Wx__MenuBar_Remove)
10217 {
10218 #ifdef dVAR
10219     dVAR; dXSARGS;
10220 #else
10221     dXSARGS;
10222 #endif
10223     if (items != 2)
10224        croak_xs_usage(cv,  "THIS, pos");
10225     {
10226         int     pos = (int)SvIV(ST(1));
10227         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
10228         wxMenu *        RETVAL;
10229
10230         RETVAL = THIS->Remove(pos);
10231         ST(0) = sv_newmortal();
10232     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
10233
10234     }
10235     XSRETURN(1);
10236 }
10237
10238
10239 XS(XS_Wx__MenuBar_Replace); /* prototype to pass -Wmissing-prototypes */
10240 XS(XS_Wx__MenuBar_Replace)
10241 {
10242 #ifdef dVAR
10243     dVAR; dXSARGS;
10244 #else
10245     dXSARGS;
10246 #endif
10247     if (items != 4)
10248        croak_xs_usage(cv,  "THIS, pos, menu, title");
10249     {
10250         int     pos = (int)SvIV(ST(1));
10251         wxMenu*    menu = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Menu" );
10252         wxString        title;
10253         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
10254         wxMenu *        RETVAL;
10255
10256     WXSTRING_INPUT( title, wxString, ST(3) );
10257
10258         RETVAL = THIS->Replace(pos, menu, title);
10259         ST(0) = sv_newmortal();
10260     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
10261
10262     }
10263     XSRETURN(1);
10264 }
10265
10266
10267 XS(XS_Wx__MenuBar_SetHelpString); /* prototype to pass -Wmissing-prototypes */
10268 XS(XS_Wx__MenuBar_SetHelpString)
10269 {
10270 #ifdef dVAR
10271     dVAR; dXSARGS;
10272 #else
10273     dXSARGS;
10274 #endif
10275     if (items != 3)
10276        croak_xs_usage(cv,  "THIS, id, helpString");
10277     {
10278         int     id = (int)SvIV(ST(1));
10279         wxString        helpString;
10280         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
10281
10282     WXSTRING_INPUT( helpString, wxString, ST(2) );
10283
10284         THIS->SetHelpString(id, helpString);
10285     }
10286     XSRETURN_EMPTY;
10287 }
10288
10289
10290 XS(XS_Wx__MenuBar_SetLabel); /* prototype to pass -Wmissing-prototypes */
10291 XS(XS_Wx__MenuBar_SetLabel)
10292 {
10293 #ifdef dVAR
10294     dVAR; dXSARGS;
10295 #else
10296     dXSARGS;
10297 #endif
10298     if (items != 3)
10299        croak_xs_usage(cv,  "THIS, id, label");
10300     {
10301         int     id = (int)SvIV(ST(1));
10302         wxString        label;
10303         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
10304
10305     WXSTRING_INPUT( label, wxString, ST(2) );
10306
10307         THIS->SetLabel(id, label);
10308     }
10309     XSRETURN_EMPTY;
10310 }
10311
10312 #if !WXPERL_W_VERSION_GE( 2, 9, 0 ) || WXWIN_COMPATIBILITY_2_8
10313 #define XSubPPtmpAABY 1
10314
10315
10316 XS(XS_Wx__MenuBar_SetLabelTop); /* prototype to pass -Wmissing-prototypes */
10317 XS(XS_Wx__MenuBar_SetLabelTop)
10318 {
10319 #ifdef dVAR
10320     dVAR; dXSARGS;
10321 #else
10322     dXSARGS;
10323 #endif
10324     if (items != 3)
10325        croak_xs_usage(cv,  "THIS, pos, label");
10326     {
10327         int     pos = (int)SvIV(ST(1));
10328         wxString        label;
10329         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
10330
10331     WXSTRING_INPUT( label, wxString, ST(2) );
10332
10333         THIS->SetLabelTop(pos, label);
10334     }
10335     XSRETURN_EMPTY;
10336 }
10337
10338 #endif
10339 #if WXPERL_W_VERSION_GE( 2, 8, 5 )
10340 #define XSubPPtmpAABZ 1
10341
10342
10343 XS(XS_Wx__MenuBar_SetMenuLabel); /* prototype to pass -Wmissing-prototypes */
10344 XS(XS_Wx__MenuBar_SetMenuLabel)
10345 {
10346 #ifdef dVAR
10347     dVAR; dXSARGS;
10348 #else
10349     dXSARGS;
10350 #endif
10351     if (items != 3)
10352        croak_xs_usage(cv,  "THIS, pos, label");
10353     {
10354         int     pos = (int)SvIV(ST(1));
10355         wxString        label;
10356         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
10357
10358     WXSTRING_INPUT( label, wxString, ST(2) );
10359
10360         THIS->SetMenuLabel(pos, label);
10361     }
10362     XSRETURN_EMPTY;
10363 }
10364
10365 #endif
10366
10367 XS(XS_Wx__MenuBar_IsEnabledTop); /* prototype to pass -Wmissing-prototypes */
10368 XS(XS_Wx__MenuBar_IsEnabledTop)
10369 {
10370 #ifdef dVAR
10371     dVAR; dXSARGS;
10372 #else
10373     dXSARGS;
10374 #endif
10375     if (items != 2)
10376        croak_xs_usage(cv,  "THIS, id");
10377     {
10378         int     id = (int)SvIV(ST(1));
10379         wxMenuBar *    THIS = (wxMenuBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuBar" );
10380         bool    RETVAL;
10381
10382         RETVAL = THIS->IsEnabledTop(id);
10383         ST(0) = boolSV(RETVAL);
10384         sv_2mortal(ST(0));
10385     }
10386     XSRETURN(1);
10387 }
10388
10389
10390 XS(XS_Wx__MenuItem_new); /* prototype to pass -Wmissing-prototypes */
10391 XS(XS_Wx__MenuItem_new)
10392 {
10393 #ifdef dVAR
10394     dVAR; dXSARGS;
10395 #else
10396     dXSARGS;
10397 #endif
10398     if (items < 1 || items > 7)
10399        croak_xs_usage(cv,  "CLASS, parentMenu = 0, id = wxID_ANY, text = wxEmptyString, helpString = wxEmptyString, itemType = wxITEM_NORMAL, subMenu = 0");
10400     {
10401         wxMenu* parentMenu;
10402         int     id;
10403         wxString        text;
10404         wxString        helpString;
10405         wxItemKind      itemType;
10406         wxMenu* subMenu;
10407         char *  CLASS = (char *)SvPV_nolen(ST(0));
10408         wxMenuItem *    RETVAL;
10409
10410         if (items < 2)
10411             parentMenu = 0;
10412         else {
10413     parentMenu = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Menu" );
10414         }
10415
10416         if (items < 3)
10417             id = wxID_ANY;
10418         else {
10419             id = (int)SvIV(ST(2));
10420         }
10421
10422         if (items < 4)
10423             text = wxEmptyString;
10424         else {
10425     WXSTRING_INPUT( text, wxString, ST(3) );
10426         }
10427
10428         if (items < 5)
10429             helpString = wxEmptyString;
10430         else {
10431     WXSTRING_INPUT( helpString, wxString, ST(4) );
10432         }
10433
10434         if (items < 6)
10435             itemType = wxITEM_NORMAL;
10436         else {
10437             itemType = (wxItemKind)SvIV(ST(5));
10438         }
10439
10440         if (items < 7)
10441             subMenu = 0;
10442         else {
10443     subMenu = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(6), "Wx::Menu" );
10444         }
10445
10446         RETVAL = new wxMenuItem(parentMenu, id, text, helpString, itemType, subMenu);
10447         ST(0) = sv_newmortal();
10448     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
10449
10450     }
10451     XSRETURN(1);
10452 }
10453
10454
10455 XS(XS_Wx__MenuItem_Check); /* prototype to pass -Wmissing-prototypes */
10456 XS(XS_Wx__MenuItem_Check)
10457 {
10458 #ifdef dVAR
10459     dVAR; dXSARGS;
10460 #else
10461     dXSARGS;
10462 #endif
10463     if (items != 2)
10464        croak_xs_usage(cv,  "THIS, check");
10465     {
10466         bool    check = (bool)SvTRUE(ST(1));
10467         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10468
10469         THIS->Check(check);
10470     }
10471     XSRETURN_EMPTY;
10472 }
10473
10474
10475 XS(XS_Wx__MenuItem_Enable); /* prototype to pass -Wmissing-prototypes */
10476 XS(XS_Wx__MenuItem_Enable)
10477 {
10478 #ifdef dVAR
10479     dVAR; dXSARGS;
10480 #else
10481     dXSARGS;
10482 #endif
10483     if (items != 2)
10484        croak_xs_usage(cv,  "THIS, enable");
10485     {
10486         bool    enable = (bool)SvTRUE(ST(1));
10487         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10488
10489         THIS->Enable(enable);
10490     }
10491     XSRETURN_EMPTY;
10492 }
10493
10494 #if defined( __WXMSW__ ) && !defined( __WXWINCE__ )
10495 #define XSubPPtmpAACA 1
10496
10497
10498 XS(XS_Wx__MenuItem_GetBackgroundColour); /* prototype to pass -Wmissing-prototypes */
10499 XS(XS_Wx__MenuItem_GetBackgroundColour)
10500 {
10501 #ifdef dVAR
10502     dVAR; dXSARGS;
10503 #else
10504     dXSARGS;
10505 #endif
10506     if (items != 1)
10507        croak_xs_usage(cv,  "THIS");
10508     {
10509         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10510         wxColour *      RETVAL;
10511     RETVAL = new wxColour( THIS->GetBackgroundColour() );
10512         ST(0) = sv_newmortal();
10513     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
10514     wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
10515
10516     }
10517     XSRETURN(1);
10518 }
10519
10520
10521 XS(XS_Wx__MenuItem_GetFont); /* prototype to pass -Wmissing-prototypes */
10522 XS(XS_Wx__MenuItem_GetFont)
10523 {
10524 #ifdef dVAR
10525     dVAR; dXSARGS;
10526 #else
10527     dXSARGS;
10528 #endif
10529     if (items != 1)
10530        croak_xs_usage(cv,  "THIS");
10531     {
10532         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10533         wxFont *        RETVAL;
10534     RETVAL = new wxFont( THIS->GetFont() );
10535         ST(0) = sv_newmortal();
10536     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
10537     wxPli_thread_sv_register( aTHX_ "Wx::Font", RETVAL, ST(0) );
10538
10539     }
10540     XSRETURN(1);
10541 }
10542
10543 #endif
10544 #if ( defined( __WXMSW__ ) && !defined( __WXWINCE__ ) ) || \
10545     defined( __WXGTK__ )
10546 #define XSubPPtmpAACB 1
10547
10548
10549 XS(XS_Wx__MenuItem_GetBitmap); /* prototype to pass -Wmissing-prototypes */
10550 XS(XS_Wx__MenuItem_GetBitmap)
10551 {
10552 #ifdef dVAR
10553     dVAR; dXSARGS;
10554 #else
10555     dXSARGS;
10556 #endif
10557     if (items != 1)
10558        croak_xs_usage(cv,  "THIS");
10559     {
10560         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10561         wxBitmap *      RETVAL;
10562     RETVAL = new wxBitmap( THIS->GetBitmap() );
10563         ST(0) = sv_newmortal();
10564     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
10565     wxPli_thread_sv_register( aTHX_ "Wx::Bitmap", RETVAL, ST(0) );
10566
10567     }
10568     XSRETURN(1);
10569 }
10570
10571 #endif
10572
10573 XS(XS_Wx__MenuItem_GetHelp); /* prototype to pass -Wmissing-prototypes */
10574 XS(XS_Wx__MenuItem_GetHelp)
10575 {
10576 #ifdef dVAR
10577     dVAR; dXSARGS;
10578 #else
10579     dXSARGS;
10580 #endif
10581     if (items != 1)
10582        croak_xs_usage(cv,  "THIS");
10583     {
10584         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10585         wxString        RETVAL;
10586
10587         RETVAL = THIS->GetHelp();
10588         ST(0) = sv_newmortal();
10589     WXSTRING_OUTPUT( RETVAL, ST(0) );
10590
10591     }
10592     XSRETURN(1);
10593 }
10594
10595 #if WXPERL_W_VERSION_LT( 2, 9, 0 ) && !defined(__WXMSW__)
10596 #define XSubPPtmpAACC 1
10597
10598
10599 XS(XS_Wx__MenuItem_GetName); /* prototype to pass -Wmissing-prototypes */
10600 XS(XS_Wx__MenuItem_GetName)
10601 {
10602 #ifdef dVAR
10603     dVAR; dXSARGS;
10604 #else
10605     dXSARGS;
10606 #endif
10607     if (items != 1)
10608        croak_xs_usage(cv,  "THIS");
10609     {
10610         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10611         wxString        RETVAL;
10612
10613         RETVAL = THIS->GetName();
10614         ST(0) = sv_newmortal();
10615     WXSTRING_OUTPUT( RETVAL, ST(0) );
10616
10617     }
10618     XSRETURN(1);
10619 }
10620
10621 #endif
10622
10623 XS(XS_Wx__MenuItem_GetId); /* prototype to pass -Wmissing-prototypes */
10624 XS(XS_Wx__MenuItem_GetId)
10625 {
10626 #ifdef dVAR
10627     dVAR; dXSARGS;
10628 #else
10629     dXSARGS;
10630 #endif
10631     if (items != 1)
10632        croak_xs_usage(cv,  "THIS");
10633     {
10634         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10635         int     RETVAL;
10636         dXSTARG;
10637
10638         RETVAL = THIS->GetId();
10639         XSprePUSH; PUSHi((IV)RETVAL);
10640     }
10641     XSRETURN(1);
10642 }
10643
10644
10645 XS(XS_Wx__MenuItem_GetKind); /* prototype to pass -Wmissing-prototypes */
10646 XS(XS_Wx__MenuItem_GetKind)
10647 {
10648 #ifdef dVAR
10649     dVAR; dXSARGS;
10650 #else
10651     dXSARGS;
10652 #endif
10653     if (items != 1)
10654        croak_xs_usage(cv,  "THIS");
10655     {
10656         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10657         wxItemKind      RETVAL;
10658         dXSTARG;
10659
10660         RETVAL = THIS->GetKind();
10661         XSprePUSH; PUSHi((IV)RETVAL);
10662     }
10663     XSRETURN(1);
10664 }
10665
10666 #if !WXPERL_W_VERSION_GE( 2, 9, 0 ) || WXWIN_COMPATIBILITY_2_8
10667 #define XSubPPtmpAACD 1
10668
10669
10670 XS(XS_Wx__MenuItem_GetLabel); /* prototype to pass -Wmissing-prototypes */
10671 XS(XS_Wx__MenuItem_GetLabel)
10672 {
10673 #ifdef dVAR
10674     dVAR; dXSARGS;
10675 #else
10676     dXSARGS;
10677 #endif
10678     if (items != 1)
10679        croak_xs_usage(cv,  "THIS");
10680     {
10681         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10682         wxString        RETVAL;
10683
10684         RETVAL = THIS->GetLabel();
10685         ST(0) = sv_newmortal();
10686     WXSTRING_OUTPUT( RETVAL, ST(0) );
10687
10688     }
10689     XSRETURN(1);
10690 }
10691
10692
10693 XS(XS_Wx__MenuItem_GetLabelFromText); /* prototype to pass -Wmissing-prototypes */
10694 XS(XS_Wx__MenuItem_GetLabelFromText)
10695 {
10696 #ifdef dVAR
10697     dVAR; dXSARGS;
10698 #else
10699     dXSARGS;
10700 #endif
10701     if (items != 1)
10702        croak_xs_usage(cv,  "text");
10703     {
10704         wxString        text;
10705         wxString        RETVAL;
10706
10707     WXSTRING_INPUT( text, wxString, ST(0) );
10708     RETVAL = wxMenuItem::GetLabelFromText( text );
10709         ST(0) = sv_newmortal();
10710     WXSTRING_OUTPUT( RETVAL, ST(0) );
10711
10712     }
10713     XSRETURN(1);
10714 }
10715
10716 #endif
10717 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
10718 #define XSubPPtmpAACE 1
10719
10720
10721 XS(XS_Wx__MenuItem_GetItemLabel); /* prototype to pass -Wmissing-prototypes */
10722 XS(XS_Wx__MenuItem_GetItemLabel)
10723 {
10724 #ifdef dVAR
10725     dVAR; dXSARGS;
10726 #else
10727     dXSARGS;
10728 #endif
10729     if (items != 1)
10730        croak_xs_usage(cv,  "THIS");
10731     {
10732         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10733         wxString        RETVAL;
10734
10735         RETVAL = THIS->GetItemLabel();
10736         ST(0) = sv_newmortal();
10737     WXSTRING_OUTPUT( RETVAL, ST(0) );
10738
10739     }
10740     XSRETURN(1);
10741 }
10742
10743
10744 XS(XS_Wx__MenuItem_GetItemLabelText); /* prototype to pass -Wmissing-prototypes */
10745 XS(XS_Wx__MenuItem_GetItemLabelText)
10746 {
10747 #ifdef dVAR
10748     dVAR; dXSARGS;
10749 #else
10750     dXSARGS;
10751 #endif
10752     if (items != 1)
10753        croak_xs_usage(cv,  "THIS");
10754     {
10755         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10756         wxString        RETVAL;
10757
10758         RETVAL = THIS->GetItemLabelText();
10759         ST(0) = sv_newmortal();
10760     WXSTRING_OUTPUT( RETVAL, ST(0) );
10761
10762     }
10763     XSRETURN(1);
10764 }
10765
10766
10767 XS(XS_Wx__MenuItem_GetLabelText); /* prototype to pass -Wmissing-prototypes */
10768 XS(XS_Wx__MenuItem_GetLabelText)
10769 {
10770 #ifdef dVAR
10771     dVAR; dXSARGS;
10772 #else
10773     dXSARGS;
10774 #endif
10775     if (items != 1)
10776        croak_xs_usage(cv,  "text");
10777     {
10778         wxString        text;
10779         wxString        RETVAL;
10780
10781     WXSTRING_INPUT( text, wxString, ST(0) );
10782     RETVAL = wxMenuItem::GetLabelText( text );
10783         ST(0) = sv_newmortal();
10784     WXSTRING_OUTPUT( RETVAL, ST(0) );
10785
10786     }
10787     XSRETURN(1);
10788 }
10789
10790 #endif
10791
10792 XS(XS_Wx__MenuItem_GetMenu); /* prototype to pass -Wmissing-prototypes */
10793 XS(XS_Wx__MenuItem_GetMenu)
10794 {
10795 #ifdef dVAR
10796     dVAR; dXSARGS;
10797 #else
10798     dXSARGS;
10799 #endif
10800     if (items != 1)
10801        croak_xs_usage(cv,  "THIS");
10802     {
10803         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10804         wxMenu *        RETVAL;
10805
10806         RETVAL = THIS->GetMenu();
10807         ST(0) = sv_newmortal();
10808     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
10809
10810     }
10811     XSRETURN(1);
10812 }
10813
10814 #if defined( __WXMSW__ ) && !defined( __WXWINCE__ )
10815 #define XSubPPtmpAACF 1
10816
10817
10818 XS(XS_Wx__MenuItem_GetMarginWidth); /* prototype to pass -Wmissing-prototypes */
10819 XS(XS_Wx__MenuItem_GetMarginWidth)
10820 {
10821 #ifdef dVAR
10822     dVAR; dXSARGS;
10823 #else
10824     dXSARGS;
10825 #endif
10826     if (items != 1)
10827        croak_xs_usage(cv,  "THIS");
10828     {
10829         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10830         int     RETVAL;
10831         dXSTARG;
10832
10833         RETVAL = THIS->GetMarginWidth();
10834         XSprePUSH; PUSHi((IV)RETVAL);
10835     }
10836     XSRETURN(1);
10837 }
10838
10839 #endif
10840 #if !WXPERL_W_VERSION_GE( 2, 9, 0 ) || WXWIN_COMPATIBILITY_2_8
10841 #define XSubPPtmpAACG 1
10842
10843
10844 XS(XS_Wx__MenuItem_GetText); /* prototype to pass -Wmissing-prototypes */
10845 XS(XS_Wx__MenuItem_GetText)
10846 {
10847 #ifdef dVAR
10848     dVAR; dXSARGS;
10849 #else
10850     dXSARGS;
10851 #endif
10852     if (items != 1)
10853        croak_xs_usage(cv,  "THIS");
10854     {
10855         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10856         wxString        RETVAL;
10857
10858         RETVAL = THIS->GetText();
10859         ST(0) = sv_newmortal();
10860     WXSTRING_OUTPUT( RETVAL, ST(0) );
10861
10862     }
10863     XSRETURN(1);
10864 }
10865
10866 #endif
10867
10868 XS(XS_Wx__MenuItem_GetSubMenu); /* prototype to pass -Wmissing-prototypes */
10869 XS(XS_Wx__MenuItem_GetSubMenu)
10870 {
10871 #ifdef dVAR
10872     dVAR; dXSARGS;
10873 #else
10874     dXSARGS;
10875 #endif
10876     if (items != 1)
10877        croak_xs_usage(cv,  "THIS");
10878     {
10879         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10880         wxMenu *        RETVAL;
10881
10882         RETVAL = THIS->GetSubMenu();
10883         ST(0) = sv_newmortal();
10884     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
10885
10886     }
10887     XSRETURN(1);
10888 }
10889
10890 #if defined( __WXMSW__ ) && !defined( __WXWINCE__ )
10891 #define XSubPPtmpAACH 1
10892
10893
10894 XS(XS_Wx__MenuItem_GetTextColour); /* prototype to pass -Wmissing-prototypes */
10895 XS(XS_Wx__MenuItem_GetTextColour)
10896 {
10897 #ifdef dVAR
10898     dVAR; dXSARGS;
10899 #else
10900     dXSARGS;
10901 #endif
10902     if (items != 1)
10903        croak_xs_usage(cv,  "THIS");
10904     {
10905         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10906         wxColour *      RETVAL;
10907     RETVAL = new wxColour( THIS->GetTextColour() );
10908         ST(0) = sv_newmortal();
10909     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
10910     wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
10911
10912     }
10913     XSRETURN(1);
10914 }
10915
10916 #endif 
10917
10918 XS(XS_Wx__MenuItem_IsCheckable); /* prototype to pass -Wmissing-prototypes */
10919 XS(XS_Wx__MenuItem_IsCheckable)
10920 {
10921 #ifdef dVAR
10922     dVAR; dXSARGS;
10923 #else
10924     dXSARGS;
10925 #endif
10926     if (items != 1)
10927        croak_xs_usage(cv,  "THIS");
10928     {
10929         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10930         bool    RETVAL;
10931
10932         RETVAL = THIS->IsCheckable();
10933         ST(0) = boolSV(RETVAL);
10934         sv_2mortal(ST(0));
10935     }
10936     XSRETURN(1);
10937 }
10938
10939
10940 XS(XS_Wx__MenuItem_IsChecked); /* prototype to pass -Wmissing-prototypes */
10941 XS(XS_Wx__MenuItem_IsChecked)
10942 {
10943 #ifdef dVAR
10944     dVAR; dXSARGS;
10945 #else
10946     dXSARGS;
10947 #endif
10948     if (items != 1)
10949        croak_xs_usage(cv,  "THIS");
10950     {
10951         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10952         bool    RETVAL;
10953
10954         RETVAL = THIS->IsChecked();
10955         ST(0) = boolSV(RETVAL);
10956         sv_2mortal(ST(0));
10957     }
10958     XSRETURN(1);
10959 }
10960
10961
10962 XS(XS_Wx__MenuItem_IsEnabled); /* prototype to pass -Wmissing-prototypes */
10963 XS(XS_Wx__MenuItem_IsEnabled)
10964 {
10965 #ifdef dVAR
10966     dVAR; dXSARGS;
10967 #else
10968     dXSARGS;
10969 #endif
10970     if (items != 1)
10971        croak_xs_usage(cv,  "THIS");
10972     {
10973         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10974         bool    RETVAL;
10975
10976         RETVAL = THIS->IsEnabled();
10977         ST(0) = boolSV(RETVAL);
10978         sv_2mortal(ST(0));
10979     }
10980     XSRETURN(1);
10981 }
10982
10983
10984 XS(XS_Wx__MenuItem_IsSeparator); /* prototype to pass -Wmissing-prototypes */
10985 XS(XS_Wx__MenuItem_IsSeparator)
10986 {
10987 #ifdef dVAR
10988     dVAR; dXSARGS;
10989 #else
10990     dXSARGS;
10991 #endif
10992     if (items != 1)
10993        croak_xs_usage(cv,  "THIS");
10994     {
10995         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
10996         bool    RETVAL;
10997
10998         RETVAL = THIS->IsSeparator();
10999         ST(0) = boolSV(RETVAL);
11000         sv_2mortal(ST(0));
11001     }
11002     XSRETURN(1);
11003 }
11004
11005
11006 XS(XS_Wx__MenuItem_IsSubMenu); /* prototype to pass -Wmissing-prototypes */
11007 XS(XS_Wx__MenuItem_IsSubMenu)
11008 {
11009 #ifdef dVAR
11010     dVAR; dXSARGS;
11011 #else
11012     dXSARGS;
11013 #endif
11014     if (items != 1)
11015        croak_xs_usage(cv,  "THIS");
11016     {
11017         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
11018         bool    RETVAL;
11019
11020         RETVAL = THIS->IsSubMenu();
11021         ST(0) = boolSV(RETVAL);
11022         sv_2mortal(ST(0));
11023     }
11024     XSRETURN(1);
11025 }
11026
11027 #if defined( __WXMSW__ ) && !defined( __WXWINCE__ )
11028 #define XSubPPtmpAACI 1
11029
11030
11031 XS(XS_Wx__MenuItem_SetBackgroundColour); /* prototype to pass -Wmissing-prototypes */
11032 XS(XS_Wx__MenuItem_SetBackgroundColour)
11033 {
11034 #ifdef dVAR
11035     dVAR; dXSARGS;
11036 #else
11037     dXSARGS;
11038 #endif
11039     if (items != 2)
11040        croak_xs_usage(cv,  "THIS, colour");
11041     {
11042         wxColour*    colour = (wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
11043         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
11044     THIS->SetBackgroundColour( *colour );
11045     }
11046     XSRETURN_EMPTY;
11047 }
11048
11049
11050 XS(XS_Wx__MenuItem_SetFont); /* prototype to pass -Wmissing-prototypes */
11051 XS(XS_Wx__MenuItem_SetFont)
11052 {
11053 #ifdef dVAR
11054     dVAR; dXSARGS;
11055 #else
11056     dXSARGS;
11057 #endif
11058     if (items != 2)
11059        croak_xs_usage(cv,  "THIS, font");
11060     {
11061         wxFont*    font = (wxFont *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Font" );
11062         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
11063     THIS->SetFont( *font );
11064     }
11065     XSRETURN_EMPTY;
11066 }
11067
11068 #endif
11069
11070 XS(XS_Wx__MenuItem_SetHelp); /* prototype to pass -Wmissing-prototypes */
11071 XS(XS_Wx__MenuItem_SetHelp)
11072 {
11073 #ifdef dVAR
11074     dVAR; dXSARGS;
11075 #else
11076     dXSARGS;
11077 #endif
11078     if (items != 2)
11079        croak_xs_usage(cv,  "THIS, helpString");
11080     {
11081         wxString        helpString;
11082         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
11083
11084     WXSTRING_INPUT( helpString, wxString, ST(1) );
11085
11086         THIS->SetHelp(helpString);
11087     }
11088     XSRETURN_EMPTY;
11089 }
11090
11091
11092 XS(XS_Wx__MenuItem_SetMenu); /* prototype to pass -Wmissing-prototypes */
11093 XS(XS_Wx__MenuItem_SetMenu)
11094 {
11095 #ifdef dVAR
11096     dVAR; dXSARGS;
11097 #else
11098     dXSARGS;
11099 #endif
11100     if (items != 2)
11101        croak_xs_usage(cv,  "THIS, menu");
11102     {
11103         wxMenu*    menu = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Menu" );
11104         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
11105
11106         THIS->SetMenu(menu);
11107     }
11108     XSRETURN_EMPTY;
11109 }
11110
11111
11112 XS(XS_Wx__MenuItem_SetSubMenu); /* prototype to pass -Wmissing-prototypes */
11113 XS(XS_Wx__MenuItem_SetSubMenu)
11114 {
11115 #ifdef dVAR
11116     dVAR; dXSARGS;
11117 #else
11118     dXSARGS;
11119 #endif
11120     if (items != 2)
11121        croak_xs_usage(cv,  "THIS, menu");
11122     {
11123         wxMenu*    menu = (wxMenu *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Menu" );
11124         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
11125
11126         THIS->SetSubMenu(menu);
11127     }
11128     XSRETURN_EMPTY;
11129 }
11130
11131 #if !WXPERL_W_VERSION_GE( 2, 9, 0 ) || WXWIN_COMPATIBILITY_2_8
11132 #define XSubPPtmpAACJ 1
11133
11134
11135 XS(XS_Wx__MenuItem_SetText); /* prototype to pass -Wmissing-prototypes */
11136 XS(XS_Wx__MenuItem_SetText)
11137 {
11138 #ifdef dVAR
11139     dVAR; dXSARGS;
11140 #else
11141     dXSARGS;
11142 #endif
11143     if (items != 2)
11144        croak_xs_usage(cv,  "THIS, text");
11145     {
11146         wxString        text;
11147         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
11148
11149     WXSTRING_INPUT( text, wxString, ST(1) );
11150
11151         THIS->SetText(text);
11152     }
11153     XSRETURN_EMPTY;
11154 }
11155
11156 #endif
11157 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
11158 #define XSubPPtmpAACK 1
11159
11160
11161 XS(XS_Wx__MenuItem_SetItemLabel); /* prototype to pass -Wmissing-prototypes */
11162 XS(XS_Wx__MenuItem_SetItemLabel)
11163 {
11164 #ifdef dVAR
11165     dVAR; dXSARGS;
11166 #else
11167     dXSARGS;
11168 #endif
11169     if (items != 2)
11170        croak_xs_usage(cv,  "THIS, label");
11171     {
11172         wxString        label;
11173         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
11174
11175     WXSTRING_INPUT( label, wxString, ST(1) );
11176
11177         THIS->SetItemLabel(label);
11178     }
11179     XSRETURN_EMPTY;
11180 }
11181
11182 #endif
11183 #if defined( __WXMSW__ ) && !defined( __WXWINCE__ )
11184 #define XSubPPtmpAACL 1
11185
11186
11187 XS(XS_Wx__MenuItem_SetMarginWidth); /* prototype to pass -Wmissing-prototypes */
11188 XS(XS_Wx__MenuItem_SetMarginWidth)
11189 {
11190 #ifdef dVAR
11191     dVAR; dXSARGS;
11192 #else
11193     dXSARGS;
11194 #endif
11195     if (items != 2)
11196        croak_xs_usage(cv,  "THIS, width");
11197     {
11198         int     width = (int)SvIV(ST(1));
11199         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
11200
11201         THIS->SetMarginWidth(width);
11202     }
11203     XSRETURN_EMPTY;
11204 }
11205
11206
11207 XS(XS_Wx__MenuItem_SetTextColour); /* prototype to pass -Wmissing-prototypes */
11208 XS(XS_Wx__MenuItem_SetTextColour)
11209 {
11210 #ifdef dVAR
11211     dVAR; dXSARGS;
11212 #else
11213     dXSARGS;
11214 #endif
11215     if (items != 2)
11216        croak_xs_usage(cv,  "THIS, colour");
11217     {
11218         wxColour*    colour = (wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
11219         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
11220     THIS->SetTextColour( *colour );
11221     }
11222     XSRETURN_EMPTY;
11223 }
11224
11225
11226 XS(XS_Wx__MenuItem_SetBitmaps); /* prototype to pass -Wmissing-prototypes */
11227 XS(XS_Wx__MenuItem_SetBitmaps)
11228 {
11229 #ifdef dVAR
11230     dVAR; dXSARGS;
11231 #else
11232     dXSARGS;
11233 #endif
11234     if (items < 2 || items > 3)
11235        croak_xs_usage(cv,  "THIS, checked, unchecked = (wxBitmap*)&wxNullBitmap");
11236     {
11237         wxBitmap*    checked = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
11238         wxBitmap*       unchecked;
11239         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
11240
11241         if (items < 3)
11242             unchecked = (wxBitmap*)&wxNullBitmap;
11243         else {
11244     unchecked = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Bitmap" );
11245         }
11246     THIS->SetBitmaps( *checked, *unchecked );
11247     }
11248     XSRETURN_EMPTY;
11249 }
11250
11251 #endif
11252 #if ( defined( __WXMSW__ ) && !defined( __WXWINCE__ ) ) || \
11253     defined( __WXGTK__ )
11254 #define XSubPPtmpAACM 1
11255
11256
11257 XS(XS_Wx__MenuItem_SetBitmap); /* prototype to pass -Wmissing-prototypes */
11258 XS(XS_Wx__MenuItem_SetBitmap)
11259 {
11260 #ifdef dVAR
11261     dVAR; dXSARGS;
11262 #else
11263     dXSARGS;
11264 #endif
11265     if (items != 2)
11266        croak_xs_usage(cv,  "THIS, bitmap");
11267     {
11268         wxBitmap*    bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
11269         wxMenuItem *    THIS = (wxMenuItem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuItem" );
11270     THIS->SetBitmap( *bitmap );
11271     }
11272     XSRETURN_EMPTY;
11273 }
11274
11275 #endif
11276
11277 /* INCLUDE: Returning to 'XS/Geom.xs' from 'XS/Menu.xs' */
11278
11279
11280 XS(XS_Wx__Size_new); /* prototype to pass -Wmissing-prototypes */
11281 XS(XS_Wx__Size_new)
11282 {
11283 #ifdef dVAR
11284     dVAR; dXSARGS;
11285 #else
11286     dXSARGS;
11287 #endif
11288     if (items < 1 || items > 3)
11289        croak_xs_usage(cv,  "CLASS, width = 0, height = 0");
11290     {
11291         int     width;
11292         int     height;
11293         char *  CLASS = (char *)SvPV_nolen(ST(0));
11294         wxSize *        RETVAL;
11295
11296         if (items < 2)
11297             width = 0;
11298         else {
11299             width = (int)SvIV(ST(1));
11300         }
11301
11302         if (items < 3)
11303             height = 0;
11304         else {
11305             height = (int)SvIV(ST(2));
11306         }
11307
11308         RETVAL = new wxSize(width, height);
11309         ST(0) = sv_newmortal();
11310     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Size" );
11311     wxPli_thread_sv_register( aTHX_ "Wx::Size", RETVAL, ST(0) );
11312
11313     }
11314     XSRETURN(1);
11315 }
11316
11317
11318 XS(XS_Wx__Size_CLONE); /* prototype to pass -Wmissing-prototypes */
11319 XS(XS_Wx__Size_CLONE)
11320 {
11321 #ifdef dVAR
11322     dVAR; dXSARGS;
11323 #else
11324     dXSARGS;
11325 #endif
11326     if (items != 1)
11327        croak_xs_usage(cv,  "CLASS");
11328     {
11329         char *  CLASS = (char *)SvPV_nolen(ST(0));
11330     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
11331     }
11332     XSRETURN_EMPTY;
11333 }
11334
11335
11336 XS(XS_Wx__Size_DESTROY); /* prototype to pass -Wmissing-prototypes */
11337 XS(XS_Wx__Size_DESTROY)
11338 {
11339 #ifdef dVAR
11340     dVAR; dXSARGS;
11341 #else
11342     dXSARGS;
11343 #endif
11344     if (items != 1)
11345        croak_xs_usage(cv,  "THIS");
11346     {
11347         wxSize *    THIS = (wxSize *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Size" );
11348     wxPli_thread_sv_unregister( aTHX_ "Wx::Size", THIS, ST(0) );
11349     delete THIS;
11350     }
11351     XSRETURN_EMPTY;
11352 }
11353
11354
11355 XS(XS_Wx__Size_width); /* prototype to pass -Wmissing-prototypes */
11356 XS(XS_Wx__Size_width)
11357 {
11358 #ifdef dVAR
11359     dVAR; dXSARGS;
11360 #else
11361     dXSARGS;
11362 #endif
11363     if (items < 1)
11364        croak_xs_usage(cv,  "THIS, ...");
11365     {
11366         wxSize *    THIS = (wxSize *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Size" );
11367         int     RETVAL;
11368         dXSTARG;
11369     if( items > 1 )
11370       THIS->x = SvIV( ST(1) );
11371     RETVAL = THIS->x;
11372         XSprePUSH; PUSHi((IV)RETVAL);
11373     }
11374     XSRETURN(1);
11375 }
11376
11377
11378 XS(XS_Wx__Size_height); /* prototype to pass -Wmissing-prototypes */
11379 XS(XS_Wx__Size_height)
11380 {
11381 #ifdef dVAR
11382     dVAR; dXSARGS;
11383 #else
11384     dXSARGS;
11385 #endif
11386     if (items < 1)
11387        croak_xs_usage(cv,  "THIS, ...");
11388     {
11389         wxSize *    THIS = (wxSize *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Size" );
11390         int     RETVAL;
11391         dXSTARG;
11392     if( items > 1 )
11393       THIS->y = SvIV( ST(1) );
11394     RETVAL = THIS->y;
11395         XSprePUSH; PUSHi((IV)RETVAL);
11396     }
11397     XSRETURN(1);
11398 }
11399
11400
11401 XS(XS_Wx__Size_GetHeight); /* prototype to pass -Wmissing-prototypes */
11402 XS(XS_Wx__Size_GetHeight)
11403 {
11404 #ifdef dVAR
11405     dVAR; dXSARGS;
11406 #else
11407     dXSARGS;
11408 #endif
11409     if (items != 1)
11410        croak_xs_usage(cv,  "THIS");
11411     {
11412         wxSize *    THIS = (wxSize *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Size" );
11413         int     RETVAL;
11414         dXSTARG;
11415
11416         RETVAL = THIS->GetHeight();
11417         XSprePUSH; PUSHi((IV)RETVAL);
11418     }
11419     XSRETURN(1);
11420 }
11421
11422
11423 XS(XS_Wx__Size_GetWidth); /* prototype to pass -Wmissing-prototypes */
11424 XS(XS_Wx__Size_GetWidth)
11425 {
11426 #ifdef dVAR
11427     dVAR; dXSARGS;
11428 #else
11429     dXSARGS;
11430 #endif
11431     if (items != 1)
11432        croak_xs_usage(cv,  "THIS");
11433     {
11434         wxSize *    THIS = (wxSize *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Size" );
11435         int     RETVAL;
11436         dXSTARG;
11437
11438         RETVAL = THIS->GetWidth();
11439         XSprePUSH; PUSHi((IV)RETVAL);
11440     }
11441     XSRETURN(1);
11442 }
11443
11444
11445 XS(XS_Wx__Size_Set); /* prototype to pass -Wmissing-prototypes */
11446 XS(XS_Wx__Size_Set)
11447 {
11448 #ifdef dVAR
11449     dVAR; dXSARGS;
11450 #else
11451     dXSARGS;
11452 #endif
11453     if (items != 3)
11454        croak_xs_usage(cv,  "THIS, width, height");
11455     {
11456         int     width = (int)SvIV(ST(1));
11457         int     height = (int)SvIV(ST(2));
11458         wxSize *    THIS = (wxSize *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Size" );
11459
11460         THIS->Set(width, height);
11461     }
11462     XSRETURN_EMPTY;
11463 }
11464
11465
11466 XS(XS_Wx__Size_SetHeight); /* prototype to pass -Wmissing-prototypes */
11467 XS(XS_Wx__Size_SetHeight)
11468 {
11469 #ifdef dVAR
11470     dVAR; dXSARGS;
11471 #else
11472     dXSARGS;
11473 #endif
11474     if (items != 2)
11475        croak_xs_usage(cv,  "THIS, height");
11476     {
11477         int     height = (int)SvIV(ST(1));
11478         wxSize *    THIS = (wxSize *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Size" );
11479
11480         THIS->SetHeight(height);
11481     }
11482     XSRETURN_EMPTY;
11483 }
11484
11485
11486 XS(XS_Wx__Size_SetWidth); /* prototype to pass -Wmissing-prototypes */
11487 XS(XS_Wx__Size_SetWidth)
11488 {
11489 #ifdef dVAR
11490     dVAR; dXSARGS;
11491 #else
11492     dXSARGS;
11493 #endif
11494     if (items != 2)
11495        croak_xs_usage(cv,  "THIS, width");
11496     {
11497         int     width = (int)SvIV(ST(1));
11498         wxSize *    THIS = (wxSize *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Size" );
11499
11500         THIS->SetWidth(width);
11501     }
11502     XSRETURN_EMPTY;
11503 }
11504
11505
11506 XS(XS_Wx__Size_IncTo); /* prototype to pass -Wmissing-prototypes */
11507 XS(XS_Wx__Size_IncTo)
11508 {
11509 #ifdef dVAR
11510     dVAR; dXSARGS;
11511 #else
11512     dXSARGS;
11513 #endif
11514     if (items != 2)
11515        croak_xs_usage(cv,  "THIS, size");
11516     {
11517         wxSize    size = wxPli_sv_2_wxsize( aTHX_ ST(1) );
11518         wxSize *    THIS = (wxSize *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Size" );
11519
11520         THIS->IncTo(size);
11521     }
11522     XSRETURN_EMPTY;
11523 }
11524
11525
11526 XS(XS_Wx__Size_DecTo); /* prototype to pass -Wmissing-prototypes */
11527 XS(XS_Wx__Size_DecTo)
11528 {
11529 #ifdef dVAR
11530     dVAR; dXSARGS;
11531 #else
11532     dXSARGS;
11533 #endif
11534     if (items != 2)
11535        croak_xs_usage(cv,  "THIS, size");
11536     {
11537         wxSize    size = wxPli_sv_2_wxsize( aTHX_ ST(1) );
11538         wxSize *    THIS = (wxSize *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Size" );
11539
11540         THIS->DecTo(size);
11541     }
11542     XSRETURN_EMPTY;
11543 }
11544
11545 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
11546 #define XSubPPtmpAACN 1
11547
11548
11549 XS(XS_Wx__Size_Scale); /* prototype to pass -Wmissing-prototypes */
11550 XS(XS_Wx__Size_Scale)
11551 {
11552 #ifdef dVAR
11553     dVAR; dXSARGS;
11554 #else
11555     dXSARGS;
11556 #endif
11557     if (items != 3)
11558        croak_xs_usage(cv,  "THIS, xscale, yscale");
11559     {
11560         float   xscale = (float)SvNV(ST(1));
11561         float   yscale = (float)SvNV(ST(2));
11562         wxSize *    THIS = (wxSize *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Size" );
11563         SV *    RETVAL;
11564     THIS->Scale( xscale, yscale );
11565     RETVAL = ST(0);
11566         ST(0) = RETVAL;
11567         sv_2mortal(ST(0));
11568     }
11569     XSRETURN(1);
11570 }
11571
11572 #endif
11573
11574 XS(XS_Wx__Size_IsFullySpecified); /* prototype to pass -Wmissing-prototypes */
11575 XS(XS_Wx__Size_IsFullySpecified)
11576 {
11577 #ifdef dVAR
11578     dVAR; dXSARGS;
11579 #else
11580     dXSARGS;
11581 #endif
11582     if (items != 1)
11583        croak_xs_usage(cv,  "THIS");
11584     {
11585         wxSize *    THIS = (wxSize *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Size" );
11586         bool    RETVAL;
11587
11588         RETVAL = THIS->IsFullySpecified();
11589         ST(0) = boolSV(RETVAL);
11590         sv_2mortal(ST(0));
11591     }
11592     XSRETURN(1);
11593 }
11594
11595
11596 XS(XS_Wx__Size_SetDefaults); /* prototype to pass -Wmissing-prototypes */
11597 XS(XS_Wx__Size_SetDefaults)
11598 {
11599 #ifdef dVAR
11600     dVAR; dXSARGS;
11601 #else
11602     dXSARGS;
11603 #endif
11604     if (items != 2)
11605        croak_xs_usage(cv,  "THIS, size");
11606     {
11607         wxSize    size = wxPli_sv_2_wxsize( aTHX_ ST(1) );
11608         wxSize *    THIS = (wxSize *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Size" );
11609
11610         THIS->SetDefaults(size);
11611     }
11612     XSRETURN_EMPTY;
11613 }
11614
11615
11616 XS(XS_Wx__Point_new); /* prototype to pass -Wmissing-prototypes */
11617 XS(XS_Wx__Point_new)
11618 {
11619 #ifdef dVAR
11620     dVAR; dXSARGS;
11621 #else
11622     dXSARGS;
11623 #endif
11624     if (items < 1 || items > 3)
11625        croak_xs_usage(cv,  "CLASS, x = 0, y = 0");
11626     {
11627         int     x;
11628         int     y;
11629         char *  CLASS = (char *)SvPV_nolen(ST(0));
11630         wxPoint *       RETVAL;
11631
11632         if (items < 2)
11633             x = 0;
11634         else {
11635             x = (int)SvIV(ST(1));
11636         }
11637
11638         if (items < 3)
11639             y = 0;
11640         else {
11641             y = (int)SvIV(ST(2));
11642         }
11643
11644         RETVAL = new wxPoint(x, y);
11645         ST(0) = sv_newmortal();
11646     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
11647     wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
11648
11649     }
11650     XSRETURN(1);
11651 }
11652
11653
11654 XS(XS_Wx__Point_CLONE); /* prototype to pass -Wmissing-prototypes */
11655 XS(XS_Wx__Point_CLONE)
11656 {
11657 #ifdef dVAR
11658     dVAR; dXSARGS;
11659 #else
11660     dXSARGS;
11661 #endif
11662     if (items != 1)
11663        croak_xs_usage(cv,  "CLASS");
11664     {
11665         char *  CLASS = (char *)SvPV_nolen(ST(0));
11666     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
11667     }
11668     XSRETURN_EMPTY;
11669 }
11670
11671
11672 XS(XS_Wx__Point_DESTROY); /* prototype to pass -Wmissing-prototypes */
11673 XS(XS_Wx__Point_DESTROY)
11674 {
11675 #ifdef dVAR
11676     dVAR; dXSARGS;
11677 #else
11678     dXSARGS;
11679 #endif
11680     if (items != 1)
11681        croak_xs_usage(cv,  "THIS");
11682     {
11683         wxPoint *    THIS = (wxPoint *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Point" );
11684     wxPli_thread_sv_unregister( aTHX_ "Wx::Point", THIS, ST(0) );
11685     delete THIS;
11686     }
11687     XSRETURN_EMPTY;
11688 }
11689
11690
11691 XS(XS_Wx__Point_x); /* prototype to pass -Wmissing-prototypes */
11692 XS(XS_Wx__Point_x)
11693 {
11694 #ifdef dVAR
11695     dVAR; dXSARGS;
11696 #else
11697     dXSARGS;
11698 #endif
11699     if (items < 1)
11700        croak_xs_usage(cv,  "THIS, ...");
11701     {
11702         wxPoint *    THIS = (wxPoint *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Point" );
11703         int     RETVAL;
11704         dXSTARG;
11705     if( items > 1 )
11706       THIS->x = SvIV( ST(1) );
11707     RETVAL = THIS->x;
11708         XSprePUSH; PUSHi((IV)RETVAL);
11709     }
11710     XSRETURN(1);
11711 }
11712
11713
11714 XS(XS_Wx__Point_y); /* prototype to pass -Wmissing-prototypes */
11715 XS(XS_Wx__Point_y)
11716 {
11717 #ifdef dVAR
11718     dVAR; dXSARGS;
11719 #else
11720     dXSARGS;
11721 #endif
11722     if (items < 1)
11723        croak_xs_usage(cv,  "THIS, ...");
11724     {
11725         wxPoint *    THIS = (wxPoint *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Point" );
11726         int     RETVAL;
11727         dXSTARG;
11728     if( items > 1 )
11729       THIS->y = SvIV( ST(1) );
11730     RETVAL = THIS->y;
11731         XSprePUSH; PUSHi((IV)RETVAL);
11732     }
11733     XSRETURN(1);
11734 }
11735
11736
11737 XS(XS_Wx__Rect_new); /* prototype to pass -Wmissing-prototypes */
11738 XS(XS_Wx__Rect_new)
11739 {
11740 #ifdef dVAR
11741     dVAR; dXSARGS;
11742 #else
11743     dXSARGS;
11744 #endif
11745     if (items < 1)
11746        croak_xs_usage(cv,  "CLASS, ...");
11747     PERL_UNUSED_VAR(ax); /* -Wall */
11748     SP -= items;
11749     {
11750         char *  CLASS = (char *)SvPV_nolen(ST(0));
11751     BEGIN_OVERLOAD()
11752         MATCH_REDISP( wxPliOvl_n_n_n_n, newXYWH )
11753         MATCH_REDISP( wxPliOvl_wpoi_wsiz, newPS )
11754         MATCH_REDISP( wxPliOvl_wpoi_wpoi, newPP )
11755     END_OVERLOAD( Wx::Rect::new )
11756         PUTBACK;
11757         return;
11758     }
11759 }
11760
11761
11762 XS(XS_Wx__Rect_newXYWH); /* prototype to pass -Wmissing-prototypes */
11763 XS(XS_Wx__Rect_newXYWH)
11764 {
11765 #ifdef dVAR
11766     dVAR; dXSARGS;
11767 #else
11768     dXSARGS;
11769 #endif
11770     if (items != 5)
11771        croak_xs_usage(cv,  "CLASS, x, y, width, height");
11772     {
11773         SV*     CLASS = ST(0);
11774         int     x = (int)SvIV(ST(1));
11775         int     y = (int)SvIV(ST(2));
11776         int     width = (int)SvIV(ST(3));
11777         int     height = (int)SvIV(ST(4));
11778         wxRect *        RETVAL;
11779     RETVAL = new wxRect( x, y, width, height );
11780         ST(0) = sv_newmortal();
11781     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
11782     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
11783
11784     }
11785     XSRETURN(1);
11786 }
11787
11788
11789 XS(XS_Wx__Rect_newPP); /* prototype to pass -Wmissing-prototypes */
11790 XS(XS_Wx__Rect_newPP)
11791 {
11792 #ifdef dVAR
11793     dVAR; dXSARGS;
11794 #else
11795     dXSARGS;
11796 #endif
11797     if (items != 3)
11798        croak_xs_usage(cv,  "CLASS, tl, br");
11799     {
11800         SV*     CLASS = ST(0);
11801         wxPoint    tl = wxPli_sv_2_wxpoint( aTHX_ ST(1) );
11802         wxPoint    br = wxPli_sv_2_wxpoint( aTHX_ ST(2) );
11803         wxRect *        RETVAL;
11804     RETVAL = new wxRect( tl, br );
11805         ST(0) = sv_newmortal();
11806     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
11807     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
11808
11809     }
11810     XSRETURN(1);
11811 }
11812
11813
11814 XS(XS_Wx__Rect_newPS); /* prototype to pass -Wmissing-prototypes */
11815 XS(XS_Wx__Rect_newPS)
11816 {
11817 #ifdef dVAR
11818     dVAR; dXSARGS;
11819 #else
11820     dXSARGS;
11821 #endif
11822     if (items != 3)
11823        croak_xs_usage(cv,  "CLASS, pos, size");
11824     {
11825         SV*     CLASS = ST(0);
11826         wxPoint    pos = wxPli_sv_2_wxpoint( aTHX_ ST(1) );
11827         wxSize    size = wxPli_sv_2_wxsize( aTHX_ ST(2) );
11828         wxRect *        RETVAL;
11829     RETVAL = new wxRect( pos, size );
11830         ST(0) = sv_newmortal();
11831     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
11832     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
11833
11834     }
11835     XSRETURN(1);
11836 }
11837
11838
11839 XS(XS_Wx__Rect_CLONE); /* prototype to pass -Wmissing-prototypes */
11840 XS(XS_Wx__Rect_CLONE)
11841 {
11842 #ifdef dVAR
11843     dVAR; dXSARGS;
11844 #else
11845     dXSARGS;
11846 #endif
11847     if (items != 1)
11848        croak_xs_usage(cv,  "CLASS");
11849     {
11850         char *  CLASS = (char *)SvPV_nolen(ST(0));
11851     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
11852     }
11853     XSRETURN_EMPTY;
11854 }
11855
11856
11857 XS(XS_Wx__Rect_DESTROY); /* prototype to pass -Wmissing-prototypes */
11858 XS(XS_Wx__Rect_DESTROY)
11859 {
11860 #ifdef dVAR
11861     dVAR; dXSARGS;
11862 #else
11863     dXSARGS;
11864 #endif
11865     if (items != 1)
11866        croak_xs_usage(cv,  "THIS");
11867     {
11868         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
11869     wxPli_thread_sv_unregister( aTHX_ "Wx::Rect", THIS, ST(0) );
11870     delete THIS;
11871     }
11872     XSRETURN_EMPTY;
11873 }
11874
11875
11876 XS(XS_Wx__Rect_x); /* prototype to pass -Wmissing-prototypes */
11877 XS(XS_Wx__Rect_x)
11878 {
11879 #ifdef dVAR
11880     dVAR; dXSARGS;
11881 #else
11882     dXSARGS;
11883 #endif
11884     if (items < 1)
11885        croak_xs_usage(cv,  "THIS, ...");
11886     {
11887         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
11888         int     RETVAL;
11889         dXSTARG;
11890     if( items > 1 )
11891       THIS->x = SvIV( ST(1) );
11892     RETVAL = THIS->x;
11893         XSprePUSH; PUSHi((IV)RETVAL);
11894     }
11895     XSRETURN(1);
11896 }
11897
11898
11899 XS(XS_Wx__Rect_y); /* prototype to pass -Wmissing-prototypes */
11900 XS(XS_Wx__Rect_y)
11901 {
11902 #ifdef dVAR
11903     dVAR; dXSARGS;
11904 #else
11905     dXSARGS;
11906 #endif
11907     if (items < 1)
11908        croak_xs_usage(cv,  "THIS, ...");
11909     {
11910         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
11911         int     RETVAL;
11912         dXSTARG;
11913     if( items > 1 )
11914       THIS->y = SvIV( ST(1) );
11915     RETVAL = THIS->y;
11916         XSprePUSH; PUSHi((IV)RETVAL);
11917     }
11918     XSRETURN(1);
11919 }
11920
11921
11922 XS(XS_Wx__Rect_width); /* prototype to pass -Wmissing-prototypes */
11923 XS(XS_Wx__Rect_width)
11924 {
11925 #ifdef dVAR
11926     dVAR; dXSARGS;
11927 #else
11928     dXSARGS;
11929 #endif
11930     if (items < 1)
11931        croak_xs_usage(cv,  "THIS, ...");
11932     {
11933         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
11934         int     RETVAL;
11935         dXSTARG;
11936     if( items > 1 )
11937       THIS->width = SvIV( ST(1) );
11938     RETVAL = THIS->width;
11939         XSprePUSH; PUSHi((IV)RETVAL);
11940     }
11941     XSRETURN(1);
11942 }
11943
11944
11945 XS(XS_Wx__Rect_height); /* prototype to pass -Wmissing-prototypes */
11946 XS(XS_Wx__Rect_height)
11947 {
11948 #ifdef dVAR
11949     dVAR; dXSARGS;
11950 #else
11951     dXSARGS;
11952 #endif
11953     if (items < 1)
11954        croak_xs_usage(cv,  "THIS, ...");
11955     {
11956         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
11957         int     RETVAL;
11958         dXSTARG;
11959     if( items > 1 )
11960       THIS->height = SvIV( ST(1) );
11961     RETVAL = THIS->height;
11962         XSprePUSH; PUSHi((IV)RETVAL);
11963     }
11964     XSRETURN(1);
11965 }
11966
11967
11968 XS(XS_Wx__Rect_GetBottom); /* prototype to pass -Wmissing-prototypes */
11969 XS(XS_Wx__Rect_GetBottom)
11970 {
11971 #ifdef dVAR
11972     dVAR; dXSARGS;
11973 #else
11974     dXSARGS;
11975 #endif
11976     if (items != 1)
11977        croak_xs_usage(cv,  "THIS");
11978     {
11979         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
11980         int     RETVAL;
11981         dXSTARG;
11982
11983         RETVAL = THIS->GetBottom();
11984         XSprePUSH; PUSHi((IV)RETVAL);
11985     }
11986     XSRETURN(1);
11987 }
11988
11989
11990 XS(XS_Wx__Rect_GetHeight); /* prototype to pass -Wmissing-prototypes */
11991 XS(XS_Wx__Rect_GetHeight)
11992 {
11993 #ifdef dVAR
11994     dVAR; dXSARGS;
11995 #else
11996     dXSARGS;
11997 #endif
11998     if (items != 1)
11999        croak_xs_usage(cv,  "THIS");
12000     {
12001         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12002         int     RETVAL;
12003         dXSTARG;
12004
12005         RETVAL = THIS->GetHeight();
12006         XSprePUSH; PUSHi((IV)RETVAL);
12007     }
12008     XSRETURN(1);
12009 }
12010
12011
12012 XS(XS_Wx__Rect_GetLeft); /* prototype to pass -Wmissing-prototypes */
12013 XS(XS_Wx__Rect_GetLeft)
12014 {
12015 #ifdef dVAR
12016     dVAR; dXSARGS;
12017 #else
12018     dXSARGS;
12019 #endif
12020     if (items != 1)
12021        croak_xs_usage(cv,  "THIS");
12022     {
12023         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12024         int     RETVAL;
12025         dXSTARG;
12026
12027         RETVAL = THIS->GetLeft();
12028         XSprePUSH; PUSHi((IV)RETVAL);
12029     }
12030     XSRETURN(1);
12031 }
12032
12033
12034 XS(XS_Wx__Rect_GetPosition); /* prototype to pass -Wmissing-prototypes */
12035 XS(XS_Wx__Rect_GetPosition)
12036 {
12037 #ifdef dVAR
12038     dVAR; dXSARGS;
12039 #else
12040     dXSARGS;
12041 #endif
12042     if (items != 1)
12043        croak_xs_usage(cv,  "THIS");
12044     {
12045         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12046         wxPoint *       RETVAL;
12047     RETVAL = new wxPoint( THIS->GetPosition() );
12048         ST(0) = sv_newmortal();
12049     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
12050     wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
12051
12052     }
12053     XSRETURN(1);
12054 }
12055
12056
12057 XS(XS_Wx__Rect_GetTopLeft); /* prototype to pass -Wmissing-prototypes */
12058 XS(XS_Wx__Rect_GetTopLeft)
12059 {
12060 #ifdef dVAR
12061     dVAR; dXSARGS;
12062 #else
12063     dXSARGS;
12064 #endif
12065     if (items != 1)
12066        croak_xs_usage(cv,  "THIS");
12067     {
12068         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12069         wxPoint *       RETVAL;
12070     RETVAL = new wxPoint( THIS->GetTopLeft() );
12071         ST(0) = sv_newmortal();
12072     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
12073     wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
12074
12075     }
12076     XSRETURN(1);
12077 }
12078
12079
12080 XS(XS_Wx__Rect_GetBottomRight); /* prototype to pass -Wmissing-prototypes */
12081 XS(XS_Wx__Rect_GetBottomRight)
12082 {
12083 #ifdef dVAR
12084     dVAR; dXSARGS;
12085 #else
12086     dXSARGS;
12087 #endif
12088     if (items != 1)
12089        croak_xs_usage(cv,  "THIS");
12090     {
12091         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12092         wxPoint *       RETVAL;
12093     RETVAL = new wxPoint( THIS->GetBottomRight() );
12094         ST(0) = sv_newmortal();
12095     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
12096     wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
12097
12098     }
12099     XSRETURN(1);
12100 }
12101
12102 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
12103 #define XSubPPtmpAACO 1
12104
12105
12106 XS(XS_Wx__Rect_GetBottomLeft); /* prototype to pass -Wmissing-prototypes */
12107 XS(XS_Wx__Rect_GetBottomLeft)
12108 {
12109 #ifdef dVAR
12110     dVAR; dXSARGS;
12111 #else
12112     dXSARGS;
12113 #endif
12114     if (items != 1)
12115        croak_xs_usage(cv,  "THIS");
12116     {
12117         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12118         wxPoint *       RETVAL;
12119     RETVAL = new wxPoint( THIS->GetBottomLeft() );
12120         ST(0) = sv_newmortal();
12121     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
12122     wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
12123
12124     }
12125     XSRETURN(1);
12126 }
12127
12128
12129 XS(XS_Wx__Rect_GetTopRight); /* prototype to pass -Wmissing-prototypes */
12130 XS(XS_Wx__Rect_GetTopRight)
12131 {
12132 #ifdef dVAR
12133     dVAR; dXSARGS;
12134 #else
12135     dXSARGS;
12136 #endif
12137     if (items != 1)
12138        croak_xs_usage(cv,  "THIS");
12139     {
12140         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12141         wxPoint *       RETVAL;
12142     RETVAL = new wxPoint( THIS->GetTopRight() );
12143         ST(0) = sv_newmortal();
12144     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
12145     wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
12146
12147     }
12148     XSRETURN(1);
12149 }
12150
12151
12152 XS(XS_Wx__Rect_IsEmpty); /* prototype to pass -Wmissing-prototypes */
12153 XS(XS_Wx__Rect_IsEmpty)
12154 {
12155 #ifdef dVAR
12156     dVAR; dXSARGS;
12157 #else
12158     dXSARGS;
12159 #endif
12160     if (items != 1)
12161        croak_xs_usage(cv,  "THIS");
12162     {
12163         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12164         bool    RETVAL;
12165
12166         RETVAL = THIS->IsEmpty();
12167         ST(0) = boolSV(RETVAL);
12168         sv_2mortal(ST(0));
12169     }
12170     XSRETURN(1);
12171 }
12172
12173
12174 XS(XS_Wx__Rect_Union); /* prototype to pass -Wmissing-prototypes */
12175 XS(XS_Wx__Rect_Union)
12176 {
12177 #ifdef dVAR
12178     dVAR; dXSARGS;
12179 #else
12180     dXSARGS;
12181 #endif
12182     if (items != 2)
12183        croak_xs_usage(cv,  "THIS, rec");
12184     {
12185         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12186         wxRect *        RETVAL;
12187         wxRect*    rec = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
12188     RETVAL = new wxRect( THIS->Union( *rec ) );
12189         ST(0) = sv_newmortal();
12190     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
12191     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
12192
12193     }
12194     XSRETURN(1);
12195 }
12196
12197 #endif    
12198
12199 XS(XS_Wx__Rect_GetRight); /* prototype to pass -Wmissing-prototypes */
12200 XS(XS_Wx__Rect_GetRight)
12201 {
12202 #ifdef dVAR
12203     dVAR; dXSARGS;
12204 #else
12205     dXSARGS;
12206 #endif
12207     if (items != 1)
12208        croak_xs_usage(cv,  "THIS");
12209     {
12210         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12211         int     RETVAL;
12212         dXSTARG;
12213
12214         RETVAL = THIS->GetRight();
12215         XSprePUSH; PUSHi((IV)RETVAL);
12216     }
12217     XSRETURN(1);
12218 }
12219
12220
12221 XS(XS_Wx__Rect_GetSize); /* prototype to pass -Wmissing-prototypes */
12222 XS(XS_Wx__Rect_GetSize)
12223 {
12224 #ifdef dVAR
12225     dVAR; dXSARGS;
12226 #else
12227     dXSARGS;
12228 #endif
12229     if (items != 1)
12230        croak_xs_usage(cv,  "THIS");
12231     {
12232         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12233         wxSize *        RETVAL;
12234     RETVAL = new wxSize( THIS->GetSize() );
12235         ST(0) = sv_newmortal();
12236     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Size" );
12237     wxPli_thread_sv_register( aTHX_ "Wx::Size", RETVAL, ST(0) );
12238
12239     }
12240     XSRETURN(1);
12241 }
12242
12243
12244 XS(XS_Wx__Rect_GetTop); /* prototype to pass -Wmissing-prototypes */
12245 XS(XS_Wx__Rect_GetTop)
12246 {
12247 #ifdef dVAR
12248     dVAR; dXSARGS;
12249 #else
12250     dXSARGS;
12251 #endif
12252     if (items != 1)
12253        croak_xs_usage(cv,  "THIS");
12254     {
12255         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12256         int     RETVAL;
12257         dXSTARG;
12258
12259         RETVAL = THIS->GetTop();
12260         XSprePUSH; PUSHi((IV)RETVAL);
12261     }
12262     XSRETURN(1);
12263 }
12264
12265
12266 XS(XS_Wx__Rect_GetWidth); /* prototype to pass -Wmissing-prototypes */
12267 XS(XS_Wx__Rect_GetWidth)
12268 {
12269 #ifdef dVAR
12270     dVAR; dXSARGS;
12271 #else
12272     dXSARGS;
12273 #endif
12274     if (items != 1)
12275        croak_xs_usage(cv,  "THIS");
12276     {
12277         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12278         int     RETVAL;
12279         dXSTARG;
12280
12281         RETVAL = THIS->GetWidth();
12282         XSprePUSH; PUSHi((IV)RETVAL);
12283     }
12284     XSRETURN(1);
12285 }
12286
12287
12288 XS(XS_Wx__Rect_GetX); /* prototype to pass -Wmissing-prototypes */
12289 XS(XS_Wx__Rect_GetX)
12290 {
12291 #ifdef dVAR
12292     dVAR; dXSARGS;
12293 #else
12294     dXSARGS;
12295 #endif
12296     if (items != 1)
12297        croak_xs_usage(cv,  "THIS");
12298     {
12299         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12300         int     RETVAL;
12301         dXSTARG;
12302
12303         RETVAL = THIS->GetX();
12304         XSprePUSH; PUSHi((IV)RETVAL);
12305     }
12306     XSRETURN(1);
12307 }
12308
12309
12310 XS(XS_Wx__Rect_GetY); /* prototype to pass -Wmissing-prototypes */
12311 XS(XS_Wx__Rect_GetY)
12312 {
12313 #ifdef dVAR
12314     dVAR; dXSARGS;
12315 #else
12316     dXSARGS;
12317 #endif
12318     if (items != 1)
12319        croak_xs_usage(cv,  "THIS");
12320     {
12321         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12322         int     RETVAL;
12323         dXSTARG;
12324
12325         RETVAL = THIS->GetY();
12326         XSprePUSH; PUSHi((IV)RETVAL);
12327     }
12328     XSRETURN(1);
12329 }
12330
12331
12332 XS(XS_Wx__Rect_Deflate); /* prototype to pass -Wmissing-prototypes */
12333 XS(XS_Wx__Rect_Deflate)
12334 {
12335 #ifdef dVAR
12336     dVAR; dXSARGS;
12337 #else
12338     dXSARGS;
12339 #endif
12340     if (items != 3)
12341        croak_xs_usage(cv,  "THIS, x, y");
12342     {
12343         wxCoord x = (wxCoord)SvIV(ST(1));
12344         wxCoord y;
12345         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12346     if( items == 2 )
12347       y = x;
12348     else
12349       y = SvIV( ST(2) );
12350     THIS->Deflate( x, y );
12351     }
12352     XSRETURN_EMPTY;
12353 }
12354
12355
12356 XS(XS_Wx__Rect_Inflate); /* prototype to pass -Wmissing-prototypes */
12357 XS(XS_Wx__Rect_Inflate)
12358 {
12359 #ifdef dVAR
12360     dVAR; dXSARGS;
12361 #else
12362     dXSARGS;
12363 #endif
12364     if (items != 3)
12365        croak_xs_usage(cv,  "THIS, x, y");
12366     {
12367         wxCoord x = (wxCoord)SvIV(ST(1));
12368         wxCoord y;
12369         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12370     if( items == 2 )
12371       y = x;
12372     else
12373       y = SvIV( ST(2) );
12374     THIS->Inflate( x, y );
12375     }
12376     XSRETURN_EMPTY;
12377 }
12378
12379
12380 XS(XS_Wx__Rect_Intersect); /* prototype to pass -Wmissing-prototypes */
12381 XS(XS_Wx__Rect_Intersect)
12382 {
12383 #ifdef dVAR
12384     dVAR; dXSARGS;
12385 #else
12386     dXSARGS;
12387 #endif
12388     if (items != 2)
12389        croak_xs_usage(cv,  "THIS, rect");
12390     {
12391         wxRect*    rect = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
12392         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12393         wxRect *        RETVAL;
12394     RETVAL = new wxRect( THIS->Intersect( *rect ) );
12395         ST(0) = sv_newmortal();
12396     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
12397     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
12398
12399     }
12400     XSRETURN(1);
12401 }
12402
12403
12404 XS(XS_Wx__Rect_Intersects); /* prototype to pass -Wmissing-prototypes */
12405 XS(XS_Wx__Rect_Intersects)
12406 {
12407 #ifdef dVAR
12408     dVAR; dXSARGS;
12409 #else
12410     dXSARGS;
12411 #endif
12412     if (items != 2)
12413        croak_xs_usage(cv,  "THIS, rec");
12414     {
12415         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12416         bool    RETVAL;
12417         wxRect*    rec = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
12418     RETVAL = THIS->Intersects( *rec );
12419         ST(0) = boolSV(RETVAL);
12420         sv_2mortal(ST(0));
12421     }
12422     XSRETURN(1);
12423 }
12424
12425
12426 XS(XS_Wx__Rect_SetHeight); /* prototype to pass -Wmissing-prototypes */
12427 XS(XS_Wx__Rect_SetHeight)
12428 {
12429 #ifdef dVAR
12430     dVAR; dXSARGS;
12431 #else
12432     dXSARGS;
12433 #endif
12434     if (items != 2)
12435        croak_xs_usage(cv,  "THIS, height");
12436     {
12437         int     height = (int)SvIV(ST(1));
12438         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12439
12440         THIS->SetHeight(height);
12441     }
12442     XSRETURN_EMPTY;
12443 }
12444
12445
12446 XS(XS_Wx__Rect_SetWidth); /* prototype to pass -Wmissing-prototypes */
12447 XS(XS_Wx__Rect_SetWidth)
12448 {
12449 #ifdef dVAR
12450     dVAR; dXSARGS;
12451 #else
12452     dXSARGS;
12453 #endif
12454     if (items != 2)
12455        croak_xs_usage(cv,  "THIS, width");
12456     {
12457         int     width = (int)SvIV(ST(1));
12458         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12459
12460         THIS->SetWidth(width);
12461     }
12462     XSRETURN_EMPTY;
12463 }
12464
12465
12466 XS(XS_Wx__Rect_SetX); /* prototype to pass -Wmissing-prototypes */
12467 XS(XS_Wx__Rect_SetX)
12468 {
12469 #ifdef dVAR
12470     dVAR; dXSARGS;
12471 #else
12472     dXSARGS;
12473 #endif
12474     if (items != 2)
12475        croak_xs_usage(cv,  "THIS, x");
12476     {
12477         int     x = (int)SvIV(ST(1));
12478         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12479
12480         THIS->SetX(x);
12481     }
12482     XSRETURN_EMPTY;
12483 }
12484
12485
12486 XS(XS_Wx__Rect_SetY); /* prototype to pass -Wmissing-prototypes */
12487 XS(XS_Wx__Rect_SetY)
12488 {
12489 #ifdef dVAR
12490     dVAR; dXSARGS;
12491 #else
12492     dXSARGS;
12493 #endif
12494     if (items != 2)
12495        croak_xs_usage(cv,  "THIS, y");
12496     {
12497         int     y = (int)SvIV(ST(1));
12498         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12499
12500         THIS->SetY(y);
12501     }
12502     XSRETURN_EMPTY;
12503 }
12504
12505
12506 XS(XS_Wx__Rect_SetPosition); /* prototype to pass -Wmissing-prototypes */
12507 XS(XS_Wx__Rect_SetPosition)
12508 {
12509 #ifdef dVAR
12510     dVAR; dXSARGS;
12511 #else
12512     dXSARGS;
12513 #endif
12514     if (items != 2)
12515        croak_xs_usage(cv,  "THIS, pos");
12516     {
12517         wxPoint    pos = wxPli_sv_2_wxpoint( aTHX_ ST(1) );
12518         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12519
12520         THIS->SetPosition(pos);
12521     }
12522     XSRETURN_EMPTY;
12523 }
12524
12525
12526 XS(XS_Wx__Rect_SetSize); /* prototype to pass -Wmissing-prototypes */
12527 XS(XS_Wx__Rect_SetSize)
12528 {
12529 #ifdef dVAR
12530     dVAR; dXSARGS;
12531 #else
12532     dXSARGS;
12533 #endif
12534     if (items != 2)
12535        croak_xs_usage(cv,  "THIS, size");
12536     {
12537         wxSize    size = wxPli_sv_2_wxsize( aTHX_ ST(1) );
12538         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12539
12540         THIS->SetSize(size);
12541     }
12542     XSRETURN_EMPTY;
12543 }
12544
12545
12546 XS(XS_Wx__Rect_Offset); /* prototype to pass -Wmissing-prototypes */
12547 XS(XS_Wx__Rect_Offset)
12548 {
12549 #ifdef dVAR
12550     dVAR; dXSARGS;
12551 #else
12552     dXSARGS;
12553 #endif
12554     if (items != 3)
12555        croak_xs_usage(cv,  "THIS, x, y");
12556     {
12557         wxCoord x = (wxCoord)SvIV(ST(1));
12558         wxCoord y = (wxCoord)SvIV(ST(2));
12559         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12560    THIS->Offset( x, y);
12561     }
12562     XSRETURN_EMPTY;
12563 }
12564
12565
12566 XS(XS_Wx__Rect_Contains); /* prototype to pass -Wmissing-prototypes */
12567 XS(XS_Wx__Rect_Contains)
12568 {
12569 #ifdef dVAR
12570     dVAR; dXSARGS;
12571 #else
12572     dXSARGS;
12573 #endif
12574     if (items < 1)
12575        croak_xs_usage(cv,  "THIS, ...");
12576     PERL_UNUSED_VAR(ax); /* -Wall */
12577     SP -= items;
12578     {
12579         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12580     BEGIN_OVERLOAD()
12581         MATCH_REDISP( wxPliOvl_n_n, ContainsXY )
12582         MATCH_REDISP( wxPliOvl_wpoi, ContainsPoint )
12583         MATCH_REDISP( wxPliOvl_wrec, ContainsRect )
12584     END_OVERLOAD( Wx::Rect::Contains )
12585         PUTBACK;
12586         return;
12587     }
12588 }
12589
12590
12591 XS(XS_Wx__Rect_Inside); /* prototype to pass -Wmissing-prototypes */
12592 XS(XS_Wx__Rect_Inside)
12593 {
12594 #ifdef dVAR
12595     dVAR; dXSARGS;
12596 #else
12597     dXSARGS;
12598 #endif
12599     if (items < 1)
12600        croak_xs_usage(cv,  "THIS, ...");
12601     PERL_UNUSED_VAR(ax); /* -Wall */
12602     SP -= items;
12603     {
12604         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12605     BEGIN_OVERLOAD()
12606         MATCH_REDISP( wxPliOvl_n_n, ContainsXY )
12607         MATCH_REDISP( wxPliOvl_wpoi, ContainsPoint )
12608 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
12609         MATCH_REDISP( wxPliOvl_wrec, ContainsRect )
12610 #endif
12611     END_OVERLOAD( Wx::Rect::Inside )
12612         PUTBACK;
12613         return;
12614     }
12615 }
12616
12617
12618 XS(XS_Wx__Rect_ContainsXY); /* prototype to pass -Wmissing-prototypes */
12619 XS(XS_Wx__Rect_ContainsXY)
12620 {
12621 #ifdef dVAR
12622     dVAR; dXSARGS;
12623 #else
12624     dXSARGS;
12625 #endif
12626     if (items != 3)
12627        croak_xs_usage(cv,  "THIS, x, y");
12628     {
12629         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12630         bool    RETVAL;
12631         int     x = (int)SvIV(ST(1));
12632         int     y = (int)SvIV(ST(2));
12633 #if WXPERL_W_VERSION_GE( 2, 7, 1 )
12634     RETVAL = THIS->Contains( x, y );
12635 #else
12636     RETVAL = THIS->Inside( x, y );
12637 #endif
12638         ST(0) = boolSV(RETVAL);
12639         sv_2mortal(ST(0));
12640     }
12641     XSRETURN(1);
12642 }
12643
12644
12645 XS(XS_Wx__Rect_ContainsPoint); /* prototype to pass -Wmissing-prototypes */
12646 XS(XS_Wx__Rect_ContainsPoint)
12647 {
12648 #ifdef dVAR
12649     dVAR; dXSARGS;
12650 #else
12651     dXSARGS;
12652 #endif
12653     if (items != 2)
12654        croak_xs_usage(cv,  "THIS, pt");
12655     {
12656         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12657         bool    RETVAL;
12658         wxPoint    pt = wxPli_sv_2_wxpoint( aTHX_ ST(1) );
12659 #if WXPERL_W_VERSION_GE( 2, 7, 1 )
12660     RETVAL = THIS->Contains( pt );
12661 #else
12662     RETVAL = THIS->Inside( pt );
12663 #endif
12664         ST(0) = boolSV(RETVAL);
12665         sv_2mortal(ST(0));
12666     }
12667     XSRETURN(1);
12668 }
12669
12670 #if WXPERL_W_VERSION_GE( 2, 7, 1 )
12671 #define XSubPPtmpAACP 1
12672
12673
12674 XS(XS_Wx__Rect_ContainsRect); /* prototype to pass -Wmissing-prototypes */
12675 XS(XS_Wx__Rect_ContainsRect)
12676 {
12677 #ifdef dVAR
12678     dVAR; dXSARGS;
12679 #else
12680     dXSARGS;
12681 #endif
12682     if (items != 2)
12683        croak_xs_usage(cv,  "THIS, rec");
12684     {
12685         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12686         bool    RETVAL;
12687         wxRect*    rec = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
12688     RETVAL = THIS->Contains( *rec );
12689         ST(0) = boolSV(RETVAL);
12690         sv_2mortal(ST(0));
12691     }
12692     XSRETURN(1);
12693 }
12694
12695
12696 XS(XS_Wx__Rect_CentreIn); /* prototype to pass -Wmissing-prototypes */
12697 XS(XS_Wx__Rect_CentreIn)
12698 {
12699 #ifdef dVAR
12700     dVAR; dXSARGS;
12701 #else
12702     dXSARGS;
12703 #endif
12704     if (items < 2 || items > 3)
12705        croak_xs_usage(cv,  "THIS, rec, dir= wxBOTH");
12706     {
12707         wxRect *    THIS = (wxRect *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Rect" );
12708         wxRect *        RETVAL;
12709         wxRect*    rec = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
12710         int     dir;
12711
12712         if (items < 3)
12713             dir = wxBOTH;
12714         else {
12715             dir = (int)SvIV(ST(2));
12716         }
12717     RETVAL = new wxRect( THIS->CentreIn( *rec, dir ) );
12718         ST(0) = sv_newmortal();
12719     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
12720     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
12721
12722     }
12723     XSRETURN(1);
12724 }
12725
12726 #endif
12727
12728 XS(XS_Wx__Region_newEmpty); /* prototype to pass -Wmissing-prototypes */
12729 XS(XS_Wx__Region_newEmpty)
12730 {
12731 #ifdef dVAR
12732     dVAR; dXSARGS;
12733 #else
12734     dXSARGS;
12735 #endif
12736     if (items != 1)
12737        croak_xs_usage(cv,  "CLASS");
12738     {
12739         SV*     CLASS = ST(0);
12740         wxRegion *      RETVAL;
12741     RETVAL = new wxRegion();
12742         ST(0) = sv_newmortal();
12743     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
12744     wxPli_thread_sv_register( aTHX_ "Wx::Region", RETVAL, ST(0) );
12745
12746     }
12747     XSRETURN(1);
12748 }
12749
12750
12751 XS(XS_Wx__Region_newXYWH); /* prototype to pass -Wmissing-prototypes */
12752 XS(XS_Wx__Region_newXYWH)
12753 {
12754 #ifdef dVAR
12755     dVAR; dXSARGS;
12756 #else
12757     dXSARGS;
12758 #endif
12759     if (items != 5)
12760        croak_xs_usage(cv,  "CLASS, x, y, width, height");
12761     {
12762         SV*     CLASS = ST(0);
12763         wxCoord x = (wxCoord)SvIV(ST(1));
12764         wxCoord y = (wxCoord)SvIV(ST(2));
12765         wxCoord width = (wxCoord)SvIV(ST(3));
12766         wxCoord height = (wxCoord)SvIV(ST(4));
12767         wxRegion *      RETVAL;
12768     RETVAL = new wxRegion( x, y, width, height );
12769         ST(0) = sv_newmortal();
12770     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
12771     wxPli_thread_sv_register( aTHX_ "Wx::Region", RETVAL, ST(0) );
12772
12773     }
12774     XSRETURN(1);
12775 }
12776
12777
12778 XS(XS_Wx__Region_newPP); /* prototype to pass -Wmissing-prototypes */
12779 XS(XS_Wx__Region_newPP)
12780 {
12781 #ifdef dVAR
12782     dVAR; dXSARGS;
12783 #else
12784     dXSARGS;
12785 #endif
12786     if (items != 3)
12787        croak_xs_usage(cv,  "CLASS, topLeft, bottomRight");
12788     {
12789         SV*     CLASS = ST(0);
12790         wxPoint    topLeft = wxPli_sv_2_wxpoint( aTHX_ ST(1) );
12791         wxPoint    bottomRight = wxPli_sv_2_wxpoint( aTHX_ ST(2) );
12792         wxRegion *      RETVAL;
12793     RETVAL = new wxRegion( topLeft, bottomRight );
12794         ST(0) = sv_newmortal();
12795     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
12796     wxPli_thread_sv_register( aTHX_ "Wx::Region", RETVAL, ST(0) );
12797
12798     }
12799     XSRETURN(1);
12800 }
12801
12802
12803 XS(XS_Wx__Region_newRect); /* prototype to pass -Wmissing-prototypes */
12804 XS(XS_Wx__Region_newRect)
12805 {
12806 #ifdef dVAR
12807     dVAR; dXSARGS;
12808 #else
12809     dXSARGS;
12810 #endif
12811     if (items != 2)
12812        croak_xs_usage(cv,  "CLASS, rect");
12813     {
12814         SV*     CLASS = ST(0);
12815         wxRect*    rect = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
12816         wxRegion *      RETVAL;
12817     RETVAL = new wxRegion( *rect );
12818         ST(0) = sv_newmortal();
12819     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
12820     wxPli_thread_sv_register( aTHX_ "Wx::Region", RETVAL, ST(0) );
12821
12822     }
12823     XSRETURN(1);
12824 }
12825
12826 #if !defined( __WXMAC__ ) && !defined( __WXMOTIF__ )
12827 #define XSubPPtmpAACQ 1
12828
12829
12830 XS(XS_Wx__Region_newPolygon); /* prototype to pass -Wmissing-prototypes */
12831 XS(XS_Wx__Region_newPolygon)
12832 {
12833 #ifdef dVAR
12834     dVAR; dXSARGS;
12835 #else
12836     dXSARGS;
12837 #endif
12838     if (items < 2 || items > 3)
12839        croak_xs_usage(cv,  "CLASS, list, fillStyle = wxODDEVEN_RULE");
12840     {
12841         SV*     CLASS = ST(0);
12842         SV*     list = ST(1);
12843         wxPolygonFillMode       fillStyle;
12844     wxPoint* points;
12845     size_t n;
12846         wxRegion *      RETVAL;
12847
12848         if (items < 3)
12849             fillStyle = wxODDEVEN_RULE;
12850         else {
12851             fillStyle = (wxPolygonFillMode)SvIV(ST(2));
12852         }
12853     n = wxPli_av_2_pointarray( aTHX_ list, &points );
12854     RETVAL = new wxRegion( n, points, fillStyle );
12855     delete [] points;
12856         ST(0) = sv_newmortal();
12857     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
12858     wxPli_thread_sv_register( aTHX_ "Wx::Region", RETVAL, ST(0) );
12859
12860     }
12861     XSRETURN(1);
12862 }
12863
12864 #endif
12865 #if !defined( __WXOSX_COCOA__ )
12866 #define XSubPPtmpAACR 1
12867
12868
12869 XS(XS_Wx__Region_newBitmap); /* prototype to pass -Wmissing-prototypes */
12870 XS(XS_Wx__Region_newBitmap)
12871 {
12872 #ifdef dVAR
12873     dVAR; dXSARGS;
12874 #else
12875     dXSARGS;
12876 #endif
12877     if (items < 3 || items > 4)
12878        croak_xs_usage(cv,  "CLASS, bitmap, colour, tolerance = 0");
12879     {
12880         SV*     CLASS = ST(0);
12881         wxBitmap*    bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
12882         wxColour    colour = *(wxColour *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Colour" );
12883         int     tolerance;
12884         wxRegion *      RETVAL;
12885
12886         if (items < 4)
12887             tolerance = 0;
12888         else {
12889             tolerance = (int)SvIV(ST(3));
12890         }
12891     RETVAL = new wxRegion( *bitmap, colour, tolerance );
12892         ST(0) = sv_newmortal();
12893     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
12894     wxPli_thread_sv_register( aTHX_ "Wx::Region", RETVAL, ST(0) );
12895
12896     }
12897     XSRETURN(1);
12898 }
12899
12900
12901 XS(XS_Wx__Region_newBitmapOnly); /* prototype to pass -Wmissing-prototypes */
12902 XS(XS_Wx__Region_newBitmapOnly)
12903 {
12904 #ifdef dVAR
12905     dVAR; dXSARGS;
12906 #else
12907     dXSARGS;
12908 #endif
12909     if (items != 2)
12910        croak_xs_usage(cv,  "CLASS, bitmap");
12911     {
12912         SV*     CLASS = ST(0);
12913         wxBitmap*    bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
12914         wxRegion *      RETVAL;
12915     RETVAL = new wxRegion( *bitmap );
12916         ST(0) = sv_newmortal();
12917     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
12918     wxPli_thread_sv_register( aTHX_ "Wx::Region", RETVAL, ST(0) );
12919
12920     }
12921     XSRETURN(1);
12922 }
12923
12924 #endif
12925
12926 XS(XS_Wx__Region_new); /* prototype to pass -Wmissing-prototypes */
12927 XS(XS_Wx__Region_new)
12928 {
12929 #ifdef dVAR
12930     dVAR; dXSARGS;
12931 #else
12932     dXSARGS;
12933 #endif
12934     if (items < 1)
12935        croak_xs_usage(cv,  "CLASS, ...");
12936     PERL_UNUSED_VAR(ax); /* -Wall */
12937     SP -= items;
12938     {
12939         char *  CLASS = (char *)SvPV_nolen(ST(0));
12940     BEGIN_OVERLOAD()
12941         MATCH_VOIDM_REDISP( newEmpty )
12942         MATCH_REDISP( wxPliOvl_n_n_n_n, newXYWH )
12943         MATCH_REDISP( wxPliOvl_wpoi_wpoi, newPP )
12944         MATCH_REDISP( wxPliOvl_wrec, newRect )
12945         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wbmp_wcol_n, newBitmap, 2 )
12946         MATCH_REDISP( wxPliOvl_wbmp, newBitmapOnly )
12947         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_arr, newPolygon, 1 )
12948     END_OVERLOAD( Wx::Region::new )
12949         PUTBACK;
12950         return;
12951     }
12952 }
12953
12954
12955 XS(XS_Wx__Region_CLONE); /* prototype to pass -Wmissing-prototypes */
12956 XS(XS_Wx__Region_CLONE)
12957 {
12958 #ifdef dVAR
12959     dVAR; dXSARGS;
12960 #else
12961     dXSARGS;
12962 #endif
12963     if (items != 1)
12964        croak_xs_usage(cv,  "CLASS");
12965     {
12966         char *  CLASS = (char *)SvPV_nolen(ST(0));
12967     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
12968     }
12969     XSRETURN_EMPTY;
12970 }
12971
12972
12973 XS(XS_Wx__Region_DESTROY); /* prototype to pass -Wmissing-prototypes */
12974 XS(XS_Wx__Region_DESTROY)
12975 {
12976 #ifdef dVAR
12977     dVAR; dXSARGS;
12978 #else
12979     dXSARGS;
12980 #endif
12981     if (items != 1)
12982        croak_xs_usage(cv,  "THIS");
12983     {
12984         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
12985     wxPli_thread_sv_unregister( aTHX_ "Wx::Region", THIS, ST(0) );
12986     delete THIS;
12987     }
12988     XSRETURN_EMPTY;
12989 }
12990
12991
12992 XS(XS_Wx__Region_Clear); /* prototype to pass -Wmissing-prototypes */
12993 XS(XS_Wx__Region_Clear)
12994 {
12995 #ifdef dVAR
12996     dVAR; dXSARGS;
12997 #else
12998     dXSARGS;
12999 #endif
13000     if (items != 1)
13001        croak_xs_usage(cv,  "THIS");
13002     {
13003         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13004
13005         THIS->Clear();
13006     }
13007     XSRETURN_EMPTY;
13008 }
13009
13010
13011 XS(XS_Wx__Region_ContainsXY); /* prototype to pass -Wmissing-prototypes */
13012 XS(XS_Wx__Region_ContainsXY)
13013 {
13014 #ifdef dVAR
13015     dVAR; dXSARGS;
13016 #else
13017     dXSARGS;
13018 #endif
13019     if (items != 3)
13020        croak_xs_usage(cv,  "THIS, x, y");
13021     {
13022         wxCoord x = (wxCoord)SvIV(ST(1));
13023         wxCoord y = (wxCoord)SvIV(ST(2));
13024         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13025         wxRegionContain RETVAL;
13026         dXSTARG;
13027     RETVAL = THIS->Contains( x, y );
13028         XSprePUSH; PUSHi((IV)RETVAL);
13029     }
13030     XSRETURN(1);
13031 }
13032
13033
13034 XS(XS_Wx__Region_ContainsPoint); /* prototype to pass -Wmissing-prototypes */
13035 XS(XS_Wx__Region_ContainsPoint)
13036 {
13037 #ifdef dVAR
13038     dVAR; dXSARGS;
13039 #else
13040     dXSARGS;
13041 #endif
13042     if (items != 2)
13043        croak_xs_usage(cv,  "THIS, point");
13044     {
13045         wxPoint    point = wxPli_sv_2_wxpoint( aTHX_ ST(1) );
13046         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13047         wxRegionContain RETVAL;
13048         dXSTARG;
13049     RETVAL = THIS->Contains( point );
13050         XSprePUSH; PUSHi((IV)RETVAL);
13051     }
13052     XSRETURN(1);
13053 }
13054
13055
13056 XS(XS_Wx__Region_ContainsXYWH); /* prototype to pass -Wmissing-prototypes */
13057 XS(XS_Wx__Region_ContainsXYWH)
13058 {
13059 #ifdef dVAR
13060     dVAR; dXSARGS;
13061 #else
13062     dXSARGS;
13063 #endif
13064     if (items != 5)
13065        croak_xs_usage(cv,  "THIS, x, y, w, h");
13066     {
13067         wxCoord x = (wxCoord)SvIV(ST(1));
13068         wxCoord y = (wxCoord)SvIV(ST(2));
13069         wxCoord w = (wxCoord)SvIV(ST(3));
13070         wxCoord h = (wxCoord)SvIV(ST(4));
13071         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13072         wxRegionContain RETVAL;
13073         dXSTARG;
13074     RETVAL = THIS->Contains( x, y, w, h );
13075         XSprePUSH; PUSHi((IV)RETVAL);
13076     }
13077     XSRETURN(1);
13078 }
13079
13080
13081 XS(XS_Wx__Region_ContainsRect); /* prototype to pass -Wmissing-prototypes */
13082 XS(XS_Wx__Region_ContainsRect)
13083 {
13084 #ifdef dVAR
13085     dVAR; dXSARGS;
13086 #else
13087     dXSARGS;
13088 #endif
13089     if (items != 2)
13090        croak_xs_usage(cv,  "THIS, rect");
13091     {
13092         wxRect*    rect = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
13093         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13094         wxRegionContain RETVAL;
13095         dXSTARG;
13096     RETVAL = THIS->Contains( *rect );
13097         XSprePUSH; PUSHi((IV)RETVAL);
13098     }
13099     XSRETURN(1);
13100 }
13101
13102
13103 XS(XS_Wx__Region_Contains); /* prototype to pass -Wmissing-prototypes */
13104 XS(XS_Wx__Region_Contains)
13105 {
13106 #ifdef dVAR
13107     dVAR; dXSARGS;
13108 #else
13109     dXSARGS;
13110 #endif
13111     if (items < 1)
13112        croak_xs_usage(cv,  "THIS, ...");
13113     PERL_UNUSED_VAR(ax); /* -Wall */
13114     SP -= items;
13115     {
13116         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13117     BEGIN_OVERLOAD()
13118         MATCH_REDISP( wxPliOvl_n_n_n_n, ContainsXYWH )
13119         MATCH_REDISP( wxPliOvl_n_n, ContainsXY )
13120         MATCH_REDISP( wxPliOvl_wpoi, ContainsPoint )
13121         MATCH_REDISP( wxPliOvl_wrec, ContainsRect )
13122     END_OVERLOAD( Wx::Region::Contains )
13123         PUTBACK;
13124         return;
13125     }
13126 }
13127
13128
13129 XS(XS_Wx__Region_ConvertToBitmap); /* prototype to pass -Wmissing-prototypes */
13130 XS(XS_Wx__Region_ConvertToBitmap)
13131 {
13132 #ifdef dVAR
13133     dVAR; dXSARGS;
13134 #else
13135     dXSARGS;
13136 #endif
13137     if (items != 1)
13138        croak_xs_usage(cv,  "THIS");
13139     {
13140         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13141         wxBitmap *      RETVAL;
13142     RETVAL = new wxBitmap( THIS->ConvertToBitmap() );
13143         ST(0) = sv_newmortal();
13144     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
13145     wxPli_thread_sv_register( aTHX_ "Wx::Bitmap", RETVAL, ST(0) );
13146
13147     }
13148     XSRETURN(1);
13149 }
13150
13151
13152 XS(XS_Wx__Region_GetBox); /* prototype to pass -Wmissing-prototypes */
13153 XS(XS_Wx__Region_GetBox)
13154 {
13155 #ifdef dVAR
13156     dVAR; dXSARGS;
13157 #else
13158     dXSARGS;
13159 #endif
13160     if (items != 1)
13161        croak_xs_usage(cv,  "THIS");
13162     {
13163         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13164         wxRect *        RETVAL;
13165     RETVAL = new wxRect( THIS->GetBox() );
13166         ST(0) = sv_newmortal();
13167     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
13168     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
13169
13170     }
13171     XSRETURN(1);
13172 }
13173
13174
13175 XS(XS_Wx__Region_GetBoxXYWH); /* prototype to pass -Wmissing-prototypes */
13176 XS(XS_Wx__Region_GetBoxXYWH)
13177 {
13178 #ifdef dVAR
13179     dVAR; dXSARGS;
13180 #else
13181     dXSARGS;
13182 #endif
13183     if (items != 1)
13184        croak_xs_usage(cv,  "THIS");
13185     PERL_UNUSED_VAR(ax); /* -Wall */
13186     SP -= items;
13187     {
13188     int x;
13189     int y;
13190     int w;
13191     int h;
13192         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13193     THIS->GetBox( x, y, w, h );
13194     EXTEND( SP, 4 );
13195     PUSHs( sv_2mortal( newSViv( (IV) x ) ) );
13196     PUSHs( sv_2mortal( newSViv( (IV) y ) ) );
13197     PUSHs( sv_2mortal( newSViv( (IV) w ) ) );
13198     PUSHs( sv_2mortal( newSViv( (IV) h ) ) );
13199         PUTBACK;
13200         return;
13201     }
13202 }
13203
13204
13205 XS(XS_Wx__Region_IntersectXYWH); /* prototype to pass -Wmissing-prototypes */
13206 XS(XS_Wx__Region_IntersectXYWH)
13207 {
13208 #ifdef dVAR
13209     dVAR; dXSARGS;
13210 #else
13211     dXSARGS;
13212 #endif
13213     if (items != 5)
13214        croak_xs_usage(cv,  "THIS, x, y, w, h");
13215     {
13216         wxCoord x = (wxCoord)SvIV(ST(1));
13217         wxCoord y = (wxCoord)SvIV(ST(2));
13218         wxCoord w = (wxCoord)SvIV(ST(3));
13219         wxCoord h = (wxCoord)SvIV(ST(4));
13220         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13221         bool    RETVAL;
13222     RETVAL = THIS->Intersect( x, y, w, h );
13223         ST(0) = boolSV(RETVAL);
13224         sv_2mortal(ST(0));
13225     }
13226     XSRETURN(1);
13227 }
13228
13229
13230 XS(XS_Wx__Region_IntersectRect); /* prototype to pass -Wmissing-prototypes */
13231 XS(XS_Wx__Region_IntersectRect)
13232 {
13233 #ifdef dVAR
13234     dVAR; dXSARGS;
13235 #else
13236     dXSARGS;
13237 #endif
13238     if (items != 2)
13239        croak_xs_usage(cv,  "THIS, rect");
13240     {
13241         wxRect*    rect = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
13242         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13243         bool    RETVAL;
13244     RETVAL = THIS->Intersect( *rect );
13245         ST(0) = boolSV(RETVAL);
13246         sv_2mortal(ST(0));
13247     }
13248     XSRETURN(1);
13249 }
13250
13251
13252 XS(XS_Wx__Region_IntersectRegion); /* prototype to pass -Wmissing-prototypes */
13253 XS(XS_Wx__Region_IntersectRegion)
13254 {
13255 #ifdef dVAR
13256     dVAR; dXSARGS;
13257 #else
13258     dXSARGS;
13259 #endif
13260     if (items != 2)
13261        croak_xs_usage(cv,  "THIS, region");
13262     {
13263         wxRegion*    region = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Region" );
13264         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13265         bool    RETVAL;
13266     RETVAL = THIS->Intersect( *region );
13267         ST(0) = boolSV(RETVAL);
13268         sv_2mortal(ST(0));
13269     }
13270     XSRETURN(1);
13271 }
13272
13273
13274 XS(XS_Wx__Region_Intersect); /* prototype to pass -Wmissing-prototypes */
13275 XS(XS_Wx__Region_Intersect)
13276 {
13277 #ifdef dVAR
13278     dVAR; dXSARGS;
13279 #else
13280     dXSARGS;
13281 #endif
13282     if (items < 1)
13283        croak_xs_usage(cv,  "THIS, ...");
13284     PERL_UNUSED_VAR(ax); /* -Wall */
13285     SP -= items;
13286     {
13287         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13288     BEGIN_OVERLOAD()
13289         MATCH_REDISP( wxPliOvl_n_n_n_n, IntersectXYWH )
13290         MATCH_REDISP( wxPliOvl_wrec, IntersectRect )
13291         MATCH_REDISP( wxPliOvl_wreg, IntersectRegion )
13292     END_OVERLOAD( Wx::Region::Intersect )
13293         PUTBACK;
13294         return;
13295     }
13296 }
13297
13298
13299 XS(XS_Wx__Region_IsEmpty); /* prototype to pass -Wmissing-prototypes */
13300 XS(XS_Wx__Region_IsEmpty)
13301 {
13302 #ifdef dVAR
13303     dVAR; dXSARGS;
13304 #else
13305     dXSARGS;
13306 #endif
13307     if (items != 1)
13308        croak_xs_usage(cv,  "THIS");
13309     {
13310         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13311         bool    RETVAL;
13312
13313         RETVAL = THIS->IsEmpty();
13314         ST(0) = boolSV(RETVAL);
13315         sv_2mortal(ST(0));
13316     }
13317     XSRETURN(1);
13318 }
13319
13320 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
13321 #define XSubPPtmpAACS 1
13322
13323
13324 XS(XS_Wx__Region_IsEqual); /* prototype to pass -Wmissing-prototypes */
13325 XS(XS_Wx__Region_IsEqual)
13326 {
13327 #ifdef dVAR
13328     dVAR; dXSARGS;
13329 #else
13330     dXSARGS;
13331 #endif
13332     if (items != 2)
13333        croak_xs_usage(cv,  "THIS, region");
13334     {
13335         wxRegion*    region = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Region" );
13336         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13337         bool    RETVAL;
13338
13339         RETVAL = THIS->IsEqual(*region);
13340         ST(0) = boolSV(RETVAL);
13341         sv_2mortal(ST(0));
13342     }
13343     XSRETURN(1);
13344 }
13345
13346 #endif
13347
13348 XS(XS_Wx__Region_SubtractRect); /* prototype to pass -Wmissing-prototypes */
13349 XS(XS_Wx__Region_SubtractRect)
13350 {
13351 #ifdef dVAR
13352     dVAR; dXSARGS;
13353 #else
13354     dXSARGS;
13355 #endif
13356     if (items != 2)
13357        croak_xs_usage(cv,  "THIS, rect");
13358     {
13359         wxRect*    rect = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
13360         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13361         bool    RETVAL;
13362     RETVAL = THIS->Subtract( *rect );
13363         ST(0) = boolSV(RETVAL);
13364         sv_2mortal(ST(0));
13365     }
13366     XSRETURN(1);
13367 }
13368
13369 #if !defined(__WXMOTIF__) && !defined(__WXMAC__)
13370 #define XSubPPtmpAACT 1
13371
13372
13373 XS(XS_Wx__Region_Offset); /* prototype to pass -Wmissing-prototypes */
13374 XS(XS_Wx__Region_Offset)
13375 {
13376 #ifdef dVAR
13377     dVAR; dXSARGS;
13378 #else
13379     dXSARGS;
13380 #endif
13381     if (items != 3)
13382        croak_xs_usage(cv,  "THIS, x, y");
13383     {
13384         wxCoord x = (wxCoord)SvIV(ST(1));
13385         wxCoord y = (wxCoord)SvIV(ST(2));
13386         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13387         bool    RETVAL;
13388
13389         RETVAL = THIS->Offset(x, y);
13390         ST(0) = boolSV(RETVAL);
13391         sv_2mortal(ST(0));
13392     }
13393     XSRETURN(1);
13394 }
13395
13396 #endif
13397
13398 XS(XS_Wx__Region_SubtractRegion); /* prototype to pass -Wmissing-prototypes */
13399 XS(XS_Wx__Region_SubtractRegion)
13400 {
13401 #ifdef dVAR
13402     dVAR; dXSARGS;
13403 #else
13404     dXSARGS;
13405 #endif
13406     if (items != 2)
13407        croak_xs_usage(cv,  "THIS, region");
13408     {
13409         wxRegion*    region = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Region" );
13410         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13411         bool    RETVAL;
13412     RETVAL = THIS->Subtract( *region );
13413         ST(0) = boolSV(RETVAL);
13414         sv_2mortal(ST(0));
13415     }
13416     XSRETURN(1);
13417 }
13418
13419
13420 XS(XS_Wx__Region_Subtract); /* prototype to pass -Wmissing-prototypes */
13421 XS(XS_Wx__Region_Subtract)
13422 {
13423 #ifdef dVAR
13424     dVAR; dXSARGS;
13425 #else
13426     dXSARGS;
13427 #endif
13428     if (items < 1)
13429        croak_xs_usage(cv,  "THIS, ...");
13430     PERL_UNUSED_VAR(ax); /* -Wall */
13431     SP -= items;
13432     {
13433         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13434     BEGIN_OVERLOAD()
13435         MATCH_REDISP( wxPliOvl_wrec, SubtractRect )
13436         MATCH_REDISP( wxPliOvl_wreg, SubtractRegion )
13437     END_OVERLOAD( Wx::Region::Subtract )
13438         PUTBACK;
13439         return;
13440     }
13441 }
13442
13443
13444 XS(XS_Wx__Region_UnionXYWH); /* prototype to pass -Wmissing-prototypes */
13445 XS(XS_Wx__Region_UnionXYWH)
13446 {
13447 #ifdef dVAR
13448     dVAR; dXSARGS;
13449 #else
13450     dXSARGS;
13451 #endif
13452     if (items != 5)
13453        croak_xs_usage(cv,  "THIS, x, y, w, h");
13454     {
13455         wxCoord x = (wxCoord)SvIV(ST(1));
13456         wxCoord y = (wxCoord)SvIV(ST(2));
13457         wxCoord w = (wxCoord)SvIV(ST(3));
13458         wxCoord h = (wxCoord)SvIV(ST(4));
13459         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13460         bool    RETVAL;
13461     RETVAL = THIS->Union( x, y, w, h );
13462         ST(0) = boolSV(RETVAL);
13463         sv_2mortal(ST(0));
13464     }
13465     XSRETURN(1);
13466 }
13467
13468
13469 XS(XS_Wx__Region_UnionRect); /* prototype to pass -Wmissing-prototypes */
13470 XS(XS_Wx__Region_UnionRect)
13471 {
13472 #ifdef dVAR
13473     dVAR; dXSARGS;
13474 #else
13475     dXSARGS;
13476 #endif
13477     if (items != 2)
13478        croak_xs_usage(cv,  "THIS, rect");
13479     {
13480         wxRect*    rect = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
13481         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13482         bool    RETVAL;
13483     RETVAL = THIS->Union( *rect );
13484         ST(0) = boolSV(RETVAL);
13485         sv_2mortal(ST(0));
13486     }
13487     XSRETURN(1);
13488 }
13489
13490
13491 XS(XS_Wx__Region_UnionRegion); /* prototype to pass -Wmissing-prototypes */
13492 XS(XS_Wx__Region_UnionRegion)
13493 {
13494 #ifdef dVAR
13495     dVAR; dXSARGS;
13496 #else
13497     dXSARGS;
13498 #endif
13499     if (items != 2)
13500        croak_xs_usage(cv,  "THIS, region");
13501     {
13502         wxRegion*    region = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Region" );
13503         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13504         bool    RETVAL;
13505     RETVAL = THIS->Union( *region );
13506         ST(0) = boolSV(RETVAL);
13507         sv_2mortal(ST(0));
13508     }
13509     XSRETURN(1);
13510 }
13511
13512
13513 XS(XS_Wx__Region_UnionBitmapOnly); /* prototype to pass -Wmissing-prototypes */
13514 XS(XS_Wx__Region_UnionBitmapOnly)
13515 {
13516 #ifdef dVAR
13517     dVAR; dXSARGS;
13518 #else
13519     dXSARGS;
13520 #endif
13521     if (items != 2)
13522        croak_xs_usage(cv,  "THIS, bitmap");
13523     {
13524         wxBitmap*    bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
13525         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13526         bool    RETVAL;
13527     RETVAL = THIS->Union( *bitmap );
13528         ST(0) = boolSV(RETVAL);
13529         sv_2mortal(ST(0));
13530     }
13531     XSRETURN(1);
13532 }
13533
13534
13535 XS(XS_Wx__Region_UnionBitmap); /* prototype to pass -Wmissing-prototypes */
13536 XS(XS_Wx__Region_UnionBitmap)
13537 {
13538 #ifdef dVAR
13539     dVAR; dXSARGS;
13540 #else
13541     dXSARGS;
13542 #endif
13543     if (items < 3 || items > 4)
13544        croak_xs_usage(cv,  "THIS, bitmap, colour, tolerance = 0");
13545     {
13546         wxBitmap*    bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
13547         wxColour    colour = *(wxColour *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Colour" );
13548         int     tolerance;
13549         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13550         bool    RETVAL;
13551
13552         if (items < 4)
13553             tolerance = 0;
13554         else {
13555             tolerance = (int)SvIV(ST(3));
13556         }
13557     RETVAL = THIS->Union( *bitmap, colour, tolerance );
13558         ST(0) = boolSV(RETVAL);
13559         sv_2mortal(ST(0));
13560     }
13561     XSRETURN(1);
13562 }
13563
13564
13565 XS(XS_Wx__Region_Union); /* prototype to pass -Wmissing-prototypes */
13566 XS(XS_Wx__Region_Union)
13567 {
13568 #ifdef dVAR
13569     dVAR; dXSARGS;
13570 #else
13571     dXSARGS;
13572 #endif
13573     if (items < 1)
13574        croak_xs_usage(cv,  "THIS, ...");
13575     PERL_UNUSED_VAR(ax); /* -Wall */
13576     SP -= items;
13577     {
13578         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13579     BEGIN_OVERLOAD()
13580         MATCH_REDISP( wxPliOvl_n_n_n_n, UnionXYWH )
13581         MATCH_REDISP( wxPliOvl_wrec, UnionRect )
13582         MATCH_REDISP( wxPliOvl_wreg, UnionRegion )
13583         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wbmp_wcol_n, UnionBitmap, 2 )
13584         MATCH_REDISP( wxPliOvl_wbmp, UnionBitmapOnly )
13585     END_OVERLOAD( Wx::Region::Union )
13586         PUTBACK;
13587         return;
13588     }
13589 }
13590
13591
13592 XS(XS_Wx__Region_XorXYWH); /* prototype to pass -Wmissing-prototypes */
13593 XS(XS_Wx__Region_XorXYWH)
13594 {
13595 #ifdef dVAR
13596     dVAR; dXSARGS;
13597 #else
13598     dXSARGS;
13599 #endif
13600     if (items != 5)
13601        croak_xs_usage(cv,  "THIS, x, y, w, h");
13602     {
13603         wxCoord x = (wxCoord)SvIV(ST(1));
13604         wxCoord y = (wxCoord)SvIV(ST(2));
13605         wxCoord w = (wxCoord)SvIV(ST(3));
13606         wxCoord h = (wxCoord)SvIV(ST(4));
13607         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13608         bool    RETVAL;
13609     RETVAL = THIS->Xor( x, y, w, h );
13610         ST(0) = boolSV(RETVAL);
13611         sv_2mortal(ST(0));
13612     }
13613     XSRETURN(1);
13614 }
13615
13616
13617 XS(XS_Wx__Region_XorRect); /* prototype to pass -Wmissing-prototypes */
13618 XS(XS_Wx__Region_XorRect)
13619 {
13620 #ifdef dVAR
13621     dVAR; dXSARGS;
13622 #else
13623     dXSARGS;
13624 #endif
13625     if (items != 2)
13626        croak_xs_usage(cv,  "THIS, rect");
13627     {
13628         wxRect*    rect = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
13629         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13630         bool    RETVAL;
13631     RETVAL = THIS->Xor( *rect );
13632         ST(0) = boolSV(RETVAL);
13633         sv_2mortal(ST(0));
13634     }
13635     XSRETURN(1);
13636 }
13637
13638
13639 XS(XS_Wx__Region_XorRegion); /* prototype to pass -Wmissing-prototypes */
13640 XS(XS_Wx__Region_XorRegion)
13641 {
13642 #ifdef dVAR
13643     dVAR; dXSARGS;
13644 #else
13645     dXSARGS;
13646 #endif
13647     if (items != 2)
13648        croak_xs_usage(cv,  "THIS, region");
13649     {
13650         wxRegion*    region = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Region" );
13651         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13652         bool    RETVAL;
13653     RETVAL = THIS->Xor( *region );
13654         ST(0) = boolSV(RETVAL);
13655         sv_2mortal(ST(0));
13656     }
13657     XSRETURN(1);
13658 }
13659
13660
13661 XS(XS_Wx__Region_Xor); /* prototype to pass -Wmissing-prototypes */
13662 XS(XS_Wx__Region_Xor)
13663 {
13664 #ifdef dVAR
13665     dVAR; dXSARGS;
13666 #else
13667     dXSARGS;
13668 #endif
13669     if (items < 1)
13670        croak_xs_usage(cv,  "THIS, ...");
13671     PERL_UNUSED_VAR(ax); /* -Wall */
13672     SP -= items;
13673     {
13674         wxRegion *    THIS = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Region" );
13675     BEGIN_OVERLOAD()
13676         MATCH_REDISP( wxPliOvl_n_n_n_n, XorXYWH )
13677         MATCH_REDISP( wxPliOvl_wrec, XorRect )
13678         MATCH_REDISP( wxPliOvl_wreg, XorRegion )
13679     END_OVERLOAD( Wx::Region::Xor )
13680         PUTBACK;
13681         return;
13682     }
13683 }
13684
13685 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
13686 #include <wx/position.h>
13687 #define XSubPPtmpAACU 1
13688
13689
13690 XS(XS_Wx__Position_new); /* prototype to pass -Wmissing-prototypes */
13691 XS(XS_Wx__Position_new)
13692 {
13693 #ifdef dVAR
13694     dVAR; dXSARGS;
13695 #else
13696     dXSARGS;
13697 #endif
13698     if (items < 1 || items > 3)
13699        croak_xs_usage(cv,  "CLASS, row = 0, column = 0");
13700     {
13701         int     row;
13702         int     column;
13703         char *  CLASS = (char *)SvPV_nolen(ST(0));
13704         wxPosition *    RETVAL;
13705
13706         if (items < 2)
13707             row = 0;
13708         else {
13709             row = (int)SvIV(ST(1));
13710         }
13711
13712         if (items < 3)
13713             column = 0;
13714         else {
13715             column = (int)SvIV(ST(2));
13716         }
13717
13718         RETVAL = new wxPosition(row, column);
13719         ST(0) = sv_newmortal();
13720     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Position" );
13721     wxPli_thread_sv_register( aTHX_ "Wx::Position", RETVAL, ST(0) );
13722
13723     }
13724     XSRETURN(1);
13725 }
13726
13727
13728 XS(XS_Wx__Position_CLONE); /* prototype to pass -Wmissing-prototypes */
13729 XS(XS_Wx__Position_CLONE)
13730 {
13731 #ifdef dVAR
13732     dVAR; dXSARGS;
13733 #else
13734     dXSARGS;
13735 #endif
13736     if (items != 1)
13737        croak_xs_usage(cv,  "CLASS");
13738     {
13739         char *  CLASS = (char *)SvPV_nolen(ST(0));
13740     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
13741     }
13742     XSRETURN_EMPTY;
13743 }
13744
13745
13746 XS(XS_Wx__Position_DESTROY); /* prototype to pass -Wmissing-prototypes */
13747 XS(XS_Wx__Position_DESTROY)
13748 {
13749 #ifdef dVAR
13750     dVAR; dXSARGS;
13751 #else
13752     dXSARGS;
13753 #endif
13754     if (items != 1)
13755        croak_xs_usage(cv,  "THIS");
13756     {
13757         wxPosition *    THIS = (wxPosition *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Position" );
13758     wxPli_thread_sv_unregister( aTHX_ "Wx::Position", THIS, ST(0) );
13759     delete THIS;
13760     }
13761     XSRETURN_EMPTY;
13762 }
13763
13764
13765 XS(XS_Wx__Position_row); /* prototype to pass -Wmissing-prototypes */
13766 XS(XS_Wx__Position_row)
13767 {
13768 #ifdef dVAR
13769     dVAR; dXSARGS;
13770 #else
13771     dXSARGS;
13772 #endif
13773     if (items < 1)
13774        croak_xs_usage(cv,  "THIS, ...");
13775     {
13776         wxPosition *    THIS = (wxPosition *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Position" );
13777         int     RETVAL;
13778         dXSTARG;
13779     if( items > 1 )
13780       THIS->SetRow( SvIV( ST(1) ) );
13781     RETVAL = THIS->GetRow();
13782         XSprePUSH; PUSHi((IV)RETVAL);
13783     }
13784     XSRETURN(1);
13785 }
13786
13787
13788 XS(XS_Wx__Position_col); /* prototype to pass -Wmissing-prototypes */
13789 XS(XS_Wx__Position_col)
13790 {
13791 #ifdef dVAR
13792     dVAR; dXSARGS;
13793 #else
13794     dXSARGS;
13795 #endif
13796     if (items < 1)
13797        croak_xs_usage(cv,  "THIS, ...");
13798     {
13799         wxPosition *    THIS = (wxPosition *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Position" );
13800         int     RETVAL;
13801         dXSTARG;
13802     if( items > 1 )
13803       THIS->SetCol( SvIV( ST(1) ) );
13804     RETVAL = THIS->GetCol();
13805         XSprePUSH; PUSHi((IV)RETVAL);
13806     }
13807     XSRETURN(1);
13808 }
13809
13810
13811 XS(XS_Wx__Position_column); /* prototype to pass -Wmissing-prototypes */
13812 XS(XS_Wx__Position_column)
13813 {
13814 #ifdef dVAR
13815     dVAR; dXSARGS;
13816 #else
13817     dXSARGS;
13818 #endif
13819     if (items < 1)
13820        croak_xs_usage(cv,  "THIS, ...");
13821     {
13822         wxPosition *    THIS = (wxPosition *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Position" );
13823         int     RETVAL;
13824         dXSTARG;
13825     if( items > 1 )
13826       THIS->SetColumn( SvIV( ST(1) ) );
13827     RETVAL = THIS->GetColumn();
13828         XSprePUSH; PUSHi((IV)RETVAL);
13829     }
13830     XSRETURN(1);
13831 }
13832
13833
13834 XS(XS_Wx__Position_GetRow); /* prototype to pass -Wmissing-prototypes */
13835 XS(XS_Wx__Position_GetRow)
13836 {
13837 #ifdef dVAR
13838     dVAR; dXSARGS;
13839 #else
13840     dXSARGS;
13841 #endif
13842     if (items != 1)
13843        croak_xs_usage(cv,  "THIS");
13844     {
13845         wxPosition *    THIS = (wxPosition *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Position" );
13846         int     RETVAL;
13847         dXSTARG;
13848
13849         RETVAL = THIS->GetRow();
13850         XSprePUSH; PUSHi((IV)RETVAL);
13851     }
13852     XSRETURN(1);
13853 }
13854
13855
13856 XS(XS_Wx__Position_GetCol); /* prototype to pass -Wmissing-prototypes */
13857 XS(XS_Wx__Position_GetCol)
13858 {
13859 #ifdef dVAR
13860     dVAR; dXSARGS;
13861 #else
13862     dXSARGS;
13863 #endif
13864     if (items != 1)
13865        croak_xs_usage(cv,  "THIS");
13866     {
13867         wxPosition *    THIS = (wxPosition *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Position" );
13868         int     RETVAL;
13869         dXSTARG;
13870
13871         RETVAL = THIS->GetCol();
13872         XSprePUSH; PUSHi((IV)RETVAL);
13873     }
13874     XSRETURN(1);
13875 }
13876
13877
13878 XS(XS_Wx__Position_GetColumn); /* prototype to pass -Wmissing-prototypes */
13879 XS(XS_Wx__Position_GetColumn)
13880 {
13881 #ifdef dVAR
13882     dVAR; dXSARGS;
13883 #else
13884     dXSARGS;
13885 #endif
13886     if (items != 1)
13887        croak_xs_usage(cv,  "THIS");
13888     {
13889         wxPosition *    THIS = (wxPosition *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Position" );
13890         int     RETVAL;
13891         dXSTARG;
13892
13893         RETVAL = THIS->GetColumn();
13894         XSprePUSH; PUSHi((IV)RETVAL);
13895     }
13896     XSRETURN(1);
13897 }
13898
13899
13900 XS(XS_Wx__Position_SetRow); /* prototype to pass -Wmissing-prototypes */
13901 XS(XS_Wx__Position_SetRow)
13902 {
13903 #ifdef dVAR
13904     dVAR; dXSARGS;
13905 #else
13906     dXSARGS;
13907 #endif
13908     if (items != 2)
13909        croak_xs_usage(cv,  "THIS, height");
13910     {
13911         int     height = (int)SvIV(ST(1));
13912         wxPosition *    THIS = (wxPosition *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Position" );
13913
13914         THIS->SetRow(height);
13915     }
13916     XSRETURN_EMPTY;
13917 }
13918
13919
13920 XS(XS_Wx__Position_SetCol); /* prototype to pass -Wmissing-prototypes */
13921 XS(XS_Wx__Position_SetCol)
13922 {
13923 #ifdef dVAR
13924     dVAR; dXSARGS;
13925 #else
13926     dXSARGS;
13927 #endif
13928     if (items != 2)
13929        croak_xs_usage(cv,  "THIS, width");
13930     {
13931         int     width = (int)SvIV(ST(1));
13932         wxPosition *    THIS = (wxPosition *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Position" );
13933
13934         THIS->SetCol(width);
13935     }
13936     XSRETURN_EMPTY;
13937 }
13938
13939
13940 XS(XS_Wx__Position_SetColumn); /* prototype to pass -Wmissing-prototypes */
13941 XS(XS_Wx__Position_SetColumn)
13942 {
13943 #ifdef dVAR
13944     dVAR; dXSARGS;
13945 #else
13946     dXSARGS;
13947 #endif
13948     if (items != 2)
13949        croak_xs_usage(cv,  "THIS, width");
13950     {
13951         int     width = (int)SvIV(ST(1));
13952         wxPosition *    THIS = (wxPosition *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Position" );
13953
13954         THIS->SetColumn(width);
13955     }
13956     XSRETURN_EMPTY;
13957 }
13958
13959 #endif
13960
13961 /* INCLUDE: Returning to 'XS/Caret.xs' from 'XS/Geom.xs' */
13962
13963 #include <wx/caret.h>
13964
13965 XS(XS_Wx__Caret_new); /* prototype to pass -Wmissing-prototypes */
13966 XS(XS_Wx__Caret_new)
13967 {
13968 #ifdef dVAR
13969     dVAR; dXSARGS;
13970 #else
13971     dXSARGS;
13972 #endif
13973     if (items < 1)
13974        croak_xs_usage(cv,  "CLASS, ...");
13975     PERL_UNUSED_VAR(ax); /* -Wall */
13976     SP -= items;
13977     {
13978         char *  CLASS = (char *)SvPV_nolen(ST(0));
13979     BEGIN_OVERLOAD()
13980         MATCH_REDISP( wxPliOvl_wwin_n_n, newWH )
13981         MATCH_REDISP( wxPliOvl_wwin_wsiz, newSize )
13982         MATCH_VOIDM_REDISP( newDefault )
13983     END_OVERLOAD( Wx::Caret::new )
13984         PUTBACK;
13985         return;
13986     }
13987 }
13988
13989
13990 XS(XS_Wx__Caret_newDefault); /* prototype to pass -Wmissing-prototypes */
13991 XS(XS_Wx__Caret_newDefault)
13992 {
13993 #ifdef dVAR
13994     dVAR; dXSARGS;
13995 #else
13996     dXSARGS;
13997 #endif
13998     if (items != 4)
13999        croak_xs_usage(cv,  "CLASS, window, width, height");
14000     {
14001         SV*     CLASS = ST(0);
14002         wxCaret *       RETVAL;
14003     RETVAL = new wxCaret();
14004         ST(0) = sv_newmortal();
14005     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Caret" );
14006
14007     }
14008     XSRETURN(1);
14009 }
14010
14011
14012 XS(XS_Wx__Caret_newSize); /* prototype to pass -Wmissing-prototypes */
14013 XS(XS_Wx__Caret_newSize)
14014 {
14015 #ifdef dVAR
14016     dVAR; dXSARGS;
14017 #else
14018     dXSARGS;
14019 #endif
14020     if (items != 3)
14021        croak_xs_usage(cv,  "CLASS, window, size");
14022     {
14023         SV*     CLASS = ST(0);
14024         wxWindow*    window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
14025         wxSize    size = wxPli_sv_2_wxsize( aTHX_ ST(2) );
14026         wxCaret *       RETVAL;
14027     RETVAL = new wxCaret( window, size );
14028         ST(0) = sv_newmortal();
14029     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Caret" );
14030
14031     }
14032     XSRETURN(1);
14033 }
14034
14035
14036 XS(XS_Wx__Caret_newWH); /* prototype to pass -Wmissing-prototypes */
14037 XS(XS_Wx__Caret_newWH)
14038 {
14039 #ifdef dVAR
14040     dVAR; dXSARGS;
14041 #else
14042     dXSARGS;
14043 #endif
14044     if (items != 4)
14045        croak_xs_usage(cv,  "CLASS, window, width, height");
14046     {
14047         SV*     CLASS = ST(0);
14048         wxWindow*    window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
14049         int     width = (int)SvIV(ST(2));
14050         int     height = (int)SvIV(ST(3));
14051         wxCaret *       RETVAL;
14052     RETVAL = new wxCaret( window, width, height );
14053         ST(0) = sv_newmortal();
14054     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Caret" );
14055
14056     }
14057     XSRETURN(1);
14058 }
14059
14060
14061 XS(XS_Wx__Caret_Create); /* prototype to pass -Wmissing-prototypes */
14062 XS(XS_Wx__Caret_Create)
14063 {
14064 #ifdef dVAR
14065     dVAR; dXSARGS;
14066 #else
14067     dXSARGS;
14068 #endif
14069     if (items < 1)
14070        croak_xs_usage(cv,  "THIS, ...");
14071     PERL_UNUSED_VAR(ax); /* -Wall */
14072     SP -= items;
14073     {
14074         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14075     BEGIN_OVERLOAD()
14076         MATCH_REDISP( wxPliOvl_wwin_n_n, CreateWH )
14077         MATCH_REDISP( wxPliOvl_wwin_wsiz, CreateSize )
14078     END_OVERLOAD( Wx::Caret::Create )
14079         PUTBACK;
14080         return;
14081     }
14082 }
14083
14084
14085 XS(XS_Wx__Caret_CreateSize); /* prototype to pass -Wmissing-prototypes */
14086 XS(XS_Wx__Caret_CreateSize)
14087 {
14088 #ifdef dVAR
14089     dVAR; dXSARGS;
14090 #else
14091     dXSARGS;
14092 #endif
14093     if (items != 3)
14094        croak_xs_usage(cv,  "THIS, window, size");
14095     {
14096         wxWindow*    window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
14097         wxSize    size = wxPli_sv_2_wxsize( aTHX_ ST(2) );
14098         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14099         bool    RETVAL;
14100     RETVAL = THIS->Create( window, size );
14101         ST(0) = boolSV(RETVAL);
14102         sv_2mortal(ST(0));
14103     }
14104     XSRETURN(1);
14105 }
14106
14107
14108 XS(XS_Wx__Caret_CreateWH); /* prototype to pass -Wmissing-prototypes */
14109 XS(XS_Wx__Caret_CreateWH)
14110 {
14111 #ifdef dVAR
14112     dVAR; dXSARGS;
14113 #else
14114     dXSARGS;
14115 #endif
14116     if (items != 4)
14117        croak_xs_usage(cv,  "THIS, window, width, height");
14118     {
14119         wxWindow*    window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
14120         int     width = (int)SvIV(ST(2));
14121         int     height = (int)SvIV(ST(3));
14122         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14123         bool    RETVAL;
14124     RETVAL = THIS->Create( window, width, height );
14125         ST(0) = boolSV(RETVAL);
14126         sv_2mortal(ST(0));
14127     }
14128     XSRETURN(1);
14129 }
14130
14131
14132 XS(XS_Wx__Caret_Destroy); /* prototype to pass -Wmissing-prototypes */
14133 XS(XS_Wx__Caret_Destroy)
14134 {
14135 #ifdef dVAR
14136     dVAR; dXSARGS;
14137 #else
14138     dXSARGS;
14139 #endif
14140     if (items != 1)
14141        croak_xs_usage(cv,  "THIS");
14142     {
14143         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14144     delete THIS;
14145     }
14146     XSRETURN_EMPTY;
14147 }
14148
14149
14150 XS(XS_Wx__Caret_GetBlinkTime); /* prototype to pass -Wmissing-prototypes */
14151 XS(XS_Wx__Caret_GetBlinkTime)
14152 {
14153 #ifdef dVAR
14154     dVAR; dXSARGS;
14155 #else
14156     dXSARGS;
14157 #endif
14158     if (items != 0)
14159        croak_xs_usage(cv,  "");
14160     {
14161         int     RETVAL;
14162         dXSTARG;
14163     RETVAL = wxCaret::GetBlinkTime();
14164         XSprePUSH; PUSHi((IV)RETVAL);
14165     }
14166     XSRETURN(1);
14167 }
14168
14169
14170 XS(XS_Wx__Caret_GetSizeWH); /* prototype to pass -Wmissing-prototypes */
14171 XS(XS_Wx__Caret_GetSizeWH)
14172 {
14173 #ifdef dVAR
14174     dVAR; dXSARGS;
14175 #else
14176     dXSARGS;
14177 #endif
14178     if (items != 1)
14179        croak_xs_usage(cv,  "THIS");
14180     PERL_UNUSED_VAR(ax); /* -Wall */
14181     SP -= items;
14182     {
14183     int w;
14184     int h;
14185         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14186     THIS->GetPosition( &w, &h );
14187     EXTEND( SP, 2 );
14188     PUSHs( sv_2mortal( newSViv( w ) ) );
14189     PUSHs( sv_2mortal( newSViv( h ) ) );
14190         PUTBACK;
14191         return;
14192     }
14193 }
14194
14195
14196 XS(XS_Wx__Caret_GetSize); /* prototype to pass -Wmissing-prototypes */
14197 XS(XS_Wx__Caret_GetSize)
14198 {
14199 #ifdef dVAR
14200     dVAR; dXSARGS;
14201 #else
14202     dXSARGS;
14203 #endif
14204     if (items != 1)
14205        croak_xs_usage(cv,  "THIS");
14206     {
14207         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14208         wxSize *        RETVAL;
14209     RETVAL = new wxSize( THIS->GetSize() );
14210         ST(0) = sv_newmortal();
14211     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Size" );
14212     wxPli_thread_sv_register( aTHX_ "Wx::Size", RETVAL, ST(0) );
14213
14214     }
14215     XSRETURN(1);
14216 }
14217
14218
14219 XS(XS_Wx__Caret_GetPositionXY); /* prototype to pass -Wmissing-prototypes */
14220 XS(XS_Wx__Caret_GetPositionXY)
14221 {
14222 #ifdef dVAR
14223     dVAR; dXSARGS;
14224 #else
14225     dXSARGS;
14226 #endif
14227     if (items != 1)
14228        croak_xs_usage(cv,  "THIS");
14229     PERL_UNUSED_VAR(ax); /* -Wall */
14230     SP -= items;
14231     {
14232     int x;
14233     int y;
14234         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14235     THIS->GetPosition( &x, &y );
14236     EXTEND( SP, 2 );
14237     PUSHs( sv_2mortal( newSViv( x ) ) );
14238     PUSHs( sv_2mortal( newSViv( y ) ) );
14239         PUTBACK;
14240         return;
14241     }
14242 }
14243
14244
14245 XS(XS_Wx__Caret_GetPosition); /* prototype to pass -Wmissing-prototypes */
14246 XS(XS_Wx__Caret_GetPosition)
14247 {
14248 #ifdef dVAR
14249     dVAR; dXSARGS;
14250 #else
14251     dXSARGS;
14252 #endif
14253     if (items != 1)
14254        croak_xs_usage(cv,  "THIS");
14255     {
14256         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14257         wxPoint *       RETVAL;
14258     RETVAL = new wxPoint( THIS->GetPosition() );
14259         ST(0) = sv_newmortal();
14260     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
14261     wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
14262
14263     }
14264     XSRETURN(1);
14265 }
14266
14267
14268 XS(XS_Wx__Caret_GetWindow); /* prototype to pass -Wmissing-prototypes */
14269 XS(XS_Wx__Caret_GetWindow)
14270 {
14271 #ifdef dVAR
14272     dVAR; dXSARGS;
14273 #else
14274     dXSARGS;
14275 #endif
14276     if (items != 1)
14277        croak_xs_usage(cv,  "THIS");
14278     {
14279         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14280         wxWindow *      RETVAL;
14281
14282         RETVAL = THIS->GetWindow();
14283         ST(0) = sv_newmortal();
14284     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
14285
14286     }
14287     XSRETURN(1);
14288 }
14289
14290
14291 XS(XS_Wx__Caret_Hide); /* prototype to pass -Wmissing-prototypes */
14292 XS(XS_Wx__Caret_Hide)
14293 {
14294 #ifdef dVAR
14295     dVAR; dXSARGS;
14296 #else
14297     dXSARGS;
14298 #endif
14299     if (items != 1)
14300        croak_xs_usage(cv,  "THIS");
14301     {
14302         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14303
14304         THIS->Hide();
14305     }
14306     XSRETURN_EMPTY;
14307 }
14308
14309
14310 XS(XS_Wx__Caret_IsOk); /* prototype to pass -Wmissing-prototypes */
14311 XS(XS_Wx__Caret_IsOk)
14312 {
14313 #ifdef dVAR
14314     dVAR; dXSARGS;
14315 #else
14316     dXSARGS;
14317 #endif
14318     if (items != 1)
14319        croak_xs_usage(cv,  "THIS");
14320     {
14321         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14322         bool    RETVAL;
14323
14324         RETVAL = THIS->IsOk();
14325         ST(0) = boolSV(RETVAL);
14326         sv_2mortal(ST(0));
14327     }
14328     XSRETURN(1);
14329 }
14330
14331
14332 XS(XS_Wx__Caret_IsVisible); /* prototype to pass -Wmissing-prototypes */
14333 XS(XS_Wx__Caret_IsVisible)
14334 {
14335 #ifdef dVAR
14336     dVAR; dXSARGS;
14337 #else
14338     dXSARGS;
14339 #endif
14340     if (items != 1)
14341        croak_xs_usage(cv,  "THIS");
14342     {
14343         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14344         bool    RETVAL;
14345
14346         RETVAL = THIS->IsVisible();
14347         ST(0) = boolSV(RETVAL);
14348         sv_2mortal(ST(0));
14349     }
14350     XSRETURN(1);
14351 }
14352
14353
14354 XS(XS_Wx__Caret_Move); /* prototype to pass -Wmissing-prototypes */
14355 XS(XS_Wx__Caret_Move)
14356 {
14357 #ifdef dVAR
14358     dVAR; dXSARGS;
14359 #else
14360     dXSARGS;
14361 #endif
14362     if (items < 1)
14363        croak_xs_usage(cv,  "THIS, ...");
14364     PERL_UNUSED_VAR(ax); /* -Wall */
14365     SP -= items;
14366     {
14367         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14368     BEGIN_OVERLOAD()
14369         MATCH_REDISP( wxPliOvl_wpoi, MovePoint )
14370         MATCH_REDISP( wxPliOvl_n_n, MoveXY )
14371     END_OVERLOAD( Wx::Caret::Move )
14372         PUTBACK;
14373         return;
14374     }
14375 }
14376
14377
14378 XS(XS_Wx__Caret_MovePoint); /* prototype to pass -Wmissing-prototypes */
14379 XS(XS_Wx__Caret_MovePoint)
14380 {
14381 #ifdef dVAR
14382     dVAR; dXSARGS;
14383 #else
14384     dXSARGS;
14385 #endif
14386     if (items != 2)
14387        croak_xs_usage(cv,  "THIS, point");
14388     {
14389         wxPoint    point = wxPli_sv_2_wxpoint( aTHX_ ST(1) );
14390         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14391     THIS->Move( point );
14392     }
14393     XSRETURN_EMPTY;
14394 }
14395
14396
14397 XS(XS_Wx__Caret_MoveXY); /* prototype to pass -Wmissing-prototypes */
14398 XS(XS_Wx__Caret_MoveXY)
14399 {
14400 #ifdef dVAR
14401     dVAR; dXSARGS;
14402 #else
14403     dXSARGS;
14404 #endif
14405     if (items != 3)
14406        croak_xs_usage(cv,  "THIS, x, y");
14407     {
14408         int     x = (int)SvIV(ST(1));
14409         int     y = (int)SvIV(ST(2));
14410         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14411     THIS->Move( x, y );
14412     }
14413     XSRETURN_EMPTY;
14414 }
14415
14416
14417 XS(XS_Wx__Caret_SetBlinkTime); /* prototype to pass -Wmissing-prototypes */
14418 XS(XS_Wx__Caret_SetBlinkTime)
14419 {
14420 #ifdef dVAR
14421     dVAR; dXSARGS;
14422 #else
14423     dXSARGS;
14424 #endif
14425     if (items != 1)
14426        croak_xs_usage(cv,  "milliseconds");
14427     {
14428         int     milliseconds = (int)SvIV(ST(0));
14429     wxCaret::SetBlinkTime( milliseconds );
14430     }
14431     XSRETURN_EMPTY;
14432 }
14433
14434
14435 XS(XS_Wx__Caret_SetSize); /* prototype to pass -Wmissing-prototypes */
14436 XS(XS_Wx__Caret_SetSize)
14437 {
14438 #ifdef dVAR
14439     dVAR; dXSARGS;
14440 #else
14441     dXSARGS;
14442 #endif
14443     if (items < 1)
14444        croak_xs_usage(cv,  "THIS, ...");
14445     PERL_UNUSED_VAR(ax); /* -Wall */
14446     SP -= items;
14447     {
14448         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14449     BEGIN_OVERLOAD()
14450       MATCH_REDISP( wxPliOvl_wsiz, SetSizeSize )
14451       MATCH_REDISP( wxPliOvl_n_n, SetSizeWH )
14452     END_OVERLOAD( Wx::Caret::SetSize )
14453         PUTBACK;
14454         return;
14455     }
14456 }
14457
14458
14459 XS(XS_Wx__Caret_SetSizeSize); /* prototype to pass -Wmissing-prototypes */
14460 XS(XS_Wx__Caret_SetSizeSize)
14461 {
14462 #ifdef dVAR
14463     dVAR; dXSARGS;
14464 #else
14465     dXSARGS;
14466 #endif
14467     if (items != 2)
14468        croak_xs_usage(cv,  "THIS, size");
14469     {
14470         wxSize    size = wxPli_sv_2_wxsize( aTHX_ ST(1) );
14471         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14472     THIS->SetSize( size );
14473     }
14474     XSRETURN_EMPTY;
14475 }
14476
14477
14478 XS(XS_Wx__Caret_SetSizeWH); /* prototype to pass -Wmissing-prototypes */
14479 XS(XS_Wx__Caret_SetSizeWH)
14480 {
14481 #ifdef dVAR
14482     dVAR; dXSARGS;
14483 #else
14484     dXSARGS;
14485 #endif
14486     if (items != 3)
14487        croak_xs_usage(cv,  "THIS, w, h");
14488     {
14489         int     w = (int)SvIV(ST(1));
14490         int     h = (int)SvIV(ST(2));
14491         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14492     THIS->SetSize( w, h );
14493     }
14494     XSRETURN_EMPTY;
14495 }
14496
14497
14498 XS(XS_Wx__Caret_Show); /* prototype to pass -Wmissing-prototypes */
14499 XS(XS_Wx__Caret_Show)
14500 {
14501 #ifdef dVAR
14502     dVAR; dXSARGS;
14503 #else
14504     dXSARGS;
14505 #endif
14506     if (items < 1 || items > 2)
14507        croak_xs_usage(cv,  "THIS, show = true");
14508     {
14509         bool    show;
14510         wxCaret *    THIS = (wxCaret *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Caret" );
14511
14512         if (items < 2)
14513             show = true;
14514         else {
14515             show = (bool)SvTRUE(ST(1));
14516         }
14517
14518         THIS->Show(show);
14519     }
14520     XSRETURN_EMPTY;
14521 }
14522
14523
14524 /* INCLUDE: Returning to 'XS/App.xs' from 'XS/Caret.xs' */
14525
14526 #include <wx/app.h>
14527 #include <wx/artprov.h>
14528
14529 XS(XS_Wx_PostEvent); /* prototype to pass -Wmissing-prototypes */
14530 XS(XS_Wx_PostEvent)
14531 {
14532 #ifdef dVAR
14533     dVAR; dXSARGS;
14534 #else
14535     dXSARGS;
14536 #endif
14537     if (items != 2)
14538        croak_xs_usage(cv,  "evthnd, event");
14539     {
14540         wxEvtHandler*    evthnd = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::EvtHandler" );
14541         wxEvent*    event = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Event" );
14542     wxPostEvent( evthnd, *event );
14543     }
14544     XSRETURN_EMPTY;
14545 }
14546
14547
14548 XS(XS_Wx_WakeUpIdle); /* prototype to pass -Wmissing-prototypes */
14549 XS(XS_Wx_WakeUpIdle)
14550 {
14551 #ifdef dVAR
14552     dVAR; dXSARGS;
14553 #else
14554     dXSARGS;
14555 #endif
14556     if (items != 0)
14557        croak_xs_usage(cv,  "");
14558     {
14559
14560         wxWakeUpIdle();
14561     }
14562     XSRETURN_EMPTY;
14563 }
14564
14565
14566 XS(XS_Wx___App_Start); /* prototype to pass -Wmissing-prototypes */
14567 XS(XS_Wx___App_Start)
14568 {
14569 #ifdef dVAR
14570     dVAR; dXSARGS;
14571 #else
14572     dXSARGS;
14573 #endif
14574     if (items != 2)
14575        croak_xs_usage(cv,  "app, sub");
14576     {
14577         wxApp*    app = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
14578         SV*     sub = ST(1);
14579         int     RETVAL;
14580         dXSTARG;
14581     // for Wx::Perl::SplashFast
14582     if( !SvROK( sub ) || SvTYPE( SvRV( sub ) ) != SVt_PVCV )
14583       croak( "sub must be a CODE reference" );
14584 #if WXPERL_W_VERSION_LE( 2, 5, 1 )
14585     app->argc = wxPli_get_args_argc_argv( (void***) &app->argv, 1 );
14586 #endif
14587 #ifdef __WXMOTIF__
14588     app->SetClassName( app->argv[0] );
14589     app->SetAppName( app->argv[0] );
14590 #endif
14591 #if WXPERL_W_VERSION_LE( 2, 5, 0 )
14592     if( !wxPerlAppCreated )
14593         wxEntryInitGui();
14594 #endif
14595
14596     PUTBACK;
14597     RETVAL = call_oninit( aTHX_ ST(0), sub );
14598     SPAGAIN;
14599         XSprePUSH; PUSHi((IV)RETVAL);
14600     }
14601     XSRETURN(1);
14602 }
14603
14604
14605 XS(XS_Wx___App_new); /* prototype to pass -Wmissing-prototypes */
14606 XS(XS_Wx___App_new)
14607 {
14608 #ifdef dVAR
14609     dVAR; dXSARGS;
14610 #else
14611     dXSARGS;
14612 #endif
14613     if (items != 1)
14614        croak_xs_usage(cv,  "CLASS");
14615     {
14616         char *  CLASS = (char *)SvPV_nolen(ST(0));
14617         wxApp * RETVAL;
14618     if( !wxTheApp )
14619 #if WXPERL_W_VERSION_LT( 2, 5, 1 )
14620         wxTheApp = new wxPliApp();
14621 #else
14622         wxAppConsole::SetInstance( new wxPliApp() );
14623 #endif
14624     RETVAL = wxTheApp;
14625         ST(0) = sv_newmortal();
14626     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
14627
14628     }
14629     XSRETURN(1);
14630 }
14631
14632
14633 XS(XS_Wx__App_Dispatch); /* prototype to pass -Wmissing-prototypes */
14634 XS(XS_Wx__App_Dispatch)
14635 {
14636 #ifdef dVAR
14637     dVAR; dXSARGS;
14638 #else
14639     dXSARGS;
14640 #endif
14641     if (items != 1)
14642        croak_xs_usage(cv,  "THIS");
14643     {
14644         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
14645
14646         THIS->Dispatch();
14647     }
14648     XSRETURN_EMPTY;
14649 }
14650
14651
14652 XS(XS_Wx__App_GetAppName); /* prototype to pass -Wmissing-prototypes */
14653 XS(XS_Wx__App_GetAppName)
14654 {
14655 #ifdef dVAR
14656     dVAR; dXSARGS;
14657 #else
14658     dXSARGS;
14659 #endif
14660     if (items != 1)
14661        croak_xs_usage(cv,  "THIS");
14662     {
14663         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
14664         wxString        RETVAL;
14665
14666         RETVAL = THIS->GetAppName();
14667         ST(0) = sv_newmortal();
14668     WXSTRING_OUTPUT( RETVAL, ST(0) );
14669
14670     }
14671     XSRETURN(1);
14672 }
14673
14674 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
14675 #define XSubPPtmpAACV 1
14676
14677
14678 XS(XS_Wx__App_GetAppDisplayName); /* prototype to pass -Wmissing-prototypes */
14679 XS(XS_Wx__App_GetAppDisplayName)
14680 {
14681 #ifdef dVAR
14682     dVAR; dXSARGS;
14683 #else
14684     dXSARGS;
14685 #endif
14686     if (items != 1)
14687        croak_xs_usage(cv,  "THIS");
14688     {
14689         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
14690         wxString        RETVAL;
14691
14692         RETVAL = THIS->GetAppDisplayName();
14693         ST(0) = sv_newmortal();
14694     WXSTRING_OUTPUT( RETVAL, ST(0) );
14695
14696     }
14697     XSRETURN(1);
14698 }
14699
14700 #endif
14701 #if defined( __WXMSW__ ) && WXPERL_W_VERSION_LT( 2, 5, 1 )
14702 #define XSubPPtmpAACW 1
14703
14704
14705 XS(XS_Wx__App_GetAuto3D); /* prototype to pass -Wmissing-prototypes */
14706 XS(XS_Wx__App_GetAuto3D)
14707 {
14708 #ifdef dVAR
14709     dVAR; dXSARGS;
14710 #else
14711     dXSARGS;
14712 #endif
14713     if (items != 1)
14714        croak_xs_usage(cv,  "THIS");
14715     {
14716         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
14717         bool    RETVAL;
14718
14719         RETVAL = THIS->GetAuto3D();
14720         ST(0) = boolSV(RETVAL);
14721         sv_2mortal(ST(0));
14722     }
14723     XSRETURN(1);
14724 }
14725
14726 #endif
14727
14728 XS(XS_Wx__App_GetClassName); /* prototype to pass -Wmissing-prototypes */
14729 XS(XS_Wx__App_GetClassName)
14730 {
14731 #ifdef dVAR
14732     dVAR; dXSARGS;
14733 #else
14734     dXSARGS;
14735 #endif
14736     if (items != 1)
14737        croak_xs_usage(cv,  "THIS");
14738     {
14739         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
14740         wxString        RETVAL;
14741
14742         RETVAL = THIS->GetClassName();
14743         ST(0) = sv_newmortal();
14744     WXSTRING_OUTPUT( RETVAL, ST(0) );
14745
14746     }
14747     XSRETURN(1);
14748 }
14749
14750
14751 XS(XS_Wx__App_GetExitOnFrameDelete); /* prototype to pass -Wmissing-prototypes */
14752 XS(XS_Wx__App_GetExitOnFrameDelete)
14753 {
14754 #ifdef dVAR
14755     dVAR; dXSARGS;
14756 #else
14757     dXSARGS;
14758 #endif
14759     if (items != 1)
14760        croak_xs_usage(cv,  "THIS");
14761     {
14762         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
14763         bool    RETVAL;
14764
14765         RETVAL = THIS->GetExitOnFrameDelete();
14766         ST(0) = boolSV(RETVAL);
14767         sv_2mortal(ST(0));
14768     }
14769     XSRETURN(1);
14770 }
14771
14772
14773 XS(XS_Wx__App_GetStdIcon); /* prototype to pass -Wmissing-prototypes */
14774 XS(XS_Wx__App_GetStdIcon)
14775 {
14776 #ifdef dVAR
14777     dVAR; dXSARGS;
14778 #else
14779     dXSARGS;
14780 #endif
14781     if (items != 2)
14782        croak_xs_usage(cv,  "THIS, which");
14783     {
14784         int     which = (int)SvIV(ST(1));
14785         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
14786         wxIcon *        RETVAL;
14787     wxString id;
14788     switch( which )
14789     {
14790     case wxICON_EXCLAMATION:
14791         id = wxART_WARNING;
14792         break;
14793     case wxICON_HAND:
14794         id = wxART_ERROR; 
14795         break;
14796     case wxICON_QUESTION:
14797         id = wxART_QUESTION;
14798         break;
14799     case wxICON_INFORMATION:
14800         id = wxART_INFORMATION;
14801         break;
14802     };
14803
14804     RETVAL = new wxIcon( wxArtProvider::GetIcon( id, wxART_MESSAGE_BOX ) );
14805         ST(0) = sv_newmortal();
14806     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
14807     wxPli_thread_sv_register( aTHX_ "Wx::Icon", RETVAL, ST(0) );
14808
14809     }
14810     XSRETURN(1);
14811 }
14812
14813
14814 XS(XS_Wx__App_GetTopWindow); /* prototype to pass -Wmissing-prototypes */
14815 XS(XS_Wx__App_GetTopWindow)
14816 {
14817 #ifdef dVAR
14818     dVAR; dXSARGS;
14819 #else
14820     dXSARGS;
14821 #endif
14822     if (items != 1)
14823        croak_xs_usage(cv,  "THIS");
14824     {
14825         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
14826         wxWindow *      RETVAL;
14827
14828         RETVAL = THIS->GetTopWindow();
14829         ST(0) = sv_newmortal();
14830     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
14831
14832     }
14833     XSRETURN(1);
14834 }
14835
14836
14837 XS(XS_Wx__App_GetUseBestVisual); /* prototype to pass -Wmissing-prototypes */
14838 XS(XS_Wx__App_GetUseBestVisual)
14839 {
14840 #ifdef dVAR
14841     dVAR; dXSARGS;
14842 #else
14843     dXSARGS;
14844 #endif
14845     if (items != 1)
14846        croak_xs_usage(cv,  "THIS");
14847     {
14848         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
14849         bool    RETVAL;
14850
14851         RETVAL = THIS->GetUseBestVisual();
14852         ST(0) = boolSV(RETVAL);
14853         sv_2mortal(ST(0));
14854     }
14855     XSRETURN(1);
14856 }
14857
14858
14859 XS(XS_Wx__App_GetVendorName); /* prototype to pass -Wmissing-prototypes */
14860 XS(XS_Wx__App_GetVendorName)
14861 {
14862 #ifdef dVAR
14863     dVAR; dXSARGS;
14864 #else
14865     dXSARGS;
14866 #endif
14867     if (items != 1)
14868        croak_xs_usage(cv,  "THIS");
14869     {
14870         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
14871         wxString        RETVAL;
14872
14873         RETVAL = THIS->GetVendorName();
14874         ST(0) = sv_newmortal();
14875     WXSTRING_OUTPUT( RETVAL, ST(0) );
14876
14877     }
14878     XSRETURN(1);
14879 }
14880
14881 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
14882 #define XSubPPtmpAACX 1
14883
14884
14885 XS(XS_Wx__App_GetVendorDisplayName); /* prototype to pass -Wmissing-prototypes */
14886 XS(XS_Wx__App_GetVendorDisplayName)
14887 {
14888 #ifdef dVAR
14889     dVAR; dXSARGS;
14890 #else
14891     dXSARGS;
14892 #endif
14893     if (items != 1)
14894        croak_xs_usage(cv,  "THIS");
14895     {
14896         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
14897         wxString        RETVAL;
14898
14899         RETVAL = THIS->GetVendorDisplayName();
14900         ST(0) = sv_newmortal();
14901     WXSTRING_OUTPUT( RETVAL, ST(0) );
14902
14903     }
14904     XSRETURN(1);
14905 }
14906
14907 #endif
14908
14909 XS(XS_Wx__App_ExitMainLoop); /* prototype to pass -Wmissing-prototypes */
14910 XS(XS_Wx__App_ExitMainLoop)
14911 {
14912 #ifdef dVAR
14913     dVAR; dXSARGS;
14914 #else
14915     dXSARGS;
14916 #endif
14917     if (items != 1)
14918        croak_xs_usage(cv,  "THIS");
14919     {
14920         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
14921
14922         THIS->ExitMainLoop();
14923     }
14924     XSRETURN_EMPTY;
14925 }
14926
14927 #if WXPERL_W_VERSION_LT( 2, 7, 0 )
14928 #define XSubPPtmpAACY 1
14929
14930
14931 XS(XS_Wx__App_Initialized); /* prototype to pass -Wmissing-prototypes */
14932 XS(XS_Wx__App_Initialized)
14933 {
14934 #ifdef dVAR
14935     dVAR; dXSARGS;
14936 #else
14937     dXSARGS;
14938 #endif
14939     if (items != 1)
14940        croak_xs_usage(cv,  "THIS");
14941     {
14942         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
14943         bool    RETVAL;
14944
14945         RETVAL = THIS->Initialized();
14946         ST(0) = boolSV(RETVAL);
14947         sv_2mortal(ST(0));
14948     }
14949     XSRETURN(1);
14950 }
14951
14952 #endif
14953
14954 XS(XS_Wx__App_MainLoop); /* prototype to pass -Wmissing-prototypes */
14955 XS(XS_Wx__App_MainLoop)
14956 {
14957 #ifdef dVAR
14958     dVAR; dXSARGS;
14959 #else
14960     dXSARGS;
14961 #endif
14962     if (items != 1)
14963        croak_xs_usage(cv,  "THIS");
14964     {
14965         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
14966         int     RETVAL;
14967         dXSTARG;
14968     RETVAL = THIS->MainLoop();
14969     // hack for embedded case...
14970 #if defined( __WXMSW__ ) && WXPERL_W_VERSION_LT( 2, 5, 0 )
14971     wxPliApp::SetKeepGoing( (wxPliApp*) THIS, true );
14972 #endif
14973     wxPliApp::DeletePendingObjects( THIS );
14974         XSprePUSH; PUSHi((IV)RETVAL);
14975     }
14976     XSRETURN(1);
14977 }
14978
14979
14980 XS(XS_Wx__App_Pending); /* prototype to pass -Wmissing-prototypes */
14981 XS(XS_Wx__App_Pending)
14982 {
14983 #ifdef dVAR
14984     dVAR; dXSARGS;
14985 #else
14986     dXSARGS;
14987 #endif
14988     if (items != 1)
14989        croak_xs_usage(cv,  "THIS");
14990     {
14991         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
14992         bool    RETVAL;
14993
14994         RETVAL = THIS->Pending();
14995         ST(0) = boolSV(RETVAL);
14996         sv_2mortal(ST(0));
14997     }
14998     XSRETURN(1);
14999 }
15000
15001
15002 XS(XS_Wx__App_ProcessPendingEvents); /* prototype to pass -Wmissing-prototypes */
15003 XS(XS_Wx__App_ProcessPendingEvents)
15004 {
15005 #ifdef dVAR
15006     dVAR; dXSARGS;
15007 #else
15008     dXSARGS;
15009 #endif
15010     if (items != 1)
15011        croak_xs_usage(cv,  "THIS");
15012     {
15013         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
15014
15015         THIS->ProcessPendingEvents();
15016     }
15017     XSRETURN_EMPTY;
15018 }
15019
15020
15021 XS(XS_Wx__App_SetAppName); /* prototype to pass -Wmissing-prototypes */
15022 XS(XS_Wx__App_SetAppName)
15023 {
15024 #ifdef dVAR
15025     dVAR; dXSARGS;
15026 #else
15027     dXSARGS;
15028 #endif
15029     if (items != 2)
15030        croak_xs_usage(cv,  "THIS, name");
15031     {
15032         wxString        name;
15033         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
15034
15035     WXSTRING_INPUT( name, wxString, ST(1) );
15036
15037         THIS->SetAppName(name);
15038     }
15039     XSRETURN_EMPTY;
15040 }
15041
15042 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
15043 #define XSubPPtmpAACZ 1
15044
15045
15046 XS(XS_Wx__App_SetAppDisplayName); /* prototype to pass -Wmissing-prototypes */
15047 XS(XS_Wx__App_SetAppDisplayName)
15048 {
15049 #ifdef dVAR
15050     dVAR; dXSARGS;
15051 #else
15052     dXSARGS;
15053 #endif
15054     if (items != 2)
15055        croak_xs_usage(cv,  "THIS, name");
15056     {
15057         wxString        name;
15058         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
15059
15060     WXSTRING_INPUT( name, wxString, ST(1) );
15061
15062         THIS->SetAppDisplayName(name);
15063     }
15064     XSRETURN_EMPTY;
15065 }
15066
15067 #endif
15068 #if defined( __WXMSW__ ) && WXPERL_W_VERSION_LT( 2, 5, 0 )
15069 #define XSubPPtmpAADA 1
15070
15071
15072 XS(XS_Wx__App_SetAuto3D); /* prototype to pass -Wmissing-prototypes */
15073 XS(XS_Wx__App_SetAuto3D)
15074 {
15075 #ifdef dVAR
15076     dVAR; dXSARGS;
15077 #else
15078     dXSARGS;
15079 #endif
15080     if (items != 2)
15081        croak_xs_usage(cv,  "THIS, auto3d");
15082     {
15083         bool    auto3d = (bool)SvTRUE(ST(1));
15084         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
15085
15086         THIS->SetAuto3D(auto3d);
15087     }
15088     XSRETURN_EMPTY;
15089 }
15090
15091 #endif
15092
15093 XS(XS_Wx__App_SetClassName); /* prototype to pass -Wmissing-prototypes */
15094 XS(XS_Wx__App_SetClassName)
15095 {
15096 #ifdef dVAR
15097     dVAR; dXSARGS;
15098 #else
15099     dXSARGS;
15100 #endif
15101     if (items != 2)
15102        croak_xs_usage(cv,  "THIS, name");
15103     {
15104         wxString        name;
15105         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
15106
15107     WXSTRING_INPUT( name, wxString, ST(1) );
15108
15109         THIS->SetClassName(name);
15110     }
15111     XSRETURN_EMPTY;
15112 }
15113
15114
15115 XS(XS_Wx__App_SetExitOnFrameDelete); /* prototype to pass -Wmissing-prototypes */
15116 XS(XS_Wx__App_SetExitOnFrameDelete)
15117 {
15118 #ifdef dVAR
15119     dVAR; dXSARGS;
15120 #else
15121     dXSARGS;
15122 #endif
15123     if (items != 2)
15124        croak_xs_usage(cv,  "THIS, flag");
15125     {
15126         bool    flag = (bool)SvTRUE(ST(1));
15127         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
15128
15129         THIS->SetExitOnFrameDelete(flag);
15130     }
15131     XSRETURN_EMPTY;
15132 }
15133
15134
15135 XS(XS_Wx__App_SetTopWindow); /* prototype to pass -Wmissing-prototypes */
15136 XS(XS_Wx__App_SetTopWindow)
15137 {
15138 #ifdef dVAR
15139     dVAR; dXSARGS;
15140 #else
15141     dXSARGS;
15142 #endif
15143     if (items != 2)
15144        croak_xs_usage(cv,  "THIS, window");
15145     {
15146         wxWindow*    window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
15147         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
15148
15149         THIS->SetTopWindow(window);
15150     }
15151     XSRETURN_EMPTY;
15152 }
15153
15154
15155 XS(XS_Wx__App_SetVendorName); /* prototype to pass -Wmissing-prototypes */
15156 XS(XS_Wx__App_SetVendorName)
15157 {
15158 #ifdef dVAR
15159     dVAR; dXSARGS;
15160 #else
15161     dXSARGS;
15162 #endif
15163     if (items != 2)
15164        croak_xs_usage(cv,  "THIS, name");
15165     {
15166         wxString        name;
15167         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
15168
15169     WXSTRING_INPUT( name, wxString, ST(1) );
15170
15171         THIS->SetVendorName(name);
15172     }
15173     XSRETURN_EMPTY;
15174 }
15175
15176 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
15177 #define XSubPPtmpAADB 1
15178
15179
15180 XS(XS_Wx__App_SetVendorDisplayName); /* prototype to pass -Wmissing-prototypes */
15181 XS(XS_Wx__App_SetVendorDisplayName)
15182 {
15183 #ifdef dVAR
15184     dVAR; dXSARGS;
15185 #else
15186     dXSARGS;
15187 #endif
15188     if (items != 2)
15189        croak_xs_usage(cv,  "THIS, name");
15190     {
15191         wxString        name;
15192         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
15193
15194     WXSTRING_INPUT( name, wxString, ST(1) );
15195
15196         THIS->SetVendorDisplayName(name);
15197     }
15198     XSRETURN_EMPTY;
15199 }
15200
15201 #endif
15202
15203 XS(XS_Wx__App_SetUseBestVisual); /* prototype to pass -Wmissing-prototypes */
15204 XS(XS_Wx__App_SetUseBestVisual)
15205 {
15206 #ifdef dVAR
15207     dVAR; dXSARGS;
15208 #else
15209     dXSARGS;
15210 #endif
15211     if (items != 2)
15212        croak_xs_usage(cv,  "THIS, flag");
15213     {
15214         bool    flag = (bool)SvTRUE(ST(1));
15215         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
15216
15217         THIS->SetUseBestVisual(flag);
15218     }
15219     XSRETURN_EMPTY;
15220 }
15221
15222
15223 XS(XS_Wx__App_Yield); /* prototype to pass -Wmissing-prototypes */
15224 XS(XS_Wx__App_Yield)
15225 {
15226 #ifdef dVAR
15227     dVAR; dXSARGS;
15228 #else
15229     dXSARGS;
15230 #endif
15231     if (items != 1)
15232        croak_xs_usage(cv,  "THIS");
15233     {
15234         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
15235     THIS->wxApp::Yield();
15236     }
15237     XSRETURN_EMPTY;
15238 }
15239
15240 #if defined( __WXMSW__ ) && WXPERL_W_VERSION_GE( 2, 5, 0 )
15241 #define XSubPPtmpAADC 1
15242
15243
15244 XS(XS_Wx__App_GetComCtl32Version); /* prototype to pass -Wmissing-prototypes */
15245 XS(XS_Wx__App_GetComCtl32Version)
15246 {
15247 #ifdef dVAR
15248     dVAR; dXSARGS;
15249 #else
15250     dXSARGS;
15251 #endif
15252     if (items != 0)
15253        croak_xs_usage(cv,  "");
15254     {
15255         int     RETVAL;
15256         dXSTARG;
15257     RETVAL = wxApp::GetComCtl32Version();
15258         XSprePUSH; PUSHi((IV)RETVAL);
15259     }
15260     XSRETURN(1);
15261 }
15262
15263 #endif
15264 #if WXPERL_W_VERSION_GE( 2, 5, 2 )
15265 #define XSubPPtmpAADD 1
15266
15267
15268 XS(XS_Wx__App_Exit); /* prototype to pass -Wmissing-prototypes */
15269 XS(XS_Wx__App_Exit)
15270 {
15271 #ifdef dVAR
15272     dVAR; dXSARGS;
15273 #else
15274     dXSARGS;
15275 #endif
15276     if (items != 1)
15277        croak_xs_usage(cv,  "THIS");
15278     {
15279         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
15280
15281         THIS->Exit();
15282     }
15283     XSRETURN_EMPTY;
15284 }
15285
15286
15287 XS(XS_Wx__App_ProcessIdle); /* prototype to pass -Wmissing-prototypes */
15288 XS(XS_Wx__App_ProcessIdle)
15289 {
15290 #ifdef dVAR
15291     dVAR; dXSARGS;
15292 #else
15293     dXSARGS;
15294 #endif
15295     if (items != 1)
15296        croak_xs_usage(cv,  "THIS");
15297     {
15298         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
15299         bool    RETVAL;
15300
15301         RETVAL = THIS->ProcessIdle();
15302         ST(0) = boolSV(RETVAL);
15303         sv_2mortal(ST(0));
15304     }
15305     XSRETURN(1);
15306 }
15307
15308
15309 XS(XS_Wx__App_SendIdleEvents); /* prototype to pass -Wmissing-prototypes */
15310 XS(XS_Wx__App_SendIdleEvents)
15311 {
15312 #ifdef dVAR
15313     dVAR; dXSARGS;
15314 #else
15315     dXSARGS;
15316 #endif
15317     if (items != 3)
15318        croak_xs_usage(cv,  "THIS, window, event");
15319     {
15320         wxWindow*    window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
15321         wxIdleEvent*    event = (wxIdleEvent *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::IdleEvent" );
15322         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
15323         bool    RETVAL;
15324
15325         RETVAL = THIS->SendIdleEvents(window, *event);
15326         ST(0) = boolSV(RETVAL);
15327         sv_2mortal(ST(0));
15328     }
15329     XSRETURN(1);
15330 }
15331
15332
15333 XS(XS_Wx__App_IsActive); /* prototype to pass -Wmissing-prototypes */
15334 XS(XS_Wx__App_IsActive)
15335 {
15336 #ifdef dVAR
15337     dVAR; dXSARGS;
15338 #else
15339     dXSARGS;
15340 #endif
15341     if (items != 1)
15342        croak_xs_usage(cv,  "THIS");
15343     {
15344         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
15345         bool    RETVAL;
15346
15347         RETVAL = THIS->IsActive();
15348         ST(0) = boolSV(RETVAL);
15349         sv_2mortal(ST(0));
15350     }
15351     XSRETURN(1);
15352 }
15353
15354 #endif
15355 #if WXPERL_W_VERSION_GE( 2, 7, 1 )
15356 #define XSubPPtmpAADE 1
15357
15358
15359 XS(XS_Wx__App_GetLayoutDirection); /* prototype to pass -Wmissing-prototypes */
15360 XS(XS_Wx__App_GetLayoutDirection)
15361 {
15362 #ifdef dVAR
15363     dVAR; dXSARGS;
15364 #else
15365     dXSARGS;
15366 #endif
15367     if (items != 1)
15368        croak_xs_usage(cv,  "THIS");
15369     {
15370         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
15371         wxLayoutDirection       RETVAL;
15372         dXSTARG;
15373
15374         RETVAL = THIS->GetLayoutDirection();
15375         XSprePUSH; PUSHi((IV)RETVAL);
15376     }
15377     XSRETURN(1);
15378 }
15379
15380 #endif
15381
15382 XS(XS_Wx__App_GetInstance); /* prototype to pass -Wmissing-prototypes */
15383 XS(XS_Wx__App_GetInstance)
15384 {
15385 #ifdef dVAR
15386     dVAR; dXSARGS;
15387 #else
15388     dXSARGS;
15389 #endif
15390     if (items != 0)
15391        croak_xs_usage(cv,  "");
15392     {
15393         wxApp * RETVAL;
15394     RETVAL = (wxApp*)wxApp::GetInstance();
15395         ST(0) = sv_newmortal();
15396     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
15397
15398     }
15399     XSRETURN(1);
15400 }
15401
15402
15403 XS(XS_Wx__App_SetInstance); /* prototype to pass -Wmissing-prototypes */
15404 XS(XS_Wx__App_SetInstance)
15405 {
15406 #ifdef dVAR
15407     dVAR; dXSARGS;
15408 #else
15409     dXSARGS;
15410 #endif
15411     if (items != 1)
15412        croak_xs_usage(cv,  "app");
15413     {
15414         wxApp*    app = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
15415     wxApp::SetInstance( app );
15416     }
15417     XSRETURN_EMPTY;
15418 }
15419
15420
15421 XS(XS_Wx__App_IsMainLoopRunning); /* prototype to pass -Wmissing-prototypes */
15422 XS(XS_Wx__App_IsMainLoopRunning)
15423 {
15424 #ifdef dVAR
15425     dVAR; dXSARGS;
15426 #else
15427     dXSARGS;
15428 #endif
15429     if (items != 1)
15430        croak_xs_usage(cv,  "THIS");
15431     {
15432         wxApp *    THIS = (wxApp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::App" );
15433         bool    RETVAL;
15434
15435         RETVAL = THIS->IsMainLoopRunning();
15436         ST(0) = boolSV(RETVAL);
15437         sv_2mortal(ST(0));
15438     }
15439     XSRETURN(1);
15440 }
15441
15442
15443 /* INCLUDE: Returning to 'Wx.xs' from 'XS/App.xs' */
15444
15445
15446 /* INCLUDE:  Including 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/MimeTypes.xsp |' from 'Wx.xs' */
15447
15448 #if wxUSE_MIMETYPE
15449 #include <wx/mimetype.h>
15450 #if WXPERL_W_VERSION_GE( 2, 5, 2 )
15451 #define XSubPPtmpAADF 1
15452
15453
15454 XS(XS_Wx__IconLocation_IsOk); /* prototype to pass -Wmissing-prototypes */
15455 XS(XS_Wx__IconLocation_IsOk)
15456 {
15457 #ifdef dVAR
15458     dVAR; dXSARGS;
15459 #else
15460     dXSARGS;
15461 #endif
15462     if (items != 1)
15463        croak_xs_usage(cv,  "THIS");
15464     {
15465         wxIconLocation *    THIS = (wxIconLocation *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::IconLocation" );
15466         bool    RETVAL;
15467
15468         RETVAL = THIS->IsOk();
15469         ST(0) = boolSV(RETVAL);
15470         sv_2mortal(ST(0));
15471     }
15472     XSRETURN(1);
15473 }
15474
15475 #endif
15476 #define XSubPPtmpAADG 1
15477
15478
15479 XS(XS_Wx__FileTypeInfo_IsValid); /* prototype to pass -Wmissing-prototypes */
15480 XS(XS_Wx__FileTypeInfo_IsValid)
15481 {
15482 #ifdef dVAR
15483     dVAR; dXSARGS;
15484 #else
15485     dXSARGS;
15486 #endif
15487     if (items != 1)
15488        croak_xs_usage(cv,  "THIS");
15489     {
15490         wxFileTypeInfo *    THIS = (wxFileTypeInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileTypeInfo" );
15491         bool    RETVAL;
15492
15493         RETVAL = THIS->IsValid();
15494         ST(0) = boolSV(RETVAL);
15495         sv_2mortal(ST(0));
15496     }
15497     XSRETURN(1);
15498 }
15499
15500
15501 XS(XS_Wx__FileTypeInfo_SetIcon); /* prototype to pass -Wmissing-prototypes */
15502 XS(XS_Wx__FileTypeInfo_SetIcon)
15503 {
15504 #ifdef dVAR
15505     dVAR; dXSARGS;
15506 #else
15507     dXSARGS;
15508 #endif
15509     if (items < 2 || items > 3)
15510        croak_xs_usage(cv,  "THIS, iconFile, iconIndex = 0");
15511     {
15512         wxString        iconFile;
15513         int     iconIndex;
15514         wxFileTypeInfo *    THIS = (wxFileTypeInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileTypeInfo" );
15515
15516     WXSTRING_INPUT( iconFile, wxString, ST(1) );
15517
15518         if (items < 3)
15519             iconIndex = 0;
15520         else {
15521             iconIndex = (int)SvIV(ST(2));
15522         }
15523
15524         THIS->SetIcon(iconFile, iconIndex);
15525     }
15526     XSRETURN_EMPTY;
15527 }
15528
15529
15530 XS(XS_Wx__FileTypeInfo_SetShortDesc); /* prototype to pass -Wmissing-prototypes */
15531 XS(XS_Wx__FileTypeInfo_SetShortDesc)
15532 {
15533 #ifdef dVAR
15534     dVAR; dXSARGS;
15535 #else
15536     dXSARGS;
15537 #endif
15538     if (items != 2)
15539        croak_xs_usage(cv,  "THIS, shortDesc");
15540     {
15541         wxString        shortDesc;
15542         wxFileTypeInfo *    THIS = (wxFileTypeInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileTypeInfo" );
15543
15544     WXSTRING_INPUT( shortDesc, wxString, ST(1) );
15545
15546         THIS->SetShortDesc(shortDesc);
15547     }
15548     XSRETURN_EMPTY;
15549 }
15550
15551
15552 XS(XS_Wx__FileTypeInfo_GetMimeType); /* prototype to pass -Wmissing-prototypes */
15553 XS(XS_Wx__FileTypeInfo_GetMimeType)
15554 {
15555 #ifdef dVAR
15556     dVAR; dXSARGS;
15557 #else
15558     dXSARGS;
15559 #endif
15560     if (items != 1)
15561        croak_xs_usage(cv,  "THIS");
15562     {
15563         wxFileTypeInfo *    THIS = (wxFileTypeInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileTypeInfo" );
15564         wxString        RETVAL;
15565
15566         RETVAL = THIS->GetMimeType();
15567         ST(0) = sv_newmortal();
15568     WXSTRING_OUTPUT( RETVAL, ST(0) );
15569
15570     }
15571     XSRETURN(1);
15572 }
15573
15574
15575 XS(XS_Wx__FileTypeInfo_GetOpenCommand); /* prototype to pass -Wmissing-prototypes */
15576 XS(XS_Wx__FileTypeInfo_GetOpenCommand)
15577 {
15578 #ifdef dVAR
15579     dVAR; dXSARGS;
15580 #else
15581     dXSARGS;
15582 #endif
15583     if (items != 1)
15584        croak_xs_usage(cv,  "THIS");
15585     {
15586         wxFileTypeInfo *    THIS = (wxFileTypeInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileTypeInfo" );
15587         wxString        RETVAL;
15588
15589         RETVAL = THIS->GetOpenCommand();
15590         ST(0) = sv_newmortal();
15591     WXSTRING_OUTPUT( RETVAL, ST(0) );
15592
15593     }
15594     XSRETURN(1);
15595 }
15596
15597
15598 XS(XS_Wx__FileTypeInfo_GetPrintCommand); /* prototype to pass -Wmissing-prototypes */
15599 XS(XS_Wx__FileTypeInfo_GetPrintCommand)
15600 {
15601 #ifdef dVAR
15602     dVAR; dXSARGS;
15603 #else
15604     dXSARGS;
15605 #endif
15606     if (items != 1)
15607        croak_xs_usage(cv,  "THIS");
15608     {
15609         wxFileTypeInfo *    THIS = (wxFileTypeInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileTypeInfo" );
15610         wxString        RETVAL;
15611
15612         RETVAL = THIS->GetPrintCommand();
15613         ST(0) = sv_newmortal();
15614     WXSTRING_OUTPUT( RETVAL, ST(0) );
15615
15616     }
15617     XSRETURN(1);
15618 }
15619
15620
15621 XS(XS_Wx__FileTypeInfo_GetShortDesc); /* prototype to pass -Wmissing-prototypes */
15622 XS(XS_Wx__FileTypeInfo_GetShortDesc)
15623 {
15624 #ifdef dVAR
15625     dVAR; dXSARGS;
15626 #else
15627     dXSARGS;
15628 #endif
15629     if (items != 1)
15630        croak_xs_usage(cv,  "THIS");
15631     {
15632         wxFileTypeInfo *    THIS = (wxFileTypeInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileTypeInfo" );
15633         wxString        RETVAL;
15634
15635         RETVAL = THIS->GetShortDesc();
15636         ST(0) = sv_newmortal();
15637     WXSTRING_OUTPUT( RETVAL, ST(0) );
15638
15639     }
15640     XSRETURN(1);
15641 }
15642
15643
15644 XS(XS_Wx__FileTypeInfo_GetDescription); /* prototype to pass -Wmissing-prototypes */
15645 XS(XS_Wx__FileTypeInfo_GetDescription)
15646 {
15647 #ifdef dVAR
15648     dVAR; dXSARGS;
15649 #else
15650     dXSARGS;
15651 #endif
15652     if (items != 1)
15653        croak_xs_usage(cv,  "THIS");
15654     {
15655         wxFileTypeInfo *    THIS = (wxFileTypeInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileTypeInfo" );
15656         wxString        RETVAL;
15657
15658         RETVAL = THIS->GetDescription();
15659         ST(0) = sv_newmortal();
15660     WXSTRING_OUTPUT( RETVAL, ST(0) );
15661
15662     }
15663     XSRETURN(1);
15664 }
15665
15666
15667 XS(XS_Wx__FileTypeInfo_GetExtensionsCount); /* prototype to pass -Wmissing-prototypes */
15668 XS(XS_Wx__FileTypeInfo_GetExtensionsCount)
15669 {
15670 #ifdef dVAR
15671     dVAR; dXSARGS;
15672 #else
15673     dXSARGS;
15674 #endif
15675     if (items != 1)
15676        croak_xs_usage(cv,  "THIS");
15677     {
15678         wxFileTypeInfo *    THIS = (wxFileTypeInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileTypeInfo" );
15679         int     RETVAL;
15680         dXSTARG;
15681
15682         RETVAL = THIS->GetExtensionsCount();
15683         XSprePUSH; PUSHi((IV)RETVAL);
15684     }
15685     XSRETURN(1);
15686 }
15687
15688
15689 XS(XS_Wx__FileTypeInfo_GetIconFile); /* prototype to pass -Wmissing-prototypes */
15690 XS(XS_Wx__FileTypeInfo_GetIconFile)
15691 {
15692 #ifdef dVAR
15693     dVAR; dXSARGS;
15694 #else
15695     dXSARGS;
15696 #endif
15697     if (items != 1)
15698        croak_xs_usage(cv,  "THIS");
15699     {
15700         wxFileTypeInfo *    THIS = (wxFileTypeInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileTypeInfo" );
15701         wxString        RETVAL;
15702
15703         RETVAL = THIS->GetIconFile();
15704         ST(0) = sv_newmortal();
15705     WXSTRING_OUTPUT( RETVAL, ST(0) );
15706
15707     }
15708     XSRETURN(1);
15709 }
15710
15711
15712 XS(XS_Wx__FileTypeInfo_GetIconIndex); /* prototype to pass -Wmissing-prototypes */
15713 XS(XS_Wx__FileTypeInfo_GetIconIndex)
15714 {
15715 #ifdef dVAR
15716     dVAR; dXSARGS;
15717 #else
15718     dXSARGS;
15719 #endif
15720     if (items != 1)
15721        croak_xs_usage(cv,  "THIS");
15722     {
15723         wxFileTypeInfo *    THIS = (wxFileTypeInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileTypeInfo" );
15724         int     RETVAL;
15725         dXSTARG;
15726
15727         RETVAL = THIS->GetIconIndex();
15728         XSprePUSH; PUSHi((IV)RETVAL);
15729     }
15730     XSRETURN(1);
15731 }
15732
15733
15734 XS(XS_Wx__FileTypeInfo_new); /* prototype to pass -Wmissing-prototypes */
15735 XS(XS_Wx__FileTypeInfo_new)
15736 {
15737 #ifdef dVAR
15738     dVAR; dXSARGS;
15739 #else
15740     dXSARGS;
15741 #endif
15742     if (items != 2)
15743        croak_xs_usage(cv,  "CLASS, strings");
15744     {
15745         wxArrayString   strings;
15746         char *  CLASS = (char *)SvPV_nolen(ST(0));
15747         wxFileTypeInfo *        RETVAL;
15748
15749     wxPli_av_2_arraystring( aTHX_ ST(1), & strings );
15750
15751         RETVAL = new wxFileTypeInfo(strings);
15752         ST(0) = sv_newmortal();
15753     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::FileTypeInfo" );
15754
15755     }
15756     XSRETURN(1);
15757 }
15758
15759
15760 XS(XS_Wx__FileTypeInfo_GetExtensions); /* prototype to pass -Wmissing-prototypes */
15761 XS(XS_Wx__FileTypeInfo_GetExtensions)
15762 {
15763 #ifdef dVAR
15764     dVAR; dXSARGS;
15765 #else
15766     dXSARGS;
15767 #endif
15768     if (items != 1)
15769        croak_xs_usage(cv,  "THIS");
15770     PERL_UNUSED_VAR(ax); /* -Wall */
15771     SP -= items;
15772     {
15773         wxFileTypeInfo *    THIS = (wxFileTypeInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileTypeInfo" );
15774     const wxArrayString& extensions = THIS->GetExtensions();
15775     PUTBACK;
15776     wxPli_stringarray_push( aTHX_ extensions );
15777     SPAGAIN;
15778         PUTBACK;
15779         return;
15780     }
15781 }
15782
15783
15784 XS(XS_Wx__FileType_GetMimeTypes); /* prototype to pass -Wmissing-prototypes */
15785 XS(XS_Wx__FileType_GetMimeTypes)
15786 {
15787 #ifdef dVAR
15788     dVAR; dXSARGS;
15789 #else
15790     dXSARGS;
15791 #endif
15792     if (items != 1)
15793        croak_xs_usage(cv,  "THIS");
15794     PERL_UNUSED_VAR(ax); /* -Wall */
15795     SP -= items;
15796     {
15797     wxArrayString mimeTypes;
15798         wxFileType *    THIS = (wxFileType *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileType" );
15799     bool ok = THIS->GetMimeTypes( mimeTypes );
15800     if( ok )
15801     {
15802         PUTBACK;
15803         wxPli_stringarray_push( aTHX_ mimeTypes );
15804         SPAGAIN;
15805     }
15806     else
15807         XSRETURN_EMPTY;
15808         PUTBACK;
15809         return;
15810     }
15811 }
15812
15813
15814 XS(XS_Wx__FileType_GetMimeType); /* prototype to pass -Wmissing-prototypes */
15815 XS(XS_Wx__FileType_GetMimeType)
15816 {
15817 #ifdef dVAR
15818     dVAR; dXSARGS;
15819 #else
15820     dXSARGS;
15821 #endif
15822     if (items != 1)
15823        croak_xs_usage(cv,  "THIS");
15824     PERL_UNUSED_VAR(ax); /* -Wall */
15825     SP -= items;
15826     {
15827     wxString mimeType;
15828         wxFileType *    THIS = (wxFileType *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileType" );
15829     bool ok = THIS->GetMimeType( &mimeType );
15830     if( ok )
15831     {
15832         XPUSHs( wxPli_wxString_2_sv( aTHX_ mimeType, sv_newmortal() ) );
15833     }
15834     else
15835         XSRETURN_EMPTY;
15836         PUTBACK;
15837         return;
15838     }
15839 }
15840
15841
15842 XS(XS_Wx__FileType_GetExtensions); /* prototype to pass -Wmissing-prototypes */
15843 XS(XS_Wx__FileType_GetExtensions)
15844 {
15845 #ifdef dVAR
15846     dVAR; dXSARGS;
15847 #else
15848     dXSARGS;
15849 #endif
15850     if (items != 1)
15851        croak_xs_usage(cv,  "THIS");
15852     PERL_UNUSED_VAR(ax); /* -Wall */
15853     SP -= items;
15854     {
15855     wxArrayString extensions;
15856         wxFileType *    THIS = (wxFileType *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileType" );
15857     bool ok = THIS->GetExtensions( extensions );
15858     if( ok )
15859     {
15860         PUTBACK;
15861         wxPli_stringarray_push( aTHX_ extensions );
15862         SPAGAIN;
15863     }
15864     else
15865         XSRETURN_EMPTY;
15866         PUTBACK;
15867         return;
15868     }
15869 }
15870
15871
15872 XS(XS_Wx__FileType_GetIcon); /* prototype to pass -Wmissing-prototypes */
15873 XS(XS_Wx__FileType_GetIcon)
15874 {
15875 #ifdef dVAR
15876     dVAR; dXSARGS;
15877 #else
15878     dXSARGS;
15879 #endif
15880     if (items != 1)
15881        croak_xs_usage(cv,  "THIS");
15882     PERL_UNUSED_VAR(ax); /* -Wall */
15883     SP -= items;
15884     {
15885 #if WXPERL_W_VERSION_GE( 2, 5, 2 )
15886     wxIconLocation iconLoc;
15887 #else
15888     wxIcon iconLoc;
15889 #endif
15890         wxFileType *    THIS = (wxFileType *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileType" );
15891     bool ok = THIS->GetIcon( &iconLoc );
15892     if( ok )
15893     {
15894 #if WXPERL_W_VERSION_GE( 2, 5, 2 )
15895         XPUSHs( wxPli_non_object_2_sv( aTHX_ sv_newmortal(),
15896                                        new wxIconLocation( iconLoc ),
15897                                        "Wx::IconLocation" ) );
15898 #else
15899         XPUSHs( wxPli_non_object_2_sv( aTHX_ sv_newmortal(),
15900                                        new wxIcon( iconLoc ),
15901                                        "Wx::Icon" ) );
15902 #endif
15903     }
15904     else
15905         XSRETURN_EMPTY;
15906         PUTBACK;
15907         return;
15908     }
15909 }
15910
15911
15912 XS(XS_Wx__FileType_GetDescription); /* prototype to pass -Wmissing-prototypes */
15913 XS(XS_Wx__FileType_GetDescription)
15914 {
15915 #ifdef dVAR
15916     dVAR; dXSARGS;
15917 #else
15918     dXSARGS;
15919 #endif
15920     if (items != 1)
15921        croak_xs_usage(cv,  "THIS");
15922     PERL_UNUSED_VAR(ax); /* -Wall */
15923     SP -= items;
15924     {
15925     wxString desc;
15926         wxFileType *    THIS = (wxFileType *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileType" );
15927     bool ok = THIS->GetDescription( &desc );
15928     if( ok )
15929     {
15930         XPUSHs( wxPli_wxString_2_sv( aTHX_ desc, sv_newmortal() ) );
15931     }
15932     else
15933         XSRETURN_EMPTY;
15934         PUTBACK;
15935         return;
15936     }
15937 }
15938
15939
15940 XS(XS_Wx__FileType_GetOpenCommand); /* prototype to pass -Wmissing-prototypes */
15941 XS(XS_Wx__FileType_GetOpenCommand)
15942 {
15943 #ifdef dVAR
15944     dVAR; dXSARGS;
15945 #else
15946     dXSARGS;
15947 #endif
15948     if (items < 2 || items > 3)
15949        croak_xs_usage(cv,  "THIS, file, mimeType = wxEmptyString");
15950     PERL_UNUSED_VAR(ax); /* -Wall */
15951     SP -= items;
15952     {
15953         wxString        file;
15954         wxString        mimeType;
15955     wxString command;
15956         wxFileType *    THIS = (wxFileType *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileType" );
15957
15958     WXSTRING_INPUT( file, wxString, ST(1) );
15959
15960         if (items < 3)
15961             mimeType = wxEmptyString;
15962         else {
15963     WXSTRING_INPUT( mimeType, wxString, ST(2) );
15964         }
15965     bool ok = THIS->GetOpenCommand( &command,
15966                                     wxFileType::MessageParameters
15967                                         ( file, mimeType ) );
15968     if( ok )
15969         XPUSHs( wxPli_wxString_2_sv( aTHX_ command, sv_newmortal() ) );
15970     else
15971         XSRETURN_EMPTY;
15972         PUTBACK;
15973         return;
15974     }
15975 }
15976
15977
15978 XS(XS_Wx__FileType_GetPrintCommand); /* prototype to pass -Wmissing-prototypes */
15979 XS(XS_Wx__FileType_GetPrintCommand)
15980 {
15981 #ifdef dVAR
15982     dVAR; dXSARGS;
15983 #else
15984     dXSARGS;
15985 #endif
15986     if (items < 2 || items > 3)
15987        croak_xs_usage(cv,  "THIS, file, mimeType = wxEmptyString");
15988     PERL_UNUSED_VAR(ax); /* -Wall */
15989     SP -= items;
15990     {
15991         wxString        file;
15992         wxString        mimeType;
15993     wxString command;
15994         wxFileType *    THIS = (wxFileType *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileType" );
15995
15996     WXSTRING_INPUT( file, wxString, ST(1) );
15997
15998         if (items < 3)
15999             mimeType = wxEmptyString;
16000         else {
16001     WXSTRING_INPUT( mimeType, wxString, ST(2) );
16002         }
16003     bool ok = THIS->GetPrintCommand( &command,
16004                                      wxFileType::MessageParameters
16005                                          ( file, mimeType ) );
16006     if( ok )
16007         XPUSHs( wxPli_wxString_2_sv( aTHX_ command, sv_newmortal() ) );
16008     else
16009         XSRETURN_EMPTY;
16010         PUTBACK;
16011         return;
16012     }
16013 }
16014
16015
16016 XS(XS_Wx__MimeTypesManager_new); /* prototype to pass -Wmissing-prototypes */
16017 XS(XS_Wx__MimeTypesManager_new)
16018 {
16019 #ifdef dVAR
16020     dVAR; dXSARGS;
16021 #else
16022     dXSARGS;
16023 #endif
16024     if (items != 1)
16025        croak_xs_usage(cv,  "CLASS");
16026     {
16027         char *  CLASS = (char *)SvPV_nolen(ST(0));
16028         wxMimeTypesManager *    RETVAL;
16029
16030         RETVAL = new wxMimeTypesManager();
16031         ST(0) = sv_newmortal();
16032     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::MimeTypesManager" );
16033     wxPli_thread_sv_register( aTHX_ "Wx::MimeTypesManager", RETVAL, ST(0) );
16034
16035     }
16036     XSRETURN(1);
16037 }
16038
16039
16040 XS(XS_Wx__MimeTypesManager_CLONE); /* prototype to pass -Wmissing-prototypes */
16041 XS(XS_Wx__MimeTypesManager_CLONE)
16042 {
16043 #ifdef dVAR
16044     dVAR; dXSARGS;
16045 #else
16046     dXSARGS;
16047 #endif
16048     if (items != 1)
16049        croak_xs_usage(cv,  "CLASS");
16050     {
16051         char *  CLASS = (char *)SvPV_nolen(ST(0));
16052     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
16053     }
16054     XSRETURN_EMPTY;
16055 }
16056
16057
16058 XS(XS_Wx__MimeTypesManager_DESTROY); /* prototype to pass -Wmissing-prototypes */
16059 XS(XS_Wx__MimeTypesManager_DESTROY)
16060 {
16061 #ifdef dVAR
16062     dVAR; dXSARGS;
16063 #else
16064     dXSARGS;
16065 #endif
16066     if (items != 1)
16067        croak_xs_usage(cv,  "THIS");
16068     {
16069         wxMimeTypesManager *    THIS = (wxMimeTypesManager *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MimeTypesManager" );
16070      wxPli_thread_sv_unregister( aTHX_ "Wx::MimeTypesManager", THIS, ST(0) );
16071                 delete THIS;
16072     }
16073     XSRETURN_EMPTY;
16074 }
16075
16076
16077 XS(XS_Wx__MimeTypesManager_AddFallbacks); /* prototype to pass -Wmissing-prototypes */
16078 XS(XS_Wx__MimeTypesManager_AddFallbacks)
16079 {
16080 #ifdef dVAR
16081     dVAR; dXSARGS;
16082 #else
16083     dXSARGS;
16084 #endif
16085     if (items != 2)
16086        croak_xs_usage(cv,  "THIS, fallbacks");
16087     {
16088         wxFileTypeInfo*    fallbacks = (wxFileTypeInfo *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::FileTypeInfo" );
16089         wxMimeTypesManager *    THIS = (wxMimeTypesManager *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MimeTypesManager" );
16090
16091         THIS->AddFallbacks(fallbacks);
16092     }
16093     XSRETURN_EMPTY;
16094 }
16095
16096
16097 XS(XS_Wx__MimeTypesManager_GetFileTypeFromExtension); /* prototype to pass -Wmissing-prototypes */
16098 XS(XS_Wx__MimeTypesManager_GetFileTypeFromExtension)
16099 {
16100 #ifdef dVAR
16101     dVAR; dXSARGS;
16102 #else
16103     dXSARGS;
16104 #endif
16105     if (items != 2)
16106        croak_xs_usage(cv,  "THIS, extension");
16107     {
16108         wxString        extension;
16109         wxMimeTypesManager *    THIS = (wxMimeTypesManager *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MimeTypesManager" );
16110         wxFileType *    RETVAL;
16111
16112     WXSTRING_INPUT( extension, wxString, ST(1) );
16113
16114         RETVAL = THIS->GetFileTypeFromExtension(extension);
16115         ST(0) = sv_newmortal();
16116     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::FileType" );
16117
16118     }
16119     XSRETURN(1);
16120 }
16121
16122
16123 XS(XS_Wx__MimeTypesManager_GetFileTypeFromMimeType); /* prototype to pass -Wmissing-prototypes */
16124 XS(XS_Wx__MimeTypesManager_GetFileTypeFromMimeType)
16125 {
16126 #ifdef dVAR
16127     dVAR; dXSARGS;
16128 #else
16129     dXSARGS;
16130 #endif
16131     if (items != 2)
16132        croak_xs_usage(cv,  "THIS, mimeType");
16133     {
16134         wxString        mimeType;
16135         wxMimeTypesManager *    THIS = (wxMimeTypesManager *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MimeTypesManager" );
16136         wxFileType *    RETVAL;
16137
16138     WXSTRING_INPUT( mimeType, wxString, ST(1) );
16139
16140         RETVAL = THIS->GetFileTypeFromMimeType(mimeType);
16141         ST(0) = sv_newmortal();
16142     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::FileType" );
16143
16144     }
16145     XSRETURN(1);
16146 }
16147
16148
16149 XS(XS_Wx__MimeTypesManager_IsOfType); /* prototype to pass -Wmissing-prototypes */
16150 XS(XS_Wx__MimeTypesManager_IsOfType)
16151 {
16152 #ifdef dVAR
16153     dVAR; dXSARGS;
16154 #else
16155     dXSARGS;
16156 #endif
16157     if (items != 3)
16158        croak_xs_usage(cv,  "THIS, mimeType, wildcard");
16159     {
16160         wxString        mimeType;
16161         wxString        wildcard;
16162         wxMimeTypesManager *    THIS = (wxMimeTypesManager *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MimeTypesManager" );
16163         bool    RETVAL;
16164
16165     WXSTRING_INPUT( mimeType, wxString, ST(1) );
16166
16167     WXSTRING_INPUT( wildcard, wxString, ST(2) );
16168
16169         RETVAL = THIS->IsOfType(mimeType, wildcard);
16170         ST(0) = boolSV(RETVAL);
16171         sv_2mortal(ST(0));
16172     }
16173     XSRETURN(1);
16174 }
16175
16176 #if WXPERL_W_VERSION_LT( 2, 9, 0 )
16177 #define XSubPPtmpAADH 1
16178
16179
16180 XS(XS_Wx__MimeTypesManager_ReadMailcap); /* prototype to pass -Wmissing-prototypes */
16181 XS(XS_Wx__MimeTypesManager_ReadMailcap)
16182 {
16183 #ifdef dVAR
16184     dVAR; dXSARGS;
16185 #else
16186     dXSARGS;
16187 #endif
16188     if (items < 2 || items > 3)
16189        croak_xs_usage(cv,  "THIS, filename, fallback = false");
16190     {
16191         wxString        filename;
16192         bool    fallback;
16193         wxMimeTypesManager *    THIS = (wxMimeTypesManager *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MimeTypesManager" );
16194         bool    RETVAL;
16195
16196     WXSTRING_INPUT( filename, wxString, ST(1) );
16197
16198         if (items < 3)
16199             fallback = false;
16200         else {
16201             fallback = (bool)SvTRUE(ST(2));
16202         }
16203
16204         RETVAL = THIS->ReadMailcap(filename, fallback);
16205         ST(0) = boolSV(RETVAL);
16206         sv_2mortal(ST(0));
16207     }
16208     XSRETURN(1);
16209 }
16210
16211
16212 XS(XS_Wx__MimeTypesManager_ReadMimeTypes); /* prototype to pass -Wmissing-prototypes */
16213 XS(XS_Wx__MimeTypesManager_ReadMimeTypes)
16214 {
16215 #ifdef dVAR
16216     dVAR; dXSARGS;
16217 #else
16218     dXSARGS;
16219 #endif
16220     if (items != 2)
16221        croak_xs_usage(cv,  "THIS, filename");
16222     {
16223         wxString        filename;
16224         wxMimeTypesManager *    THIS = (wxMimeTypesManager *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MimeTypesManager" );
16225         bool    RETVAL;
16226
16227     WXSTRING_INPUT( filename, wxString, ST(1) );
16228
16229         RETVAL = THIS->ReadMimeTypes(filename);
16230         ST(0) = boolSV(RETVAL);
16231         sv_2mortal(ST(0));
16232     }
16233     XSRETURN(1);
16234 }
16235
16236 #endif
16237 #endif // wxUSE_MIMETYPE
16238
16239 /* INCLUDE: Returning to 'Wx.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/MimeTypes.xsp |' */
16240
16241
16242 /* INCLUDE:  Including 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Sound.xsp |' from 'Wx.xs' */
16243
16244 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
16245 #include <wx/sound.h>
16246 #define XSubPPtmpAADI 1
16247
16248
16249 XS(XS_Wx__Sound_newDefault); /* prototype to pass -Wmissing-prototypes */
16250 XS(XS_Wx__Sound_newDefault)
16251 {
16252 #ifdef dVAR
16253     dVAR; dXSARGS;
16254 #else
16255     dXSARGS;
16256 #endif
16257     if (items != 1)
16258        croak_xs_usage(cv,  "CLASS");
16259     {
16260         char *  CLASS = (char *)SvPV_nolen(ST(0));
16261         wxSound *       RETVAL;
16262     RETVAL = new wxSound();
16263         ST(0) = sv_newmortal();
16264     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Sound" );
16265     wxPli_thread_sv_register( aTHX_ "Wx::Sound", RETVAL, ST(0) );
16266
16267     }
16268     XSRETURN(1);
16269 }
16270
16271
16272 XS(XS_Wx__Sound_newFile); /* prototype to pass -Wmissing-prototypes */
16273 XS(XS_Wx__Sound_newFile)
16274 {
16275 #ifdef dVAR
16276     dVAR; dXSARGS;
16277 #else
16278     dXSARGS;
16279 #endif
16280     if (items != 2)
16281        croak_xs_usage(cv,  "CLASS, fileName");
16282     {
16283         wxString        fileName;
16284         char *  CLASS = (char *)SvPV_nolen(ST(0));
16285         wxSound *       RETVAL;
16286
16287     WXSTRING_INPUT( fileName, wxString, ST(1) );
16288     RETVAL = new wxSound( fileName );
16289         ST(0) = sv_newmortal();
16290     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Sound" );
16291     wxPli_thread_sv_register( aTHX_ "Wx::Sound", RETVAL, ST(0) );
16292
16293     }
16294     XSRETURN(1);
16295 }
16296
16297
16298 XS(XS_Wx__Sound_CLONE); /* prototype to pass -Wmissing-prototypes */
16299 XS(XS_Wx__Sound_CLONE)
16300 {
16301 #ifdef dVAR
16302     dVAR; dXSARGS;
16303 #else
16304     dXSARGS;
16305 #endif
16306     if (items != 1)
16307        croak_xs_usage(cv,  "CLASS");
16308     {
16309         char *  CLASS = (char *)SvPV_nolen(ST(0));
16310     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
16311     }
16312     XSRETURN_EMPTY;
16313 }
16314
16315
16316 XS(XS_Wx__Sound_DESTROY); /* prototype to pass -Wmissing-prototypes */
16317 XS(XS_Wx__Sound_DESTROY)
16318 {
16319 #ifdef dVAR
16320     dVAR; dXSARGS;
16321 #else
16322     dXSARGS;
16323 #endif
16324     if (items != 1)
16325        croak_xs_usage(cv,  "THIS");
16326     {
16327         wxSound *    THIS = (wxSound *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Sound" );
16328      wxPli_thread_sv_unregister( aTHX_ "Wx::Sound", THIS, ST(0) );
16329                 delete THIS;
16330     }
16331     XSRETURN_EMPTY;
16332 }
16333
16334
16335 XS(XS_Wx__Sound_Create); /* prototype to pass -Wmissing-prototypes */
16336 XS(XS_Wx__Sound_Create)
16337 {
16338 #ifdef dVAR
16339     dVAR; dXSARGS;
16340 #else
16341     dXSARGS;
16342 #endif
16343     if (items != 2)
16344        croak_xs_usage(cv,  "THIS, fileName");
16345     {
16346         wxString        fileName;
16347         wxSound *    THIS = (wxSound *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Sound" );
16348         bool    RETVAL;
16349
16350     WXSTRING_INPUT( fileName, wxString, ST(1) );
16351
16352         RETVAL = THIS->Create(fileName);
16353         ST(0) = boolSV(RETVAL);
16354         sv_2mortal(ST(0));
16355     }
16356     XSRETURN(1);
16357 }
16358
16359
16360 XS(XS_Wx__Sound_Play); /* prototype to pass -Wmissing-prototypes */
16361 XS(XS_Wx__Sound_Play)
16362 {
16363 #ifdef dVAR
16364     dVAR; dXSARGS;
16365 #else
16366     dXSARGS;
16367 #endif
16368     if (items < 1 || items > 2)
16369        croak_xs_usage(cv,  "THIS, flags = wxSOUND_ASYNC");
16370     {
16371         unsigned int    flags;
16372         wxSound *    THIS = (wxSound *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Sound" );
16373         bool    RETVAL;
16374
16375         if (items < 2)
16376             flags = wxSOUND_ASYNC;
16377         else {
16378     flags = (unsigned int)SvUV( ST(1) );
16379         }
16380
16381         RETVAL = THIS->Play(flags);
16382         ST(0) = boolSV(RETVAL);
16383         sv_2mortal(ST(0));
16384     }
16385     XSRETURN(1);
16386 }
16387
16388
16389 XS(XS_Wx__Sound_IsOk); /* prototype to pass -Wmissing-prototypes */
16390 XS(XS_Wx__Sound_IsOk)
16391 {
16392 #ifdef dVAR
16393     dVAR; dXSARGS;
16394 #else
16395     dXSARGS;
16396 #endif
16397     if (items != 1)
16398        croak_xs_usage(cv,  "THIS");
16399     {
16400         wxSound *    THIS = (wxSound *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Sound" );
16401         bool    RETVAL;
16402
16403         RETVAL = THIS->IsOk();
16404         ST(0) = boolSV(RETVAL);
16405         sv_2mortal(ST(0));
16406     }
16407     XSRETURN(1);
16408 }
16409
16410
16411 XS(XS_Wx__Sound_new); /* prototype to pass -Wmissing-prototypes */
16412 XS(XS_Wx__Sound_new)
16413 {
16414 #ifdef dVAR
16415     dVAR; dXSARGS;
16416 #else
16417     dXSARGS;
16418 #endif
16419     PERL_UNUSED_VAR(cv); /* -W */
16420     PERL_UNUSED_VAR(ax); /* -Wall */
16421     SP -= items;
16422     {
16423     BEGIN_OVERLOAD()
16424         MATCH_VOIDM_REDISP( newDefault )
16425         MATCH_ANY_REDISP( newFile )
16426     END_OVERLOAD( "Wx::Choicebook::new" )
16427         PUTBACK;
16428         return;
16429     }
16430 }
16431
16432
16433 XS(XS_Wx__Sound_newData); /* prototype to pass -Wmissing-prototypes */
16434 XS(XS_Wx__Sound_newData)
16435 {
16436 #ifdef dVAR
16437     dVAR; dXSARGS;
16438 #else
16439     dXSARGS;
16440 #endif
16441     if (items != 2)
16442        croak_xs_usage(cv,  "THIS, data");
16443     {
16444         SV*     data = ST(1);
16445         wxSound *    THIS = (wxSound *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Sound" );
16446         wxSound *       RETVAL;
16447     STRLEN len;
16448     const wxByte* buffer = (wxByte*) SvPV( data, len );
16449     RETVAL = new wxSound( len, buffer );
16450         ST(0) = sv_newmortal();
16451     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Sound" );
16452     wxPli_thread_sv_register( aTHX_ "Wx::Sound", RETVAL, ST(0) );
16453
16454     }
16455     XSRETURN(1);
16456 }
16457
16458 #if !defined(__WXMAC__)
16459 #define XSubPPtmpAADJ 1
16460
16461
16462 XS(XS_Wx__Sound_CreateData); /* prototype to pass -Wmissing-prototypes */
16463 XS(XS_Wx__Sound_CreateData)
16464 {
16465 #ifdef dVAR
16466     dVAR; dXSARGS;
16467 #else
16468     dXSARGS;
16469 #endif
16470     if (items != 2)
16471        croak_xs_usage(cv,  "THIS, data");
16472     {
16473         SV*     data = ST(1);
16474         wxSound *    THIS = (wxSound *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Sound" );
16475         bool    RETVAL;
16476     STRLEN len;
16477     const wxByte* buffer = (wxByte*) SvPV( data, len );
16478     RETVAL = THIS->Create( len, buffer );
16479         ST(0) = boolSV(RETVAL);
16480         sv_2mortal(ST(0));
16481     }
16482     XSRETURN(1);
16483 }
16484
16485 #endif
16486
16487 XS(XS_Wx__Sound_Stop); /* prototype to pass -Wmissing-prototypes */
16488 XS(XS_Wx__Sound_Stop)
16489 {
16490 #ifdef dVAR
16491     dVAR; dXSARGS;
16492 #else
16493     dXSARGS;
16494 #endif
16495     if (items != 0)
16496        croak_xs_usage(cv,  "");
16497     {
16498     wxSound::Stop();
16499     }
16500     XSRETURN_EMPTY;
16501 }
16502
16503 #if !defined( __WXMSW__ )
16504 #define XSubPPtmpAADK 1
16505
16506
16507 XS(XS_Wx__Sound_IsPlaying); /* prototype to pass -Wmissing-prototypes */
16508 XS(XS_Wx__Sound_IsPlaying)
16509 {
16510 #ifdef dVAR
16511     dVAR; dXSARGS;
16512 #else
16513     dXSARGS;
16514 #endif
16515     if (items != 0)
16516        croak_xs_usage(cv,  "");
16517     {
16518         bool    RETVAL;
16519     RETVAL = wxSound::IsPlaying();
16520         ST(0) = boolSV(RETVAL);
16521         sv_2mortal(ST(0));
16522     }
16523     XSRETURN(1);
16524 }
16525
16526 #endif
16527 #endif
16528
16529 /* INCLUDE: Returning to 'Wx.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Sound.xsp |' */
16530
16531
16532 /* INCLUDE:  Including 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Power.xsp |' from 'Wx.xs' */
16533
16534 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
16535 #include <wx/power.h>
16536 #ifdef wxHAS_POWER_EVENTS
16537 #define XSubPPtmpAADL 1
16538
16539
16540 XS(XS_Wx__PowerEvent_Veto); /* prototype to pass -Wmissing-prototypes */
16541 XS(XS_Wx__PowerEvent_Veto)
16542 {
16543 #ifdef dVAR
16544     dVAR; dXSARGS;
16545 #else
16546     dXSARGS;
16547 #endif
16548     if (items != 1)
16549        croak_xs_usage(cv,  "THIS");
16550     {
16551         wxPowerEvent *    THIS = (wxPowerEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PowerEvent" );
16552
16553         THIS->Veto();
16554     }
16555     XSRETURN_EMPTY;
16556 }
16557
16558
16559 XS(XS_Wx__PowerEvent_IsVetoed); /* prototype to pass -Wmissing-prototypes */
16560 XS(XS_Wx__PowerEvent_IsVetoed)
16561 {
16562 #ifdef dVAR
16563     dVAR; dXSARGS;
16564 #else
16565     dXSARGS;
16566 #endif
16567     if (items != 1)
16568        croak_xs_usage(cv,  "THIS");
16569     {
16570         wxPowerEvent *    THIS = (wxPowerEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PowerEvent" );
16571         bool    RETVAL;
16572
16573         RETVAL = THIS->IsVetoed();
16574         ST(0) = boolSV(RETVAL);
16575         sv_2mortal(ST(0));
16576     }
16577     XSRETURN(1);
16578 }
16579
16580 #endif
16581 #define XSubPPtmpAADM 1
16582
16583
16584 XS(XS_Wx_GetPowerType); /* prototype to pass -Wmissing-prototypes */
16585 XS(XS_Wx_GetPowerType)
16586 {
16587 #ifdef dVAR
16588     dVAR; dXSARGS;
16589 #else
16590     dXSARGS;
16591 #endif
16592     if (items != 0)
16593        croak_xs_usage(cv,  "");
16594     {
16595         wxPowerType     RETVAL;
16596         dXSTARG;
16597     RETVAL = wxGetPowerType();
16598         XSprePUSH; PUSHi((IV)RETVAL);
16599     }
16600     XSRETURN(1);
16601 }
16602
16603
16604 XS(XS_Wx_GetBatteryState); /* prototype to pass -Wmissing-prototypes */
16605 XS(XS_Wx_GetBatteryState)
16606 {
16607 #ifdef dVAR
16608     dVAR; dXSARGS;
16609 #else
16610     dXSARGS;
16611 #endif
16612     if (items != 0)
16613        croak_xs_usage(cv,  "");
16614     {
16615         wxBatteryState  RETVAL;
16616         dXSTARG;
16617     RETVAL = wxGetBatteryState();
16618         XSprePUSH; PUSHi((IV)RETVAL);
16619     }
16620     XSRETURN(1);
16621 }
16622
16623 #endif
16624
16625 /* INCLUDE: Returning to 'Wx.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Power.xsp |' */
16626
16627
16628 /* INCLUDE:  Including 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/ClassInfo.xs |' from 'Wx.xs' */
16629
16630
16631 XS(XS_Wx__ClassInfo_FindClass); /* prototype to pass -Wmissing-prototypes */
16632 XS(XS_Wx__ClassInfo_FindClass)
16633 {
16634 #ifdef dVAR
16635     dVAR; dXSARGS;
16636 #else
16637     dXSARGS;
16638 #endif
16639     if (items != 1)
16640        croak_xs_usage(cv,  "name");
16641     {
16642         wxString        name;
16643         wxClassInfo *   RETVAL;
16644
16645     WXSTRING_INPUT( name, wxString, ST(0) );
16646     RETVAL = wxClassInfo::FindClass( name );
16647         ST(0) = sv_newmortal();
16648     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::ClassInfo" );
16649
16650     }
16651     XSRETURN(1);
16652 }
16653
16654
16655 XS(XS_Wx__ClassInfo_GetBaseClassName1); /* prototype to pass -Wmissing-prototypes */
16656 XS(XS_Wx__ClassInfo_GetBaseClassName1)
16657 {
16658 #ifdef dVAR
16659     dVAR; dXSARGS;
16660 #else
16661     dXSARGS;
16662 #endif
16663     if (items != 1)
16664        croak_xs_usage(cv,  "THIS");
16665     {
16666         wxClassInfo *    THIS = (wxClassInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ClassInfo" );
16667         const wxChar *  RETVAL;
16668
16669         RETVAL = THIS->GetBaseClassName1();
16670         ST(0) = sv_newmortal();
16671     WXCHAR_OUTPUT( RETVAL, ST(0) );
16672
16673     }
16674     XSRETURN(1);
16675 }
16676
16677
16678 XS(XS_Wx__ClassInfo_GetBaseClassName2); /* prototype to pass -Wmissing-prototypes */
16679 XS(XS_Wx__ClassInfo_GetBaseClassName2)
16680 {
16681 #ifdef dVAR
16682     dVAR; dXSARGS;
16683 #else
16684     dXSARGS;
16685 #endif
16686     if (items != 1)
16687        croak_xs_usage(cv,  "THIS");
16688     {
16689         wxClassInfo *    THIS = (wxClassInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ClassInfo" );
16690         const wxChar *  RETVAL;
16691
16692         RETVAL = THIS->GetBaseClassName2();
16693         ST(0) = sv_newmortal();
16694     WXCHAR_OUTPUT( RETVAL, ST(0) );
16695
16696     }
16697     XSRETURN(1);
16698 }
16699
16700
16701 XS(XS_Wx__ClassInfo_GetClassName); /* prototype to pass -Wmissing-prototypes */
16702 XS(XS_Wx__ClassInfo_GetClassName)
16703 {
16704 #ifdef dVAR
16705     dVAR; dXSARGS;
16706 #else
16707     dXSARGS;
16708 #endif
16709     if (items != 1)
16710        croak_xs_usage(cv,  "THIS");
16711     {
16712         wxClassInfo *    THIS = (wxClassInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ClassInfo" );
16713         const wxChar *  RETVAL;
16714
16715         RETVAL = THIS->GetClassName();
16716         ST(0) = sv_newmortal();
16717     WXCHAR_OUTPUT( RETVAL, ST(0) );
16718
16719     }
16720     XSRETURN(1);
16721 }
16722
16723 #if wxUSE_EXTENDED_RTTI
16724 #define XSubPPtmpAADN 1
16725
16726
16727 XS(XS_Wx__ClassInfo_GetParents); /* prototype to pass -Wmissing-prototypes */
16728 XS(XS_Wx__ClassInfo_GetParents)
16729 {
16730 #ifdef dVAR
16731     dVAR; dXSARGS;
16732 #else
16733     dXSARGS;
16734 #endif
16735     if (items != 1)
16736        croak_xs_usage(cv,  "THIS");
16737     PERL_UNUSED_VAR(ax); /* -Wall */
16738     SP -= items;
16739     {
16740         wxClassInfo *    THIS = (wxClassInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ClassInfo" );
16741     const wxClassInfo** parents = THIS->GetParents();
16742     while( *parents )
16743         XPUSHs( wxPli_non_object_2_sv( aTHX_ sv_newmortal(),
16744                                        *parents, "Wx::ClassInfo" ) );
16745         PUTBACK;
16746         return;
16747     }
16748 }
16749
16750
16751 XS(XS_Wx__ClassInfo_GetFirstProperty); /* prototype to pass -Wmissing-prototypes */
16752 XS(XS_Wx__ClassInfo_GetFirstProperty)
16753 {
16754 #ifdef dVAR
16755     dVAR; dXSARGS;
16756 #else
16757     dXSARGS;
16758 #endif
16759     if (items != 1)
16760        croak_xs_usage(cv,  "THIS");
16761     {
16762         wxClassInfo *    THIS = (wxClassInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ClassInfo" );
16763         const wxPropertyInfo *  RETVAL;
16764
16765         RETVAL = THIS->GetFirstProperty();
16766         ST(0) = sv_newmortal();
16767     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::PropertyInfo" );
16768
16769     }
16770     XSRETURN(1);
16771 }
16772
16773
16774 XS(XS_Wx__ClassInfo_FindPropertyInfo); /* prototype to pass -Wmissing-prototypes */
16775 XS(XS_Wx__ClassInfo_FindPropertyInfo)
16776 {
16777 #ifdef dVAR
16778     dVAR; dXSARGS;
16779 #else
16780     dXSARGS;
16781 #endif
16782     if (items != 2)
16783        croak_xs_usage(cv,  "THIS, name");
16784     {
16785         const wxChar*   name;
16786         wxClassInfo *    THIS = (wxClassInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ClassInfo" );
16787         const wxPropertyInfo *  RETVAL;
16788
16789     WXCHAR_INPUT( name, wxChar*, ST(1) );
16790
16791         RETVAL = THIS->FindPropertyInfo(name);
16792         ST(0) = sv_newmortal();
16793     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::PropertyInfo" );
16794
16795     }
16796     XSRETURN(1);
16797 }
16798
16799
16800 XS(XS_Wx__ClassInfo_FindPropertyInfoInThisClass); /* prototype to pass -Wmissing-prototypes */
16801 XS(XS_Wx__ClassInfo_FindPropertyInfoInThisClass)
16802 {
16803 #ifdef dVAR
16804     dVAR; dXSARGS;
16805 #else
16806     dXSARGS;
16807 #endif
16808     if (items != 2)
16809        croak_xs_usage(cv,  "THIS, name");
16810     {
16811         const wxChar*   name;
16812         wxClassInfo *    THIS = (wxClassInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ClassInfo" );
16813         const wxPropertyInfo *  RETVAL;
16814
16815     WXCHAR_INPUT( name, wxChar*, ST(1) );
16816
16817         RETVAL = THIS->FindPropertyInfoInThisClass(name);
16818         ST(0) = sv_newmortal();
16819     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::PropertyInfo" );
16820
16821     }
16822     XSRETURN(1);
16823 }
16824
16825
16826 XS(XS_Wx__PropertyInfo_GetDeclaringClass); /* prototype to pass -Wmissing-prototypes */
16827 XS(XS_Wx__PropertyInfo_GetDeclaringClass)
16828 {
16829 #ifdef dVAR
16830     dVAR; dXSARGS;
16831 #else
16832     dXSARGS;
16833 #endif
16834     if (items != 1)
16835        croak_xs_usage(cv,  "THIS");
16836     {
16837         wxPropertyInfo *    THIS = (wxPropertyInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PropertyInfo" );
16838         const wxClassInfo *     RETVAL;
16839
16840         RETVAL = THIS->GetDeclaringClass();
16841         ST(0) = sv_newmortal();
16842     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::ClassInfo" );
16843
16844     }
16845     XSRETURN(1);
16846 }
16847
16848
16849 XS(XS_Wx__PropertyInfo_GetName); /* prototype to pass -Wmissing-prototypes */
16850 XS(XS_Wx__PropertyInfo_GetName)
16851 {
16852 #ifdef dVAR
16853     dVAR; dXSARGS;
16854 #else
16855     dXSARGS;
16856 #endif
16857     if (items != 1)
16858        croak_xs_usage(cv,  "THIS");
16859     {
16860         wxPropertyInfo *    THIS = (wxPropertyInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PropertyInfo" );
16861         wxString        RETVAL;
16862
16863         RETVAL = THIS->GetName();
16864         ST(0) = sv_newmortal();
16865     WXSTRING_OUTPUT( RETVAL, ST(0) );
16866
16867     }
16868     XSRETURN(1);
16869 }
16870
16871
16872 XS(XS_Wx__PropertyInfo_GetFlags); /* prototype to pass -Wmissing-prototypes */
16873 XS(XS_Wx__PropertyInfo_GetFlags)
16874 {
16875 #ifdef dVAR
16876     dVAR; dXSARGS;
16877 #else
16878     dXSARGS;
16879 #endif
16880     if (items != 1)
16881        croak_xs_usage(cv,  "THIS");
16882     {
16883         wxPropertyInfo *    THIS = (wxPropertyInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PropertyInfo" );
16884         wxPropertyInfoFlags     RETVAL;
16885         dXSTARG;
16886
16887         RETVAL = THIS->GetFlags();
16888         XSprePUSH; PUSHi((IV)RETVAL);
16889     }
16890     XSRETURN(1);
16891 }
16892
16893
16894 XS(XS_Wx__PropertyInfo_GetHelpString); /* prototype to pass -Wmissing-prototypes */
16895 XS(XS_Wx__PropertyInfo_GetHelpString)
16896 {
16897 #ifdef dVAR
16898     dVAR; dXSARGS;
16899 #else
16900     dXSARGS;
16901 #endif
16902     if (items != 1)
16903        croak_xs_usage(cv,  "THIS");
16904     {
16905         wxPropertyInfo *    THIS = (wxPropertyInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PropertyInfo" );
16906         wxString        RETVAL;
16907
16908         RETVAL = THIS->GetHelpString();
16909         ST(0) = sv_newmortal();
16910     WXSTRING_OUTPUT( RETVAL, ST(0) );
16911
16912     }
16913     XSRETURN(1);
16914 }
16915
16916
16917 XS(XS_Wx__PropertyInfo_GetGroupString); /* prototype to pass -Wmissing-prototypes */
16918 XS(XS_Wx__PropertyInfo_GetGroupString)
16919 {
16920 #ifdef dVAR
16921     dVAR; dXSARGS;
16922 #else
16923     dXSARGS;
16924 #endif
16925     if (items != 1)
16926        croak_xs_usage(cv,  "THIS");
16927     {
16928         wxPropertyInfo *    THIS = (wxPropertyInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PropertyInfo" );
16929         wxString        RETVAL;
16930
16931         RETVAL = THIS->GetGroupString();
16932         ST(0) = sv_newmortal();
16933     WXSTRING_OUTPUT( RETVAL, ST(0) );
16934
16935     }
16936     XSRETURN(1);
16937 }
16938
16939
16940 XS(XS_Wx__PropertyInfo_GetCollectionElementTypeInfo); /* prototype to pass -Wmissing-prototypes */
16941 XS(XS_Wx__PropertyInfo_GetCollectionElementTypeInfo)
16942 {
16943 #ifdef dVAR
16944     dVAR; dXSARGS;
16945 #else
16946     dXSARGS;
16947 #endif
16948     if (items != 1)
16949        croak_xs_usage(cv,  "THIS");
16950     {
16951         wxPropertyInfo *    THIS = (wxPropertyInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PropertyInfo" );
16952         const wxTypeInfo *      RETVAL;
16953
16954         RETVAL = THIS->GetCollectionElementTypeInfo();
16955         ST(0) = sv_newmortal();
16956     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::TypeInfo" );
16957
16958     }
16959     XSRETURN(1);
16960 }
16961
16962
16963 XS(XS_Wx__PropertyInfo_GetTypeInfo); /* prototype to pass -Wmissing-prototypes */
16964 XS(XS_Wx__PropertyInfo_GetTypeInfo)
16965 {
16966 #ifdef dVAR
16967     dVAR; dXSARGS;
16968 #else
16969     dXSARGS;
16970 #endif
16971     if (items != 1)
16972        croak_xs_usage(cv,  "THIS");
16973     {
16974         wxPropertyInfo *    THIS = (wxPropertyInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PropertyInfo" );
16975         const wxTypeInfo *      RETVAL;
16976
16977         RETVAL = THIS->GetTypeInfo();
16978         ST(0) = sv_newmortal();
16979     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::TypeInfo" );
16980
16981     }
16982     XSRETURN(1);
16983 }
16984
16985
16986 XS(XS_Wx__PropertyInfo_GetAccessor); /* prototype to pass -Wmissing-prototypes */
16987 XS(XS_Wx__PropertyInfo_GetAccessor)
16988 {
16989 #ifdef dVAR
16990     dVAR; dXSARGS;
16991 #else
16992     dXSARGS;
16993 #endif
16994     if (items != 1)
16995        croak_xs_usage(cv,  "THIS");
16996     {
16997         wxPropertyInfo *    THIS = (wxPropertyInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PropertyInfo" );
16998         wxPropertyAccessor *    RETVAL;
16999
17000         RETVAL = THIS->GetAccessor();
17001         ST(0) = sv_newmortal();
17002     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::PropertyAccessor" );
17003
17004     }
17005     XSRETURN(1);
17006 }
17007
17008
17009 XS(XS_Wx__PropertyInfo_GetNext); /* prototype to pass -Wmissing-prototypes */
17010 XS(XS_Wx__PropertyInfo_GetNext)
17011 {
17012 #ifdef dVAR
17013     dVAR; dXSARGS;
17014 #else
17015     dXSARGS;
17016 #endif
17017     if (items != 1)
17018        croak_xs_usage(cv,  "THIS");
17019     {
17020         wxPropertyInfo *    THIS = (wxPropertyInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PropertyInfo" );
17021         wxPropertyInfo *        RETVAL;
17022
17023         RETVAL = THIS->GetNext();
17024         ST(0) = sv_newmortal();
17025     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::PropertyInfo" );
17026
17027     }
17028     XSRETURN(1);
17029 }
17030
17031
17032 XS(XS_Wx__TypeInfo_GetKind); /* prototype to pass -Wmissing-prototypes */
17033 XS(XS_Wx__TypeInfo_GetKind)
17034 {
17035 #ifdef dVAR
17036     dVAR; dXSARGS;
17037 #else
17038     dXSARGS;
17039 #endif
17040     if (items != 1)
17041        croak_xs_usage(cv,  "THIS");
17042     {
17043         wxTypeInfo *    THIS = (wxTypeInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TypeInfo" );
17044         wxTypeKind      RETVAL;
17045         dXSTARG;
17046
17047         RETVAL = THIS->GetKind();
17048         XSprePUSH; PUSHi((IV)RETVAL);
17049     }
17050     XSRETURN(1);
17051 }
17052
17053
17054 XS(XS_Wx__TypeInfo_GetTypeName); /* prototype to pass -Wmissing-prototypes */
17055 XS(XS_Wx__TypeInfo_GetTypeName)
17056 {
17057 #ifdef dVAR
17058     dVAR; dXSARGS;
17059 #else
17060     dXSARGS;
17061 #endif
17062     if (items != 1)
17063        croak_xs_usage(cv,  "THIS");
17064     {
17065         wxTypeInfo *    THIS = (wxTypeInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TypeInfo" );
17066         wxString        RETVAL;
17067
17068         RETVAL = THIS->GetTypeName();
17069         ST(0) = sv_newmortal();
17070     WXSTRING_OUTPUT( RETVAL, ST(0) );
17071
17072     }
17073     XSRETURN(1);
17074 }
17075
17076
17077 XS(XS_Wx__TypeInfo_IsDelegateType); /* prototype to pass -Wmissing-prototypes */
17078 XS(XS_Wx__TypeInfo_IsDelegateType)
17079 {
17080 #ifdef dVAR
17081     dVAR; dXSARGS;
17082 #else
17083     dXSARGS;
17084 #endif
17085     if (items != 1)
17086        croak_xs_usage(cv,  "THIS");
17087     {
17088         wxTypeInfo *    THIS = (wxTypeInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TypeInfo" );
17089         bool    RETVAL;
17090
17091         RETVAL = THIS->IsDelegateType();
17092         ST(0) = boolSV(RETVAL);
17093         sv_2mortal(ST(0));
17094     }
17095     XSRETURN(1);
17096 }
17097
17098
17099 XS(XS_Wx__TypeInfo_IsCustomType); /* prototype to pass -Wmissing-prototypes */
17100 XS(XS_Wx__TypeInfo_IsCustomType)
17101 {
17102 #ifdef dVAR
17103     dVAR; dXSARGS;
17104 #else
17105     dXSARGS;
17106 #endif
17107     if (items != 1)
17108        croak_xs_usage(cv,  "THIS");
17109     {
17110         wxTypeInfo *    THIS = (wxTypeInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TypeInfo" );
17111         bool    RETVAL;
17112
17113         RETVAL = THIS->IsCustomType();
17114         ST(0) = boolSV(RETVAL);
17115         sv_2mortal(ST(0));
17116     }
17117     XSRETURN(1);
17118 }
17119
17120
17121 XS(XS_Wx__TypeInfo_IsObjectType); /* prototype to pass -Wmissing-prototypes */
17122 XS(XS_Wx__TypeInfo_IsObjectType)
17123 {
17124 #ifdef dVAR
17125     dVAR; dXSARGS;
17126 #else
17127     dXSARGS;
17128 #endif
17129     if (items != 1)
17130        croak_xs_usage(cv,  "THIS");
17131     {
17132         wxTypeInfo *    THIS = (wxTypeInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TypeInfo" );
17133         bool    RETVAL;
17134
17135         RETVAL = THIS->IsObjectType();
17136         ST(0) = boolSV(RETVAL);
17137         sv_2mortal(ST(0));
17138     }
17139     XSRETURN(1);
17140 }
17141
17142
17143 XS(XS_Wx__PropertyAccessor_HasSetter); /* prototype to pass -Wmissing-prototypes */
17144 XS(XS_Wx__PropertyAccessor_HasSetter)
17145 {
17146 #ifdef dVAR
17147     dVAR; dXSARGS;
17148 #else
17149     dXSARGS;
17150 #endif
17151     if (items != 1)
17152        croak_xs_usage(cv,  "THIS");
17153     {
17154         wxPropertyAccessor *    THIS = (wxPropertyAccessor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PropertyAccessor" );
17155         bool    RETVAL;
17156
17157         RETVAL = THIS->HasSetter();
17158         ST(0) = boolSV(RETVAL);
17159         sv_2mortal(ST(0));
17160     }
17161     XSRETURN(1);
17162 }
17163
17164
17165 XS(XS_Wx__PropertyAccessor_HasCollectionGetter); /* prototype to pass -Wmissing-prototypes */
17166 XS(XS_Wx__PropertyAccessor_HasCollectionGetter)
17167 {
17168 #ifdef dVAR
17169     dVAR; dXSARGS;
17170 #else
17171     dXSARGS;
17172 #endif
17173     if (items != 1)
17174        croak_xs_usage(cv,  "THIS");
17175     {
17176         wxPropertyAccessor *    THIS = (wxPropertyAccessor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PropertyAccessor" );
17177         bool    RETVAL;
17178
17179         RETVAL = THIS->HasCollectionGetter();
17180         ST(0) = boolSV(RETVAL);
17181         sv_2mortal(ST(0));
17182     }
17183     XSRETURN(1);
17184 }
17185
17186
17187 XS(XS_Wx__PropertyAccessor_HasGetter); /* prototype to pass -Wmissing-prototypes */
17188 XS(XS_Wx__PropertyAccessor_HasGetter)
17189 {
17190 #ifdef dVAR
17191     dVAR; dXSARGS;
17192 #else
17193     dXSARGS;
17194 #endif
17195     if (items != 1)
17196        croak_xs_usage(cv,  "THIS");
17197     {
17198         wxPropertyAccessor *    THIS = (wxPropertyAccessor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PropertyAccessor" );
17199         bool    RETVAL;
17200
17201         RETVAL = THIS->HasGetter();
17202         ST(0) = boolSV(RETVAL);
17203         sv_2mortal(ST(0));
17204     }
17205     XSRETURN(1);
17206 }
17207
17208
17209 XS(XS_Wx__PropertyAccessor_HasAdder); /* prototype to pass -Wmissing-prototypes */
17210 XS(XS_Wx__PropertyAccessor_HasAdder)
17211 {
17212 #ifdef dVAR
17213     dVAR; dXSARGS;
17214 #else
17215     dXSARGS;
17216 #endif
17217     if (items != 1)
17218        croak_xs_usage(cv,  "THIS");
17219     {
17220         wxPropertyAccessor *    THIS = (wxPropertyAccessor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PropertyAccessor" );
17221         bool    RETVAL;
17222
17223         RETVAL = THIS->HasAdder();
17224         ST(0) = boolSV(RETVAL);
17225         sv_2mortal(ST(0));
17226     }
17227     XSRETURN(1);
17228 }
17229
17230
17231 XS(XS_Wx__PropertyAccessor_GetCollectionGetterName); /* prototype to pass -Wmissing-prototypes */
17232 XS(XS_Wx__PropertyAccessor_GetCollectionGetterName)
17233 {
17234 #ifdef dVAR
17235     dVAR; dXSARGS;
17236 #else
17237     dXSARGS;
17238 #endif
17239     if (items != 1)
17240        croak_xs_usage(cv,  "THIS");
17241     {
17242         wxPropertyAccessor *    THIS = (wxPropertyAccessor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PropertyAccessor" );
17243         wxString        RETVAL;
17244
17245         RETVAL = THIS->GetCollectionGetterName();
17246         ST(0) = sv_newmortal();
17247     WXSTRING_OUTPUT( RETVAL, ST(0) );
17248
17249     }
17250     XSRETURN(1);
17251 }
17252
17253
17254 XS(XS_Wx__PropertyAccessor_GetGetterName); /* prototype to pass -Wmissing-prototypes */
17255 XS(XS_Wx__PropertyAccessor_GetGetterName)
17256 {
17257 #ifdef dVAR
17258     dVAR; dXSARGS;
17259 #else
17260     dXSARGS;
17261 #endif
17262     if (items != 1)
17263        croak_xs_usage(cv,  "THIS");
17264     {
17265         wxPropertyAccessor *    THIS = (wxPropertyAccessor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PropertyAccessor" );
17266         wxString        RETVAL;
17267
17268         RETVAL = THIS->GetGetterName();
17269         ST(0) = sv_newmortal();
17270     WXSTRING_OUTPUT( RETVAL, ST(0) );
17271
17272     }
17273     XSRETURN(1);
17274 }
17275
17276
17277 XS(XS_Wx__PropertyAccessor_GetSetterName); /* prototype to pass -Wmissing-prototypes */
17278 XS(XS_Wx__PropertyAccessor_GetSetterName)
17279 {
17280 #ifdef dVAR
17281     dVAR; dXSARGS;
17282 #else
17283     dXSARGS;
17284 #endif
17285     if (items != 1)
17286        croak_xs_usage(cv,  "THIS");
17287     {
17288         wxPropertyAccessor *    THIS = (wxPropertyAccessor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PropertyAccessor" );
17289         wxString        RETVAL;
17290
17291         RETVAL = THIS->GetSetterName();
17292         ST(0) = sv_newmortal();
17293     WXSTRING_OUTPUT( RETVAL, ST(0) );
17294
17295     }
17296     XSRETURN(1);
17297 }
17298
17299
17300 XS(XS_Wx__PropertyAccessor_GetAdderName); /* prototype to pass -Wmissing-prototypes */
17301 XS(XS_Wx__PropertyAccessor_GetAdderName)
17302 {
17303 #ifdef dVAR
17304     dVAR; dXSARGS;
17305 #else
17306     dXSARGS;
17307 #endif
17308     if (items != 1)
17309        croak_xs_usage(cv,  "THIS");
17310     {
17311         wxPropertyAccessor *    THIS = (wxPropertyAccessor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PropertyAccessor" );
17312         wxString        RETVAL;
17313
17314         RETVAL = THIS->GetAdderName();
17315         ST(0) = sv_newmortal();
17316     WXSTRING_OUTPUT( RETVAL, ST(0) );
17317
17318     }
17319     XSRETURN(1);
17320 }
17321
17322 #endif
17323
17324 /* INCLUDE: Returning to 'Wx.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/ClassInfo.xs |' */
17325
17326
17327 /* INCLUDE:  Including 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Display.xsp |' from 'Wx.xs' */
17328
17329 #include <wx/vidmode.h>
17330 #include <wx/display.h>
17331 #define wxDefaultVideoModePtr (wxVideoMode*)&wxDefaultVideoMode
17332
17333 XS(XS_Wx__VideoMode_new); /* prototype to pass -Wmissing-prototypes */
17334 XS(XS_Wx__VideoMode_new)
17335 {
17336 #ifdef dVAR
17337     dVAR; dXSARGS;
17338 #else
17339     dXSARGS;
17340 #endif
17341     if (items < 1 || items > 5)
17342        croak_xs_usage(cv,  "CLASS, width = 0, height = 0, depth = 0, freq = 0");
17343     {
17344         int     width;
17345         int     height;
17346         int     depth;
17347         int     freq;
17348         char *  CLASS = (char *)SvPV_nolen(ST(0));
17349         wxVideoMode *   RETVAL;
17350
17351         if (items < 2)
17352             width = 0;
17353         else {
17354             width = (int)SvIV(ST(1));
17355         }
17356
17357         if (items < 3)
17358             height = 0;
17359         else {
17360             height = (int)SvIV(ST(2));
17361         }
17362
17363         if (items < 4)
17364             depth = 0;
17365         else {
17366             depth = (int)SvIV(ST(3));
17367         }
17368
17369         if (items < 5)
17370             freq = 0;
17371         else {
17372             freq = (int)SvIV(ST(4));
17373         }
17374
17375         RETVAL = new wxVideoMode(width, height, depth, freq);
17376         ST(0) = sv_newmortal();
17377     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::VideoMode" );
17378     wxPli_thread_sv_register( aTHX_ "Wx::VideoMode", RETVAL, ST(0) );
17379
17380     }
17381     XSRETURN(1);
17382 }
17383
17384
17385 XS(XS_Wx__VideoMode_CLONE); /* prototype to pass -Wmissing-prototypes */
17386 XS(XS_Wx__VideoMode_CLONE)
17387 {
17388 #ifdef dVAR
17389     dVAR; dXSARGS;
17390 #else
17391     dXSARGS;
17392 #endif
17393     if (items != 1)
17394        croak_xs_usage(cv,  "CLASS");
17395     {
17396         char *  CLASS = (char *)SvPV_nolen(ST(0));
17397     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
17398     }
17399     XSRETURN_EMPTY;
17400 }
17401
17402
17403 XS(XS_Wx__VideoMode_DESTROY); /* prototype to pass -Wmissing-prototypes */
17404 XS(XS_Wx__VideoMode_DESTROY)
17405 {
17406 #ifdef dVAR
17407     dVAR; dXSARGS;
17408 #else
17409     dXSARGS;
17410 #endif
17411     if (items != 1)
17412        croak_xs_usage(cv,  "THIS");
17413     {
17414         wxVideoMode *    THIS = (wxVideoMode *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::VideoMode" );
17415       wxPli_thread_sv_unregister( aTHX_ "Wx::VideoMode", THIS, ST(0) );
17416                  delete THIS;
17417     }
17418     XSRETURN_EMPTY;
17419 }
17420
17421
17422 XS(XS_Wx__VideoMode_Matches); /* prototype to pass -Wmissing-prototypes */
17423 XS(XS_Wx__VideoMode_Matches)
17424 {
17425 #ifdef dVAR
17426     dVAR; dXSARGS;
17427 #else
17428     dXSARGS;
17429 #endif
17430     if (items != 2)
17431        croak_xs_usage(cv,  "THIS, other");
17432     {
17433         wxVideoMode*    other = (wxVideoMode *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::VideoMode" );
17434         wxVideoMode *    THIS = (wxVideoMode *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::VideoMode" );
17435         bool    RETVAL;
17436     RETVAL = THIS->Matches( *( other ) );
17437         ST(0) = boolSV(RETVAL);
17438         sv_2mortal(ST(0));
17439     }
17440     XSRETURN(1);
17441 }
17442
17443
17444 XS(XS_Wx__VideoMode_GetWidth); /* prototype to pass -Wmissing-prototypes */
17445 XS(XS_Wx__VideoMode_GetWidth)
17446 {
17447 #ifdef dVAR
17448     dVAR; dXSARGS;
17449 #else
17450     dXSARGS;
17451 #endif
17452     if (items != 1)
17453        croak_xs_usage(cv,  "THIS");
17454     {
17455         wxVideoMode *    THIS = (wxVideoMode *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::VideoMode" );
17456         int     RETVAL;
17457         dXSTARG;
17458
17459         RETVAL = THIS->GetWidth();
17460         XSprePUSH; PUSHi((IV)RETVAL);
17461     }
17462     XSRETURN(1);
17463 }
17464
17465
17466 XS(XS_Wx__VideoMode_GetHeight); /* prototype to pass -Wmissing-prototypes */
17467 XS(XS_Wx__VideoMode_GetHeight)
17468 {
17469 #ifdef dVAR
17470     dVAR; dXSARGS;
17471 #else
17472     dXSARGS;
17473 #endif
17474     if (items != 1)
17475        croak_xs_usage(cv,  "THIS");
17476     {
17477         wxVideoMode *    THIS = (wxVideoMode *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::VideoMode" );
17478         int     RETVAL;
17479         dXSTARG;
17480
17481         RETVAL = THIS->GetHeight();
17482         XSprePUSH; PUSHi((IV)RETVAL);
17483     }
17484     XSRETURN(1);
17485 }
17486
17487
17488 XS(XS_Wx__VideoMode_GetDepth); /* prototype to pass -Wmissing-prototypes */
17489 XS(XS_Wx__VideoMode_GetDepth)
17490 {
17491 #ifdef dVAR
17492     dVAR; dXSARGS;
17493 #else
17494     dXSARGS;
17495 #endif
17496     if (items != 1)
17497        croak_xs_usage(cv,  "THIS");
17498     {
17499         wxVideoMode *    THIS = (wxVideoMode *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::VideoMode" );
17500         int     RETVAL;
17501         dXSTARG;
17502
17503         RETVAL = THIS->GetDepth();
17504         XSprePUSH; PUSHi((IV)RETVAL);
17505     }
17506     XSRETURN(1);
17507 }
17508
17509
17510 XS(XS_Wx__VideoMode_IsOk); /* prototype to pass -Wmissing-prototypes */
17511 XS(XS_Wx__VideoMode_IsOk)
17512 {
17513 #ifdef dVAR
17514     dVAR; dXSARGS;
17515 #else
17516     dXSARGS;
17517 #endif
17518     if (items != 1)
17519        croak_xs_usage(cv,  "THIS");
17520     {
17521         wxVideoMode *    THIS = (wxVideoMode *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::VideoMode" );
17522         bool    RETVAL;
17523
17524         RETVAL = THIS->IsOk();
17525         ST(0) = boolSV(RETVAL);
17526         sv_2mortal(ST(0));
17527     }
17528     XSRETURN(1);
17529 }
17530
17531
17532 XS(XS_Wx__Display_new); /* prototype to pass -Wmissing-prototypes */
17533 XS(XS_Wx__Display_new)
17534 {
17535 #ifdef dVAR
17536     dVAR; dXSARGS;
17537 #else
17538     dXSARGS;
17539 #endif
17540     if (items < 1 || items > 2)
17541        croak_xs_usage(cv,  "CLASS, n = 0");
17542     {
17543         unsigned int    n;
17544         char *  CLASS = (char *)SvPV_nolen(ST(0));
17545         wxDisplay *     RETVAL;
17546
17547         if (items < 2)
17548             n = 0;
17549         else {
17550     n = (unsigned int)SvUV( ST(1) );
17551         }
17552
17553         RETVAL = new wxDisplay(n);
17554         ST(0) = sv_newmortal();
17555     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Display" );
17556     wxPli_thread_sv_register( aTHX_ "Wx::Display", RETVAL, ST(0) );
17557
17558     }
17559     XSRETURN(1);
17560 }
17561
17562
17563 XS(XS_Wx__Display_CLONE); /* prototype to pass -Wmissing-prototypes */
17564 XS(XS_Wx__Display_CLONE)
17565 {
17566 #ifdef dVAR
17567     dVAR; dXSARGS;
17568 #else
17569     dXSARGS;
17570 #endif
17571     if (items != 1)
17572        croak_xs_usage(cv,  "CLASS");
17573     {
17574         char *  CLASS = (char *)SvPV_nolen(ST(0));
17575     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
17576     }
17577     XSRETURN_EMPTY;
17578 }
17579
17580
17581 XS(XS_Wx__Display_DESTROY); /* prototype to pass -Wmissing-prototypes */
17582 XS(XS_Wx__Display_DESTROY)
17583 {
17584 #ifdef dVAR
17585     dVAR; dXSARGS;
17586 #else
17587     dXSARGS;
17588 #endif
17589     if (items != 1)
17590        croak_xs_usage(cv,  "THIS");
17591     {
17592         wxDisplay *    THIS = (wxDisplay *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Display" );
17593       wxPli_thread_sv_unregister( aTHX_ "Wx::Display", THIS, ST(0) );
17594                  delete THIS;
17595     }
17596     XSRETURN_EMPTY;
17597 }
17598
17599
17600 XS(XS_Wx__Display_GetCount); /* prototype to pass -Wmissing-prototypes */
17601 XS(XS_Wx__Display_GetCount)
17602 {
17603 #ifdef dVAR
17604     dVAR; dXSARGS;
17605 #else
17606     dXSARGS;
17607 #endif
17608     if (items != 0)
17609        croak_xs_usage(cv,  "");
17610     {
17611         int     RETVAL;
17612         dXSTARG;
17613     RETVAL = wxDisplay::GetCount();
17614         XSprePUSH; PUSHi((IV)RETVAL);
17615     }
17616     XSRETURN(1);
17617 }
17618
17619
17620 XS(XS_Wx__Display_GetFromPoint); /* prototype to pass -Wmissing-prototypes */
17621 XS(XS_Wx__Display_GetFromPoint)
17622 {
17623 #ifdef dVAR
17624     dVAR; dXSARGS;
17625 #else
17626     dXSARGS;
17627 #endif
17628     if (items != 1)
17629        croak_xs_usage(cv,  "point");
17630     {
17631         wxPoint    point = wxPli_sv_2_wxpoint( aTHX_ ST(0) );
17632         int     RETVAL;
17633         dXSTARG;
17634     RETVAL = wxDisplay::GetFromPoint( point );
17635         XSprePUSH; PUSHi((IV)RETVAL);
17636     }
17637     XSRETURN(1);
17638 }
17639
17640 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
17641 #define XSubPPtmpAADO 1
17642
17643
17644 XS(XS_Wx__Display_GetFromWindow); /* prototype to pass -Wmissing-prototypes */
17645 XS(XS_Wx__Display_GetFromWindow)
17646 {
17647 #ifdef dVAR
17648     dVAR; dXSARGS;
17649 #else
17650     dXSARGS;
17651 #endif
17652     if (items != 1)
17653        croak_xs_usage(cv,  "window");
17654     {
17655         wxWindow*    window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Window" );
17656         int     RETVAL;
17657         dXSTARG;
17658     RETVAL = wxDisplay::GetFromWindow( window );
17659         XSprePUSH; PUSHi((IV)RETVAL);
17660     }
17661     XSRETURN(1);
17662 }
17663
17664 #endif
17665
17666 XS(XS_Wx__Display_IsOk); /* prototype to pass -Wmissing-prototypes */
17667 XS(XS_Wx__Display_IsOk)
17668 {
17669 #ifdef dVAR
17670     dVAR; dXSARGS;
17671 #else
17672     dXSARGS;
17673 #endif
17674     if (items != 1)
17675        croak_xs_usage(cv,  "THIS");
17676     {
17677         wxDisplay *    THIS = (wxDisplay *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Display" );
17678         bool    RETVAL;
17679
17680         RETVAL = THIS->IsOk();
17681         ST(0) = boolSV(RETVAL);
17682         sv_2mortal(ST(0));
17683     }
17684     XSRETURN(1);
17685 }
17686
17687
17688 XS(XS_Wx__Display_GetGeometry); /* prototype to pass -Wmissing-prototypes */
17689 XS(XS_Wx__Display_GetGeometry)
17690 {
17691 #ifdef dVAR
17692     dVAR; dXSARGS;
17693 #else
17694     dXSARGS;
17695 #endif
17696     if (items != 1)
17697        croak_xs_usage(cv,  "THIS");
17698     {
17699         wxDisplay *    THIS = (wxDisplay *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Display" );
17700         wxRect *        RETVAL;
17701     RETVAL = new wxRect( THIS->GetGeometry() );
17702         ST(0) = sv_newmortal();
17703     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
17704     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
17705
17706     }
17707     XSRETURN(1);
17708 }
17709
17710 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
17711 #define XSubPPtmpAADP 1
17712
17713
17714 XS(XS_Wx__Display_GetClientArea); /* prototype to pass -Wmissing-prototypes */
17715 XS(XS_Wx__Display_GetClientArea)
17716 {
17717 #ifdef dVAR
17718     dVAR; dXSARGS;
17719 #else
17720     dXSARGS;
17721 #endif
17722     if (items != 1)
17723        croak_xs_usage(cv,  "THIS");
17724     {
17725         wxDisplay *    THIS = (wxDisplay *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Display" );
17726         wxRect *        RETVAL;
17727     RETVAL = new wxRect( THIS->GetClientArea() );
17728         ST(0) = sv_newmortal();
17729     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
17730     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
17731
17732     }
17733     XSRETURN(1);
17734 }
17735
17736 #endif
17737
17738 XS(XS_Wx__Display_GetName); /* prototype to pass -Wmissing-prototypes */
17739 XS(XS_Wx__Display_GetName)
17740 {
17741 #ifdef dVAR
17742     dVAR; dXSARGS;
17743 #else
17744     dXSARGS;
17745 #endif
17746     if (items != 1)
17747        croak_xs_usage(cv,  "THIS");
17748     {
17749         wxDisplay *    THIS = (wxDisplay *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Display" );
17750         wxString        RETVAL;
17751
17752         RETVAL = THIS->GetName();
17753         ST(0) = sv_newmortal();
17754     WXSTRING_OUTPUT( RETVAL, ST(0) );
17755
17756     }
17757     XSRETURN(1);
17758 }
17759
17760
17761 XS(XS_Wx__Display_IsPrimary); /* prototype to pass -Wmissing-prototypes */
17762 XS(XS_Wx__Display_IsPrimary)
17763 {
17764 #ifdef dVAR
17765     dVAR; dXSARGS;
17766 #else
17767     dXSARGS;
17768 #endif
17769     if (items != 1)
17770        croak_xs_usage(cv,  "THIS");
17771     {
17772         wxDisplay *    THIS = (wxDisplay *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Display" );
17773         bool    RETVAL;
17774
17775         RETVAL = THIS->IsPrimary();
17776         ST(0) = boolSV(RETVAL);
17777         sv_2mortal(ST(0));
17778     }
17779     XSRETURN(1);
17780 }
17781
17782 #if wxUSE_DISPLAY
17783 #define XSubPPtmpAADQ 1
17784
17785
17786 XS(XS_Wx__Display_GetModes); /* prototype to pass -Wmissing-prototypes */
17787 XS(XS_Wx__Display_GetModes)
17788 {
17789 #ifdef dVAR
17790     dVAR; dXSARGS;
17791 #else
17792     dXSARGS;
17793 #endif
17794     if (items < 1 || items > 2)
17795        croak_xs_usage(cv,  "THIS, videoMode = wxDefaultVideoModePtr");
17796     PERL_UNUSED_VAR(ax); /* -Wall */
17797     SP -= items;
17798     {
17799         wxVideoMode*    videoMode;
17800         wxDisplay *    THIS = (wxDisplay *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Display" );
17801
17802         if (items < 2)
17803             videoMode = wxDefaultVideoModePtr;
17804         else {
17805     videoMode = (wxVideoMode *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::VideoMode" );
17806         }
17807     wxArrayVideoModes modes = THIS->GetModes( *videoMode );
17808     size_t mx = modes.GetCount();
17809     EXTEND( SP, int(mx) );
17810     for( size_t i = 0; i < mx; ++i )
17811     {
17812         wxVideoMode* mode = new wxVideoMode( modes[i] );
17813         PUSHs( wxPli_non_object_2_sv( aTHX_ sv_newmortal(),
17814                                       mode, "Wx::VideoMode" ) );
17815     }
17816         PUTBACK;
17817         return;
17818     }
17819 }
17820
17821
17822 XS(XS_Wx__Display_GetCurrentMode); /* prototype to pass -Wmissing-prototypes */
17823 XS(XS_Wx__Display_GetCurrentMode)
17824 {
17825 #ifdef dVAR
17826     dVAR; dXSARGS;
17827 #else
17828     dXSARGS;
17829 #endif
17830     if (items != 1)
17831        croak_xs_usage(cv,  "THIS");
17832     {
17833         wxDisplay *    THIS = (wxDisplay *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Display" );
17834         wxVideoMode *   RETVAL;
17835     RETVAL = new wxVideoMode( THIS->GetCurrentMode() );
17836         ST(0) = sv_newmortal();
17837     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::VideoMode" );
17838     wxPli_thread_sv_register( aTHX_ "Wx::VideoMode", RETVAL, ST(0) );
17839
17840     }
17841     XSRETURN(1);
17842 }
17843
17844
17845 XS(XS_Wx__Display_ChangeMode); /* prototype to pass -Wmissing-prototypes */
17846 XS(XS_Wx__Display_ChangeMode)
17847 {
17848 #ifdef dVAR
17849     dVAR; dXSARGS;
17850 #else
17851     dXSARGS;
17852 #endif
17853     if (items < 1 || items > 2)
17854        croak_xs_usage(cv,  "THIS, mode = wxDefaultVideoModePtr");
17855     {
17856         wxVideoMode*    mode;
17857         wxDisplay *    THIS = (wxDisplay *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Display" );
17858         bool    RETVAL;
17859
17860         if (items < 2)
17861             mode = wxDefaultVideoModePtr;
17862         else {
17863     mode = (wxVideoMode *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::VideoMode" );
17864         }
17865     RETVAL = THIS->ChangeMode( *( mode ) );
17866         ST(0) = boolSV(RETVAL);
17867         sv_2mortal(ST(0));
17868     }
17869     XSRETURN(1);
17870 }
17871
17872
17873 XS(XS_Wx__Display_ResetMode); /* prototype to pass -Wmissing-prototypes */
17874 XS(XS_Wx__Display_ResetMode)
17875 {
17876 #ifdef dVAR
17877     dVAR; dXSARGS;
17878 #else
17879     dXSARGS;
17880 #endif
17881     if (items != 1)
17882        croak_xs_usage(cv,  "THIS");
17883     {
17884         wxDisplay *    THIS = (wxDisplay *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Display" );
17885
17886         THIS->ResetMode();
17887     }
17888     XSRETURN_EMPTY;
17889 }
17890
17891 #endif // wxUSE_DISPLAY
17892
17893 /* INCLUDE: Returning to 'Wx.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Display.xsp |' */
17894
17895
17896 /* INCLUDE:  Including 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/StandardPaths.xsp |' from 'Wx.xs' */
17897
17898 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
17899 #include <wx/stdpaths.h>
17900 #define ResourceCat wxStandardPathsBase::ResourceCat
17901 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
17902 #define XSubPPtmpAADR 1
17903
17904
17905 XS(XS_Wx__StandardPaths_GetExecutablePath); /* prototype to pass -Wmissing-prototypes */
17906 XS(XS_Wx__StandardPaths_GetExecutablePath)
17907 {
17908 #ifdef dVAR
17909     dVAR; dXSARGS;
17910 #else
17911     dXSARGS;
17912 #endif
17913     if (items != 1)
17914        croak_xs_usage(cv,  "THIS");
17915     {
17916         wxStandardPaths *    THIS = (wxStandardPaths *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::StandardPaths" );
17917         wxString        RETVAL;
17918
17919         RETVAL = THIS->GetExecutablePath();
17920         ST(0) = sv_newmortal();
17921     WXSTRING_OUTPUT( RETVAL, ST(0) );
17922
17923     }
17924     XSRETURN(1);
17925 }
17926
17927 #endif
17928 #define XSubPPtmpAADS 1
17929
17930
17931 XS(XS_Wx__StandardPaths_GetConfigDir); /* prototype to pass -Wmissing-prototypes */
17932 XS(XS_Wx__StandardPaths_GetConfigDir)
17933 {
17934 #ifdef dVAR
17935     dVAR; dXSARGS;
17936 #else
17937     dXSARGS;
17938 #endif
17939     if (items != 1)
17940        croak_xs_usage(cv,  "THIS");
17941     {
17942         wxStandardPaths *    THIS = (wxStandardPaths *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::StandardPaths" );
17943         wxString        RETVAL;
17944
17945         RETVAL = THIS->GetConfigDir();
17946         ST(0) = sv_newmortal();
17947     WXSTRING_OUTPUT( RETVAL, ST(0) );
17948
17949     }
17950     XSRETURN(1);
17951 }
17952
17953
17954 XS(XS_Wx__StandardPaths_GetUserConfigDir); /* prototype to pass -Wmissing-prototypes */
17955 XS(XS_Wx__StandardPaths_GetUserConfigDir)
17956 {
17957 #ifdef dVAR
17958     dVAR; dXSARGS;
17959 #else
17960     dXSARGS;
17961 #endif
17962     if (items != 1)
17963        croak_xs_usage(cv,  "THIS");
17964     {
17965         wxStandardPaths *    THIS = (wxStandardPaths *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::StandardPaths" );
17966         wxString        RETVAL;
17967
17968         RETVAL = THIS->GetUserConfigDir();
17969         ST(0) = sv_newmortal();
17970     WXSTRING_OUTPUT( RETVAL, ST(0) );
17971
17972     }
17973     XSRETURN(1);
17974 }
17975
17976
17977 XS(XS_Wx__StandardPaths_GetDataDir); /* prototype to pass -Wmissing-prototypes */
17978 XS(XS_Wx__StandardPaths_GetDataDir)
17979 {
17980 #ifdef dVAR
17981     dVAR; dXSARGS;
17982 #else
17983     dXSARGS;
17984 #endif
17985     if (items != 1)
17986        croak_xs_usage(cv,  "THIS");
17987     {
17988         wxStandardPaths *    THIS = (wxStandardPaths *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::StandardPaths" );
17989         wxString        RETVAL;
17990
17991         RETVAL = THIS->GetDataDir();
17992         ST(0) = sv_newmortal();
17993     WXSTRING_OUTPUT( RETVAL, ST(0) );
17994
17995     }
17996     XSRETURN(1);
17997 }
17998
17999
18000 XS(XS_Wx__StandardPaths_GetLocalDataDir); /* prototype to pass -Wmissing-prototypes */
18001 XS(XS_Wx__StandardPaths_GetLocalDataDir)
18002 {
18003 #ifdef dVAR
18004     dVAR; dXSARGS;
18005 #else
18006     dXSARGS;
18007 #endif
18008     if (items != 1)
18009        croak_xs_usage(cv,  "THIS");
18010     {
18011         wxStandardPaths *    THIS = (wxStandardPaths *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::StandardPaths" );
18012         wxString        RETVAL;
18013
18014         RETVAL = THIS->GetLocalDataDir();
18015         ST(0) = sv_newmortal();
18016     WXSTRING_OUTPUT( RETVAL, ST(0) );
18017
18018     }
18019     XSRETURN(1);
18020 }
18021
18022
18023 XS(XS_Wx__StandardPaths_GetUserDataDir); /* prototype to pass -Wmissing-prototypes */
18024 XS(XS_Wx__StandardPaths_GetUserDataDir)
18025 {
18026 #ifdef dVAR
18027     dVAR; dXSARGS;
18028 #else
18029     dXSARGS;
18030 #endif
18031     if (items != 1)
18032        croak_xs_usage(cv,  "THIS");
18033     {
18034         wxStandardPaths *    THIS = (wxStandardPaths *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::StandardPaths" );
18035         wxString        RETVAL;
18036
18037         RETVAL = THIS->GetUserDataDir();
18038         ST(0) = sv_newmortal();
18039     WXSTRING_OUTPUT( RETVAL, ST(0) );
18040
18041     }
18042     XSRETURN(1);
18043 }
18044
18045
18046 XS(XS_Wx__StandardPaths_GetUserLocalDataDir); /* prototype to pass -Wmissing-prototypes */
18047 XS(XS_Wx__StandardPaths_GetUserLocalDataDir)
18048 {
18049 #ifdef dVAR
18050     dVAR; dXSARGS;
18051 #else
18052     dXSARGS;
18053 #endif
18054     if (items != 1)
18055        croak_xs_usage(cv,  "THIS");
18056     {
18057         wxStandardPaths *    THIS = (wxStandardPaths *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::StandardPaths" );
18058         wxString        RETVAL;
18059
18060         RETVAL = THIS->GetUserLocalDataDir();
18061         ST(0) = sv_newmortal();
18062     WXSTRING_OUTPUT( RETVAL, ST(0) );
18063
18064     }
18065     XSRETURN(1);
18066 }
18067
18068
18069 XS(XS_Wx__StandardPaths_GetPluginsDir); /* prototype to pass -Wmissing-prototypes */
18070 XS(XS_Wx__StandardPaths_GetPluginsDir)
18071 {
18072 #ifdef dVAR
18073     dVAR; dXSARGS;
18074 #else
18075     dXSARGS;
18076 #endif
18077     if (items != 1)
18078        croak_xs_usage(cv,  "THIS");
18079     {
18080         wxStandardPaths *    THIS = (wxStandardPaths *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::StandardPaths" );
18081         wxString        RETVAL;
18082
18083         RETVAL = THIS->GetPluginsDir();
18084         ST(0) = sv_newmortal();
18085     WXSTRING_OUTPUT( RETVAL, ST(0) );
18086
18087     }
18088     XSRETURN(1);
18089 }
18090
18091 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
18092 #define XSubPPtmpAADT 1
18093
18094
18095 XS(XS_Wx__StandardPaths_GetResourcesDir); /* prototype to pass -Wmissing-prototypes */
18096 XS(XS_Wx__StandardPaths_GetResourcesDir)
18097 {
18098 #ifdef dVAR
18099     dVAR; dXSARGS;
18100 #else
18101     dXSARGS;
18102 #endif
18103     if (items != 1)
18104        croak_xs_usage(cv,  "THIS");
18105     {
18106         wxStandardPaths *    THIS = (wxStandardPaths *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::StandardPaths" );
18107         wxString        RETVAL;
18108
18109         RETVAL = THIS->GetResourcesDir();
18110         ST(0) = sv_newmortal();
18111     WXSTRING_OUTPUT( RETVAL, ST(0) );
18112
18113     }
18114     XSRETURN(1);
18115 }
18116
18117
18118 XS(XS_Wx__StandardPaths_GetLocalizedResourcesDir); /* prototype to pass -Wmissing-prototypes */
18119 XS(XS_Wx__StandardPaths_GetLocalizedResourcesDir)
18120 {
18121 #ifdef dVAR
18122     dVAR; dXSARGS;
18123 #else
18124     dXSARGS;
18125 #endif
18126     if (items < 2 || items > 3)
18127        croak_xs_usage(cv,  "THIS, lang, category = wxStandardPathsBase::ResourceCat_None");
18128     {
18129         wxString        lang;
18130         ResourceCat     category;
18131         wxStandardPaths *    THIS = (wxStandardPaths *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::StandardPaths" );
18132         wxString        RETVAL;
18133
18134     WXSTRING_INPUT( lang, wxString, ST(1) );
18135
18136         if (items < 3)
18137             category = wxStandardPathsBase::ResourceCat_None;
18138         else {
18139             category = (ResourceCat)SvIV(ST(2));
18140         }
18141
18142         RETVAL = THIS->GetLocalizedResourcesDir(lang, category);
18143         ST(0) = sv_newmortal();
18144     WXSTRING_OUTPUT( RETVAL, ST(0) );
18145
18146     }
18147     XSRETURN(1);
18148 }
18149
18150
18151 XS(XS_Wx__StandardPaths_GetDocumentsDir); /* prototype to pass -Wmissing-prototypes */
18152 XS(XS_Wx__StandardPaths_GetDocumentsDir)
18153 {
18154 #ifdef dVAR
18155     dVAR; dXSARGS;
18156 #else
18157     dXSARGS;
18158 #endif
18159     if (items != 1)
18160        croak_xs_usage(cv,  "THIS");
18161     {
18162         wxStandardPaths *    THIS = (wxStandardPaths *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::StandardPaths" );
18163         wxString        RETVAL;
18164
18165         RETVAL = THIS->GetDocumentsDir();
18166         ST(0) = sv_newmortal();
18167     WXSTRING_OUTPUT( RETVAL, ST(0) );
18168
18169     }
18170     XSRETURN(1);
18171 }
18172
18173
18174 XS(XS_Wx__StandardPaths_GetTempDir); /* prototype to pass -Wmissing-prototypes */
18175 XS(XS_Wx__StandardPaths_GetTempDir)
18176 {
18177 #ifdef dVAR
18178     dVAR; dXSARGS;
18179 #else
18180     dXSARGS;
18181 #endif
18182     if (items != 1)
18183        croak_xs_usage(cv,  "THIS");
18184     {
18185         wxStandardPaths *    THIS = (wxStandardPaths *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::StandardPaths" );
18186         wxString        RETVAL;
18187
18188         RETVAL = THIS->GetTempDir();
18189         ST(0) = sv_newmortal();
18190     WXSTRING_OUTPUT( RETVAL, ST(0) );
18191
18192     }
18193     XSRETURN(1);
18194 }
18195
18196 #endif
18197 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
18198 #define XSubPPtmpAADU 1
18199
18200
18201 XS(XS_Wx__StandardPaths_UseAppInfo); /* prototype to pass -Wmissing-prototypes */
18202 XS(XS_Wx__StandardPaths_UseAppInfo)
18203 {
18204 #ifdef dVAR
18205     dVAR; dXSARGS;
18206 #else
18207     dXSARGS;
18208 #endif
18209     if (items != 2)
18210        croak_xs_usage(cv,  "THIS, info");
18211     {
18212         int     info = (int)SvIV(ST(1));
18213         wxStandardPaths *    THIS = (wxStandardPaths *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::StandardPaths" );
18214
18215         THIS->UseAppInfo(info);
18216     }
18217     XSRETURN_EMPTY;
18218 }
18219
18220 #endif
18221
18222 XS(XS_Wx__StandardPaths_Get); /* prototype to pass -Wmissing-prototypes */
18223 XS(XS_Wx__StandardPaths_Get)
18224 {
18225 #ifdef dVAR
18226     dVAR; dXSARGS;
18227 #else
18228     dXSARGS;
18229 #endif
18230     if (items != 0)
18231        croak_xs_usage(cv,  "");
18232     {
18233         wxStandardPaths *       RETVAL;
18234     RETVAL = (wxStandardPaths*)&wxStandardPaths::Get();
18235         ST(0) = sv_newmortal();
18236     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::StandardPaths" );
18237
18238     }
18239     XSRETURN(1);
18240 }
18241
18242 #endif
18243
18244 /* INCLUDE: Returning to 'Wx.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/StandardPaths.xsp |' */
18245
18246
18247 /* INCLUDE:  Including 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Variant.xsp |' from 'Wx.xs' */
18248
18249 #include <wx/variant.h>
18250
18251 XS(XS_Wx__Variant_new); /* prototype to pass -Wmissing-prototypes */
18252 XS(XS_Wx__Variant_new)
18253 {
18254 #ifdef dVAR
18255     dVAR; dXSARGS;
18256 #else
18257     dXSARGS;
18258 #endif
18259     if (items != 2)
18260        croak_xs_usage(cv,  "CLASS, sv");
18261     {
18262         SV*     sv = ST(1);
18263         char *  CLASS = (char *)SvPV_nolen(ST(0));
18264         wxVariant *     RETVAL;
18265      RETVAL = new wxVariant( wxPli_sv_2_wxvariant( aTHX_ sv ) );
18266
18267         ST(0) = sv_newmortal();
18268     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Variant" );
18269     wxPli_thread_sv_register( aTHX_ "Wx::Variant", RETVAL, ST(0) );
18270
18271     }
18272     XSRETURN(1);
18273 }
18274
18275
18276 XS(XS_Wx__Variant_CLONE); /* prototype to pass -Wmissing-prototypes */
18277 XS(XS_Wx__Variant_CLONE)
18278 {
18279 #ifdef dVAR
18280     dVAR; dXSARGS;
18281 #else
18282     dXSARGS;
18283 #endif
18284     if (items != 1)
18285        croak_xs_usage(cv,  "CLASS");
18286     {
18287         char *  CLASS = (char *)SvPV_nolen(ST(0));
18288     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
18289     }
18290     XSRETURN_EMPTY;
18291 }
18292
18293
18294 XS(XS_Wx__Variant_DESTROY); /* prototype to pass -Wmissing-prototypes */
18295 XS(XS_Wx__Variant_DESTROY)
18296 {
18297 #ifdef dVAR
18298     dVAR; dXSARGS;
18299 #else
18300     dXSARGS;
18301 #endif
18302     if (items != 1)
18303        croak_xs_usage(cv,  "THIS");
18304     {
18305         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18306     wxPli_thread_sv_unregister( aTHX_ "Wx::Variant", THIS, ST(0) );
18307     if( wxPli_object_is_deleteable( aTHX_ ST(0) ) )
18308         delete THIS;
18309     }
18310     XSRETURN_EMPTY;
18311 }
18312
18313
18314 XS(XS_Wx__Variant_Append); /* prototype to pass -Wmissing-prototypes */
18315 XS(XS_Wx__Variant_Append)
18316 {
18317 #ifdef dVAR
18318     dVAR; dXSARGS;
18319 #else
18320     dXSARGS;
18321 #endif
18322     if (items != 2)
18323        croak_xs_usage(cv,  "THIS, variant");
18324     {
18325         wxVariant*    variant = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Variant" );
18326         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18327     THIS->Append( *( variant ) );
18328     }
18329     XSRETURN_EMPTY;
18330 }
18331
18332 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
18333 #define XSubPPtmpAADV 1
18334
18335
18336 XS(XS_Wx__Variant_Clear); /* prototype to pass -Wmissing-prototypes */
18337 XS(XS_Wx__Variant_Clear)
18338 {
18339 #ifdef dVAR
18340     dVAR; dXSARGS;
18341 #else
18342     dXSARGS;
18343 #endif
18344     if (items != 1)
18345        croak_xs_usage(cv,  "THIS");
18346     {
18347         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18348
18349         THIS->Clear();
18350     }
18351     XSRETURN_EMPTY;
18352 }
18353
18354 #endif
18355
18356 XS(XS_Wx__Variant_ClearList); /* prototype to pass -Wmissing-prototypes */
18357 XS(XS_Wx__Variant_ClearList)
18358 {
18359 #ifdef dVAR
18360     dVAR; dXSARGS;
18361 #else
18362     dXSARGS;
18363 #endif
18364     if (items != 1)
18365        croak_xs_usage(cv,  "THIS");
18366     {
18367         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18368
18369         THIS->ClearList();
18370     }
18371     XSRETURN_EMPTY;
18372 }
18373
18374
18375 XS(XS_Wx__Variant_Delete); /* prototype to pass -Wmissing-prototypes */
18376 XS(XS_Wx__Variant_Delete)
18377 {
18378 #ifdef dVAR
18379     dVAR; dXSARGS;
18380 #else
18381     dXSARGS;
18382 #endif
18383     if (items != 2)
18384        croak_xs_usage(cv,  "THIS, item");
18385     {
18386         size_t    item = (size_t)SvUV( ST(1) );
18387         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18388         bool    RETVAL;
18389
18390         RETVAL = THIS->Delete(item);
18391         ST(0) = boolSV(RETVAL);
18392         sv_2mortal(ST(0));
18393     }
18394     XSRETURN(1);
18395 }
18396
18397
18398 XS(XS_Wx__Variant_GetCount); /* prototype to pass -Wmissing-prototypes */
18399 XS(XS_Wx__Variant_GetCount)
18400 {
18401 #ifdef dVAR
18402     dVAR; dXSARGS;
18403 #else
18404     dXSARGS;
18405 #endif
18406     if (items != 1)
18407        croak_xs_usage(cv,  "THIS");
18408     {
18409         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18410         size_t  RETVAL;
18411         dXSTARG;
18412
18413         RETVAL = THIS->GetCount();
18414         XSprePUSH; PUSHu((UV)RETVAL );
18415     }
18416     XSRETURN(1);
18417 }
18418
18419
18420 XS(XS_Wx__Variant_GetBool); /* prototype to pass -Wmissing-prototypes */
18421 XS(XS_Wx__Variant_GetBool)
18422 {
18423 #ifdef dVAR
18424     dVAR; dXSARGS;
18425 #else
18426     dXSARGS;
18427 #endif
18428     if (items != 1)
18429        croak_xs_usage(cv,  "THIS");
18430     {
18431         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18432         bool    RETVAL;
18433
18434         RETVAL = THIS->GetBool();
18435         ST(0) = boolSV(RETVAL);
18436         sv_2mortal(ST(0));
18437     }
18438     XSRETURN(1);
18439 }
18440
18441
18442 XS(XS_Wx__Variant_GetChar); /* prototype to pass -Wmissing-prototypes */
18443 XS(XS_Wx__Variant_GetChar)
18444 {
18445 #ifdef dVAR
18446     dVAR; dXSARGS;
18447 #else
18448     dXSARGS;
18449 #endif
18450     if (items != 1)
18451        croak_xs_usage(cv,  "THIS");
18452     {
18453         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18454         wxChar  RETVAL;
18455         dXSTARG;
18456
18457         RETVAL = THIS->GetChar();
18458         XSprePUSH; PUSHi((IV)RETVAL);
18459     }
18460     XSRETURN(1);
18461 }
18462
18463
18464 XS(XS_Wx__Variant_GetDateTime); /* prototype to pass -Wmissing-prototypes */
18465 XS(XS_Wx__Variant_GetDateTime)
18466 {
18467 #ifdef dVAR
18468     dVAR; dXSARGS;
18469 #else
18470     dXSARGS;
18471 #endif
18472     if (items != 1)
18473        croak_xs_usage(cv,  "THIS");
18474     {
18475         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18476         wxDateTime *    RETVAL;
18477     RETVAL = new wxDateTime( THIS->GetDateTime() );
18478         ST(0) = sv_newmortal();
18479     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::DateTime" );
18480
18481     }
18482     XSRETURN(1);
18483 }
18484
18485
18486 XS(XS_Wx__Variant_GetString); /* prototype to pass -Wmissing-prototypes */
18487 XS(XS_Wx__Variant_GetString)
18488 {
18489 #ifdef dVAR
18490     dVAR; dXSARGS;
18491 #else
18492     dXSARGS;
18493 #endif
18494     if (items != 1)
18495        croak_xs_usage(cv,  "THIS");
18496     {
18497         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18498         wxString        RETVAL;
18499
18500         RETVAL = THIS->GetString();
18501         ST(0) = sv_newmortal();
18502     WXSTRING_OUTPUT( RETVAL, ST(0) );
18503
18504     }
18505     XSRETURN(1);
18506 }
18507
18508
18509 XS(XS_Wx__Variant_GetType); /* prototype to pass -Wmissing-prototypes */
18510 XS(XS_Wx__Variant_GetType)
18511 {
18512 #ifdef dVAR
18513     dVAR; dXSARGS;
18514 #else
18515     dXSARGS;
18516 #endif
18517     if (items != 1)
18518        croak_xs_usage(cv,  "THIS");
18519     {
18520         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18521         wxString        RETVAL;
18522
18523         RETVAL = THIS->GetType();
18524         ST(0) = sv_newmortal();
18525     WXSTRING_OUTPUT( RETVAL, ST(0) );
18526
18527     }
18528     XSRETURN(1);
18529 }
18530
18531
18532 XS(XS_Wx__Variant_GetLong); /* prototype to pass -Wmissing-prototypes */
18533 XS(XS_Wx__Variant_GetLong)
18534 {
18535 #ifdef dVAR
18536     dVAR; dXSARGS;
18537 #else
18538     dXSARGS;
18539 #endif
18540     if (items != 1)
18541        croak_xs_usage(cv,  "THIS");
18542     {
18543         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18544         long    RETVAL;
18545         dXSTARG;
18546
18547         RETVAL = THIS->GetLong();
18548         XSprePUSH; PUSHi((IV)RETVAL);
18549     }
18550     XSRETURN(1);
18551 }
18552
18553
18554 XS(XS_Wx__Variant_GetDouble); /* prototype to pass -Wmissing-prototypes */
18555 XS(XS_Wx__Variant_GetDouble)
18556 {
18557 #ifdef dVAR
18558     dVAR; dXSARGS;
18559 #else
18560     dXSARGS;
18561 #endif
18562     if (items != 1)
18563        croak_xs_usage(cv,  "THIS");
18564     {
18565         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18566         double  RETVAL;
18567         dXSTARG;
18568
18569         RETVAL = THIS->GetDouble();
18570         XSprePUSH; PUSHn((double)RETVAL);
18571     }
18572     XSRETURN(1);
18573 }
18574
18575
18576 XS(XS_Wx__Variant_GetWxObjectPtr); /* prototype to pass -Wmissing-prototypes */
18577 XS(XS_Wx__Variant_GetWxObjectPtr)
18578 {
18579 #ifdef dVAR
18580     dVAR; dXSARGS;
18581 #else
18582     dXSARGS;
18583 #endif
18584     if (items != 1)
18585        croak_xs_usage(cv,  "THIS");
18586     {
18587         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18588         wxObject *      RETVAL;
18589
18590         RETVAL = THIS->GetWxObjectPtr();
18591         ST(0) = sv_newmortal();
18592     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
18593
18594     }
18595     XSRETURN(1);
18596 }
18597
18598
18599 XS(XS_Wx__Variant_GetArrayString); /* prototype to pass -Wmissing-prototypes */
18600 XS(XS_Wx__Variant_GetArrayString)
18601 {
18602 #ifdef dVAR
18603     dVAR; dXSARGS;
18604 #else
18605     dXSARGS;
18606 #endif
18607     if (items != 1)
18608        croak_xs_usage(cv,  "THIS");
18609     PERL_UNUSED_VAR(ax); /* -Wall */
18610     SP -= items;
18611     {
18612         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18613     PUTBACK;
18614     wxPli_stringarray_push( aTHX_ THIS->GetArrayString() );
18615     SPAGAIN;
18616         PUTBACK;
18617         return;
18618     }
18619 }
18620
18621
18622 XS(XS_Wx__Variant_GetList); /* prototype to pass -Wmissing-prototypes */
18623 XS(XS_Wx__Variant_GetList)
18624 {
18625 #ifdef dVAR
18626     dVAR; dXSARGS;
18627 #else
18628     dXSARGS;
18629 #endif
18630     if (items != 1)
18631        croak_xs_usage(cv,  "THIS");
18632     PERL_UNUSED_VAR(ax); /* -Wall */
18633     SP -= items;
18634     {
18635         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18636 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
18637     const wxVariantList& lst = THIS->GetList();
18638 #else
18639     const wxList& lst = THIS->GetList();
18640 #endif
18641     PUTBACK;
18642     wxPli_objlist_push( aTHX_ lst );
18643     SPAGAIN;
18644     for( int i = lst.GetCount() - 0; i >= 0; --i )
18645         wxPli_object_set_deleteable( aTHX_ SP[-i], false );
18646         PUTBACK;
18647         return;
18648     }
18649 }
18650
18651
18652 XS(XS_Wx__Variant_IsNull); /* prototype to pass -Wmissing-prototypes */
18653 XS(XS_Wx__Variant_IsNull)
18654 {
18655 #ifdef dVAR
18656     dVAR; dXSARGS;
18657 #else
18658     dXSARGS;
18659 #endif
18660     if (items != 1)
18661        croak_xs_usage(cv,  "THIS");
18662     {
18663         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18664         bool    RETVAL;
18665
18666         RETVAL = THIS->IsNull();
18667         ST(0) = boolSV(RETVAL);
18668         sv_2mortal(ST(0));
18669     }
18670     XSRETURN(1);
18671 }
18672
18673
18674 XS(XS_Wx__Variant_IsType); /* prototype to pass -Wmissing-prototypes */
18675 XS(XS_Wx__Variant_IsType)
18676 {
18677 #ifdef dVAR
18678     dVAR; dXSARGS;
18679 #else
18680     dXSARGS;
18681 #endif
18682     if (items != 2)
18683        croak_xs_usage(cv,  "THIS, type");
18684     {
18685         wxString        type;
18686         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18687         bool    RETVAL;
18688
18689     WXSTRING_INPUT( type, wxString, ST(1) );
18690
18691         RETVAL = THIS->IsType(type);
18692         ST(0) = boolSV(RETVAL);
18693         sv_2mortal(ST(0));
18694     }
18695     XSRETURN(1);
18696 }
18697
18698
18699 XS(XS_Wx__Variant_IsValueKindOf); /* prototype to pass -Wmissing-prototypes */
18700 XS(XS_Wx__Variant_IsValueKindOf)
18701 {
18702 #ifdef dVAR
18703     dVAR; dXSARGS;
18704 #else
18705     dXSARGS;
18706 #endif
18707     if (items != 2)
18708        croak_xs_usage(cv,  "THIS, type");
18709     {
18710         const wxClassInfo*    type = (const wxClassInfo *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::ClassInfo" );
18711         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18712         bool    RETVAL;
18713
18714         RETVAL = THIS->IsValueKindOf(type);
18715         ST(0) = boolSV(RETVAL);
18716         sv_2mortal(ST(0));
18717     }
18718     XSRETURN(1);
18719 }
18720
18721
18722 XS(XS_Wx__Variant_MakeNull); /* prototype to pass -Wmissing-prototypes */
18723 XS(XS_Wx__Variant_MakeNull)
18724 {
18725 #ifdef dVAR
18726     dVAR; dXSARGS;
18727 #else
18728     dXSARGS;
18729 #endif
18730     if (items != 1)
18731        croak_xs_usage(cv,  "THIS");
18732     {
18733         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18734
18735         THIS->MakeNull();
18736     }
18737     XSRETURN_EMPTY;
18738 }
18739
18740
18741 XS(XS_Wx__Variant_MakeString); /* prototype to pass -Wmissing-prototypes */
18742 XS(XS_Wx__Variant_MakeString)
18743 {
18744 #ifdef dVAR
18745     dVAR; dXSARGS;
18746 #else
18747     dXSARGS;
18748 #endif
18749     if (items != 1)
18750        croak_xs_usage(cv,  "THIS");
18751     {
18752         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18753         wxString        RETVAL;
18754
18755         RETVAL = THIS->MakeString();
18756         ST(0) = sv_newmortal();
18757     WXSTRING_OUTPUT( RETVAL, ST(0) );
18758
18759     }
18760     XSRETURN(1);
18761 }
18762
18763
18764 XS(XS_Wx__Variant_Member); /* prototype to pass -Wmissing-prototypes */
18765 XS(XS_Wx__Variant_Member)
18766 {
18767 #ifdef dVAR
18768     dVAR; dXSARGS;
18769 #else
18770     dXSARGS;
18771 #endif
18772     if (items != 2)
18773        croak_xs_usage(cv,  "THIS, value");
18774     {
18775         wxVariant*    value = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Variant" );
18776         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18777         bool    RETVAL;
18778     RETVAL = THIS->Member( *( value ) );
18779         ST(0) = boolSV(RETVAL);
18780         sv_2mortal(ST(0));
18781     }
18782     XSRETURN(1);
18783 }
18784
18785
18786 XS(XS_Wx__Variant_NullList); /* prototype to pass -Wmissing-prototypes */
18787 XS(XS_Wx__Variant_NullList)
18788 {
18789 #ifdef dVAR
18790     dVAR; dXSARGS;
18791 #else
18792     dXSARGS;
18793 #endif
18794     if (items != 1)
18795        croak_xs_usage(cv,  "THIS");
18796     {
18797         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18798
18799         THIS->NullList();
18800     }
18801     XSRETURN_EMPTY;
18802 }
18803
18804
18805 XS(XS_Wx__Variant_Insert); /* prototype to pass -Wmissing-prototypes */
18806 XS(XS_Wx__Variant_Insert)
18807 {
18808 #ifdef dVAR
18809     dVAR; dXSARGS;
18810 #else
18811     dXSARGS;
18812 #endif
18813     if (items != 2)
18814        croak_xs_usage(cv,  "THIS, value");
18815     {
18816         wxVariant*    value = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Variant" );
18817         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18818     THIS->Insert( *( value ) );
18819     }
18820     XSRETURN_EMPTY;
18821 }
18822
18823
18824 XS(XS_Wx__Variant_SetBool); /* prototype to pass -Wmissing-prototypes */
18825 XS(XS_Wx__Variant_SetBool)
18826 {
18827 #ifdef dVAR
18828     dVAR; dXSARGS;
18829 #else
18830     dXSARGS;
18831 #endif
18832     if (items != 2)
18833        croak_xs_usage(cv,  "THIS, value");
18834     {
18835         bool    value = (bool)SvTRUE(ST(1));
18836         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18837      *THIS = value; 
18838     }
18839     XSRETURN_EMPTY;
18840 }
18841
18842 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
18843 #define XSubPPtmpAADW 1
18844
18845
18846 XS(XS_Wx__Variant_SetChar); /* prototype to pass -Wmissing-prototypes */
18847 XS(XS_Wx__Variant_SetChar)
18848 {
18849 #ifdef dVAR
18850     dVAR; dXSARGS;
18851 #else
18852     dXSARGS;
18853 #endif
18854     if (items != 2)
18855        croak_xs_usage(cv,  "THIS, value");
18856     {
18857         wxChar  value = (wxChar)SvIV(ST(1));
18858         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18859      *THIS = value; 
18860     }
18861     XSRETURN_EMPTY;
18862 }
18863
18864 #endif
18865
18866 XS(XS_Wx__Variant_SetDateTime); /* prototype to pass -Wmissing-prototypes */
18867 XS(XS_Wx__Variant_SetDateTime)
18868 {
18869 #ifdef dVAR
18870     dVAR; dXSARGS;
18871 #else
18872     dXSARGS;
18873 #endif
18874     if (items != 2)
18875        croak_xs_usage(cv,  "THIS, value");
18876     {
18877         wxDateTime*    value = (wxDateTime *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::DateTime" );
18878         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18879      *THIS = *value; 
18880     }
18881     XSRETURN_EMPTY;
18882 }
18883
18884
18885 XS(XS_Wx__Variant_SetString); /* prototype to pass -Wmissing-prototypes */
18886 XS(XS_Wx__Variant_SetString)
18887 {
18888 #ifdef dVAR
18889     dVAR; dXSARGS;
18890 #else
18891     dXSARGS;
18892 #endif
18893     if (items != 2)
18894        croak_xs_usage(cv,  "THIS, string");
18895     {
18896         wxString        string;
18897         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18898
18899     WXSTRING_INPUT( string, wxString, ST(1) );
18900      *THIS = string; 
18901     }
18902     XSRETURN_EMPTY;
18903 }
18904
18905
18906 XS(XS_Wx__Variant_SetLong); /* prototype to pass -Wmissing-prototypes */
18907 XS(XS_Wx__Variant_SetLong)
18908 {
18909 #ifdef dVAR
18910     dVAR; dXSARGS;
18911 #else
18912     dXSARGS;
18913 #endif
18914     if (items != 2)
18915        croak_xs_usage(cv,  "THIS, value");
18916     {
18917         long    value = (long)SvIV(ST(1));
18918         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18919      *THIS = value; 
18920     }
18921     XSRETURN_EMPTY;
18922 }
18923
18924
18925 XS(XS_Wx__Variant_SetDouble); /* prototype to pass -Wmissing-prototypes */
18926 XS(XS_Wx__Variant_SetDouble)
18927 {
18928 #ifdef dVAR
18929     dVAR; dXSARGS;
18930 #else
18931     dXSARGS;
18932 #endif
18933     if (items != 2)
18934        croak_xs_usage(cv,  "THIS, value");
18935     {
18936         double  value = (double)SvNV(ST(1));
18937         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18938      *THIS = value; 
18939     }
18940     XSRETURN_EMPTY;
18941 }
18942
18943
18944 XS(XS_Wx__Variant_SetWxObjectPtr); /* prototype to pass -Wmissing-prototypes */
18945 XS(XS_Wx__Variant_SetWxObjectPtr)
18946 {
18947 #ifdef dVAR
18948     dVAR; dXSARGS;
18949 #else
18950     dXSARGS;
18951 #endif
18952     if (items != 2)
18953        croak_xs_usage(cv,  "THIS, value");
18954     {
18955         wxObject*    value = (wxObject *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Object" );
18956         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18957      *THIS = value; 
18958     }
18959     XSRETURN_EMPTY;
18960 }
18961
18962
18963 XS(XS_Wx__Variant_SetVariant); /* prototype to pass -Wmissing-prototypes */
18964 XS(XS_Wx__Variant_SetVariant)
18965 {
18966 #ifdef dVAR
18967     dVAR; dXSARGS;
18968 #else
18969     dXSARGS;
18970 #endif
18971     if (items != 2)
18972        croak_xs_usage(cv,  "THIS, value");
18973     {
18974         wxVariant*    value = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Variant" );
18975         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18976      *THIS = *value; 
18977     }
18978     XSRETURN_EMPTY;
18979 }
18980
18981 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
18982 #define XSubPPtmpAADX 1
18983
18984
18985 XS(XS_Wx__Variant_Unshare); /* prototype to pass -Wmissing-prototypes */
18986 XS(XS_Wx__Variant_Unshare)
18987 {
18988 #ifdef dVAR
18989     dVAR; dXSARGS;
18990 #else
18991     dXSARGS;
18992 #endif
18993     if (items != 1)
18994        croak_xs_usage(cv,  "THIS");
18995     {
18996         wxVariant *    THIS = (wxVariant *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Variant" );
18997         bool    RETVAL;
18998
18999         RETVAL = THIS->Unshare();
19000         ST(0) = boolSV(RETVAL);
19001         sv_2mortal(ST(0));
19002     }
19003     XSRETURN(1);
19004 }
19005
19006 #endif
19007
19008 /* INCLUDE: Returning to 'Wx.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Variant.xsp |' */
19009
19010
19011 /* INCLUDE:  Including 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/NotificationMessage.xsp |' from 'Wx.xs' */
19012
19013 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
19014 #include <wx/notifmsg.h>
19015 #define XSubPPtmpAADY 1
19016
19017
19018 XS(XS_Wx__NotificationMessage_new); /* prototype to pass -Wmissing-prototypes */
19019 XS(XS_Wx__NotificationMessage_new)
19020 {
19021 #ifdef dVAR
19022     dVAR; dXSARGS;
19023 #else
19024     dXSARGS;
19025 #endif
19026     PERL_UNUSED_VAR(cv); /* -W */
19027     PERL_UNUSED_VAR(ax); /* -Wall */
19028     SP -= items;
19029     {
19030     BEGIN_OVERLOAD()
19031         MATCH_VOIDM_REDISP( newDefault )
19032         MATCH_ANY_REDISP( newFull )
19033     END_OVERLOAD( "Wx::NotificationMessage::new" )
19034         PUTBACK;
19035         return;
19036     }
19037 }
19038
19039
19040 XS(XS_Wx__NotificationMessage_newDefault); /* prototype to pass -Wmissing-prototypes */
19041 XS(XS_Wx__NotificationMessage_newDefault)
19042 {
19043 #ifdef dVAR
19044     dVAR; dXSARGS;
19045 #else
19046     dXSARGS;
19047 #endif
19048     if (items != 1)
19049        croak_xs_usage(cv,  "CLASS");
19050     {
19051         char *  CLASS = (char *)SvPV_nolen(ST(0));
19052         wxNotificationMessage * RETVAL;
19053     RETVAL = new wxNotificationMessage();
19054         ST(0) = sv_newmortal();
19055     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::NotificationMessage" );
19056     wxPli_thread_sv_register( aTHX_ "Wx::NotificationMessage", RETVAL, ST(0) );
19057
19058     }
19059     XSRETURN(1);
19060 }
19061
19062 #ifdef __WXMSW__
19063 #define XSubPPtmpAADZ 1
19064
19065
19066 XS(XS_Wx__NotificationMessage_newFull); /* prototype to pass -Wmissing-prototypes */
19067 XS(XS_Wx__NotificationMessage_newFull)
19068 {
19069 #ifdef dVAR
19070     dVAR; dXSARGS;
19071 #else
19072     dXSARGS;
19073 #endif
19074     if (items < 2 || items > 5)
19075        croak_xs_usage(cv,  "CLASS, title, message = wxEmptyString, parent = NULL, flags = wxICON_INFORMATION");
19076     {
19077         wxString        title;
19078         wxString        message;
19079         wxWindow*       parent;
19080         int     flags;
19081         char *  CLASS = (char *)SvPV_nolen(ST(0));
19082         wxNotificationMessage * RETVAL;
19083
19084     WXSTRING_INPUT( title, wxString, ST(1) );
19085
19086         if (items < 3)
19087             message = wxEmptyString;
19088         else {
19089     WXSTRING_INPUT( message, wxString, ST(2) );
19090         }
19091
19092         if (items < 4)
19093             parent = NULL;
19094         else {
19095     parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Window" );
19096         }
19097
19098         if (items < 5)
19099             flags = wxICON_INFORMATION;
19100         else {
19101             flags = (int)SvIV(ST(4));
19102         }
19103      RETVAL = new wxNotificationMessage( title, message, parent );
19104
19105         ST(0) = sv_newmortal();
19106     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::NotificationMessage" );
19107     wxPli_thread_sv_register( aTHX_ "Wx::NotificationMessage", RETVAL, ST(0) );
19108
19109     }
19110     XSRETURN(1);
19111 }
19112
19113 #else
19114 #define XSubPPtmpAAEA 1
19115
19116
19117 XS(XS_Wx__NotificationMessage_newFull); /* prototype to pass -Wmissing-prototypes */
19118 XS(XS_Wx__NotificationMessage_newFull)
19119 {
19120 #ifdef dVAR
19121     dVAR; dXSARGS;
19122 #else
19123     dXSARGS;
19124 #endif
19125     if (items < 2 || items > 5)
19126        croak_xs_usage(cv,  "CLASS, title, message = wxEmptyString, parent = NULL, flags = wxICON_INFORMATION");
19127     {
19128         wxString        title;
19129         wxString        message;
19130         wxWindow*       parent;
19131         int     flags;
19132         char *  CLASS = (char *)SvPV_nolen(ST(0));
19133         wxNotificationMessage * RETVAL;
19134
19135     WXSTRING_INPUT( title, wxString, ST(1) );
19136
19137         if (items < 3)
19138             message = wxEmptyString;
19139         else {
19140     WXSTRING_INPUT( message, wxString, ST(2) );
19141         }
19142
19143         if (items < 4)
19144             parent = NULL;
19145         else {
19146     parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Window" );
19147         }
19148
19149         if (items < 5)
19150             flags = wxICON_INFORMATION;
19151         else {
19152             flags = (int)SvIV(ST(4));
19153         }
19154     RETVAL = new wxNotificationMessage( title, message, parent, flags );
19155         ST(0) = sv_newmortal();
19156     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::NotificationMessage" );
19157     wxPli_thread_sv_register( aTHX_ "Wx::NotificationMessage", RETVAL, ST(0) );
19158
19159     }
19160     XSRETURN(1);
19161 }
19162
19163 #endif
19164
19165 XS(XS_Wx__NotificationMessage_CLONE); /* prototype to pass -Wmissing-prototypes */
19166 XS(XS_Wx__NotificationMessage_CLONE)
19167 {
19168 #ifdef dVAR
19169     dVAR; dXSARGS;
19170 #else
19171     dXSARGS;
19172 #endif
19173     if (items != 1)
19174        croak_xs_usage(cv,  "CLASS");
19175     {
19176         char *  CLASS = (char *)SvPV_nolen(ST(0));
19177     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
19178     }
19179     XSRETURN_EMPTY;
19180 }
19181
19182
19183 XS(XS_Wx__NotificationMessage_DESTROY); /* prototype to pass -Wmissing-prototypes */
19184 XS(XS_Wx__NotificationMessage_DESTROY)
19185 {
19186 #ifdef dVAR
19187     dVAR; dXSARGS;
19188 #else
19189     dXSARGS;
19190 #endif
19191     if (items != 1)
19192        croak_xs_usage(cv,  "THIS");
19193     {
19194         wxNotificationMessage *    THIS = (wxNotificationMessage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NotificationMessage" );
19195      wxPli_thread_sv_unregister( aTHX_ "Wx::NotificationMessage", THIS, ST(0) );
19196                 delete THIS;
19197     }
19198     XSRETURN_EMPTY;
19199 }
19200
19201
19202 XS(XS_Wx__NotificationMessage_Show); /* prototype to pass -Wmissing-prototypes */
19203 XS(XS_Wx__NotificationMessage_Show)
19204 {
19205 #ifdef dVAR
19206     dVAR; dXSARGS;
19207 #else
19208     dXSARGS;
19209 #endif
19210     if (items < 1 || items > 2)
19211        croak_xs_usage(cv,  "THIS, timeout = -1");
19212     {
19213         int     timeout;
19214         wxNotificationMessage *    THIS = (wxNotificationMessage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NotificationMessage" );
19215         bool    RETVAL;
19216
19217         if (items < 2)
19218             timeout = -1;
19219         else {
19220             timeout = (int)SvIV(ST(1));
19221         }
19222
19223         RETVAL = THIS->Show(timeout);
19224         ST(0) = boolSV(RETVAL);
19225         sv_2mortal(ST(0));
19226     }
19227     XSRETURN(1);
19228 }
19229
19230
19231 XS(XS_Wx__NotificationMessage_Close); /* prototype to pass -Wmissing-prototypes */
19232 XS(XS_Wx__NotificationMessage_Close)
19233 {
19234 #ifdef dVAR
19235     dVAR; dXSARGS;
19236 #else
19237     dXSARGS;
19238 #endif
19239     if (items != 1)
19240        croak_xs_usage(cv,  "THIS");
19241     {
19242         wxNotificationMessage *    THIS = (wxNotificationMessage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NotificationMessage" );
19243         bool    RETVAL;
19244
19245         RETVAL = THIS->Close();
19246         ST(0) = boolSV(RETVAL);
19247         sv_2mortal(ST(0));
19248     }
19249     XSRETURN(1);
19250 }
19251
19252
19253 XS(XS_Wx__NotificationMessage_SetFlags); /* prototype to pass -Wmissing-prototypes */
19254 XS(XS_Wx__NotificationMessage_SetFlags)
19255 {
19256 #ifdef dVAR
19257     dVAR; dXSARGS;
19258 #else
19259     dXSARGS;
19260 #endif
19261     if (items != 2)
19262        croak_xs_usage(cv,  "THIS, flags");
19263     {
19264         int     flags = (int)SvIV(ST(1));
19265         wxNotificationMessage *    THIS = (wxNotificationMessage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NotificationMessage" );
19266
19267         THIS->SetFlags(flags);
19268     }
19269     XSRETURN_EMPTY;
19270 }
19271
19272
19273 XS(XS_Wx__NotificationMessage_SetTitle); /* prototype to pass -Wmissing-prototypes */
19274 XS(XS_Wx__NotificationMessage_SetTitle)
19275 {
19276 #ifdef dVAR
19277     dVAR; dXSARGS;
19278 #else
19279     dXSARGS;
19280 #endif
19281     if (items != 2)
19282        croak_xs_usage(cv,  "THIS, title");
19283     {
19284         wxString        title;
19285         wxNotificationMessage *    THIS = (wxNotificationMessage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NotificationMessage" );
19286
19287     WXSTRING_INPUT( title, wxString, ST(1) );
19288
19289         THIS->SetTitle(title);
19290     }
19291     XSRETURN_EMPTY;
19292 }
19293
19294
19295 XS(XS_Wx__NotificationMessage_SetMessage); /* prototype to pass -Wmissing-prototypes */
19296 XS(XS_Wx__NotificationMessage_SetMessage)
19297 {
19298 #ifdef dVAR
19299     dVAR; dXSARGS;
19300 #else
19301     dXSARGS;
19302 #endif
19303     if (items != 2)
19304        croak_xs_usage(cv,  "THIS, message");
19305     {
19306         wxString        message;
19307         wxNotificationMessage *    THIS = (wxNotificationMessage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NotificationMessage" );
19308
19309     WXSTRING_INPUT( message, wxString, ST(1) );
19310
19311         THIS->SetMessage(message);
19312     }
19313     XSRETURN_EMPTY;
19314 }
19315
19316
19317 XS(XS_Wx__NotificationMessage_SetParent); /* prototype to pass -Wmissing-prototypes */
19318 XS(XS_Wx__NotificationMessage_SetParent)
19319 {
19320 #ifdef dVAR
19321     dVAR; dXSARGS;
19322 #else
19323     dXSARGS;
19324 #endif
19325     if (items != 2)
19326        croak_xs_usage(cv,  "THIS, parent");
19327     {
19328         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
19329         wxNotificationMessage *    THIS = (wxNotificationMessage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NotificationMessage" );
19330
19331         THIS->SetParent(parent);
19332     }
19333     XSRETURN_EMPTY;
19334 }
19335
19336 #ifdef __WXMSW__
19337 #define XSubPPtmpAAEB 1
19338
19339
19340 XS(XS_Wx__NotificationMessage_UseTaskBarIcon); /* prototype to pass -Wmissing-prototypes */
19341 XS(XS_Wx__NotificationMessage_UseTaskBarIcon)
19342 {
19343 #ifdef dVAR
19344     dVAR; dXSARGS;
19345 #else
19346     dXSARGS;
19347 #endif
19348     if (items != 1)
19349        croak_xs_usage(cv,  "icon");
19350     {
19351         wxTaskBarIcon*    icon = (wxTaskBarIcon *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::TaskBarIcon" );
19352         wxTaskBarIcon * RETVAL;
19353     RETVAL = wxNotificationMessage::UseTaskBarIcon( icon );
19354         ST(0) = sv_newmortal();
19355     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
19356
19357     }
19358     XSRETURN(1);
19359 }
19360
19361
19362 XS(XS_Wx__NotificationMessage_AlwaysUseGeneric); /* prototype to pass -Wmissing-prototypes */
19363 XS(XS_Wx__NotificationMessage_AlwaysUseGeneric)
19364 {
19365 #ifdef dVAR
19366     dVAR; dXSARGS;
19367 #else
19368     dXSARGS;
19369 #endif
19370     if (items != 1)
19371        croak_xs_usage(cv,  "alwaysUseGeneric");
19372     {
19373         bool    alwaysUseGeneric = (bool)SvTRUE(ST(0));
19374     wxNotificationMessage::AlwaysUseGeneric( alwaysUseGeneric );
19375     }
19376     XSRETURN_EMPTY;
19377 }
19378
19379 #endif
19380 #endif
19381
19382 /* INCLUDE: Returning to 'Wx.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/NotificationMessage.xsp |' */
19383
19384 #ifdef __cplusplus
19385 extern "C"
19386 #endif
19387 XS(boot_Wx); /* prototype to pass -Wmissing-prototypes */
19388 XS(boot_Wx)
19389 {
19390 #ifdef dVAR
19391     dVAR; dXSARGS;
19392 #else
19393     dXSARGS;
19394 #endif
19395 #if (PERL_REVISION == 5 && PERL_VERSION < 9)
19396     char* file = __FILE__;
19397 #else
19398     const char* file = __FILE__;
19399 #endif
19400
19401     PERL_UNUSED_VAR(cv); /* -W */
19402     PERL_UNUSED_VAR(items); /* -W */
19403     XS_VERSION_BOOTCHECK ;
19404
19405     {
19406         CV * cv ;
19407
19408         newXS("Wx::Load", XS_Wx_Load, file);
19409         newXS("Wx::SetConstants", XS_Wx_SetConstants, file);
19410         newXS("Wx::SetConstantsOnce", XS_Wx_SetConstantsOnce, file);
19411         newXS("Wx::SetOvlConstants", XS_Wx_SetOvlConstants, file);
19412         newXS("Wx::UnLoad", XS_Wx_UnLoad, file);
19413         newXS("Wx::SetAlwaysUTF8", XS_Wx_SetAlwaysUTF8, file);
19414 #if XSubPPtmpAAAA
19415         newXS("Wx::_load_plugin", XS_Wx__load_plugin, file);
19416         newXS("Wx::_unload_plugin", XS_Wx__unload_plugin, file);
19417 #endif
19418         (void)newXSproto_portable("Wx::_xsmatch", XS_Wx__xsmatch, file, "\\@$;$$");
19419         newXS("Wx::looks_like_number", XS_Wx_looks_like_number, file);
19420         newXS("Wx::CLONE", XS_Wx_CLONE, file);
19421 #if XSubPPtmpAAAB
19422         newXS("Wx::ArtProvider::GetBitmap", XS_Wx__ArtProvider_GetBitmap, file);
19423         newXS("Wx::ArtProvider::GetIcon", XS_Wx__ArtProvider_GetIcon, file);
19424 #if XSubPPtmpAAAC
19425         newXS("Wx::ArtProvider::GetIconBundle", XS_Wx__ArtProvider_GetIconBundle, file);
19426 #endif
19427         newXS("Wx::ArtProvider::PopProvider", XS_Wx__ArtProvider_PopProvider, file);
19428         newXS("Wx::ArtProvider::PushProvider", XS_Wx__ArtProvider_PushProvider, file);
19429 #if XSubPPtmpAAAD
19430         newXS("Wx::ArtProvider::InsertProvider", XS_Wx__ArtProvider_InsertProvider, file);
19431 #endif
19432         newXS("Wx::ArtProvider::RemoveProvider", XS_Wx__ArtProvider_RemoveProvider, file);
19433 #if XSubPPtmpAAAE
19434         newXS("Wx::ArtProvider::DeleteProvider", XS_Wx__ArtProvider_DeleteProvider, file);
19435 #endif
19436         newXS("Wx::PlArtProvider::new", XS_Wx__PlArtProvider_new, file);
19437         newXS("Wx::PlArtProvider::CreateBitmap", XS_Wx__PlArtProvider_CreateBitmap, file);
19438 #endif
19439 #if XSubPPtmpAAAF
19440         newXS("Wx::Wave::new", XS_Wx__Wave_new, file);
19441         newXS("Wx::Wave::IsOk", XS_Wx__Wave_IsOk, file);
19442         newXS("Wx::Wave::Play", XS_Wx__Wave_Play, file);
19443 #endif
19444         newXS("Wx::FontEnumerator::new", XS_Wx__FontEnumerator_new, file);
19445         newXS("Wx::FontEnumerator::CLONE", XS_Wx__FontEnumerator_CLONE, file);
19446         newXS("Wx::FontEnumerator::DESTROY", XS_Wx__FontEnumerator_DESTROY, file);
19447         newXS("Wx::FontEnumerator::EnumerateFacenames", XS_Wx__FontEnumerator_EnumerateFacenames, file);
19448         newXS("Wx::FontEnumerator::EnumerateEncodings", XS_Wx__FontEnumerator_EnumerateEncodings, file);
19449         newXS("Wx::FontEnumerator::GetEncodings", XS_Wx__FontEnumerator_GetEncodings, file);
19450         newXS("Wx::FontEnumerator::GetFacenames", XS_Wx__FontEnumerator_GetFacenames, file);
19451 #if XSubPPtmpAAAG
19452         newXS("Wx::FontEnumerator::IsValidFacename", XS_Wx__FontEnumerator_IsValidFacename, file);
19453 #endif
19454         newXS("Wx::FontMapper::Get", XS_Wx__FontMapper_Get, file);
19455         newXS("Wx::FontMapper::GetAltForEncoding", XS_Wx__FontMapper_GetAltForEncoding, file);
19456         newXS("Wx::FontMapper::IsEncodingAvailable", XS_Wx__FontMapper_IsEncodingAvailable, file);
19457         newXS("Wx::FontMapper::CharsetToEncoding", XS_Wx__FontMapper_CharsetToEncoding, file);
19458         newXS("Wx::FontMapper::GetEncodingName", XS_Wx__FontMapper_GetEncodingName, file);
19459         newXS("Wx::FontMapper::GetEncodingDescription", XS_Wx__FontMapper_GetEncodingDescription, file);
19460 #if XSubPPtmpAAAH
19461         newXS("Wx::FontMapper::GetAllEncodingNames", XS_Wx__FontMapper_GetAllEncodingNames, file);
19462 #endif
19463         newXS("Wx::FontMapper::GetEncoding", XS_Wx__FontMapper_GetEncoding, file);
19464         newXS("Wx::FontMapper::GetEncodingFromName", XS_Wx__FontMapper_GetEncodingFromName, file);
19465         newXS("Wx::FontMapper::GetSupportedEncodingsCount", XS_Wx__FontMapper_GetSupportedEncodingsCount, file);
19466         newXS("Wx::FontMapper::SetDialogParent", XS_Wx__FontMapper_SetDialogParent, file);
19467         newXS("Wx::FontMapper::SetDialogTitle", XS_Wx__FontMapper_SetDialogTitle, file);
19468 #if XSubPPtmpAAAI
19469         newXS("Wx::FontMapper::SetConfig", XS_Wx__FontMapper_SetConfig, file);
19470 #endif
19471         newXS("Wx::FontMapper::SetConfigPath", XS_Wx__FontMapper_SetConfigPath, file);
19472         newXS("Wx::ProcessEvent::new", XS_Wx__ProcessEvent_new, file);
19473         newXS("Wx::ProcessEvent::GetPid", XS_Wx__ProcessEvent_GetPid, file);
19474         newXS("Wx::ProcessEvent::GetExitCode", XS_Wx__ProcessEvent_GetExitCode, file);
19475         newXS("Wx::Process::new", XS_Wx__Process_new, file);
19476         newXS("Wx::Process::Destroy", XS_Wx__Process_Destroy, file);
19477         newXS("Wx::Process::CloseOutput", XS_Wx__Process_CloseOutput, file);
19478         newXS("Wx::Process::Detach", XS_Wx__Process_Detach, file);
19479         newXS("Wx::Process::GetErrorStream", XS_Wx__Process_GetErrorStream, file);
19480         newXS("Wx::Process::GetInputStream", XS_Wx__Process_GetInputStream, file);
19481         newXS("Wx::Process::GetOutputStream", XS_Wx__Process_GetOutputStream, file);
19482         newXS("Wx::Process::IsErrorAvailable", XS_Wx__Process_IsErrorAvailable, file);
19483         newXS("Wx::Process::IsInputAvailable", XS_Wx__Process_IsInputAvailable, file);
19484         newXS("Wx::Process::IsInputOpened", XS_Wx__Process_IsInputOpened, file);
19485         newXS("Wx::Process::Kill", XS_Wx__Process_Kill, file);
19486         newXS("Wx::Process::Exists", XS_Wx__Process_Exists, file);
19487         newXS("Wx::Process::OnTerminate", XS_Wx__Process_OnTerminate, file);
19488         newXS("Wx::Process::Redirect", XS_Wx__Process_Redirect, file);
19489         newXS("Wx::Process::Open", XS_Wx__Process_Open, file);
19490 #if XSubPPtmpAAAJ
19491         newXS("Wx::Process::GetPid", XS_Wx__Process_GetPid, file);
19492 #endif
19493         newXS("Wx::ExecuteCommand", XS_Wx_ExecuteCommand, file);
19494 #if XSubPPtmpAAAK
19495         newXS("Wx::ExecuteArgs", XS_Wx_ExecuteArgs, file);
19496 #endif
19497 #if XSubPPtmpAAAL
19498         newXS("Wx::ExecuteArgs", XS_Wx_ExecuteArgs, file);
19499 #endif
19500         newXS("Wx::ExecuteStdout", XS_Wx_ExecuteStdout, file);
19501         newXS("Wx::ExecuteStdoutStderr", XS_Wx_ExecuteStdoutStderr, file);
19502         newXS("Wx::ConfigBase::Destroy", XS_Wx__ConfigBase_Destroy, file);
19503         newXS("Wx::ConfigBase::Create", XS_Wx__ConfigBase_Create, file);
19504         newXS("Wx::ConfigBase::DontCreateOnDemand", XS_Wx__ConfigBase_DontCreateOnDemand, file);
19505         newXS("Wx::ConfigBase::DeleteAll", XS_Wx__ConfigBase_DeleteAll, file);
19506         newXS("Wx::ConfigBase::DeleteEntry", XS_Wx__ConfigBase_DeleteEntry, file);
19507         newXS("Wx::ConfigBase::DeleteGroup", XS_Wx__ConfigBase_DeleteGroup, file);
19508         newXS("Wx::ConfigBase::Exists", XS_Wx__ConfigBase_Exists, file);
19509         newXS("Wx::ConfigBase::Flush", XS_Wx__ConfigBase_Flush, file);
19510         newXS("Wx::ConfigBase::Get", XS_Wx__ConfigBase_Get, file);
19511         newXS("Wx::ConfigBase::GetAppName", XS_Wx__ConfigBase_GetAppName, file);
19512         newXS("Wx::ConfigBase::GetEntryType", XS_Wx__ConfigBase_GetEntryType, file);
19513         newXS("Wx::ConfigBase::GetFirstEntry", XS_Wx__ConfigBase_GetFirstEntry, file);
19514         newXS("Wx::ConfigBase::GetFirstGroup", XS_Wx__ConfigBase_GetFirstGroup, file);
19515         newXS("Wx::ConfigBase::GetNextEntry", XS_Wx__ConfigBase_GetNextEntry, file);
19516         newXS("Wx::ConfigBase::GetNextGroup", XS_Wx__ConfigBase_GetNextGroup, file);
19517         newXS("Wx::ConfigBase::GetNumberOfEntries", XS_Wx__ConfigBase_GetNumberOfEntries, file);
19518         newXS("Wx::ConfigBase::GetNumberOfGroups", XS_Wx__ConfigBase_GetNumberOfGroups, file);
19519         newXS("Wx::ConfigBase::GetPath", XS_Wx__ConfigBase_GetPath, file);
19520         newXS("Wx::ConfigBase::GetVendorName", XS_Wx__ConfigBase_GetVendorName, file);
19521         newXS("Wx::ConfigBase::HasEntry", XS_Wx__ConfigBase_HasEntry, file);
19522         newXS("Wx::ConfigBase::HasGroup", XS_Wx__ConfigBase_HasGroup, file);
19523         newXS("Wx::ConfigBase::IsExpandingEnvVars", XS_Wx__ConfigBase_IsExpandingEnvVars, file);
19524         newXS("Wx::ConfigBase::IsRecordingDefaults", XS_Wx__ConfigBase_IsRecordingDefaults, file);
19525         newXS("Wx::ConfigBase::Read", XS_Wx__ConfigBase_Read, file);
19526         newXS("Wx::ConfigBase::ReadInt", XS_Wx__ConfigBase_ReadInt, file);
19527 #if XSubPPtmpAAAM
19528         newXS("Wx::ConfigBase::ReadLong", XS_Wx__ConfigBase_ReadLong, file);
19529         newXS("Wx::ConfigBase::ReadDouble", XS_Wx__ConfigBase_ReadDouble, file);
19530         newXS("Wx::ConfigBase::ReadBool", XS_Wx__ConfigBase_ReadBool, file);
19531 #endif
19532 #if XSubPPtmpAAAN
19533         newXS("Wx::ConfigBase::ReadBool", XS_Wx__ConfigBase_ReadBool, file);
19534 #endif
19535 #if XSubPPtmpAAAO
19536         newXS("Wx::ConfigBase::ReadBinary", XS_Wx__ConfigBase_ReadBinary, file);
19537 #endif
19538         newXS("Wx::ConfigBase::RenameEntry", XS_Wx__ConfigBase_RenameEntry, file);
19539         newXS("Wx::ConfigBase::RenameGroup", XS_Wx__ConfigBase_RenameGroup, file);
19540         newXS("Wx::ConfigBase::Set", XS_Wx__ConfigBase_Set, file);
19541         newXS("Wx::ConfigBase::SetExpandEnvVars", XS_Wx__ConfigBase_SetExpandEnvVars, file);
19542         newXS("Wx::ConfigBase::SetPath", XS_Wx__ConfigBase_SetPath, file);
19543         newXS("Wx::ConfigBase::SetRecordDefaults", XS_Wx__ConfigBase_SetRecordDefaults, file);
19544         newXS("Wx::ConfigBase::Write", XS_Wx__ConfigBase_Write, file);
19545         newXS("Wx::ConfigBase::WriteInt", XS_Wx__ConfigBase_WriteInt, file);
19546         newXS("Wx::ConfigBase::WriteFloat", XS_Wx__ConfigBase_WriteFloat, file);
19547         newXS("Wx::ConfigBase::WriteBool", XS_Wx__ConfigBase_WriteBool, file);
19548 #if XSubPPtmpAAAP
19549         newXS("Wx::ConfigBase::WriteBinary", XS_Wx__ConfigBase_WriteBinary, file);
19550 #endif
19551 #if XSubPPtmpAAAQ
19552         newXS("Wx::RegConfig::new", XS_Wx__RegConfig_new, file);
19553 #endif
19554         newXS("Wx::FileConfig::new", XS_Wx__FileConfig_new, file);
19555         newXS("Wx::FileConfig::SetUmask", XS_Wx__FileConfig_SetUmask, file);
19556 #if XSubPPtmpAAAR
19557         newXS("Wx::TaskBarIcon::new", XS_Wx__TaskBarIcon_new, file);
19558         newXS("Wx::TaskBarIcon::Destroy", XS_Wx__TaskBarIcon_Destroy, file);
19559         newXS("Wx::TaskBarIcon::IsOk", XS_Wx__TaskBarIcon_IsOk, file);
19560         newXS("Wx::TaskBarIcon::IsIconInstalled", XS_Wx__TaskBarIcon_IsIconInstalled, file);
19561         newXS("Wx::TaskBarIcon::SetIcon", XS_Wx__TaskBarIcon_SetIcon, file);
19562         newXS("Wx::TaskBarIcon::RemoveIcon", XS_Wx__TaskBarIcon_RemoveIcon, file);
19563         newXS("Wx::TaskBarIcon::PopupMenu", XS_Wx__TaskBarIcon_PopupMenu, file);
19564         newXS("Wx::TaskBarIconEvent::new", XS_Wx__TaskBarIconEvent_new, file);
19565 #endif
19566         newXS("Wx::Stream::TIEHANDLE", XS_Wx__Stream_TIEHANDLE, file);
19567         newXS("Wx::InputStream::READ", XS_Wx__InputStream_READ, file);
19568         newXS("Wx::InputStream::GETC", XS_Wx__InputStream_GETC, file);
19569         newXS("Wx::InputStream::SEEK", XS_Wx__InputStream_SEEK, file);
19570         newXS("Wx::InputStream::TELL", XS_Wx__InputStream_TELL, file);
19571         newXS("Wx::InputStream::READLINE", XS_Wx__InputStream_READLINE, file);
19572         newXS("Wx::OutputStream::WRITE", XS_Wx__OutputStream_WRITE, file);
19573         newXS("Wx::OutputStream::SEEK", XS_Wx__OutputStream_SEEK, file);
19574         newXS("Wx::OutputStream::TELL", XS_Wx__OutputStream_TELL, file);
19575         newXS("Wx::TimerEvent::GetInterval", XS_Wx__TimerEvent_GetInterval, file);
19576 #if XSubPPtmpAAAS
19577         newXS("Wx::TimerEvent::GetTimer", XS_Wx__TimerEvent_GetTimer, file);
19578 #endif
19579         newXS("Wx::Timer::newDefault", XS_Wx__Timer_newDefault, file);
19580         newXS("Wx::Timer::newEH", XS_Wx__Timer_newEH, file);
19581         newXS("Wx::Timer::Destroy", XS_Wx__Timer_Destroy, file);
19582         newXS("Wx::Timer::GetInterval", XS_Wx__Timer_GetInterval, file);
19583 #if XSubPPtmpAAAT
19584         newXS("Wx::Timer::GetId", XS_Wx__Timer_GetId, file);
19585 #endif
19586         newXS("Wx::Timer::IsOneShot", XS_Wx__Timer_IsOneShot, file);
19587         newXS("Wx::Timer::IsRunning", XS_Wx__Timer_IsRunning, file);
19588         newXS("Wx::Timer::SetOwner", XS_Wx__Timer_SetOwner, file);
19589         newXS("Wx::Timer::Start", XS_Wx__Timer_Start, file);
19590         newXS("Wx::Timer::Stop", XS_Wx__Timer_Stop, file);
19591         newXS("Wx::CaretSuspend::new", XS_Wx__CaretSuspend_new, file);
19592         newXS("Wx::CaretSuspend::CLONE", XS_Wx__CaretSuspend_CLONE, file);
19593         newXS("Wx::CaretSuspend::DESTROY", XS_Wx__CaretSuspend_DESTROY, file);
19594         newXS("Wx::SplashScreen::new", XS_Wx__SplashScreen_new, file);
19595         newXS("Wx::SplashScreen::GetSplashStyle", XS_Wx__SplashScreen_GetSplashStyle, file);
19596         newXS("Wx::SplashScreen::GetSplashWindow", XS_Wx__SplashScreen_GetSplashWindow, file);
19597         newXS("Wx::SplashScreen::GetTimeout", XS_Wx__SplashScreen_GetTimeout, file);
19598         newXS("Wx::WindowDisabler::new", XS_Wx__WindowDisabler_new, file);
19599         newXS("Wx::WindowDisabler::CLONE", XS_Wx__WindowDisabler_CLONE, file);
19600         newXS("Wx::WindowDisabler::DESTROY", XS_Wx__WindowDisabler_DESTROY, file);
19601 #if XSubPPtmpAAAU
19602         newXS("Wx::BusyCursor::new", XS_Wx__BusyCursor_new, file);
19603 #endif
19604 #if XSubPPtmpAAAV
19605         newXS("Wx::BusyCursor::new", XS_Wx__BusyCursor_new, file);
19606 #endif
19607         newXS("Wx::BusyCursor::CLONE", XS_Wx__BusyCursor_CLONE, file);
19608         newXS("Wx::BusyCursor::DESTROY", XS_Wx__BusyCursor_DESTROY, file);
19609         newXS("Wx::BusyInfo::new", XS_Wx__BusyInfo_new, file);
19610         newXS("Wx::BusyInfo::CLONE", XS_Wx__BusyInfo_CLONE, file);
19611         newXS("Wx::BusyInfo::DESTROY", XS_Wx__BusyInfo_DESTROY, file);
19612         newXS("Wx::StopWatch::new", XS_Wx__StopWatch_new, file);
19613         newXS("Wx::StopWatch::CLONE", XS_Wx__StopWatch_CLONE, file);
19614         newXS("Wx::StopWatch::DESTROY", XS_Wx__StopWatch_DESTROY, file);
19615         newXS("Wx::StopWatch::Pause", XS_Wx__StopWatch_Pause, file);
19616         newXS("Wx::StopWatch::Start", XS_Wx__StopWatch_Start, file);
19617         newXS("Wx::StopWatch::Resume", XS_Wx__StopWatch_Resume, file);
19618         newXS("Wx::StopWatch::Time", XS_Wx__StopWatch_Time, file);
19619 #if XSubPPtmpAAAW
19620         newXS("Wx::SingleInstanceChecker::new", XS_Wx__SingleInstanceChecker_new, file);
19621         newXS("Wx::SingleInstanceChecker::CLONE", XS_Wx__SingleInstanceChecker_CLONE, file);
19622         newXS("Wx::SingleInstanceChecker::DESTROY", XS_Wx__SingleInstanceChecker_DESTROY, file);
19623         newXS("Wx::SingleInstanceChecker::Create", XS_Wx__SingleInstanceChecker_Create, file);
19624         newXS("Wx::SingleInstanceChecker::IsAnotherRunning", XS_Wx__SingleInstanceChecker_IsAnotherRunning, file);
19625 #endif
19626 #if XSubPPtmpAAAX
19627         newXS("Wx::SystemOptions::SetOption", XS_Wx__SystemOptions_SetOption, file);
19628         newXS("Wx::SystemOptions::SetOptionInt", XS_Wx__SystemOptions_SetOptionInt, file);
19629         newXS("Wx::SystemOptions::GetOption", XS_Wx__SystemOptions_GetOption, file);
19630         newXS("Wx::SystemOptions::GetOptionInt", XS_Wx__SystemOptions_GetOptionInt, file);
19631         newXS("Wx::SystemOptions::HasOption", XS_Wx__SystemOptions_HasOption, file);
19632         newXS("Wx::SystemOptions::IsFalse", XS_Wx__SystemOptions_IsFalse, file);
19633 #endif
19634         newXS("Wx::SystemSettings::GetColour", XS_Wx__SystemSettings_GetColour, file);
19635         newXS("Wx::SystemSettings::GetSystemColour", XS_Wx__SystemSettings_GetSystemColour, file);
19636         newXS("Wx::SystemSettings::GetFont", XS_Wx__SystemSettings_GetFont, file);
19637         newXS("Wx::SystemSettings::GetSystemFont", XS_Wx__SystemSettings_GetSystemFont, file);
19638         newXS("Wx::SystemSettings::GetMetric", XS_Wx__SystemSettings_GetMetric, file);
19639         newXS("Wx::SystemSettings::GetSystemMetric", XS_Wx__SystemSettings_GetSystemMetric, file);
19640         newXS("Wx::SystemSettings::GetScreenType", XS_Wx__SystemSettings_GetScreenType, file);
19641         newXS("Wx::TipProvider::new", XS_Wx__TipProvider_new, file);
19642         newXS("Wx::TipProvider::Destroy", XS_Wx__TipProvider_Destroy, file);
19643         newXS("Wx::TipProvider::GetCurrentTip", XS_Wx__TipProvider_GetCurrentTip, file);
19644         newXS("Wx::TipProvider::GetTip", XS_Wx__TipProvider_GetTip, file);
19645         newXS("Wx::TipProvider::PreprocessTip", XS_Wx__TipProvider_PreprocessTip, file);
19646         newXS("Wx::TipProvider::SetCurrentTip", XS_Wx__TipProvider_SetCurrentTip, file);
19647 #if XSubPPtmpAAAY
19648         newXS("Wx::Thread::IsMain", XS_Wx__Thread_IsMain, file);
19649 #endif
19650 #if XSubPPtmpAAAZ
19651         newXS("Wx::IsStockID", XS_Wx_IsStockID, file);
19652         newXS("Wx::IsStockLabel", XS_Wx_IsStockLabel, file);
19653 #if XSubPPtmpAABA
19654         newXS("Wx::GetStockLabel", XS_Wx_GetStockLabel, file);
19655 #endif
19656 #if XSubPPtmpAABB
19657         newXS("Wx::GetStockLabel", XS_Wx_GetStockLabel, file);
19658 #endif
19659 #if XSubPPtmpAABC
19660         newXS("Wx::GetStockLabel", XS_Wx_GetStockLabel, file);
19661 #endif
19662 #endif
19663 #if XSubPPtmpAABD
19664         newXS("Wx::GetStockAccelerator", XS_Wx_GetStockAccelerator, file);
19665         newXS("Wx::GetStockHelpString", XS_Wx_GetStockHelpString, file);
19666 #endif
19667 #if XSubPPtmpAABE
19668         newXS("Wx::LaunchDefaultBrowser", XS_Wx_LaunchDefaultBrowser, file);
19669 #endif
19670 #if XSubPPtmpAABF
19671         newXS("Wx::LaunchDefaultBrowser", XS_Wx_LaunchDefaultBrowser, file);
19672 #endif
19673         newXS("Wx::ShowTip", XS_Wx_ShowTip, file);
19674         newXS("Wx::CreateFileTipProvider", XS_Wx_CreateFileTipProvider, file);
19675         newXS("Wx::Usleep", XS_Wx_Usleep, file);
19676 #if XSubPPtmpAABG
19677         newXS("Wx::MicroSleep", XS_Wx_MicroSleep, file);
19678 #endif
19679         newXS("Wx::MilliSleep", XS_Wx_MilliSleep, file);
19680         newXS("Wx::Sleep", XS_Wx_Sleep, file);
19681         newXS("Wx::Yield", XS_Wx_Yield, file);
19682         newXS("Wx::SafeYield", XS_Wx_SafeYield, file);
19683         newXS("Wx::YieldIfNeeded", XS_Wx_YieldIfNeeded, file);
19684         newXS("Wx::Trap", XS_Wx_Trap, file);
19685         newXS("Wx::GetOsDescription", XS_Wx_GetOsDescription, file);
19686         newXS("Wx::NewId", XS_Wx_NewId, file);
19687         newXS("Wx::NewEventType", XS_Wx_NewEventType, file);
19688         newXS("Wx::RegisterId", XS_Wx_RegisterId, file);
19689         newXS("Wx::Bell", XS_Wx_Bell, file);
19690         newXS("Wx::Exit", XS_Wx_Exit, file);
19691         newXS("Wx::Shell", XS_Wx_Shell, file);
19692 #if XSubPPtmpAABH
19693         newXS("Wx::GetKeyState", XS_Wx_GetKeyState, file);
19694 #endif
19695         newXS("Wx::_utf8_on", XS_Wx__utf8_on, file);
19696         newXS("Wx::_utf8_off", XS_Wx__utf8_off, file);
19697         newXS("Wx::LanguageInfo::new", XS_Wx__LanguageInfo_new, file);
19698         newXS("Wx::LanguageInfo::CLONE", XS_Wx__LanguageInfo_CLONE, file);
19699         newXS("Wx::LanguageInfo::DESTROY", XS_Wx__LanguageInfo_DESTROY, file);
19700         newXS("Wx::LanguageInfo::GetLanguage", XS_Wx__LanguageInfo_GetLanguage, file);
19701         newXS("Wx::LanguageInfo::GetCanonicalName", XS_Wx__LanguageInfo_GetCanonicalName, file);
19702         newXS("Wx::LanguageInfo::GetWinLang", XS_Wx__LanguageInfo_GetWinLang, file);
19703         newXS("Wx::LanguageInfo::GetWinSublang", XS_Wx__LanguageInfo_GetWinSublang, file);
19704         newXS("Wx::LanguageInfo::GetDescription", XS_Wx__LanguageInfo_GetDescription, file);
19705         newXS("Wx::Locale::newLong", XS_Wx__Locale_newLong, file);
19706         newXS("Wx::Locale::newShort", XS_Wx__Locale_newShort, file);
19707         newXS("Wx::Locale::CLONE", XS_Wx__Locale_CLONE, file);
19708         newXS("Wx::Locale::DESTROY", XS_Wx__Locale_DESTROY, file);
19709         newXS("Wx::Locale::AddCatalog", XS_Wx__Locale_AddCatalog, file);
19710         newXS("Wx::Locale::AddCatalogLookupPathPrefix", XS_Wx__Locale_AddCatalogLookupPathPrefix, file);
19711 #if XSubPPtmpAABI
19712         newXS("Wx::Locale::IsAvailable", XS_Wx__Locale_IsAvailable, file);
19713 #endif
19714         newXS("Wx::Locale::AddLanguage", XS_Wx__Locale_AddLanguage, file);
19715         newXS("Wx::Locale::GetLocale", XS_Wx__Locale_GetLocale, file);
19716         newXS("Wx::Locale::GetName", XS_Wx__Locale_GetName, file);
19717         newXS("Wx::Locale::GetString", XS_Wx__Locale_GetString, file);
19718 #if XSubPPtmpAABJ
19719         newXS("Wx::Locale::GetHeaderValue", XS_Wx__Locale_GetHeaderValue, file);
19720 #endif
19721         newXS("Wx::Locale::GetSystemLanguage", XS_Wx__Locale_GetSystemLanguage, file);
19722         newXS("Wx::Locale::GetLanguage", XS_Wx__Locale_GetLanguage, file);
19723 #if XSubPPtmpAABK
19724         newXS("Wx::Locale::GetLanguageName", XS_Wx__Locale_GetLanguageName, file);
19725 #endif
19726         newXS("Wx::Locale::GetSysName", XS_Wx__Locale_GetSysName, file);
19727         newXS("Wx::Locale::GetCanonicalName", XS_Wx__Locale_GetCanonicalName, file);
19728         newXS("Wx::Locale::GetSystemEncoding", XS_Wx__Locale_GetSystemEncoding, file);
19729         newXS("Wx::Locale::GetSystemEncodingName", XS_Wx__Locale_GetSystemEncodingName, file);
19730         newXS("Wx::Locale::IsLoaded", XS_Wx__Locale_IsLoaded, file);
19731         newXS("Wx::Locale::IsOk", XS_Wx__Locale_IsOk, file);
19732         newXS("Wx::Locale::FindLanguageInfo", XS_Wx__Locale_FindLanguageInfo, file);
19733         newXS("Wx::Locale::Init", XS_Wx__Locale_Init, file);
19734         newXS("Wx::Locale::GetLanguageInfo", XS_Wx__Locale_GetLanguageInfo, file);
19735         newXS("Wx::GetTranslation", XS_Wx_GetTranslation, file);
19736 #if XSubPPtmpAABL
19737         newXS("Wx::ToolTip::Enable", XS_Wx__ToolTip_Enable, file);
19738         newXS("Wx::ToolTip::SetDelay", XS_Wx__ToolTip_SetDelay, file);
19739 #if XSubPPtmpAABM
19740         newXS("Wx::ToolTip::SetAutoPop", XS_Wx__ToolTip_SetAutoPop, file);
19741         newXS("Wx::ToolTip::SetReshow", XS_Wx__ToolTip_SetReshow, file);
19742 #endif
19743         newXS("Wx::ToolTip::new", XS_Wx__ToolTip_new, file);
19744         newXS("Wx::ToolTip::SetTip", XS_Wx__ToolTip_SetTip, file);
19745         newXS("Wx::ToolTip::GetTip", XS_Wx__ToolTip_GetTip, file);
19746         newXS("Wx::ToolTip::GetWindow", XS_Wx__ToolTip_GetWindow, file);
19747 #endif
19748         newXS("Wx::Log::Destroy", XS_Wx__Log_Destroy, file);
19749         newXS("Wx::Log::AddTraceMask", XS_Wx__Log_AddTraceMask, file);
19750         newXS("Wx::Log::ClearTraceMasks", XS_Wx__Log_ClearTraceMasks, file);
19751         newXS("Wx::Log::RemoveTraceMask", XS_Wx__Log_RemoveTraceMask, file);
19752         newXS("Wx::Log::IsAllowedTraceMask", XS_Wx__Log_IsAllowedTraceMask, file);
19753         newXS("Wx::Log::GetActiveTarget", XS_Wx__Log_GetActiveTarget, file);
19754         newXS("Wx::Log::SetActiveTarget", XS_Wx__Log_SetActiveTarget, file);
19755         newXS("Wx::Log::DontCreateOnDemand", XS_Wx__Log_DontCreateOnDemand, file);
19756         newXS("Wx::Log::Flush", XS_Wx__Log_Flush, file);
19757         newXS("Wx::Log::FlushActive", XS_Wx__Log_FlushActive, file);
19758         newXS("Wx::Log::HasPendingMessages", XS_Wx__Log_HasPendingMessages, file);
19759         newXS("Wx::Log::SetVerbose", XS_Wx__Log_SetVerbose, file);
19760         newXS("Wx::Log::GetVerbose", XS_Wx__Log_GetVerbose, file);
19761 #if XSubPPtmpAABN
19762         newXS("Wx::Log::_SetTimestamp", XS_Wx__Log__SetTimestamp, file);
19763         newXS("Wx::Log::GetTimestamp", XS_Wx__Log_GetTimestamp, file);
19764 #endif
19765 #if XSubPPtmpAABO
19766         newXS("Wx::Log::_SetTimestamp", XS_Wx__Log__SetTimestamp, file);
19767         newXS("Wx::Log::GetTimestamp", XS_Wx__Log_GetTimestamp, file);
19768 #endif
19769         newXS("Wx::Log::SetTraceMask", XS_Wx__Log_SetTraceMask, file);
19770         newXS("Wx::Log::GetTraceMask", XS_Wx__Log_GetTraceMask, file);
19771         newXS("Wx::PlLog::new", XS_Wx__PlLog_new, file);
19772         newXS("Wx::LogTextCtrl::new", XS_Wx__LogTextCtrl_new, file);
19773         newXS("Wx::LogNull::new", XS_Wx__LogNull_new, file);
19774         newXS("Wx::LogNull::CLONE", XS_Wx__LogNull_CLONE, file);
19775         newXS("Wx::LogNull::DESTROY", XS_Wx__LogNull_DESTROY, file);
19776         newXS("Wx::LogGui::new", XS_Wx__LogGui_new, file);
19777         newXS("Wx::LogWindow::new", XS_Wx__LogWindow_new, file);
19778 #if XSubPPtmpAABP
19779         cv = newXS("Wx::wxLogError", XS_Wx_interface__wxstring, file);
19780         XSINTERFACE__wxstring_SET(cv,wxLogError) ;
19781         cv = newXS("Wx::wxLogWarning", XS_Wx_interface__wxstring, file);
19782         XSINTERFACE__wxstring_SET(cv,wxLogWarning) ;
19783         cv = newXS("Wx::wxLogFatalError", XS_Wx_interface__wxstring, file);
19784         XSINTERFACE__wxstring_SET(cv,wxLogFatalError) ;
19785         cv = newXS("Wx::wxLogMessage", XS_Wx_interface__wxstring, file);
19786         XSINTERFACE__wxstring_SET(cv,wxLogMessage) ;
19787         cv = newXS("Wx::wxLogDebug", XS_Wx_interface__wxstring, file);
19788         XSINTERFACE__wxstring_SET(cv,wxLogDebug) ;
19789         cv = newXS("Wx::wxLogVerbose", XS_Wx_interface__wxstring, file);
19790         XSINTERFACE__wxstring_SET(cv,wxLogVerbose) ;
19791 #endif
19792 #if XSubPPtmpAABQ
19793         newXS("Wx::wxLogError", XS_Wx_wxLogError, file);
19794         newXS("Wx::wxLogFatalError", XS_Wx_wxLogFatalError, file);
19795         newXS("Wx::wxLogWarning", XS_Wx_wxLogWarning, file);
19796         newXS("Wx::wxLogMessage", XS_Wx_wxLogMessage, file);
19797         newXS("Wx::wxLogVerbose", XS_Wx_wxLogVerbose, file);
19798         newXS("Wx::wxLogDebug", XS_Wx_wxLogDebug, file);
19799 #endif
19800 #if XSubPPtmpAABR
19801         newXS("Wx::wxLogError", XS_Wx_wxLogError, file);
19802         newXS("Wx::wxLogFatalError", XS_Wx_wxLogFatalError, file);
19803         newXS("Wx::wxLogWarning", XS_Wx_wxLogWarning, file);
19804         newXS("Wx::wxLogMessage", XS_Wx_wxLogMessage, file);
19805         newXS("Wx::wxLogVerbose", XS_Wx_wxLogVerbose, file);
19806         newXS("Wx::wxLogDebug", XS_Wx_wxLogDebug, file);
19807 #endif
19808         newXS("Wx::wxLogStatusFrame", XS_Wx_wxLogStatusFrame, file);
19809         newXS("Wx::wxLogStatus", XS_Wx_wxLogStatus, file);
19810 #if XSubPPtmpAABS
19811         newXS("Wx::wxLogTrace", XS_Wx_wxLogTrace, file);
19812 #endif
19813         newXS("Wx::wxLogTraceMask", XS_Wx_wxLogTraceMask, file);
19814         newXS("Wx::wxLogSysError", XS_Wx_wxLogSysError, file);
19815         newXS("Wx::SysErrorCode", XS_Wx_SysErrorCode, file);
19816         newXS("Wx::SysErrorMsg", XS_Wx_SysErrorMsg, file);
19817         newXS("Wx::LogChain::new", XS_Wx__LogChain_new, file);
19818         newXS("Wx::LogChain::GetOldLog", XS_Wx__LogChain_GetOldLog, file);
19819         newXS("Wx::LogChain::IsPassingMessages", XS_Wx__LogChain_IsPassingMessages, file);
19820         newXS("Wx::LogChain::PassMessages", XS_Wx__LogChain_PassMessages, file);
19821         newXS("Wx::LogChain::SetLog", XS_Wx__LogChain_SetLog, file);
19822         newXS("Wx::LogPassThrough::new", XS_Wx__LogPassThrough_new, file);
19823         newXS("Wx::PlLogPassThrough::new", XS_Wx__PlLogPassThrough_new, file);
19824         newXS("Wx::LogStderr::new", XS_Wx__LogStderr_new, file);
19825         newXS("Wx::Menu::new", XS_Wx__Menu_new, file);
19826 #if XSubPPtmpAABT
19827         newXS("Wx::Menu::AppendSubMenu", XS_Wx__Menu_AppendSubMenu, file);
19828 #endif
19829         newXS("Wx::Menu::AppendString", XS_Wx__Menu_AppendString, file);
19830         newXS("Wx::Menu::AppendSubMenu_", XS_Wx__Menu_AppendSubMenu_, file);
19831         newXS("Wx::Menu::AppendItem", XS_Wx__Menu_AppendItem, file);
19832         newXS("Wx::Menu::AppendCheckItem", XS_Wx__Menu_AppendCheckItem, file);
19833         newXS("Wx::Menu::AppendRadioItem", XS_Wx__Menu_AppendRadioItem, file);
19834         newXS("Wx::Menu::AppendSeparator", XS_Wx__Menu_AppendSeparator, file);
19835         newXS("Wx::Menu::Break", XS_Wx__Menu_Break, file);
19836         newXS("Wx::Menu::Check", XS_Wx__Menu_Check, file);
19837         newXS("Wx::Menu::DeleteId", XS_Wx__Menu_DeleteId, file);
19838         newXS("Wx::Menu::DeleteItem", XS_Wx__Menu_DeleteItem, file);
19839         newXS("Wx::Menu::DestroyMenu", XS_Wx__Menu_DestroyMenu, file);
19840         newXS("Wx::Menu::DestroyId", XS_Wx__Menu_DestroyId, file);
19841         newXS("Wx::Menu::DestroyItem", XS_Wx__Menu_DestroyItem, file);
19842         newXS("Wx::Menu::Enable", XS_Wx__Menu_Enable, file);
19843 #if XSubPPtmpAABU
19844         newXS("Wx::Menu::FindItemByPosition", XS_Wx__Menu_FindItemByPosition, file);
19845 #endif
19846         newXS("Wx::Menu::FindItem", XS_Wx__Menu_FindItem, file);
19847         newXS("Wx::Menu::GetHelpString", XS_Wx__Menu_GetHelpString, file);
19848         newXS("Wx::Menu::GetLabel", XS_Wx__Menu_GetLabel, file);
19849 #if XSubPPtmpAABV
19850         newXS("Wx::Menu::GetLabelText", XS_Wx__Menu_GetLabelText, file);
19851 #endif
19852         newXS("Wx::Menu::GetMenuItemCount", XS_Wx__Menu_GetMenuItemCount, file);
19853         newXS("Wx::Menu::GetMenuItems", XS_Wx__Menu_GetMenuItems, file);
19854         newXS("Wx::Menu::GetTitle", XS_Wx__Menu_GetTitle, file);
19855         newXS("Wx::Menu::InsertItem", XS_Wx__Menu_InsertItem, file);
19856         newXS("Wx::Menu::InsertString", XS_Wx__Menu_InsertString, file);
19857         newXS("Wx::Menu::InsertSubMenu", XS_Wx__Menu_InsertSubMenu, file);
19858         newXS("Wx::Menu::InsertCheckItem", XS_Wx__Menu_InsertCheckItem, file);
19859         newXS("Wx::Menu::InsertRadioItem", XS_Wx__Menu_InsertRadioItem, file);
19860         newXS("Wx::Menu::InsertSeparator", XS_Wx__Menu_InsertSeparator, file);
19861         newXS("Wx::Menu::IsChecked", XS_Wx__Menu_IsChecked, file);
19862         newXS("Wx::Menu::IsEnabled", XS_Wx__Menu_IsEnabled, file);
19863         newXS("Wx::Menu::PrependString", XS_Wx__Menu_PrependString, file);
19864         newXS("Wx::Menu::PrependItem", XS_Wx__Menu_PrependItem, file);
19865         newXS("Wx::Menu::PrependSubMenu", XS_Wx__Menu_PrependSubMenu, file);
19866         newXS("Wx::Menu::PrependCheckItem", XS_Wx__Menu_PrependCheckItem, file);
19867         newXS("Wx::Menu::PrependRadioItem", XS_Wx__Menu_PrependRadioItem, file);
19868         newXS("Wx::Menu::PrependSeparator", XS_Wx__Menu_PrependSeparator, file);
19869         newXS("Wx::Menu::RemoveId", XS_Wx__Menu_RemoveId, file);
19870         newXS("Wx::Menu::RemoveItem", XS_Wx__Menu_RemoveItem, file);
19871         newXS("Wx::Menu::SetHelpString", XS_Wx__Menu_SetHelpString, file);
19872         newXS("Wx::Menu::SetLabel", XS_Wx__Menu_SetLabel, file);
19873         newXS("Wx::Menu::SetTitle", XS_Wx__Menu_SetTitle, file);
19874         newXS("Wx::Menu::UpdateUI", XS_Wx__Menu_UpdateUI, file);
19875         newXS("Wx::MenuBar::new", XS_Wx__MenuBar_new, file);
19876         newXS("Wx::MenuBar::Append", XS_Wx__MenuBar_Append, file);
19877         newXS("Wx::MenuBar::Check", XS_Wx__MenuBar_Check, file);
19878         newXS("Wx::MenuBar::Enable", XS_Wx__MenuBar_Enable, file);
19879         newXS("Wx::MenuBar::EnableTop", XS_Wx__MenuBar_EnableTop, file);
19880         newXS("Wx::MenuBar::FindItem", XS_Wx__MenuBar_FindItem, file);
19881         newXS("Wx::MenuBar::FindMenu", XS_Wx__MenuBar_FindMenu, file);
19882         newXS("Wx::MenuBar::FindMenuItem", XS_Wx__MenuBar_FindMenuItem, file);
19883         newXS("Wx::MenuBar::GetHelpString", XS_Wx__MenuBar_GetHelpString, file);
19884         newXS("Wx::MenuBar::GetLabel", XS_Wx__MenuBar_GetLabel, file);
19885 #if XSubPPtmpAABW
19886         newXS("Wx::MenuBar::GetLabelTop", XS_Wx__MenuBar_GetLabelTop, file);
19887 #endif
19888 #if XSubPPtmpAABX
19889         newXS("Wx::MenuBar::GetMenuLabel", XS_Wx__MenuBar_GetMenuLabel, file);
19890         newXS("Wx::MenuBar::GetMenuLabelText", XS_Wx__MenuBar_GetMenuLabelText, file);
19891 #endif
19892         newXS("Wx::MenuBar::GetMenu", XS_Wx__MenuBar_GetMenu, file);
19893         newXS("Wx::MenuBar::GetMenuCount", XS_Wx__MenuBar_GetMenuCount, file);
19894         newXS("Wx::MenuBar::Insert", XS_Wx__MenuBar_Insert, file);
19895         newXS("Wx::MenuBar::IsChecked", XS_Wx__MenuBar_IsChecked, file);
19896         newXS("Wx::MenuBar::IsEnabled", XS_Wx__MenuBar_IsEnabled, file);
19897         newXS("Wx::MenuBar::Refresh", XS_Wx__MenuBar_Refresh, file);
19898         newXS("Wx::MenuBar::Remove", XS_Wx__MenuBar_Remove, file);
19899         newXS("Wx::MenuBar::Replace", XS_Wx__MenuBar_Replace, file);
19900         newXS("Wx::MenuBar::SetHelpString", XS_Wx__MenuBar_SetHelpString, file);
19901         newXS("Wx::MenuBar::SetLabel", XS_Wx__MenuBar_SetLabel, file);
19902 #if XSubPPtmpAABY
19903         newXS("Wx::MenuBar::SetLabelTop", XS_Wx__MenuBar_SetLabelTop, file);
19904 #endif
19905 #if XSubPPtmpAABZ
19906         newXS("Wx::MenuBar::SetMenuLabel", XS_Wx__MenuBar_SetMenuLabel, file);
19907 #endif
19908         newXS("Wx::MenuBar::IsEnabledTop", XS_Wx__MenuBar_IsEnabledTop, file);
19909         newXS("Wx::MenuItem::new", XS_Wx__MenuItem_new, file);
19910         newXS("Wx::MenuItem::Check", XS_Wx__MenuItem_Check, file);
19911         newXS("Wx::MenuItem::Enable", XS_Wx__MenuItem_Enable, file);
19912 #if XSubPPtmpAACA
19913         newXS("Wx::MenuItem::GetBackgroundColour", XS_Wx__MenuItem_GetBackgroundColour, file);
19914         newXS("Wx::MenuItem::GetFont", XS_Wx__MenuItem_GetFont, file);
19915 #endif
19916 #if XSubPPtmpAACB
19917         newXS("Wx::MenuItem::GetBitmap", XS_Wx__MenuItem_GetBitmap, file);
19918 #endif
19919         newXS("Wx::MenuItem::GetHelp", XS_Wx__MenuItem_GetHelp, file);
19920 #if XSubPPtmpAACC
19921         newXS("Wx::MenuItem::GetName", XS_Wx__MenuItem_GetName, file);
19922 #endif
19923         newXS("Wx::MenuItem::GetId", XS_Wx__MenuItem_GetId, file);
19924         newXS("Wx::MenuItem::GetKind", XS_Wx__MenuItem_GetKind, file);
19925 #if XSubPPtmpAACD
19926         newXS("Wx::MenuItem::GetLabel", XS_Wx__MenuItem_GetLabel, file);
19927         newXS("Wx::MenuItem::GetLabelFromText", XS_Wx__MenuItem_GetLabelFromText, file);
19928 #endif
19929 #if XSubPPtmpAACE
19930         newXS("Wx::MenuItem::GetItemLabel", XS_Wx__MenuItem_GetItemLabel, file);
19931         newXS("Wx::MenuItem::GetItemLabelText", XS_Wx__MenuItem_GetItemLabelText, file);
19932         newXS("Wx::MenuItem::GetLabelText", XS_Wx__MenuItem_GetLabelText, file);
19933 #endif
19934         newXS("Wx::MenuItem::GetMenu", XS_Wx__MenuItem_GetMenu, file);
19935 #if XSubPPtmpAACF
19936         newXS("Wx::MenuItem::GetMarginWidth", XS_Wx__MenuItem_GetMarginWidth, file);
19937 #endif
19938 #if XSubPPtmpAACG
19939         newXS("Wx::MenuItem::GetText", XS_Wx__MenuItem_GetText, file);
19940 #endif
19941         newXS("Wx::MenuItem::GetSubMenu", XS_Wx__MenuItem_GetSubMenu, file);
19942 #if XSubPPtmpAACH
19943         newXS("Wx::MenuItem::GetTextColour", XS_Wx__MenuItem_GetTextColour, file);
19944 #endif
19945         newXS("Wx::MenuItem::IsCheckable", XS_Wx__MenuItem_IsCheckable, file);
19946         newXS("Wx::MenuItem::IsChecked", XS_Wx__MenuItem_IsChecked, file);
19947         newXS("Wx::MenuItem::IsEnabled", XS_Wx__MenuItem_IsEnabled, file);
19948         newXS("Wx::MenuItem::IsSeparator", XS_Wx__MenuItem_IsSeparator, file);
19949         newXS("Wx::MenuItem::IsSubMenu", XS_Wx__MenuItem_IsSubMenu, file);
19950 #if XSubPPtmpAACI
19951         newXS("Wx::MenuItem::SetBackgroundColour", XS_Wx__MenuItem_SetBackgroundColour, file);
19952         newXS("Wx::MenuItem::SetFont", XS_Wx__MenuItem_SetFont, file);
19953 #endif
19954         newXS("Wx::MenuItem::SetHelp", XS_Wx__MenuItem_SetHelp, file);
19955         newXS("Wx::MenuItem::SetMenu", XS_Wx__MenuItem_SetMenu, file);
19956         newXS("Wx::MenuItem::SetSubMenu", XS_Wx__MenuItem_SetSubMenu, file);
19957 #if XSubPPtmpAACJ
19958         newXS("Wx::MenuItem::SetText", XS_Wx__MenuItem_SetText, file);
19959 #endif
19960 #if XSubPPtmpAACK
19961         newXS("Wx::MenuItem::SetItemLabel", XS_Wx__MenuItem_SetItemLabel, file);
19962 #endif
19963 #if XSubPPtmpAACL
19964         newXS("Wx::MenuItem::SetMarginWidth", XS_Wx__MenuItem_SetMarginWidth, file);
19965         newXS("Wx::MenuItem::SetTextColour", XS_Wx__MenuItem_SetTextColour, file);
19966         newXS("Wx::MenuItem::SetBitmaps", XS_Wx__MenuItem_SetBitmaps, file);
19967 #endif
19968 #if XSubPPtmpAACM
19969         newXS("Wx::MenuItem::SetBitmap", XS_Wx__MenuItem_SetBitmap, file);
19970 #endif
19971         newXS("Wx::Size::new", XS_Wx__Size_new, file);
19972         newXS("Wx::Size::CLONE", XS_Wx__Size_CLONE, file);
19973         newXS("Wx::Size::DESTROY", XS_Wx__Size_DESTROY, file);
19974         newXS("Wx::Size::width", XS_Wx__Size_width, file);
19975         newXS("Wx::Size::height", XS_Wx__Size_height, file);
19976         newXS("Wx::Size::GetHeight", XS_Wx__Size_GetHeight, file);
19977         newXS("Wx::Size::GetWidth", XS_Wx__Size_GetWidth, file);
19978         newXS("Wx::Size::Set", XS_Wx__Size_Set, file);
19979         newXS("Wx::Size::SetHeight", XS_Wx__Size_SetHeight, file);
19980         newXS("Wx::Size::SetWidth", XS_Wx__Size_SetWidth, file);
19981         newXS("Wx::Size::IncTo", XS_Wx__Size_IncTo, file);
19982         newXS("Wx::Size::DecTo", XS_Wx__Size_DecTo, file);
19983 #if XSubPPtmpAACN
19984         newXS("Wx::Size::Scale", XS_Wx__Size_Scale, file);
19985 #endif
19986         newXS("Wx::Size::IsFullySpecified", XS_Wx__Size_IsFullySpecified, file);
19987         newXS("Wx::Size::SetDefaults", XS_Wx__Size_SetDefaults, file);
19988         newXS("Wx::Point::new", XS_Wx__Point_new, file);
19989         newXS("Wx::Point::CLONE", XS_Wx__Point_CLONE, file);
19990         newXS("Wx::Point::DESTROY", XS_Wx__Point_DESTROY, file);
19991         newXS("Wx::Point::x", XS_Wx__Point_x, file);
19992         newXS("Wx::Point::y", XS_Wx__Point_y, file);
19993         newXS("Wx::Rect::new", XS_Wx__Rect_new, file);
19994         newXS("Wx::Rect::newXYWH", XS_Wx__Rect_newXYWH, file);
19995         newXS("Wx::Rect::newPP", XS_Wx__Rect_newPP, file);
19996         newXS("Wx::Rect::newPS", XS_Wx__Rect_newPS, file);
19997         newXS("Wx::Rect::CLONE", XS_Wx__Rect_CLONE, file);
19998         newXS("Wx::Rect::DESTROY", XS_Wx__Rect_DESTROY, file);
19999         newXS("Wx::Rect::x", XS_Wx__Rect_x, file);
20000         newXS("Wx::Rect::y", XS_Wx__Rect_y, file);
20001         newXS("Wx::Rect::width", XS_Wx__Rect_width, file);
20002         newXS("Wx::Rect::height", XS_Wx__Rect_height, file);
20003         newXS("Wx::Rect::GetBottom", XS_Wx__Rect_GetBottom, file);
20004         newXS("Wx::Rect::GetHeight", XS_Wx__Rect_GetHeight, file);
20005         newXS("Wx::Rect::GetLeft", XS_Wx__Rect_GetLeft, file);
20006         newXS("Wx::Rect::GetPosition", XS_Wx__Rect_GetPosition, file);
20007         newXS("Wx::Rect::GetTopLeft", XS_Wx__Rect_GetTopLeft, file);
20008         newXS("Wx::Rect::GetBottomRight", XS_Wx__Rect_GetBottomRight, file);
20009 #if XSubPPtmpAACO
20010         newXS("Wx::Rect::GetBottomLeft", XS_Wx__Rect_GetBottomLeft, file);
20011         newXS("Wx::Rect::GetTopRight", XS_Wx__Rect_GetTopRight, file);
20012         newXS("Wx::Rect::IsEmpty", XS_Wx__Rect_IsEmpty, file);
20013         newXS("Wx::Rect::Union", XS_Wx__Rect_Union, file);
20014 #endif
20015         newXS("Wx::Rect::GetRight", XS_Wx__Rect_GetRight, file);
20016         newXS("Wx::Rect::GetSize", XS_Wx__Rect_GetSize, file);
20017         newXS("Wx::Rect::GetTop", XS_Wx__Rect_GetTop, file);
20018         newXS("Wx::Rect::GetWidth", XS_Wx__Rect_GetWidth, file);
20019         newXS("Wx::Rect::GetX", XS_Wx__Rect_GetX, file);
20020         newXS("Wx::Rect::GetY", XS_Wx__Rect_GetY, file);
20021         newXS("Wx::Rect::Deflate", XS_Wx__Rect_Deflate, file);
20022         newXS("Wx::Rect::Inflate", XS_Wx__Rect_Inflate, file);
20023         newXS("Wx::Rect::Intersect", XS_Wx__Rect_Intersect, file);
20024         newXS("Wx::Rect::Intersects", XS_Wx__Rect_Intersects, file);
20025         newXS("Wx::Rect::SetHeight", XS_Wx__Rect_SetHeight, file);
20026         newXS("Wx::Rect::SetWidth", XS_Wx__Rect_SetWidth, file);
20027         newXS("Wx::Rect::SetX", XS_Wx__Rect_SetX, file);
20028         newXS("Wx::Rect::SetY", XS_Wx__Rect_SetY, file);
20029         newXS("Wx::Rect::SetPosition", XS_Wx__Rect_SetPosition, file);
20030         newXS("Wx::Rect::SetSize", XS_Wx__Rect_SetSize, file);
20031         newXS("Wx::Rect::Offset", XS_Wx__Rect_Offset, file);
20032         newXS("Wx::Rect::Contains", XS_Wx__Rect_Contains, file);
20033         newXS("Wx::Rect::Inside", XS_Wx__Rect_Inside, file);
20034         newXS("Wx::Rect::ContainsXY", XS_Wx__Rect_ContainsXY, file);
20035         newXS("Wx::Rect::ContainsPoint", XS_Wx__Rect_ContainsPoint, file);
20036 #if XSubPPtmpAACP
20037         newXS("Wx::Rect::ContainsRect", XS_Wx__Rect_ContainsRect, file);
20038         newXS("Wx::Rect::CentreIn", XS_Wx__Rect_CentreIn, file);
20039 #endif
20040         newXS("Wx::Region::newEmpty", XS_Wx__Region_newEmpty, file);
20041         newXS("Wx::Region::newXYWH", XS_Wx__Region_newXYWH, file);
20042         newXS("Wx::Region::newPP", XS_Wx__Region_newPP, file);
20043         newXS("Wx::Region::newRect", XS_Wx__Region_newRect, file);
20044 #if XSubPPtmpAACQ
20045         newXS("Wx::Region::newPolygon", XS_Wx__Region_newPolygon, file);
20046 #endif
20047 #if XSubPPtmpAACR
20048         newXS("Wx::Region::newBitmap", XS_Wx__Region_newBitmap, file);
20049         newXS("Wx::Region::newBitmapOnly", XS_Wx__Region_newBitmapOnly, file);
20050 #endif
20051         newXS("Wx::Region::new", XS_Wx__Region_new, file);
20052         newXS("Wx::Region::CLONE", XS_Wx__Region_CLONE, file);
20053         newXS("Wx::Region::DESTROY", XS_Wx__Region_DESTROY, file);
20054         newXS("Wx::Region::Clear", XS_Wx__Region_Clear, file);
20055         newXS("Wx::Region::ContainsXY", XS_Wx__Region_ContainsXY, file);
20056         newXS("Wx::Region::ContainsPoint", XS_Wx__Region_ContainsPoint, file);
20057         newXS("Wx::Region::ContainsXYWH", XS_Wx__Region_ContainsXYWH, file);
20058         newXS("Wx::Region::ContainsRect", XS_Wx__Region_ContainsRect, file);
20059         newXS("Wx::Region::Contains", XS_Wx__Region_Contains, file);
20060         newXS("Wx::Region::ConvertToBitmap", XS_Wx__Region_ConvertToBitmap, file);
20061         newXS("Wx::Region::GetBox", XS_Wx__Region_GetBox, file);
20062         newXS("Wx::Region::GetBoxXYWH", XS_Wx__Region_GetBoxXYWH, file);
20063         newXS("Wx::Region::IntersectXYWH", XS_Wx__Region_IntersectXYWH, file);
20064         newXS("Wx::Region::IntersectRect", XS_Wx__Region_IntersectRect, file);
20065         newXS("Wx::Region::IntersectRegion", XS_Wx__Region_IntersectRegion, file);
20066         newXS("Wx::Region::Intersect", XS_Wx__Region_Intersect, file);
20067         newXS("Wx::Region::IsEmpty", XS_Wx__Region_IsEmpty, file);
20068 #if XSubPPtmpAACS
20069         newXS("Wx::Region::IsEqual", XS_Wx__Region_IsEqual, file);
20070 #endif
20071         newXS("Wx::Region::SubtractRect", XS_Wx__Region_SubtractRect, file);
20072 #if XSubPPtmpAACT
20073         newXS("Wx::Region::Offset", XS_Wx__Region_Offset, file);
20074 #endif
20075         newXS("Wx::Region::SubtractRegion", XS_Wx__Region_SubtractRegion, file);
20076         newXS("Wx::Region::Subtract", XS_Wx__Region_Subtract, file);
20077         newXS("Wx::Region::UnionXYWH", XS_Wx__Region_UnionXYWH, file);
20078         newXS("Wx::Region::UnionRect", XS_Wx__Region_UnionRect, file);
20079         newXS("Wx::Region::UnionRegion", XS_Wx__Region_UnionRegion, file);
20080         newXS("Wx::Region::UnionBitmapOnly", XS_Wx__Region_UnionBitmapOnly, file);
20081         newXS("Wx::Region::UnionBitmap", XS_Wx__Region_UnionBitmap, file);
20082         newXS("Wx::Region::Union", XS_Wx__Region_Union, file);
20083         newXS("Wx::Region::XorXYWH", XS_Wx__Region_XorXYWH, file);
20084         newXS("Wx::Region::XorRect", XS_Wx__Region_XorRect, file);
20085         newXS("Wx::Region::XorRegion", XS_Wx__Region_XorRegion, file);
20086         newXS("Wx::Region::Xor", XS_Wx__Region_Xor, file);
20087 #if XSubPPtmpAACU
20088         newXS("Wx::Position::new", XS_Wx__Position_new, file);
20089         newXS("Wx::Position::CLONE", XS_Wx__Position_CLONE, file);
20090         newXS("Wx::Position::DESTROY", XS_Wx__Position_DESTROY, file);
20091         newXS("Wx::Position::row", XS_Wx__Position_row, file);
20092         newXS("Wx::Position::col", XS_Wx__Position_col, file);
20093         newXS("Wx::Position::column", XS_Wx__Position_column, file);
20094         newXS("Wx::Position::GetRow", XS_Wx__Position_GetRow, file);
20095         newXS("Wx::Position::GetCol", XS_Wx__Position_GetCol, file);
20096         newXS("Wx::Position::GetColumn", XS_Wx__Position_GetColumn, file);
20097         newXS("Wx::Position::SetRow", XS_Wx__Position_SetRow, file);
20098         newXS("Wx::Position::SetCol", XS_Wx__Position_SetCol, file);
20099         newXS("Wx::Position::SetColumn", XS_Wx__Position_SetColumn, file);
20100 #endif
20101         newXS("Wx::Caret::new", XS_Wx__Caret_new, file);
20102         newXS("Wx::Caret::newDefault", XS_Wx__Caret_newDefault, file);
20103         newXS("Wx::Caret::newSize", XS_Wx__Caret_newSize, file);
20104         newXS("Wx::Caret::newWH", XS_Wx__Caret_newWH, file);
20105         newXS("Wx::Caret::Create", XS_Wx__Caret_Create, file);
20106         newXS("Wx::Caret::CreateSize", XS_Wx__Caret_CreateSize, file);
20107         newXS("Wx::Caret::CreateWH", XS_Wx__Caret_CreateWH, file);
20108         newXS("Wx::Caret::Destroy", XS_Wx__Caret_Destroy, file);
20109         newXS("Wx::Caret::GetBlinkTime", XS_Wx__Caret_GetBlinkTime, file);
20110         newXS("Wx::Caret::GetSizeWH", XS_Wx__Caret_GetSizeWH, file);
20111         newXS("Wx::Caret::GetSize", XS_Wx__Caret_GetSize, file);
20112         newXS("Wx::Caret::GetPositionXY", XS_Wx__Caret_GetPositionXY, file);
20113         newXS("Wx::Caret::GetPosition", XS_Wx__Caret_GetPosition, file);
20114         newXS("Wx::Caret::GetWindow", XS_Wx__Caret_GetWindow, file);
20115         newXS("Wx::Caret::Hide", XS_Wx__Caret_Hide, file);
20116         newXS("Wx::Caret::IsOk", XS_Wx__Caret_IsOk, file);
20117         newXS("Wx::Caret::IsVisible", XS_Wx__Caret_IsVisible, file);
20118         newXS("Wx::Caret::Move", XS_Wx__Caret_Move, file);
20119         newXS("Wx::Caret::MovePoint", XS_Wx__Caret_MovePoint, file);
20120         newXS("Wx::Caret::MoveXY", XS_Wx__Caret_MoveXY, file);
20121         newXS("Wx::Caret::SetBlinkTime", XS_Wx__Caret_SetBlinkTime, file);
20122         newXS("Wx::Caret::SetSize", XS_Wx__Caret_SetSize, file);
20123         newXS("Wx::Caret::SetSizeSize", XS_Wx__Caret_SetSizeSize, file);
20124         newXS("Wx::Caret::SetSizeWH", XS_Wx__Caret_SetSizeWH, file);
20125         newXS("Wx::Caret::Show", XS_Wx__Caret_Show, file);
20126         newXS("Wx::PostEvent", XS_Wx_PostEvent, file);
20127         newXS("Wx::WakeUpIdle", XS_Wx_WakeUpIdle, file);
20128         newXS("Wx::_App::Start", XS_Wx___App_Start, file);
20129         newXS("Wx::_App::new", XS_Wx___App_new, file);
20130         newXS("Wx::App::Dispatch", XS_Wx__App_Dispatch, file);
20131         newXS("Wx::App::GetAppName", XS_Wx__App_GetAppName, file);
20132 #if XSubPPtmpAACV
20133         newXS("Wx::App::GetAppDisplayName", XS_Wx__App_GetAppDisplayName, file);
20134 #endif
20135 #if XSubPPtmpAACW
20136         newXS("Wx::App::GetAuto3D", XS_Wx__App_GetAuto3D, file);
20137 #endif
20138         newXS("Wx::App::GetClassName", XS_Wx__App_GetClassName, file);
20139         newXS("Wx::App::GetExitOnFrameDelete", XS_Wx__App_GetExitOnFrameDelete, file);
20140         newXS("Wx::App::GetStdIcon", XS_Wx__App_GetStdIcon, file);
20141         newXS("Wx::App::GetTopWindow", XS_Wx__App_GetTopWindow, file);
20142         newXS("Wx::App::GetUseBestVisual", XS_Wx__App_GetUseBestVisual, file);
20143         newXS("Wx::App::GetVendorName", XS_Wx__App_GetVendorName, file);
20144 #if XSubPPtmpAACX
20145         newXS("Wx::App::GetVendorDisplayName", XS_Wx__App_GetVendorDisplayName, file);
20146 #endif
20147         newXS("Wx::App::ExitMainLoop", XS_Wx__App_ExitMainLoop, file);
20148 #if XSubPPtmpAACY
20149         newXS("Wx::App::Initialized", XS_Wx__App_Initialized, file);
20150 #endif
20151         newXS("Wx::App::MainLoop", XS_Wx__App_MainLoop, file);
20152         newXS("Wx::App::Pending", XS_Wx__App_Pending, file);
20153         newXS("Wx::App::ProcessPendingEvents", XS_Wx__App_ProcessPendingEvents, file);
20154         newXS("Wx::App::SetAppName", XS_Wx__App_SetAppName, file);
20155 #if XSubPPtmpAACZ
20156         newXS("Wx::App::SetAppDisplayName", XS_Wx__App_SetAppDisplayName, file);
20157 #endif
20158 #if XSubPPtmpAADA
20159         newXS("Wx::App::SetAuto3D", XS_Wx__App_SetAuto3D, file);
20160 #endif
20161         newXS("Wx::App::SetClassName", XS_Wx__App_SetClassName, file);
20162         newXS("Wx::App::SetExitOnFrameDelete", XS_Wx__App_SetExitOnFrameDelete, file);
20163         newXS("Wx::App::SetTopWindow", XS_Wx__App_SetTopWindow, file);
20164         newXS("Wx::App::SetVendorName", XS_Wx__App_SetVendorName, file);
20165 #if XSubPPtmpAADB
20166         newXS("Wx::App::SetVendorDisplayName", XS_Wx__App_SetVendorDisplayName, file);
20167 #endif
20168         newXS("Wx::App::SetUseBestVisual", XS_Wx__App_SetUseBestVisual, file);
20169         newXS("Wx::App::Yield", XS_Wx__App_Yield, file);
20170 #if XSubPPtmpAADC
20171         newXS("Wx::App::GetComCtl32Version", XS_Wx__App_GetComCtl32Version, file);
20172 #endif
20173 #if XSubPPtmpAADD
20174         newXS("Wx::App::Exit", XS_Wx__App_Exit, file);
20175         newXS("Wx::App::ProcessIdle", XS_Wx__App_ProcessIdle, file);
20176         newXS("Wx::App::SendIdleEvents", XS_Wx__App_SendIdleEvents, file);
20177         newXS("Wx::App::IsActive", XS_Wx__App_IsActive, file);
20178 #endif
20179 #if XSubPPtmpAADE
20180         newXS("Wx::App::GetLayoutDirection", XS_Wx__App_GetLayoutDirection, file);
20181 #endif
20182         newXS("Wx::App::GetInstance", XS_Wx__App_GetInstance, file);
20183         newXS("Wx::App::SetInstance", XS_Wx__App_SetInstance, file);
20184         newXS("Wx::App::IsMainLoopRunning", XS_Wx__App_IsMainLoopRunning, file);
20185 #if XSubPPtmpAADF
20186         newXS("Wx::IconLocation::IsOk", XS_Wx__IconLocation_IsOk, file);
20187 #endif
20188 #if XSubPPtmpAADG
20189         newXS("Wx::FileTypeInfo::IsValid", XS_Wx__FileTypeInfo_IsValid, file);
20190         newXS("Wx::FileTypeInfo::SetIcon", XS_Wx__FileTypeInfo_SetIcon, file);
20191         newXS("Wx::FileTypeInfo::SetShortDesc", XS_Wx__FileTypeInfo_SetShortDesc, file);
20192         newXS("Wx::FileTypeInfo::GetMimeType", XS_Wx__FileTypeInfo_GetMimeType, file);
20193         newXS("Wx::FileTypeInfo::GetOpenCommand", XS_Wx__FileTypeInfo_GetOpenCommand, file);
20194         newXS("Wx::FileTypeInfo::GetPrintCommand", XS_Wx__FileTypeInfo_GetPrintCommand, file);
20195         newXS("Wx::FileTypeInfo::GetShortDesc", XS_Wx__FileTypeInfo_GetShortDesc, file);
20196         newXS("Wx::FileTypeInfo::GetDescription", XS_Wx__FileTypeInfo_GetDescription, file);
20197         newXS("Wx::FileTypeInfo::GetExtensionsCount", XS_Wx__FileTypeInfo_GetExtensionsCount, file);
20198         newXS("Wx::FileTypeInfo::GetIconFile", XS_Wx__FileTypeInfo_GetIconFile, file);
20199         newXS("Wx::FileTypeInfo::GetIconIndex", XS_Wx__FileTypeInfo_GetIconIndex, file);
20200         newXS("Wx::FileTypeInfo::new", XS_Wx__FileTypeInfo_new, file);
20201         newXS("Wx::FileTypeInfo::GetExtensions", XS_Wx__FileTypeInfo_GetExtensions, file);
20202         newXS("Wx::FileType::GetMimeTypes", XS_Wx__FileType_GetMimeTypes, file);
20203         newXS("Wx::FileType::GetMimeType", XS_Wx__FileType_GetMimeType, file);
20204         newXS("Wx::FileType::GetExtensions", XS_Wx__FileType_GetExtensions, file);
20205         newXS("Wx::FileType::GetIcon", XS_Wx__FileType_GetIcon, file);
20206         newXS("Wx::FileType::GetDescription", XS_Wx__FileType_GetDescription, file);
20207         newXS("Wx::FileType::GetOpenCommand", XS_Wx__FileType_GetOpenCommand, file);
20208         newXS("Wx::FileType::GetPrintCommand", XS_Wx__FileType_GetPrintCommand, file);
20209         newXS("Wx::MimeTypesManager::new", XS_Wx__MimeTypesManager_new, file);
20210         newXS("Wx::MimeTypesManager::CLONE", XS_Wx__MimeTypesManager_CLONE, file);
20211         newXS("Wx::MimeTypesManager::DESTROY", XS_Wx__MimeTypesManager_DESTROY, file);
20212         newXS("Wx::MimeTypesManager::AddFallbacks", XS_Wx__MimeTypesManager_AddFallbacks, file);
20213         newXS("Wx::MimeTypesManager::GetFileTypeFromExtension", XS_Wx__MimeTypesManager_GetFileTypeFromExtension, file);
20214         newXS("Wx::MimeTypesManager::GetFileTypeFromMimeType", XS_Wx__MimeTypesManager_GetFileTypeFromMimeType, file);
20215         newXS("Wx::MimeTypesManager::IsOfType", XS_Wx__MimeTypesManager_IsOfType, file);
20216 #if XSubPPtmpAADH
20217         newXS("Wx::MimeTypesManager::ReadMailcap", XS_Wx__MimeTypesManager_ReadMailcap, file);
20218         newXS("Wx::MimeTypesManager::ReadMimeTypes", XS_Wx__MimeTypesManager_ReadMimeTypes, file);
20219 #endif
20220 #endif
20221 #if XSubPPtmpAADI
20222         newXS("Wx::Sound::newDefault", XS_Wx__Sound_newDefault, file);
20223         newXS("Wx::Sound::newFile", XS_Wx__Sound_newFile, file);
20224         newXS("Wx::Sound::CLONE", XS_Wx__Sound_CLONE, file);
20225         newXS("Wx::Sound::DESTROY", XS_Wx__Sound_DESTROY, file);
20226         newXS("Wx::Sound::Create", XS_Wx__Sound_Create, file);
20227         newXS("Wx::Sound::Play", XS_Wx__Sound_Play, file);
20228         newXS("Wx::Sound::IsOk", XS_Wx__Sound_IsOk, file);
20229         newXS("Wx::Sound::new", XS_Wx__Sound_new, file);
20230         newXS("Wx::Sound::newData", XS_Wx__Sound_newData, file);
20231 #if XSubPPtmpAADJ
20232         newXS("Wx::Sound::CreateData", XS_Wx__Sound_CreateData, file);
20233 #endif
20234         newXS("Wx::Sound::Stop", XS_Wx__Sound_Stop, file);
20235 #if XSubPPtmpAADK
20236         newXS("Wx::Sound::IsPlaying", XS_Wx__Sound_IsPlaying, file);
20237 #endif
20238 #endif
20239 #if XSubPPtmpAADL
20240         newXS("Wx::PowerEvent::Veto", XS_Wx__PowerEvent_Veto, file);
20241         newXS("Wx::PowerEvent::IsVetoed", XS_Wx__PowerEvent_IsVetoed, file);
20242 #endif
20243 #if XSubPPtmpAADM
20244         newXS("Wx::GetPowerType", XS_Wx_GetPowerType, file);
20245         newXS("Wx::GetBatteryState", XS_Wx_GetBatteryState, file);
20246 #endif
20247         newXS("Wx::ClassInfo::FindClass", XS_Wx__ClassInfo_FindClass, file);
20248         newXS("Wx::ClassInfo::GetBaseClassName1", XS_Wx__ClassInfo_GetBaseClassName1, file);
20249         newXS("Wx::ClassInfo::GetBaseClassName2", XS_Wx__ClassInfo_GetBaseClassName2, file);
20250         newXS("Wx::ClassInfo::GetClassName", XS_Wx__ClassInfo_GetClassName, file);
20251 #if XSubPPtmpAADN
20252         newXS("Wx::ClassInfo::GetParents", XS_Wx__ClassInfo_GetParents, file);
20253         newXS("Wx::ClassInfo::GetFirstProperty", XS_Wx__ClassInfo_GetFirstProperty, file);
20254         newXS("Wx::ClassInfo::FindPropertyInfo", XS_Wx__ClassInfo_FindPropertyInfo, file);
20255         newXS("Wx::ClassInfo::FindPropertyInfoInThisClass", XS_Wx__ClassInfo_FindPropertyInfoInThisClass, file);
20256         newXS("Wx::PropertyInfo::GetDeclaringClass", XS_Wx__PropertyInfo_GetDeclaringClass, file);
20257         newXS("Wx::PropertyInfo::GetName", XS_Wx__PropertyInfo_GetName, file);
20258         newXS("Wx::PropertyInfo::GetFlags", XS_Wx__PropertyInfo_GetFlags, file);
20259         newXS("Wx::PropertyInfo::GetHelpString", XS_Wx__PropertyInfo_GetHelpString, file);
20260         newXS("Wx::PropertyInfo::GetGroupString", XS_Wx__PropertyInfo_GetGroupString, file);
20261         newXS("Wx::PropertyInfo::GetCollectionElementTypeInfo", XS_Wx__PropertyInfo_GetCollectionElementTypeInfo, file);
20262         newXS("Wx::PropertyInfo::GetTypeInfo", XS_Wx__PropertyInfo_GetTypeInfo, file);
20263         newXS("Wx::PropertyInfo::GetAccessor", XS_Wx__PropertyInfo_GetAccessor, file);
20264         newXS("Wx::PropertyInfo::GetNext", XS_Wx__PropertyInfo_GetNext, file);
20265         newXS("Wx::TypeInfo::GetKind", XS_Wx__TypeInfo_GetKind, file);
20266         newXS("Wx::TypeInfo::GetTypeName", XS_Wx__TypeInfo_GetTypeName, file);
20267         newXS("Wx::TypeInfo::IsDelegateType", XS_Wx__TypeInfo_IsDelegateType, file);
20268         newXS("Wx::TypeInfo::IsCustomType", XS_Wx__TypeInfo_IsCustomType, file);
20269         newXS("Wx::TypeInfo::IsObjectType", XS_Wx__TypeInfo_IsObjectType, file);
20270         newXS("Wx::PropertyAccessor::HasSetter", XS_Wx__PropertyAccessor_HasSetter, file);
20271         newXS("Wx::PropertyAccessor::HasCollectionGetter", XS_Wx__PropertyAccessor_HasCollectionGetter, file);
20272         newXS("Wx::PropertyAccessor::HasGetter", XS_Wx__PropertyAccessor_HasGetter, file);
20273         newXS("Wx::PropertyAccessor::HasAdder", XS_Wx__PropertyAccessor_HasAdder, file);
20274         newXS("Wx::PropertyAccessor::GetCollectionGetterName", XS_Wx__PropertyAccessor_GetCollectionGetterName, file);
20275         newXS("Wx::PropertyAccessor::GetGetterName", XS_Wx__PropertyAccessor_GetGetterName, file);
20276         newXS("Wx::PropertyAccessor::GetSetterName", XS_Wx__PropertyAccessor_GetSetterName, file);
20277         newXS("Wx::PropertyAccessor::GetAdderName", XS_Wx__PropertyAccessor_GetAdderName, file);
20278 #endif
20279         newXS("Wx::VideoMode::new", XS_Wx__VideoMode_new, file);
20280         newXS("Wx::VideoMode::CLONE", XS_Wx__VideoMode_CLONE, file);
20281         newXS("Wx::VideoMode::DESTROY", XS_Wx__VideoMode_DESTROY, file);
20282         newXS("Wx::VideoMode::Matches", XS_Wx__VideoMode_Matches, file);
20283         newXS("Wx::VideoMode::GetWidth", XS_Wx__VideoMode_GetWidth, file);
20284         newXS("Wx::VideoMode::GetHeight", XS_Wx__VideoMode_GetHeight, file);
20285         newXS("Wx::VideoMode::GetDepth", XS_Wx__VideoMode_GetDepth, file);
20286         newXS("Wx::VideoMode::IsOk", XS_Wx__VideoMode_IsOk, file);
20287         newXS("Wx::Display::new", XS_Wx__Display_new, file);
20288         newXS("Wx::Display::CLONE", XS_Wx__Display_CLONE, file);
20289         newXS("Wx::Display::DESTROY", XS_Wx__Display_DESTROY, file);
20290         newXS("Wx::Display::GetCount", XS_Wx__Display_GetCount, file);
20291         newXS("Wx::Display::GetFromPoint", XS_Wx__Display_GetFromPoint, file);
20292 #if XSubPPtmpAADO
20293         newXS("Wx::Display::GetFromWindow", XS_Wx__Display_GetFromWindow, file);
20294 #endif
20295         newXS("Wx::Display::IsOk", XS_Wx__Display_IsOk, file);
20296         newXS("Wx::Display::GetGeometry", XS_Wx__Display_GetGeometry, file);
20297 #if XSubPPtmpAADP
20298         newXS("Wx::Display::GetClientArea", XS_Wx__Display_GetClientArea, file);
20299 #endif
20300         newXS("Wx::Display::GetName", XS_Wx__Display_GetName, file);
20301         newXS("Wx::Display::IsPrimary", XS_Wx__Display_IsPrimary, file);
20302 #if XSubPPtmpAADQ
20303         newXS("Wx::Display::GetModes", XS_Wx__Display_GetModes, file);
20304         newXS("Wx::Display::GetCurrentMode", XS_Wx__Display_GetCurrentMode, file);
20305         newXS("Wx::Display::ChangeMode", XS_Wx__Display_ChangeMode, file);
20306         newXS("Wx::Display::ResetMode", XS_Wx__Display_ResetMode, file);
20307 #endif
20308 #if XSubPPtmpAADR
20309         newXS("Wx::StandardPaths::GetExecutablePath", XS_Wx__StandardPaths_GetExecutablePath, file);
20310 #endif
20311 #if XSubPPtmpAADS
20312         newXS("Wx::StandardPaths::GetConfigDir", XS_Wx__StandardPaths_GetConfigDir, file);
20313         newXS("Wx::StandardPaths::GetUserConfigDir", XS_Wx__StandardPaths_GetUserConfigDir, file);
20314         newXS("Wx::StandardPaths::GetDataDir", XS_Wx__StandardPaths_GetDataDir, file);
20315         newXS("Wx::StandardPaths::GetLocalDataDir", XS_Wx__StandardPaths_GetLocalDataDir, file);
20316         newXS("Wx::StandardPaths::GetUserDataDir", XS_Wx__StandardPaths_GetUserDataDir, file);
20317         newXS("Wx::StandardPaths::GetUserLocalDataDir", XS_Wx__StandardPaths_GetUserLocalDataDir, file);
20318         newXS("Wx::StandardPaths::GetPluginsDir", XS_Wx__StandardPaths_GetPluginsDir, file);
20319 #if XSubPPtmpAADT
20320         newXS("Wx::StandardPaths::GetResourcesDir", XS_Wx__StandardPaths_GetResourcesDir, file);
20321         newXS("Wx::StandardPaths::GetLocalizedResourcesDir", XS_Wx__StandardPaths_GetLocalizedResourcesDir, file);
20322         newXS("Wx::StandardPaths::GetDocumentsDir", XS_Wx__StandardPaths_GetDocumentsDir, file);
20323         newXS("Wx::StandardPaths::GetTempDir", XS_Wx__StandardPaths_GetTempDir, file);
20324 #endif
20325 #if XSubPPtmpAADU
20326         newXS("Wx::StandardPaths::UseAppInfo", XS_Wx__StandardPaths_UseAppInfo, file);
20327 #endif
20328         newXS("Wx::StandardPaths::Get", XS_Wx__StandardPaths_Get, file);
20329 #endif
20330         newXS("Wx::Variant::new", XS_Wx__Variant_new, file);
20331         newXS("Wx::Variant::CLONE", XS_Wx__Variant_CLONE, file);
20332         newXS("Wx::Variant::DESTROY", XS_Wx__Variant_DESTROY, file);
20333         newXS("Wx::Variant::Append", XS_Wx__Variant_Append, file);
20334 #if XSubPPtmpAADV
20335         newXS("Wx::Variant::Clear", XS_Wx__Variant_Clear, file);
20336 #endif
20337         newXS("Wx::Variant::ClearList", XS_Wx__Variant_ClearList, file);
20338         newXS("Wx::Variant::Delete", XS_Wx__Variant_Delete, file);
20339         newXS("Wx::Variant::GetCount", XS_Wx__Variant_GetCount, file);
20340         newXS("Wx::Variant::GetBool", XS_Wx__Variant_GetBool, file);
20341         newXS("Wx::Variant::GetChar", XS_Wx__Variant_GetChar, file);
20342         newXS("Wx::Variant::GetDateTime", XS_Wx__Variant_GetDateTime, file);
20343         newXS("Wx::Variant::GetString", XS_Wx__Variant_GetString, file);
20344         newXS("Wx::Variant::GetType", XS_Wx__Variant_GetType, file);
20345         newXS("Wx::Variant::GetLong", XS_Wx__Variant_GetLong, file);
20346         newXS("Wx::Variant::GetDouble", XS_Wx__Variant_GetDouble, file);
20347         newXS("Wx::Variant::GetWxObjectPtr", XS_Wx__Variant_GetWxObjectPtr, file);
20348         newXS("Wx::Variant::GetArrayString", XS_Wx__Variant_GetArrayString, file);
20349         newXS("Wx::Variant::GetList", XS_Wx__Variant_GetList, file);
20350         newXS("Wx::Variant::IsNull", XS_Wx__Variant_IsNull, file);
20351         newXS("Wx::Variant::IsType", XS_Wx__Variant_IsType, file);
20352         newXS("Wx::Variant::IsValueKindOf", XS_Wx__Variant_IsValueKindOf, file);
20353         newXS("Wx::Variant::MakeNull", XS_Wx__Variant_MakeNull, file);
20354         newXS("Wx::Variant::MakeString", XS_Wx__Variant_MakeString, file);
20355         newXS("Wx::Variant::Member", XS_Wx__Variant_Member, file);
20356         newXS("Wx::Variant::NullList", XS_Wx__Variant_NullList, file);
20357         newXS("Wx::Variant::Insert", XS_Wx__Variant_Insert, file);
20358         newXS("Wx::Variant::SetBool", XS_Wx__Variant_SetBool, file);
20359 #if XSubPPtmpAADW
20360         newXS("Wx::Variant::SetChar", XS_Wx__Variant_SetChar, file);
20361 #endif
20362         newXS("Wx::Variant::SetDateTime", XS_Wx__Variant_SetDateTime, file);
20363         newXS("Wx::Variant::SetString", XS_Wx__Variant_SetString, file);
20364         newXS("Wx::Variant::SetLong", XS_Wx__Variant_SetLong, file);
20365         newXS("Wx::Variant::SetDouble", XS_Wx__Variant_SetDouble, file);
20366         newXS("Wx::Variant::SetWxObjectPtr", XS_Wx__Variant_SetWxObjectPtr, file);
20367         newXS("Wx::Variant::SetVariant", XS_Wx__Variant_SetVariant, file);
20368 #if XSubPPtmpAADX
20369         newXS("Wx::Variant::Unshare", XS_Wx__Variant_Unshare, file);
20370 #endif
20371 #if XSubPPtmpAADY
20372         newXS("Wx::NotificationMessage::new", XS_Wx__NotificationMessage_new, file);
20373         newXS("Wx::NotificationMessage::newDefault", XS_Wx__NotificationMessage_newDefault, file);
20374 #if XSubPPtmpAADZ
20375         newXS("Wx::NotificationMessage::newFull", XS_Wx__NotificationMessage_newFull, file);
20376 #endif
20377 #if XSubPPtmpAAEA
20378         newXS("Wx::NotificationMessage::newFull", XS_Wx__NotificationMessage_newFull, file);
20379 #endif
20380         newXS("Wx::NotificationMessage::CLONE", XS_Wx__NotificationMessage_CLONE, file);
20381         newXS("Wx::NotificationMessage::DESTROY", XS_Wx__NotificationMessage_DESTROY, file);
20382         newXS("Wx::NotificationMessage::Show", XS_Wx__NotificationMessage_Show, file);
20383         newXS("Wx::NotificationMessage::Close", XS_Wx__NotificationMessage_Close, file);
20384         newXS("Wx::NotificationMessage::SetFlags", XS_Wx__NotificationMessage_SetFlags, file);
20385         newXS("Wx::NotificationMessage::SetTitle", XS_Wx__NotificationMessage_SetTitle, file);
20386         newXS("Wx::NotificationMessage::SetMessage", XS_Wx__NotificationMessage_SetMessage, file);
20387         newXS("Wx::NotificationMessage::SetParent", XS_Wx__NotificationMessage_SetParent, file);
20388 #if XSubPPtmpAAEB
20389         newXS("Wx::NotificationMessage::UseTaskBarIcon", XS_Wx__NotificationMessage_UseTaskBarIcon, file);
20390         newXS("Wx::NotificationMessage::AlwaysUseGeneric", XS_Wx__NotificationMessage_AlwaysUseGeneric, file);
20391 #endif
20392 #endif
20393     }
20394
20395     /* Initialisation Section */
20396
20397   newXSproto( "Wx::_boot_Constant", boot_Wx_Const, file, "$$" );
20398   newXSproto( "Wx::_boot_Controls", boot_Wx_Ctrl, file, "$$" );
20399   newXSproto( "Wx::_boot_Events", boot_Wx_Evt, file, "$$" );
20400   newXSproto( "Wx::_boot_Window", boot_Wx_Win, file, "$$" );
20401   newXSproto( "Wx::_boot_Frames", boot_Wx_Wnd, file, "$$" );
20402   newXSproto( "Wx::_boot_GDI", boot_Wx_GDI, file, "$$" );
20403 #if defined( WXPL_STATIC )
20404   newXSproto( "Wx::_boot_Wx__DocView", boot_Wx__DocView, file, "$$" );
20405 #if wxPERL_USE_STC
20406   newXSproto( "Wx::_boot_Wx__STC", boot_Wx__STC, file, "$$" );
20407 #endif
20408 #if wxPERL_USE_XRC
20409   newXSproto( "Wx::_boot_Wx__XRC", boot_Wx__XRC, file, "$$" );
20410 #endif
20411   newXSproto( "Wx::_boot_Wx__Print", boot_Wx__Print, file, "$$" );
20412   newXSproto( "Wx::_boot_Wx__MDI", boot_Wx__MDI, file, "$$" );
20413   newXSproto( "Wx::_boot_Wx__Html", boot_Wx__Html, file, "$$" );
20414   newXSproto( "Wx::_boot_Wx__Help", boot_Wx__Help, file, "$$" );
20415   newXSproto( "Wx::_boot_Wx__Grid", boot_Wx__Grid, file, "$$" );
20416   newXSproto( "Wx::_boot_Wx__FS", boot_Wx__FS, file, "$$" );
20417   newXSproto( "Wx::_boot_Wx__DND", boot_Wx__DND, file, "$$" );
20418 #endif
20419   SV* tmp = get_sv( "Wx::_exports", 1 );
20420   sv_setiv( tmp, (IV)(void*)&st_wxPliHelpers );
20421
20422 #if XSubPPtmpAAAA
20423 #endif
20424 #if XSubPPtmpAAAB
20425 #if XSubPPtmpAAAC
20426 #endif
20427 #if XSubPPtmpAAAD
20428 #endif
20429 #if XSubPPtmpAAAE
20430 #endif
20431 #endif
20432 #if XSubPPtmpAAAF
20433 #endif
20434 #if XSubPPtmpAAAG
20435 #endif
20436 #if XSubPPtmpAAAH
20437 #endif
20438 #if XSubPPtmpAAAI
20439 #endif
20440 #if XSubPPtmpAAAJ
20441 #endif
20442 #if XSubPPtmpAAAK
20443 #endif
20444 #if XSubPPtmpAAAL
20445 #endif
20446 #if XSubPPtmpAAAM
20447 #endif
20448 #if XSubPPtmpAAAN
20449 #endif
20450 #if XSubPPtmpAAAO
20451 #endif
20452 #if XSubPPtmpAAAP
20453 #endif
20454 #if XSubPPtmpAAAQ
20455 #endif
20456 #if XSubPPtmpAAAR
20457 #endif
20458 #if XSubPPtmpAAAS
20459 #endif
20460 #if XSubPPtmpAAAT
20461 #endif
20462 #if XSubPPtmpAAAU
20463 #endif
20464 #if XSubPPtmpAAAV
20465 #endif
20466 #if XSubPPtmpAAAW
20467 #endif
20468 #if XSubPPtmpAAAX
20469 #endif
20470 #if XSubPPtmpAAAY
20471 #endif
20472 #if XSubPPtmpAAAZ
20473 #if XSubPPtmpAABA
20474 #endif
20475 #if XSubPPtmpAABB
20476 #endif
20477 #if XSubPPtmpAABC
20478 #endif
20479 #endif
20480 #if XSubPPtmpAABD
20481 #endif
20482 #if XSubPPtmpAABE
20483 #endif
20484 #if XSubPPtmpAABF
20485 #endif
20486 #if XSubPPtmpAABG
20487 #endif
20488 #if XSubPPtmpAABH
20489 #endif
20490 #if XSubPPtmpAABI
20491 #endif
20492 #if XSubPPtmpAABJ
20493 #endif
20494 #if XSubPPtmpAABK
20495 #endif
20496 #if XSubPPtmpAABL
20497 #if XSubPPtmpAABM
20498 #endif
20499 #endif
20500 #if XSubPPtmpAABN
20501 #endif
20502 #if XSubPPtmpAABO
20503 #endif
20504 #if XSubPPtmpAABP
20505 #endif
20506 #if XSubPPtmpAABQ
20507 #endif
20508 #if XSubPPtmpAABR
20509 #endif
20510 #if XSubPPtmpAABS
20511 #endif
20512 #if XSubPPtmpAABT
20513 #endif
20514 #if XSubPPtmpAABU
20515 #endif
20516 #if XSubPPtmpAABV
20517 #endif
20518 #if XSubPPtmpAABW
20519 #endif
20520 #if XSubPPtmpAABX
20521 #endif
20522 #if XSubPPtmpAABY
20523 #endif
20524 #if XSubPPtmpAABZ
20525 #endif
20526 #if XSubPPtmpAACA
20527 #endif
20528 #if XSubPPtmpAACB
20529 #endif
20530 #if XSubPPtmpAACC
20531 #endif
20532 #if XSubPPtmpAACD
20533 #endif
20534 #if XSubPPtmpAACE
20535 #endif
20536 #if XSubPPtmpAACF
20537 #endif
20538 #if XSubPPtmpAACG
20539 #endif
20540 #if XSubPPtmpAACH
20541 #endif
20542 #if XSubPPtmpAACI
20543 #endif
20544 #if XSubPPtmpAACJ
20545 #endif
20546 #if XSubPPtmpAACK
20547 #endif
20548 #if XSubPPtmpAACL
20549 #endif
20550 #if XSubPPtmpAACM
20551 #endif
20552 #if XSubPPtmpAACN
20553 #endif
20554 #if XSubPPtmpAACO
20555 #endif
20556 #if XSubPPtmpAACP
20557 #endif
20558 #if XSubPPtmpAACQ
20559 #endif
20560 #if XSubPPtmpAACR
20561 #endif
20562 #if XSubPPtmpAACS
20563 #endif
20564 #if XSubPPtmpAACT
20565 #endif
20566 #if XSubPPtmpAACU
20567 #endif
20568 #if XSubPPtmpAACV
20569 #endif
20570 #if XSubPPtmpAACW
20571 #endif
20572 #if XSubPPtmpAACX
20573 #endif
20574 #if XSubPPtmpAACY
20575 #endif
20576 #if XSubPPtmpAACZ
20577 #endif
20578 #if XSubPPtmpAADA
20579 #endif
20580 #if XSubPPtmpAADB
20581 #endif
20582 #if XSubPPtmpAADC
20583 #endif
20584 #if XSubPPtmpAADD
20585 #endif
20586 #if XSubPPtmpAADE
20587 #endif
20588 #if XSubPPtmpAADF
20589 #endif
20590 #if XSubPPtmpAADG
20591 #if XSubPPtmpAADH
20592 #endif
20593 #endif
20594 #if XSubPPtmpAADI
20595 #if XSubPPtmpAADJ
20596 #endif
20597 #if XSubPPtmpAADK
20598 #endif
20599 #endif
20600 #if XSubPPtmpAADL
20601 #endif
20602 #if XSubPPtmpAADM
20603 #endif
20604 #if XSubPPtmpAADN
20605 #endif
20606 #if XSubPPtmpAADO
20607 #endif
20608 #if XSubPPtmpAADP
20609 #endif
20610 #if XSubPPtmpAADQ
20611 #endif
20612 #if XSubPPtmpAADR
20613 #endif
20614 #if XSubPPtmpAADS
20615 #if XSubPPtmpAADT
20616 #endif
20617 #if XSubPPtmpAADU
20618 #endif
20619 #endif
20620 #if XSubPPtmpAADV
20621 #endif
20622 #if XSubPPtmpAADW
20623 #endif
20624 #if XSubPPtmpAADX
20625 #endif
20626 #if XSubPPtmpAADY
20627 #if XSubPPtmpAADZ
20628 #endif
20629 #if XSubPPtmpAAEA
20630 #endif
20631 #if XSubPPtmpAAEB
20632 #endif
20633 #endif
20634
20635     /* End of Initialisation Section */
20636
20637 #if (PERL_REVISION == 5 && PERL_VERSION >= 9)
20638   if (PL_unitcheckav)
20639        call_list(PL_scopestack_ix, PL_unitcheckav);
20640 #endif
20641     XSRETURN_YES;
20642 }
20643