2 * This file was generated automatically by ExtUtils::ParseXS version 2.2202 from the
3 * contents of GDI.xs. Do not edit this file, edit GDI.xs instead.
5 * ANY CHANGES MADE HERE WILL BE LOST!
9 /////////////////////////////////////////////////////////////////////////////
11 // Purpose: XS for various GDI objects
12 // Author: Mattia Barbon
14 // Created: 29/10/2000
15 // RCS-ID: $Id: GDI.xs 2626 2009-10-18 22:48:17Z mbarbon $
16 // Copyright: (c) 2000-2003, 2005-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 /////////////////////////////////////////////////////////////////////////////
22 #define PERL_NO_GET_CONTEXT
24 #include "cpp/wxapi.h"
28 WXPLI_BOOT_ONCE(Wx_GDI);
29 #define boot_Wx_GDI wxPli_boot_Wx_GDI
31 #if WXPERL_W_VERSION_LT( 2, 9, 0 )
32 typedef int wxBrushStyle;
33 typedef int wxPenStyle;
34 typedef int wxPenJoin;
36 typedef int wxRasterOperationMode;
37 typedef int wxMappingMode;
38 typedef int wxPolygonFillMode;
39 typedef int wxFloodFillStyle;
41 #if WXPERL_W_VERSION_LT( 2, 9, 1 )
42 typedef int wxImageResizeQuality;
45 #ifndef PERL_UNUSED_VAR
46 # define PERL_UNUSED_VAR(var) if (0) var = var
49 #ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE
50 #define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params)
52 /* prototype to pass -Wmissing-prototypes */
54 S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params);
57 S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params)
59 const GV *const gv = CvGV(cv);
61 PERL_ARGS_ASSERT_CROAK_XS_USAGE;
64 const char *const gvname = GvNAME(gv);
65 const HV *const stash = GvSTASH(gv);
66 const char *const hvname = stash ? HvNAME(stash) : NULL;
69 Perl_croak(aTHX_ "Usage: %s::%s(%s)", hvname, gvname, params);
71 Perl_croak(aTHX_ "Usage: %s(%s)", gvname, params);
73 /* Pants. I don't think that it should be possible to get here. */
74 Perl_croak(aTHX_ "Usage: CODE(0x%"UVxf")(%s)", PTR2UV(cv), params);
77 #undef PERL_ARGS_ASSERT_CROAK_XS_USAGE
79 #ifdef PERL_IMPLICIT_CONTEXT
80 #define croak_xs_usage(a,b) S_croak_xs_usage(aTHX_ a,b)
82 #define croak_xs_usage S_croak_xs_usage
87 /* NOTE: the prototype of newXSproto() is different in versions of perls,
88 * so we define a portable version of newXSproto()
91 #define newXSproto_portable(name, c_impl, file, proto) newXS_flags(name, c_impl, file, proto, 0)
93 #define newXSproto_portable(name, c_impl, file, proto) (PL_Sv=(SV*)newXS(name, c_impl, file), sv_setpv(PL_Sv, proto), (CV*)PL_Sv)
94 #endif /* !defined(newXS_flags) */
97 /* INCLUDE: Including 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Animation.xsp |' from 'GDI.xs' */
100 /* INCLUDE: Including 'XS/Colour.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Animation.xsp |' */
103 /* INCLUDE: Including 'XS/ColourDatabase.xs' from 'XS/Colour.xs' */
106 /* INCLUDE: Including 'XS/Font.xs' from 'XS/ColourDatabase.xs' */
109 /* INCLUDE: Including 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/ImageList.xs |' from 'XS/Font.xs' */
112 /* INCLUDE: Including 'XS/Bitmap.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/ImageList.xs |' */
115 /* INCLUDE: Including 'XS/Icon.xs' from 'XS/Bitmap.xs' */
118 /* INCLUDE: Including 'XS/Cursor.xs' from 'XS/Icon.xs' */
121 /* INCLUDE: Including 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/DC.xs |' from 'XS/Cursor.xs' */
124 /* INCLUDE: Including 'XS/Pen.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/DC.xs |' */
127 /* INCLUDE: Including 'XS/Brush.xs' from 'XS/Pen.xs' */
130 /* INCLUDE: Including 'XS/Image.xs' from 'XS/Brush.xs' */
133 /* INCLUDE: Including 'XS/Palette.xs' from 'XS/Image.xs' */
135 #include <wx/palette.h>
137 XS(XS_Wx__Palette_new); /* prototype to pass -Wmissing-prototypes */
138 XS(XS_Wx__Palette_new)
146 croak_xs_usage(cv, "CLASS, r, g, b");
152 unsigned char* green;
155 char * CLASS = (char *)SvPV_nolen(ST(0));
157 rn = wxPli_av_2_uchararray( aTHX_ r, &red );
158 gn = wxPli_av_2_uchararray( aTHX_ g, &green );
159 bn = wxPli_av_2_uchararray( aTHX_ b, &blue );
161 if( rn != gn || gn != bn )
163 croak( "arrays must be of the same size" );
166 RETVAL = new wxPalette( rn, red, green, blue );
171 ST(0) = sv_newmortal();
172 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
173 wxPli_thread_sv_register( aTHX_ "Wx::Palette", RETVAL, ST(0) );
180 XS(XS_Wx__Palette_CLONE); /* prototype to pass -Wmissing-prototypes */
181 XS(XS_Wx__Palette_CLONE)
189 croak_xs_usage(cv, "CLASS");
191 char * CLASS = (char *)SvPV_nolen(ST(0));
192 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
198 XS(XS_Wx__Palette_DESTROY); /* prototype to pass -Wmissing-prototypes */
199 XS(XS_Wx__Palette_DESTROY)
207 croak_xs_usage(cv, "THIS");
209 wxPalette * THIS = (wxPalette *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Palette" );
210 wxPli_thread_sv_unregister( aTHX_ "Wx::Palette", THIS, ST(0) );
216 #if WXPERL_W_VERSION_GE( 2, 6, 1 )
217 #define XSubPPtmpAAAA 1
220 XS(XS_Wx__Palette_GetColoursCount); /* prototype to pass -Wmissing-prototypes */
221 XS(XS_Wx__Palette_GetColoursCount)
229 croak_xs_usage(cv, "THIS");
231 wxPalette * THIS = (wxPalette *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Palette" );
235 RETVAL = THIS->GetColoursCount();
236 XSprePUSH; PUSHi((IV)RETVAL);
243 XS(XS_Wx__Palette_GetPixel); /* prototype to pass -Wmissing-prototypes */
244 XS(XS_Wx__Palette_GetPixel)
252 croak_xs_usage(cv, "THIS, red, green, blue");
254 unsigned char red = (unsigned char)SvUV(ST(1));
255 unsigned char green = (unsigned char)SvUV(ST(2));
256 unsigned char blue = (unsigned char)SvUV(ST(3));
257 wxPalette * THIS = (wxPalette *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Palette" );
261 RETVAL = THIS->GetPixel(red, green, blue);
262 XSprePUSH; PUSHi((IV)RETVAL);
268 XS(XS_Wx__Palette_GetRGB); /* prototype to pass -Wmissing-prototypes */
269 XS(XS_Wx__Palette_GetRGB)
277 croak_xs_usage(cv, "THIS, pixel");
278 PERL_UNUSED_VAR(ax); /* -Wall */
281 int pixel = (int)SvIV(ST(1));
282 unsigned char red, green, blue;
283 wxPalette * THIS = (wxPalette *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Palette" );
284 if( THIS->GetRGB( pixel, &red, &green, &blue ) )
287 PUSHs( sv_2mortal( newSVuv( red ) ) );
288 PUSHs( sv_2mortal( newSVuv( green ) ) );
289 PUSHs( sv_2mortal( newSVuv( blue ) ) );
294 PUSHs( &PL_sv_undef );
295 PUSHs( &PL_sv_undef );
296 PUSHs( &PL_sv_undef );
304 XS(XS_Wx__Palette_Ok); /* prototype to pass -Wmissing-prototypes */
305 XS(XS_Wx__Palette_Ok)
313 croak_xs_usage(cv, "THIS");
315 wxPalette * THIS = (wxPalette *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Palette" );
319 ST(0) = boolSV(RETVAL);
325 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
326 #define XSubPPtmpAAAB 1
329 XS(XS_Wx__Palette_IsOk); /* prototype to pass -Wmissing-prototypes */
330 XS(XS_Wx__Palette_IsOk)
338 croak_xs_usage(cv, "THIS");
340 wxPalette * THIS = (wxPalette *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Palette" );
343 RETVAL = THIS->IsOk();
344 ST(0) = boolSV(RETVAL);
352 /* INCLUDE: Returning to 'XS/Image.xs' from 'XS/Palette.xs' */
354 #include <wx/image.h>
355 #include <wx/bitmap.h>
356 #include "cpp/streams.h"
357 #include "cpp/overload.h"
359 XS(XS_Wx__Image_new); /* prototype to pass -Wmissing-prototypes */
368 croak_xs_usage(cv, "CLASS, ...");
369 PERL_UNUSED_VAR(ax); /* -Wall */
372 char * CLASS = (char *)SvPV_nolen(ST(0));
374 MATCH_VOIDM_REDISP( newNull )
375 MATCH_REDISP( wxPliOvl_wico, newIcon )
376 MATCH_REDISP( wxPliOvl_wbmp, newBitmap )
377 MATCH_REDISP( wxPliOvl_wist_n, newStreamType )
378 MATCH_REDISP( wxPliOvl_wist_s, newStreamMIME )
379 MATCH_REDISP_COUNT( wxPliOvl_n_n, newWH, 2 )
380 MATCH_REDISP( wxPliOvl_n_n_s, newData )
381 MATCH_REDISP( wxPliOvl_n_n_s_s, newDataAlpha )
382 MATCH_REDISP( wxPliOvl_s_n, newNameType )
383 MATCH_REDISP( wxPliOvl_s_s, newNameMIME )
384 END_OVERLOAD( Wx::Image::new )
391 XS(XS_Wx__Image_newNull); /* prototype to pass -Wmissing-prototypes */
392 XS(XS_Wx__Image_newNull)
400 croak_xs_usage(cv, "CLASS");
404 RETVAL = new wxImage();
405 ST(0) = sv_newmortal();
406 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
407 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
414 XS(XS_Wx__Image_newWH); /* prototype to pass -Wmissing-prototypes */
415 XS(XS_Wx__Image_newWH)
423 croak_xs_usage(cv, "CLASS, width, height");
426 int width = (int)SvIV(ST(1));
427 int height = (int)SvIV(ST(2));
429 RETVAL = new wxImage( width, height );
430 ST(0) = sv_newmortal();
431 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
432 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
439 XS(XS_Wx__Image_newData); /* prototype to pass -Wmissing-prototypes */
440 XS(XS_Wx__Image_newData)
448 croak_xs_usage(cv, "CLASS, width, height, dt");
451 int width = (int)SvIV(ST(1));
452 int height = (int)SvIV(ST(2));
455 unsigned char* data = (unsigned char*)SvPV( dt, len );
456 unsigned char* newdata;
458 if( len != (STRLEN) width * height * 3 )
460 croak( "not enough data in image constructor" );
462 newdata = (unsigned char*)malloc( width * height * 3 );
463 memcpy( newdata, data, width * height * 3 );
465 RETVAL = new wxImage( width, height, newdata );
466 ST(0) = sv_newmortal();
467 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
468 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
474 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
475 #define XSubPPtmpAAAC 1
478 XS(XS_Wx__Image_newDataAlpha); /* prototype to pass -Wmissing-prototypes */
479 XS(XS_Wx__Image_newDataAlpha)
487 croak_xs_usage(cv, "CLASS, width, height, dt, al");
490 int width = (int)SvIV(ST(1));
491 int height = (int)SvIV(ST(2));
494 STRLEN len_data, len_alpha;
495 unsigned char* data = (unsigned char*)SvPV( dt, len_data );
496 unsigned char* alpha = (unsigned char*)SvPV( al, len_alpha );
498 if( len_data != (STRLEN) width * height * 3 ||
499 len_alpha != (STRLEN) width * height )
501 croak( "not enough data in image constructor" );
503 unsigned char* newdata = (unsigned char*) malloc( len_data );
504 memcpy( newdata, data, len_data );
505 unsigned char* newalpha = (unsigned char*) malloc( len_alpha );
506 memcpy( newalpha, alpha, len_alpha );
508 RETVAL = new wxImage( width, height, newdata, newalpha );
509 ST(0) = sv_newmortal();
510 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
511 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
519 XS(XS_Wx__Image_newNameType); /* prototype to pass -Wmissing-prototypes */
520 XS(XS_Wx__Image_newNameType)
527 if (items < 3 || items > 4)
528 croak_xs_usage(cv, "CLASS, name, type, index = -1");
532 wxBitmapType type = (wxBitmapType)SvIV(ST(2));
536 WXSTRING_INPUT( name, wxString, ST(1) );
541 index = (int)SvIV(ST(3));
543 RETVAL = new wxImage( name, type, index );
544 ST(0) = sv_newmortal();
545 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
546 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
553 XS(XS_Wx__Image_newNameMIME); /* prototype to pass -Wmissing-prototypes */
554 XS(XS_Wx__Image_newNameMIME)
561 if (items < 3 || items > 4)
562 croak_xs_usage(cv, "CLASS, name, mimetype, index = -1");
570 WXSTRING_INPUT( name, wxString, ST(1) );
572 WXSTRING_INPUT( mimetype, wxString, ST(2) );
577 index = (int)SvIV(ST(3));
579 RETVAL = new wxImage( name, mimetype, index );
580 ST(0) = sv_newmortal();
581 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
582 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
589 XS(XS_Wx__Image_newStreamType); /* prototype to pass -Wmissing-prototypes */
590 XS(XS_Wx__Image_newStreamType)
597 if (items < 3 || items > 4)
598 croak_xs_usage(cv, "CLASS, stream, type, index = -1");
601 wxPliInputStream stream;
602 wxBitmapType type = (wxBitmapType)SvIV(ST(2));
606 wxPli_sv_2_istream( aTHX_ ST(1), stream );
611 index = (int)SvIV(ST(3));
613 RETVAL = new wxImage( stream, type, index );
614 ST(0) = sv_newmortal();
615 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
616 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
623 XS(XS_Wx__Image_newStreamMIME); /* prototype to pass -Wmissing-prototypes */
624 XS(XS_Wx__Image_newStreamMIME)
631 if (items < 3 || items > 4)
632 croak_xs_usage(cv, "CLASS, stream, mime, index = -1");
635 wxPliInputStream stream;
640 wxPli_sv_2_istream( aTHX_ ST(1), stream );
642 WXSTRING_INPUT( mime, wxString, ST(2) );
647 index = (int)SvIV(ST(3));
649 RETVAL = new wxImage( stream, mime, index );
650 ST(0) = sv_newmortal();
651 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
652 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
659 XS(XS_Wx__Image_newBitmap); /* prototype to pass -Wmissing-prototypes */
660 XS(XS_Wx__Image_newBitmap)
668 croak_xs_usage(cv, "CLASS, bitmap");
670 wxBitmap* bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
672 RETVAL = new wxImage( bitmap->ConvertToImage() );
673 ST(0) = sv_newmortal();
674 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
675 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
682 XS(XS_Wx__Image_newIcon); /* prototype to pass -Wmissing-prototypes */
683 XS(XS_Wx__Image_newIcon)
691 croak_xs_usage(cv, "CLASS, icon");
693 wxIcon* icon = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Icon" );
695 wxBitmap tmp; tmp.CopyFromIcon( *icon );
696 RETVAL = new wxImage( tmp.ConvertToImage() );
697 ST(0) = sv_newmortal();
698 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
699 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
706 XS(XS_Wx__Image_CLONE); /* prototype to pass -Wmissing-prototypes */
707 XS(XS_Wx__Image_CLONE)
715 croak_xs_usage(cv, "CLASS");
717 char * CLASS = (char *)SvPV_nolen(ST(0));
718 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
724 XS(XS_Wx__Image_DESTROY); /* prototype to pass -Wmissing-prototypes */
725 XS(XS_Wx__Image_DESTROY)
733 croak_xs_usage(cv, "THIS");
735 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
736 wxPli_thread_sv_unregister( aTHX_ "Wx::Image", THIS, ST(0) );
743 XS(XS_Wx__Image_AddHandler); /* prototype to pass -Wmissing-prototypes */
744 XS(XS_Wx__Image_AddHandler)
752 croak_xs_usage(cv, "handler");
754 wxImageHandler* handler = (wxImageHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageHandler" );
755 wxImage::AddHandler( handler );
761 XS(XS_Wx__Image_ConvertToMono); /* prototype to pass -Wmissing-prototypes */
762 XS(XS_Wx__Image_ConvertToMono)
770 croak_xs_usage(cv, "THIS, r, g, b");
772 unsigned char r = (unsigned char)SvUV(ST(1));
773 unsigned char g = (unsigned char)SvUV(ST(2));
774 unsigned char b = (unsigned char)SvUV(ST(3));
775 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
777 RETVAL = new wxImage( THIS->ConvertToMono( r, g, b ) );
778 ST(0) = sv_newmortal();
779 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
780 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
786 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
787 #define XSubPPtmpAAAD 1
790 XS(XS_Wx__Image_ConvertAlphaToMask); /* prototype to pass -Wmissing-prototypes */
791 XS(XS_Wx__Image_ConvertAlphaToMask)
798 if (items < 1 || items > 2)
799 croak_xs_usage(cv, "THIS, threshold = 128");
801 unsigned char threshold;
802 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
808 threshold = (unsigned char)SvUV(ST(1));
811 RETVAL = THIS->ConvertAlphaToMask(threshold);
812 ST(0) = boolSV(RETVAL);
819 #if WXPERL_W_VERSION_GE( 2, 5, 4 )
820 #define XSubPPtmpAAAE 1
823 XS(XS_Wx__Image_ConvertColourToAlpha); /* prototype to pass -Wmissing-prototypes */
824 XS(XS_Wx__Image_ConvertColourToAlpha)
832 croak_xs_usage(cv, "THIS, r, g, b");
834 unsigned char r = (unsigned char)SvUV(ST(1));
835 unsigned char g = (unsigned char)SvUV(ST(2));
836 unsigned char b = (unsigned char)SvUV(ST(3));
837 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
840 RETVAL = THIS->ConvertColourToAlpha(r, g, b);
841 ST(0) = boolSV(RETVAL);
848 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
849 #define XSubPPtmpAAAF 1
852 XS(XS_Wx__Image_ConvertToGreyscale); /* prototype to pass -Wmissing-prototypes */
853 XS(XS_Wx__Image_ConvertToGreyscale)
861 croak_xs_usage(cv, "THIS");
863 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
865 RETVAL = new wxImage( THIS->ConvertToGreyscale() );
866 ST(0) = sv_newmortal();
867 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
868 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
876 XS(XS_Wx__Image_Copy); /* prototype to pass -Wmissing-prototypes */
877 XS(XS_Wx__Image_Copy)
885 croak_xs_usage(cv, "THIS");
887 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
889 RETVAL = new wxImage( THIS->Copy() );
890 ST(0) = sv_newmortal();
891 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
892 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
899 XS(XS_Wx__Image_Create); /* prototype to pass -Wmissing-prototypes */
900 XS(XS_Wx__Image_Create)
908 croak_xs_usage(cv, "THIS, width, height");
910 int width = (int)SvIV(ST(1));
911 int height = (int)SvIV(ST(2));
912 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
914 THIS->Create(width, height);
920 XS(XS_Wx__Image_Destroy); /* prototype to pass -Wmissing-prototypes */
921 XS(XS_Wx__Image_Destroy)
929 croak_xs_usage(cv, "THIS");
931 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
939 XS(XS_Wx__Image_FindHandlerName); /* prototype to pass -Wmissing-prototypes */
940 XS(XS_Wx__Image_FindHandlerName)
948 croak_xs_usage(cv, "name");
951 wxImageHandler * RETVAL;
953 WXSTRING_INPUT( name, wxString, ST(0) );
954 RETVAL = wxImage::FindHandler( name );
955 ST(0) = sv_newmortal();
956 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
963 XS(XS_Wx__Image_FindHandlerExtType); /* prototype to pass -Wmissing-prototypes */
964 XS(XS_Wx__Image_FindHandlerExtType)
972 croak_xs_usage(cv, "extension, type");
975 wxBitmapType type = (wxBitmapType)SvIV(ST(1));
976 wxImageHandler * RETVAL;
978 WXSTRING_INPUT( extension, wxString, ST(0) );
979 RETVAL = wxImage::FindHandler( extension, type );
980 ST(0) = sv_newmortal();
981 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
988 XS(XS_Wx__Image_FindHandlerType); /* prototype to pass -Wmissing-prototypes */
989 XS(XS_Wx__Image_FindHandlerType)
997 croak_xs_usage(cv, "type");
999 wxBitmapType type = (wxBitmapType)SvIV(ST(0));
1000 wxImageHandler * RETVAL;
1001 RETVAL = wxImage::FindHandler( type );
1002 ST(0) = sv_newmortal();
1003 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1010 XS(XS_Wx__Image_FindHandlerMime); /* prototype to pass -Wmissing-prototypes */
1011 XS(XS_Wx__Image_FindHandlerMime)
1019 croak_xs_usage(cv, "mime");
1022 wxImageHandler * RETVAL;
1024 WXSTRING_INPUT( mime, wxString, ST(0) );
1025 RETVAL = wxImage::FindHandlerMime( mime );
1026 ST(0) = sv_newmortal();
1027 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1033 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
1034 #define XSubPPtmpAAAG 1
1037 XS(XS_Wx__Image_GetAlpha); /* prototype to pass -Wmissing-prototypes */
1038 XS(XS_Wx__Image_GetAlpha)
1046 croak_xs_usage(cv, "THIS, ...");
1047 PERL_UNUSED_VAR(ax); /* -Wall */
1050 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1052 MATCH_VOIDM_REDISP( GetAlphaData )
1053 MATCH_REDISP( wxPliOvl_n_n, GetAlphaXY )
1054 END_OVERLOAD( Wx::Image::GetAlpha )
1061 XS(XS_Wx__Image_GetAlphaXY); /* prototype to pass -Wmissing-prototypes */
1062 XS(XS_Wx__Image_GetAlphaXY)
1070 croak_xs_usage(cv, "THIS, x, y");
1072 int x = (int)SvIV(ST(1));
1073 int y = (int)SvIV(ST(2));
1074 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1075 unsigned char RETVAL;
1077 RETVAL = THIS->GetAlpha( x, y );
1078 XSprePUSH; PUSHu((UV)RETVAL);
1084 XS(XS_Wx__Image_GetAlphaData); /* prototype to pass -Wmissing-prototypes */
1085 XS(XS_Wx__Image_GetAlphaData)
1093 croak_xs_usage(cv, "THIS");
1095 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1097 unsigned char* alpha = THIS->GetAlpha();
1102 RETVAL = newSVpvn( (char*) alpha, THIS->GetWidth() * THIS->GetHeight() );
1111 XS(XS_Wx__Image_GetData); /* prototype to pass -Wmissing-prototypes */
1112 XS(XS_Wx__Image_GetData)
1120 croak_xs_usage(cv, "THIS");
1122 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1124 STRLEN len = THIS->GetWidth() * THIS->GetHeight() * 3;
1125 RETVAL = newSVpvn( (char*)THIS->GetData(), len );
1133 XS(XS_Wx__Image_GetBlue); /* prototype to pass -Wmissing-prototypes */
1134 XS(XS_Wx__Image_GetBlue)
1142 croak_xs_usage(cv, "THIS, x, y");
1144 int x = (int)SvIV(ST(1));
1145 int y = (int)SvIV(ST(2));
1146 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1147 unsigned char RETVAL;
1150 RETVAL = THIS->GetBlue(x, y);
1151 XSprePUSH; PUSHu((UV)RETVAL);
1157 XS(XS_Wx__Image_GetGreen); /* prototype to pass -Wmissing-prototypes */
1158 XS(XS_Wx__Image_GetGreen)
1166 croak_xs_usage(cv, "THIS, x, y");
1168 int x = (int)SvIV(ST(1));
1169 int y = (int)SvIV(ST(2));
1170 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1171 unsigned char RETVAL;
1174 RETVAL = THIS->GetGreen(x, y);
1175 XSprePUSH; PUSHu((UV)RETVAL);
1181 XS(XS_Wx__Image_GetRed); /* prototype to pass -Wmissing-prototypes */
1182 XS(XS_Wx__Image_GetRed)
1190 croak_xs_usage(cv, "THIS, x, y");
1192 int x = (int)SvIV(ST(1));
1193 int y = (int)SvIV(ST(2));
1194 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1195 unsigned char RETVAL;
1198 RETVAL = THIS->GetRed(x, y);
1199 XSprePUSH; PUSHu((UV)RETVAL);
1205 XS(XS_Wx__Image_GetHeight); /* prototype to pass -Wmissing-prototypes */
1206 XS(XS_Wx__Image_GetHeight)
1214 croak_xs_usage(cv, "THIS");
1216 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1220 RETVAL = THIS->GetHeight();
1221 XSprePUSH; PUSHi((IV)RETVAL);
1227 XS(XS_Wx__Image_GetMaskBlue); /* prototype to pass -Wmissing-prototypes */
1228 XS(XS_Wx__Image_GetMaskBlue)
1236 croak_xs_usage(cv, "THIS");
1238 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1239 unsigned char RETVAL;
1242 RETVAL = THIS->GetMaskBlue();
1243 XSprePUSH; PUSHu((UV)RETVAL);
1249 XS(XS_Wx__Image_GetMaskGreen); /* prototype to pass -Wmissing-prototypes */
1250 XS(XS_Wx__Image_GetMaskGreen)
1258 croak_xs_usage(cv, "THIS");
1260 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1261 unsigned char RETVAL;
1264 RETVAL = THIS->GetMaskGreen();
1265 XSprePUSH; PUSHu((UV)RETVAL);
1271 XS(XS_Wx__Image_GetMaskRed); /* prototype to pass -Wmissing-prototypes */
1272 XS(XS_Wx__Image_GetMaskRed)
1280 croak_xs_usage(cv, "THIS");
1282 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1283 unsigned char RETVAL;
1286 RETVAL = THIS->GetMaskRed();
1287 XSprePUSH; PUSHu((UV)RETVAL);
1293 XS(XS_Wx__Image_GetOption); /* prototype to pass -Wmissing-prototypes */
1294 XS(XS_Wx__Image_GetOption)
1302 croak_xs_usage(cv, "THIS, name");
1305 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1308 WXSTRING_INPUT( name, wxString, ST(1) );
1310 RETVAL = THIS->GetOption(name);
1311 ST(0) = sv_newmortal();
1312 WXSTRING_OUTPUT( RETVAL, ST(0) );
1319 XS(XS_Wx__Image_GetOptionInt); /* prototype to pass -Wmissing-prototypes */
1320 XS(XS_Wx__Image_GetOptionInt)
1328 croak_xs_usage(cv, "THIS, name");
1331 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1335 WXSTRING_INPUT( name, wxString, ST(1) );
1337 RETVAL = THIS->GetOptionInt(name);
1338 XSprePUSH; PUSHi((IV)RETVAL);
1344 XS(XS_Wx__Image_GetPalette); /* prototype to pass -Wmissing-prototypes */
1345 XS(XS_Wx__Image_GetPalette)
1353 croak_xs_usage(cv, "THIS");
1355 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1357 RETVAL = new wxPalette( THIS->GetPalette() );
1358 ST(0) = sv_newmortal();
1359 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1360 wxPli_thread_sv_register( aTHX_ "Wx::Palette", RETVAL, ST(0) );
1367 XS(XS_Wx__Image_GetSubImage); /* prototype to pass -Wmissing-prototypes */
1368 XS(XS_Wx__Image_GetSubImage)
1376 croak_xs_usage(cv, "THIS, rect");
1378 wxRect* rect = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
1379 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1381 RETVAL = new wxImage( THIS->GetSubImage( *rect ) );
1382 ST(0) = sv_newmortal();
1383 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1384 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
1391 XS(XS_Wx__Image_GetWidth); /* prototype to pass -Wmissing-prototypes */
1392 XS(XS_Wx__Image_GetWidth)
1400 croak_xs_usage(cv, "THIS");
1402 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1406 RETVAL = THIS->GetWidth();
1407 XSprePUSH; PUSHi((IV)RETVAL);
1412 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
1413 #define XSubPPtmpAAAH 1
1416 XS(XS_Wx__Image_HasAlpha); /* prototype to pass -Wmissing-prototypes */
1417 XS(XS_Wx__Image_HasAlpha)
1425 croak_xs_usage(cv, "THIS");
1427 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1430 RETVAL = THIS->HasAlpha();
1431 ST(0) = boolSV(RETVAL);
1438 #if WXPERL_W_VERSION_GE( 2, 5, 4 )
1439 #define XSubPPtmpAAAI 1
1442 XS(XS_Wx__Image_InitAlpha); /* prototype to pass -Wmissing-prototypes */
1443 XS(XS_Wx__Image_InitAlpha)
1451 croak_xs_usage(cv, "THIS");
1453 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1461 #if WXPERL_W_VERSION_GE( 2, 6, 1 )
1462 #define XSubPPtmpAAAJ 1
1465 XS(XS_Wx__Image_IsTransparent); /* prototype to pass -Wmissing-prototypes */
1466 XS(XS_Wx__Image_IsTransparent)
1473 if (items < 3 || items > 4)
1474 croak_xs_usage(cv, "THIS, x, y, threshold = wxIMAGE_ALPHA_THRESHOLD");
1476 int x = (int)SvIV(ST(1));
1477 int y = (int)SvIV(ST(2));
1478 unsigned char threshold;
1479 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1483 threshold = wxIMAGE_ALPHA_THRESHOLD;
1485 threshold = (unsigned char)SvUV(ST(3));
1488 RETVAL = THIS->IsTransparent(x, y, threshold);
1489 ST(0) = boolSV(RETVAL);
1497 XS(XS_Wx__Image_HasMask); /* prototype to pass -Wmissing-prototypes */
1498 XS(XS_Wx__Image_HasMask)
1506 croak_xs_usage(cv, "THIS");
1508 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1511 RETVAL = THIS->HasMask();
1512 ST(0) = boolSV(RETVAL);
1519 XS(XS_Wx__Image_HasOption); /* prototype to pass -Wmissing-prototypes */
1520 XS(XS_Wx__Image_HasOption)
1528 croak_xs_usage(cv, "THIS, name");
1531 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1534 WXSTRING_INPUT( name, wxString, ST(1) );
1536 RETVAL = THIS->HasOption(name);
1537 ST(0) = boolSV(RETVAL);
1544 XS(XS_Wx__Image_HasPalette); /* prototype to pass -Wmissing-prototypes */
1545 XS(XS_Wx__Image_HasPalette)
1553 croak_xs_usage(cv, "THIS");
1555 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1558 RETVAL = THIS->HasPalette();
1559 ST(0) = boolSV(RETVAL);
1566 XS(XS_Wx__Image_InsertHandler); /* prototype to pass -Wmissing-prototypes */
1567 XS(XS_Wx__Image_InsertHandler)
1575 croak_xs_usage(cv, "handler");
1577 wxImageHandler* handler = (wxImageHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageHandler" );
1578 wxImage::InsertHandler( handler );
1584 XS(XS_Wx__Image_LoadFile); /* prototype to pass -Wmissing-prototypes */
1585 XS(XS_Wx__Image_LoadFile)
1593 croak_xs_usage(cv, "THIS, ...");
1594 PERL_UNUSED_VAR(ax); /* -Wall */
1597 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1599 MATCH_REDISP( wxPliOvl_wist_n, LoadStreamType )
1600 MATCH_REDISP( wxPliOvl_wist_s, LoadStreamMIME )
1601 MATCH_REDISP( wxPliOvl_s_n, LoadFileType )
1602 MATCH_REDISP( wxPliOvl_s_s, LoadFileMIME )
1603 END_OVERLOAD( Wx::Image::LoadFile )
1610 XS(XS_Wx__Image_LoadFileType); /* prototype to pass -Wmissing-prototypes */
1611 XS(XS_Wx__Image_LoadFileType)
1618 if (items < 3 || items > 4)
1619 croak_xs_usage(cv, "THIS, name, type, index = -1");
1622 wxBitmapType type = (wxBitmapType)SvIV(ST(2));
1624 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1627 WXSTRING_INPUT( name, wxString, ST(1) );
1632 index = (int)SvIV(ST(3));
1634 RETVAL = THIS->LoadFile( name, type, index );
1635 ST(0) = boolSV(RETVAL);
1642 XS(XS_Wx__Image_LoadFileMIME); /* prototype to pass -Wmissing-prototypes */
1643 XS(XS_Wx__Image_LoadFileMIME)
1650 if (items < 3 || items > 4)
1651 croak_xs_usage(cv, "THIS, name, type, index = -1");
1656 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1659 WXSTRING_INPUT( name, wxString, ST(1) );
1661 WXSTRING_INPUT( type, wxString, ST(2) );
1666 index = (int)SvIV(ST(3));
1668 RETVAL = THIS->LoadFile( name, type, index );
1669 ST(0) = boolSV(RETVAL);
1676 XS(XS_Wx__Image_LoadStreamType); /* prototype to pass -Wmissing-prototypes */
1677 XS(XS_Wx__Image_LoadStreamType)
1684 if (items < 3 || items > 4)
1685 croak_xs_usage(cv, "THIS, stream, type, index = -1");
1687 wxPliInputStream stream;
1688 wxBitmapType type = (wxBitmapType)SvIV(ST(2));
1690 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1693 wxPli_sv_2_istream( aTHX_ ST(1), stream );
1698 index = (int)SvIV(ST(3));
1700 RETVAL = THIS->LoadFile( stream, type, index );
1701 ST(0) = boolSV(RETVAL);
1708 XS(XS_Wx__Image_LoadStreamMIME); /* prototype to pass -Wmissing-prototypes */
1709 XS(XS_Wx__Image_LoadStreamMIME)
1716 if (items < 3 || items > 4)
1717 croak_xs_usage(cv, "THIS, stream, type, index = -1");
1719 wxPliInputStream stream;
1722 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1725 wxPli_sv_2_istream( aTHX_ ST(1), stream );
1727 WXSTRING_INPUT( type, wxString, ST(2) );
1732 index = (int)SvIV(ST(3));
1734 RETVAL = THIS->LoadFile( stream, type, index );
1735 ST(0) = boolSV(RETVAL);
1742 XS(XS_Wx__Image_Ok); /* prototype to pass -Wmissing-prototypes */
1751 croak_xs_usage(cv, "THIS");
1753 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1756 RETVAL = THIS->Ok();
1757 ST(0) = boolSV(RETVAL);
1763 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
1764 #define XSubPPtmpAAAK 1
1767 XS(XS_Wx__Image_IsOk); /* prototype to pass -Wmissing-prototypes */
1768 XS(XS_Wx__Image_IsOk)
1776 croak_xs_usage(cv, "THIS");
1778 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1781 RETVAL = THIS->IsOk();
1782 ST(0) = boolSV(RETVAL);
1790 XS(XS_Wx__Image_SaveFile); /* prototype to pass -Wmissing-prototypes */
1791 XS(XS_Wx__Image_SaveFile)
1799 croak_xs_usage(cv, "THIS, ...");
1800 PERL_UNUSED_VAR(ax); /* -Wall */
1803 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1805 MATCH_REDISP( wxPliOvl_wost_n, SaveFileSType )
1806 MATCH_REDISP( wxPliOvl_wost_s, SaveFileSMIME )
1807 MATCH_REDISP( wxPliOvl_s_n, SaveFileType )
1808 MATCH_REDISP( wxPliOvl_s_s, SaveFileMIME )
1809 MATCH_REDISP( wxPliOvl_s, SaveFileOnly )
1810 END_OVERLOAD( Wx::Image::SaveFile )
1817 XS(XS_Wx__Image_SaveFileOnly); /* prototype to pass -Wmissing-prototypes */
1818 XS(XS_Wx__Image_SaveFileOnly)
1826 croak_xs_usage(cv, "THIS, name");
1829 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1832 WXSTRING_INPUT( name, wxString, ST(1) );
1833 RETVAL = THIS->SaveFile( name );
1834 ST(0) = boolSV(RETVAL);
1841 XS(XS_Wx__Image_SaveFileType); /* prototype to pass -Wmissing-prototypes */
1842 XS(XS_Wx__Image_SaveFileType)
1850 croak_xs_usage(cv, "THIS, name, type");
1853 wxBitmapType type = (wxBitmapType)SvIV(ST(2));
1854 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1857 WXSTRING_INPUT( name, wxString, ST(1) );
1858 RETVAL = THIS->SaveFile( name, type );
1859 ST(0) = boolSV(RETVAL);
1866 XS(XS_Wx__Image_SaveFileMIME); /* prototype to pass -Wmissing-prototypes */
1867 XS(XS_Wx__Image_SaveFileMIME)
1875 croak_xs_usage(cv, "THIS, name, type");
1879 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1882 WXSTRING_INPUT( name, wxString, ST(1) );
1884 WXSTRING_INPUT( type, wxString, ST(2) );
1885 RETVAL = THIS->SaveFile( name, type );
1886 ST(0) = boolSV(RETVAL);
1893 XS(XS_Wx__Image_SaveStreamType); /* prototype to pass -Wmissing-prototypes */
1894 XS(XS_Wx__Image_SaveStreamType)
1902 croak_xs_usage(cv, "THIS, stream, type");
1904 wxPliOutputStream stream;
1905 wxBitmapType type = (wxBitmapType)SvIV(ST(2));
1906 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1909 wxPli_sv_2_ostream( aTHX_ ST(1), stream );
1910 RETVAL = THIS->SaveFile( stream, type );
1911 ST(0) = boolSV(RETVAL);
1918 XS(XS_Wx__Image_SaveStreamMIME); /* prototype to pass -Wmissing-prototypes */
1919 XS(XS_Wx__Image_SaveStreamMIME)
1927 croak_xs_usage(cv, "THIS, stream, type");
1929 wxPliOutputStream stream;
1931 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1934 wxPli_sv_2_ostream( aTHX_ ST(1), stream );
1936 WXSTRING_INPUT( type, wxString, ST(2) );
1937 RETVAL = THIS->SaveFile( stream, type );
1938 ST(0) = boolSV(RETVAL);
1945 XS(XS_Wx__Image_Mirror); /* prototype to pass -Wmissing-prototypes */
1946 XS(XS_Wx__Image_Mirror)
1953 if (items < 1 || items > 2)
1954 croak_xs_usage(cv, "THIS, horizontally = true");
1957 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1961 horizontally = true;
1963 horizontally = (bool)SvTRUE(ST(1));
1965 RETVAL = new wxImage( THIS->Mirror( horizontally ) );
1966 ST(0) = sv_newmortal();
1967 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1968 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
1975 XS(XS_Wx__Image_Replace); /* prototype to pass -Wmissing-prototypes */
1976 XS(XS_Wx__Image_Replace)
1984 croak_xs_usage(cv, "THIS, r1, g1, b1, r2, g2, b2");
1986 unsigned char r1 = (unsigned char)SvUV(ST(1));
1987 unsigned char g1 = (unsigned char)SvUV(ST(2));
1988 unsigned char b1 = (unsigned char)SvUV(ST(3));
1989 unsigned char r2 = (unsigned char)SvUV(ST(4));
1990 unsigned char g2 = (unsigned char)SvUV(ST(5));
1991 unsigned char b2 = (unsigned char)SvUV(ST(6));
1992 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
1994 THIS->Replace(r1, g1, b1, r2, g2, b2);
1999 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
2000 #define XSubPPtmpAAAL 1
2003 XS(XS_Wx__Image_Rescale); /* prototype to pass -Wmissing-prototypes */
2004 XS(XS_Wx__Image_Rescale)
2011 if (items < 3 || items > 4)
2012 croak_xs_usage(cv, "THIS, width, height, quality = wxIMAGE_QUALITY_NORMAL");
2014 int width = (int)SvIV(ST(1));
2015 int height = (int)SvIV(ST(2));
2016 wxImageResizeQuality quality;
2017 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2021 quality = wxIMAGE_QUALITY_NORMAL;
2023 quality = (wxImageResizeQuality)SvIV(ST(3));
2025 RETVAL = new wxImage( THIS->Rescale( width, height, quality ) );
2026 ST(0) = sv_newmortal();
2027 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2028 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
2035 #define XSubPPtmpAAAM 1
2038 XS(XS_Wx__Image_Rescale); /* prototype to pass -Wmissing-prototypes */
2039 XS(XS_Wx__Image_Rescale)
2047 croak_xs_usage(cv, "THIS, width, height");
2049 int width = (int)SvIV(ST(1));
2050 int height = (int)SvIV(ST(2));
2051 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2053 RETVAL = new wxImage( THIS->Rescale( width, height ) );
2054 ST(0) = sv_newmortal();
2055 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2056 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
2064 XS(XS_Wx__Image_Rotate); /* prototype to pass -Wmissing-prototypes */
2065 XS(XS_Wx__Image_Rotate)
2072 if (items < 3 || items > 4)
2073 croak_xs_usage(cv, "THIS, angle, centre, interpolating = true");
2074 PERL_UNUSED_VAR(ax); /* -Wall */
2077 double angle = (double)SvNV(ST(1));
2078 wxPoint centre = wxPli_sv_2_wxpoint( aTHX_ ST(2) );
2082 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2085 interpolating = true;
2087 interpolating = (bool)SvTRUE(ST(3));
2089 result = new wxImage( THIS->Rotate( angle, centre, interpolating, &after ) );
2090 XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(), result ) );
2091 if( GIMME_V == G_ARRAY ) {
2092 PUSHs( wxPli_non_object_2_sv( aTHX_ sv_newmortal(),
2093 new wxPoint( after ), "Wx::Point" ) );
2100 #if WXPERL_W_VERSION_GE( 2, 6, 3 )
2101 #define XSubPPtmpAAAN 1
2104 XS(XS_Wx__Image_RotateHue); /* prototype to pass -Wmissing-prototypes */
2105 XS(XS_Wx__Image_RotateHue)
2113 croak_xs_usage(cv, "THIS, angle");
2115 double angle = (double)SvNV(ST(1));
2116 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2118 THIS->RotateHue(angle);
2125 XS(XS_Wx__Image_Rotate90); /* prototype to pass -Wmissing-prototypes */
2126 XS(XS_Wx__Image_Rotate90)
2133 if (items < 1 || items > 2)
2134 croak_xs_usage(cv, "THIS, clockwise = true");
2137 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2143 clockwise = (bool)SvTRUE(ST(1));
2145 RETVAL = new wxImage( THIS->Rotate90( clockwise ) );
2146 ST(0) = sv_newmortal();
2147 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2148 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
2154 #if WXPERL_W_VERSION_GE( 2, 4, 1 )
2155 #define XSubPPtmpAAAO 1
2158 XS(XS_Wx__Image_ShrinkBy); /* prototype to pass -Wmissing-prototypes */
2159 XS(XS_Wx__Image_ShrinkBy)
2167 croak_xs_usage(cv, "THIS, xfactor, yfactor");
2169 int xfactor = (int)SvIV(ST(1));
2170 int yfactor = (int)SvIV(ST(2));
2171 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2173 RETVAL = new wxImage( THIS->ShrinkBy( xfactor, yfactor ) );
2174 ST(0) = sv_newmortal();
2175 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2176 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
2183 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
2184 #define XSubPPtmpAAAP 1
2187 XS(XS_Wx__Image_Scale); /* prototype to pass -Wmissing-prototypes */
2188 XS(XS_Wx__Image_Scale)
2195 if (items < 3 || items > 4)
2196 croak_xs_usage(cv, "THIS, width, height, quality = wxIMAGE_QUALITY_NORMAL");
2198 int width = (int)SvIV(ST(1));
2199 int height = (int)SvIV(ST(2));
2200 wxImageResizeQuality quality;
2201 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2205 quality = wxIMAGE_QUALITY_NORMAL;
2207 quality = (wxImageResizeQuality)SvIV(ST(3));
2209 RETVAL = new wxImage( THIS->Scale( width, height, quality ) );
2210 ST(0) = sv_newmortal();
2211 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2212 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
2219 #define XSubPPtmpAAAQ 1
2222 XS(XS_Wx__Image_Scale); /* prototype to pass -Wmissing-prototypes */
2223 XS(XS_Wx__Image_Scale)
2231 croak_xs_usage(cv, "THIS, width, height");
2233 int width = (int)SvIV(ST(1));
2234 int height = (int)SvIV(ST(2));
2235 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2237 RETVAL = new wxImage( THIS->Scale( width, height ) );
2238 ST(0) = sv_newmortal();
2239 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2240 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
2247 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
2248 #define XSubPPtmpAAAR 1
2251 XS(XS_Wx__Image_SetAlpha); /* prototype to pass -Wmissing-prototypes */
2252 XS(XS_Wx__Image_SetAlpha)
2260 croak_xs_usage(cv, "THIS, ...");
2261 PERL_UNUSED_VAR(ax); /* -Wall */
2264 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2266 MATCH_REDISP( wxPliOvl_s, SetAlphaData )
2267 MATCH_REDISP( wxPliOvl_n_n_n, SetAlphaXY )
2268 END_OVERLOAD( Wx::Image::SetAlpha )
2275 XS(XS_Wx__Image_SetAlphaXY); /* prototype to pass -Wmissing-prototypes */
2276 XS(XS_Wx__Image_SetAlphaXY)
2284 croak_xs_usage(cv, "THIS, x, y, alpha");
2286 int x = (int)SvIV(ST(1));
2287 int y = (int)SvIV(ST(2));
2288 unsigned char alpha = (unsigned char)SvUV(ST(3));
2289 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2290 THIS->SetAlpha( x, y, alpha );
2296 XS(XS_Wx__Image_SetAlphaData); /* prototype to pass -Wmissing-prototypes */
2297 XS(XS_Wx__Image_SetAlphaData)
2305 croak_xs_usage(cv, "THIS, d");
2308 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2310 unsigned char* data = (unsigned char*) SvPV( d, len );
2311 STRLEN imglen = THIS->GetWidth() * THIS->GetHeight();
2312 unsigned char* data_copy = (unsigned char*) malloc( imglen );
2313 memcpy( data_copy, data, len );
2314 THIS->SetAlpha( data_copy );
2321 XS(XS_Wx__Image_SetData); /* prototype to pass -Wmissing-prototypes */
2322 XS(XS_Wx__Image_SetData)
2330 croak_xs_usage(cv, "THIS, d");
2333 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2335 unsigned char* data = (unsigned char*)SvPV( d, len );
2336 STRLEN imglen = THIS->GetWidth() * THIS->GetHeight() * 3;
2337 unsigned char* data_copy = (unsigned char*)malloc( imglen );
2338 memcpy( data_copy, data, len );
2339 THIS->SetData( data_copy );
2345 XS(XS_Wx__Image_SetMask); /* prototype to pass -Wmissing-prototypes */
2346 XS(XS_Wx__Image_SetMask)
2353 if (items < 1 || items > 2)
2354 croak_xs_usage(cv, "THIS, hasMask = true");
2357 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2362 hasMask = (bool)SvTRUE(ST(1));
2365 THIS->SetMask(hasMask);
2371 XS(XS_Wx__Image_SetMaskColour); /* prototype to pass -Wmissing-prototypes */
2372 XS(XS_Wx__Image_SetMaskColour)
2380 croak_xs_usage(cv, "THIS, red, green, blue");
2382 unsigned char red = (unsigned char)SvUV(ST(1));
2383 unsigned char green = (unsigned char)SvUV(ST(2));
2384 unsigned char blue = (unsigned char)SvUV(ST(3));
2385 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2387 THIS->SetMaskColour(red, green, blue);
2393 XS(XS_Wx__Image_SetOption); /* prototype to pass -Wmissing-prototypes */
2394 XS(XS_Wx__Image_SetOption)
2402 croak_xs_usage(cv, "THIS, name, value");
2406 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2408 WXSTRING_INPUT( name, wxString, ST(1) );
2410 WXSTRING_INPUT( value, wxString, ST(2) );
2412 THIS->SetOption(name, value);
2418 XS(XS_Wx__Image_SetOptionInt); /* prototype to pass -Wmissing-prototypes */
2419 XS(XS_Wx__Image_SetOptionInt)
2427 croak_xs_usage(cv, "THIS, name, value");
2430 int value = (int)SvIV(ST(2));
2431 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2433 WXSTRING_INPUT( name, wxString, ST(1) );
2434 THIS->SetOption( name, value );
2440 XS(XS_Wx__Image_SetPalette); /* prototype to pass -Wmissing-prototypes */
2441 XS(XS_Wx__Image_SetPalette)
2449 croak_xs_usage(cv, "THIS, palette");
2451 wxPalette* palette = (wxPalette *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Palette" );
2452 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2453 THIS->SetPalette( *palette );
2458 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
2459 #define XSubPPtmpAAAS 1
2462 XS(XS_Wx__Image_SetRGB); /* prototype to pass -Wmissing-prototypes */
2463 XS(XS_Wx__Image_SetRGB)
2471 croak_xs_usage(cv, "THIS, ...");
2472 PERL_UNUSED_VAR(ax); /* -Wall */
2475 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2477 MATCH_REDISP( wxPliOvl_n_n_n_n_n, SetRGBpixel )
2478 MATCH_REDISP( wxPliOvl_wrec_n_n_n, SetRGBrect )
2479 END_OVERLOAD( Wx::Image::SetRGB )
2486 XS(XS_Wx__Image_SetRGBpixel); /* prototype to pass -Wmissing-prototypes */
2487 XS(XS_Wx__Image_SetRGBpixel)
2495 croak_xs_usage(cv, "THIS, x, y, red, green, blue");
2497 int x = (int)SvIV(ST(1));
2498 int y = (int)SvIV(ST(2));
2499 unsigned char red = (unsigned char)SvUV(ST(3));
2500 unsigned char green = (unsigned char)SvUV(ST(4));
2501 unsigned char blue = (unsigned char)SvUV(ST(5));
2502 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2503 THIS->SetRGB( x, y, red, green, blue );
2509 XS(XS_Wx__Image_SetRGBrect); /* prototype to pass -Wmissing-prototypes */
2510 XS(XS_Wx__Image_SetRGBrect)
2518 croak_xs_usage(cv, "THIS, rect, red, green, blue");
2520 wxRect* rect = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
2521 unsigned char red = (unsigned char)SvUV(ST(2));
2522 unsigned char green = (unsigned char)SvUV(ST(3));
2523 unsigned char blue = (unsigned char)SvUV(ST(4));
2524 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2525 THIS->SetRGB( *rect, red, green, blue );
2531 #define XSubPPtmpAAAT 1
2534 XS(XS_Wx__Image_SetRGB); /* prototype to pass -Wmissing-prototypes */
2535 XS(XS_Wx__Image_SetRGB)
2543 croak_xs_usage(cv, "THIS, x, y, red, green, blue");
2545 int x = (int)SvIV(ST(1));
2546 int y = (int)SvIV(ST(2));
2547 unsigned char red = (unsigned char)SvUV(ST(3));
2548 unsigned char green = (unsigned char)SvUV(ST(4));
2549 unsigned char blue = (unsigned char)SvUV(ST(5));
2550 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2552 THIS->SetRGB(x, y, red, green, blue);
2558 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
2559 #define XSubPPtmpAAAU 1
2562 XS(XS_Wx__Image_Blur); /* prototype to pass -Wmissing-prototypes */
2563 XS(XS_Wx__Image_Blur)
2571 croak_xs_usage(cv, "THIS, blurradius");
2573 int blurradius = (int)SvIV(ST(1));
2574 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2576 RETVAL = new wxImage( THIS->Blur( blurradius ) );
2577 ST(0) = sv_newmortal();
2578 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2579 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
2586 XS(XS_Wx__Image_BlurHorizontal); /* prototype to pass -Wmissing-prototypes */
2587 XS(XS_Wx__Image_BlurHorizontal)
2595 croak_xs_usage(cv, "THIS, blurradius");
2597 int blurradius = (int)SvIV(ST(1));
2598 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2600 RETVAL = new wxImage( THIS->BlurHorizontal( blurradius ) );
2601 ST(0) = sv_newmortal();
2602 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2603 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
2610 XS(XS_Wx__Image_BlurVertical); /* prototype to pass -Wmissing-prototypes */
2611 XS(XS_Wx__Image_BlurVertical)
2619 croak_xs_usage(cv, "THIS, blurradius");
2621 int blurradius = (int)SvIV(ST(1));
2622 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2624 RETVAL = new wxImage( THIS->BlurVertical( blurradius ) );
2625 ST(0) = sv_newmortal();
2626 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2627 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
2634 XS(XS_Wx__Image_GetOrFindMaskColour); /* prototype to pass -Wmissing-prototypes */
2635 XS(XS_Wx__Image_GetOrFindMaskColour)
2643 croak_xs_usage(cv, "THIS, red, green, blue");
2645 unsigned char* red = (unsigned char *)SvPV_nolen(ST(1));
2646 unsigned char* green = (unsigned char *)SvPV_nolen(ST(2));
2647 unsigned char* blue = (unsigned char *)SvPV_nolen(ST(3));
2648 wxImage * THIS = (wxImage *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Image" );
2651 RETVAL = THIS->GetOrFindMaskColour(red, green, blue);
2652 ST(0) = boolSV(RETVAL);
2660 XS(XS_Wx__ImageHandler_Destroy); /* prototype to pass -Wmissing-prototypes */
2661 XS(XS_Wx__ImageHandler_Destroy)
2669 croak_xs_usage(cv, "THIS");
2671 wxImageHandler * THIS = (wxImageHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageHandler" );
2678 XS(XS_Wx__ImageHandler_GetImageCount); /* prototype to pass -Wmissing-prototypes */
2679 XS(XS_Wx__ImageHandler_GetImageCount)
2687 croak_xs_usage(cv, "THIS, stream");
2689 wxPliInputStream stream;
2690 wxImageHandler * THIS = (wxImageHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageHandler" );
2694 wxPli_sv_2_istream( aTHX_ ST(1), stream );
2696 RETVAL = THIS->GetImageCount(stream);
2697 XSprePUSH; PUSHi((IV)RETVAL);
2703 XS(XS_Wx__ImageHandler_GetName); /* prototype to pass -Wmissing-prototypes */
2704 XS(XS_Wx__ImageHandler_GetName)
2712 croak_xs_usage(cv, "THIS");
2714 wxImageHandler * THIS = (wxImageHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageHandler" );
2717 RETVAL = THIS->GetName();
2718 ST(0) = sv_newmortal();
2719 WXSTRING_OUTPUT( RETVAL, ST(0) );
2726 XS(XS_Wx__ImageHandler_GetExtension); /* prototype to pass -Wmissing-prototypes */
2727 XS(XS_Wx__ImageHandler_GetExtension)
2735 croak_xs_usage(cv, "THIS");
2737 wxImageHandler * THIS = (wxImageHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageHandler" );
2740 RETVAL = THIS->GetExtension();
2741 ST(0) = sv_newmortal();
2742 WXSTRING_OUTPUT( RETVAL, ST(0) );
2748 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
2749 #define XSubPPtmpAAAV 1
2752 XS(XS_Wx__ImageHandler_GetType); /* prototype to pass -Wmissing-prototypes */
2753 XS(XS_Wx__ImageHandler_GetType)
2761 croak_xs_usage(cv, "THIS");
2763 wxImageHandler * THIS = (wxImageHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageHandler" );
2764 wxBitmapType RETVAL;
2767 RETVAL = THIS->GetType();
2768 XSprePUSH; PUSHi((IV)RETVAL);
2774 #define XSubPPtmpAAAW 1
2777 XS(XS_Wx__ImageHandler_GetType); /* prototype to pass -Wmissing-prototypes */
2778 XS(XS_Wx__ImageHandler_GetType)
2786 croak_xs_usage(cv, "THIS");
2788 wxImageHandler * THIS = (wxImageHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageHandler" );
2792 RETVAL = THIS->GetType();
2793 XSprePUSH; PUSHi((IV)RETVAL);
2800 XS(XS_Wx__ImageHandler_GetMimeType); /* prototype to pass -Wmissing-prototypes */
2801 XS(XS_Wx__ImageHandler_GetMimeType)
2809 croak_xs_usage(cv, "THIS");
2811 wxImageHandler * THIS = (wxImageHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageHandler" );
2814 RETVAL = THIS->GetMimeType();
2815 ST(0) = sv_newmortal();
2816 WXSTRING_OUTPUT( RETVAL, ST(0) );
2823 XS(XS_Wx__ImageHandler_LoadFile); /* prototype to pass -Wmissing-prototypes */
2824 XS(XS_Wx__ImageHandler_LoadFile)
2831 if (items < 3 || items > 5)
2832 croak_xs_usage(cv, "THIS, image, stream, verbose = true, index = 0");
2834 wxImage* image = (wxImage *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Image" );
2835 wxPliInputStream stream;
2838 wxImageHandler * THIS = (wxImageHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageHandler" );
2841 wxPli_sv_2_istream( aTHX_ ST(2), stream );
2846 verbose = (bool)SvTRUE(ST(3));
2852 index = (int)SvIV(ST(4));
2855 RETVAL = THIS->LoadFile(image, stream, verbose, index);
2856 ST(0) = boolSV(RETVAL);
2863 XS(XS_Wx__ImageHandler_SaveFile); /* prototype to pass -Wmissing-prototypes */
2864 XS(XS_Wx__ImageHandler_SaveFile)
2872 croak_xs_usage(cv, "THIS, image, stream");
2874 wxImage* image = (wxImage *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Image" );
2875 wxPliOutputStream stream;
2876 wxImageHandler * THIS = (wxImageHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageHandler" );
2879 wxPli_sv_2_ostream( aTHX_ ST(2), stream );
2881 RETVAL = THIS->SaveFile(image, stream);
2882 ST(0) = boolSV(RETVAL);
2889 XS(XS_Wx__ImageHandler_SetName); /* prototype to pass -Wmissing-prototypes */
2890 XS(XS_Wx__ImageHandler_SetName)
2898 croak_xs_usage(cv, "THIS, name");
2901 wxImageHandler * THIS = (wxImageHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageHandler" );
2903 WXSTRING_INPUT( name, wxString, ST(1) );
2905 THIS->SetName(name);
2911 XS(XS_Wx__ImageHandler_SetExtension); /* prototype to pass -Wmissing-prototypes */
2912 XS(XS_Wx__ImageHandler_SetExtension)
2920 croak_xs_usage(cv, "THIS, ext");
2923 wxImageHandler * THIS = (wxImageHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageHandler" );
2925 WXSTRING_INPUT( ext, wxString, ST(1) );
2927 THIS->SetExtension(ext);
2933 XS(XS_Wx__ImageHandler_SetMimeType); /* prototype to pass -Wmissing-prototypes */
2934 XS(XS_Wx__ImageHandler_SetMimeType)
2942 croak_xs_usage(cv, "THIS, type");
2945 wxImageHandler * THIS = (wxImageHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageHandler" );
2947 WXSTRING_INPUT( type, wxString, ST(1) );
2949 THIS->SetMimeType(type);
2955 XS(XS_Wx__ImageHandler_SetType); /* prototype to pass -Wmissing-prototypes */
2956 XS(XS_Wx__ImageHandler_SetType)
2964 croak_xs_usage(cv, "THIS, type");
2966 wxBitmapType type = (wxBitmapType)SvIV(ST(1));
2967 wxImageHandler * THIS = (wxImageHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageHandler" );
2969 THIS->SetType(type);
2975 XS(XS_Wx__GIFHandler_new); /* prototype to pass -Wmissing-prototypes */
2976 XS(XS_Wx__GIFHandler_new)
2984 croak_xs_usage(cv, "CLASS");
2986 char * CLASS = (char *)SvPV_nolen(ST(0));
2987 wxGIFHandler * RETVAL;
2989 RETVAL = new wxGIFHandler();
2990 ST(0) = sv_newmortal();
2991 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2998 XS(XS_Wx__BMPHandler_new); /* prototype to pass -Wmissing-prototypes */
2999 XS(XS_Wx__BMPHandler_new)
3007 croak_xs_usage(cv, "CLASS");
3009 char * CLASS = (char *)SvPV_nolen(ST(0));
3010 wxBMPHandler * RETVAL;
3012 RETVAL = new wxBMPHandler();
3013 ST(0) = sv_newmortal();
3014 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3021 XS(XS_Wx__PNMHandler_new); /* prototype to pass -Wmissing-prototypes */
3022 XS(XS_Wx__PNMHandler_new)
3030 croak_xs_usage(cv, "CLASS");
3032 char * CLASS = (char *)SvPV_nolen(ST(0));
3033 wxPNMHandler * RETVAL;
3035 RETVAL = new wxPNMHandler();
3036 ST(0) = sv_newmortal();
3037 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3044 XS(XS_Wx__PCXHandler_new); /* prototype to pass -Wmissing-prototypes */
3045 XS(XS_Wx__PCXHandler_new)
3053 croak_xs_usage(cv, "CLASS");
3055 char * CLASS = (char *)SvPV_nolen(ST(0));
3056 wxPCXHandler * RETVAL;
3058 RETVAL = new wxPCXHandler();
3059 ST(0) = sv_newmortal();
3060 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3067 XS(XS_Wx__PNGHandler_new); /* prototype to pass -Wmissing-prototypes */
3068 XS(XS_Wx__PNGHandler_new)
3076 croak_xs_usage(cv, "CLASS");
3078 char * CLASS = (char *)SvPV_nolen(ST(0));
3079 wxPNGHandler * RETVAL;
3081 RETVAL = new wxPNGHandler();
3082 ST(0) = sv_newmortal();
3083 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3090 XS(XS_Wx__JPEGHandler_new); /* prototype to pass -Wmissing-prototypes */
3091 XS(XS_Wx__JPEGHandler_new)
3099 croak_xs_usage(cv, "CLASS");
3101 char * CLASS = (char *)SvPV_nolen(ST(0));
3102 wxJPEGHandler * RETVAL;
3104 RETVAL = new wxJPEGHandler();
3105 ST(0) = sv_newmortal();
3106 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3112 #if wxPERL_USE_LIBTIFF && !defined( __WXWINCE__ )
3113 #define XSubPPtmpAAAX 1
3116 XS(XS_Wx__TIFFHandler_new); /* prototype to pass -Wmissing-prototypes */
3117 XS(XS_Wx__TIFFHandler_new)
3125 croak_xs_usage(cv, "CLASS");
3127 char * CLASS = (char *)SvPV_nolen(ST(0));
3128 wxTIFFHandler * RETVAL;
3130 RETVAL = new wxTIFFHandler();
3131 ST(0) = sv_newmortal();
3132 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3140 XS(XS_Wx__XPMHandler_new); /* prototype to pass -Wmissing-prototypes */
3141 XS(XS_Wx__XPMHandler_new)
3149 croak_xs_usage(cv, "CLASS");
3151 char * CLASS = (char *)SvPV_nolen(ST(0));
3152 wxXPMHandler * RETVAL;
3154 RETVAL = new wxXPMHandler();
3155 ST(0) = sv_newmortal();
3156 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3163 #define XSubPPtmpAAAY 1
3166 XS(XS_Wx__IFFHandler_new); /* prototype to pass -Wmissing-prototypes */
3167 XS(XS_Wx__IFFHandler_new)
3175 croak_xs_usage(cv, "CLASS");
3177 char * CLASS = (char *)SvPV_nolen(ST(0));
3178 wxIFFHandler * RETVAL;
3180 RETVAL = new wxIFFHandler();
3181 ST(0) = sv_newmortal();
3182 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3189 #if wxPERL_USE_ICO_CUR
3190 #define XSubPPtmpAAAZ 1
3193 XS(XS_Wx__ICOHandler_new); /* prototype to pass -Wmissing-prototypes */
3194 XS(XS_Wx__ICOHandler_new)
3202 croak_xs_usage(cv, "CLASS");
3204 char * CLASS = (char *)SvPV_nolen(ST(0));
3205 wxICOHandler * RETVAL;
3207 RETVAL = new wxICOHandler();
3208 ST(0) = sv_newmortal();
3209 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3216 XS(XS_Wx__CURHandler_new); /* prototype to pass -Wmissing-prototypes */
3217 XS(XS_Wx__CURHandler_new)
3225 croak_xs_usage(cv, "CLASS");
3227 char * CLASS = (char *)SvPV_nolen(ST(0));
3228 wxCURHandler * RETVAL;
3230 RETVAL = new wxCURHandler();
3231 ST(0) = sv_newmortal();
3232 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3239 XS(XS_Wx__ANIHandler_new); /* prototype to pass -Wmissing-prototypes */
3240 XS(XS_Wx__ANIHandler_new)
3248 croak_xs_usage(cv, "CLASS");
3250 char * CLASS = (char *)SvPV_nolen(ST(0));
3251 wxANIHandler * RETVAL;
3253 RETVAL = new wxANIHandler();
3254 ST(0) = sv_newmortal();
3255 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3263 #define XSubPPtmpAABA 1
3266 XS(XS_Wx__TGAHandler_new); /* prototype to pass -Wmissing-prototypes */
3267 XS(XS_Wx__TGAHandler_new)
3275 croak_xs_usage(cv, "CLASS");
3277 char * CLASS = (char *)SvPV_nolen(ST(0));
3278 wxTGAHandler * RETVAL;
3280 RETVAL = new wxTGAHandler();
3281 ST(0) = sv_newmortal();
3282 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3290 XS(XS_Wx_InitAllImageHandlers); /* prototype to pass -Wmissing-prototypes */
3291 XS(XS_Wx_InitAllImageHandlers)
3299 croak_xs_usage(cv, "");
3302 wxInitAllImageHandlers();
3308 /* INCLUDE: Returning to 'XS/Brush.xs' from 'XS/Image.xs' */
3310 #include <wx/colour.h>
3311 #include <wx/bitmap.h>
3312 #include <wx/brush.h>
3313 #include "cpp/overload.h"
3315 XS(XS_Wx__Brush_new); /* prototype to pass -Wmissing-prototypes */
3316 XS(XS_Wx__Brush_new)
3324 croak_xs_usage(cv, "CLASS, ...");
3325 PERL_UNUSED_VAR(ax); /* -Wall */
3328 char * CLASS = (char *)SvPV_nolen(ST(0));
3330 MATCH_REDISP( wxPliOvl_wbmp, newBitmap )
3331 MATCH_REDISP( wxPliOvl_wcol_n, newColour )
3332 MATCH_REDISP( wxPliOvl_s_n, newName )
3333 END_OVERLOAD( Wx::Brush::new )
3340 XS(XS_Wx__Brush_newColour); /* prototype to pass -Wmissing-prototypes */
3341 XS(XS_Wx__Brush_newColour)
3349 croak_xs_usage(cv, "CLASS, colour, style");
3352 wxColour* colour = (wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
3353 wxBrushStyle style = (wxBrushStyle)SvIV(ST(2));
3355 RETVAL = new wxBrush( *colour, style );
3356 ST(0) = sv_newmortal();
3357 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3358 wxPli_thread_sv_register( aTHX_ "Wx::Brush", RETVAL, ST(0) );
3365 XS(XS_Wx__Brush_newName); /* prototype to pass -Wmissing-prototypes */
3366 XS(XS_Wx__Brush_newName)
3374 croak_xs_usage(cv, "CLASS, name, style");
3378 wxBrushStyle style = (wxBrushStyle)SvIV(ST(2));
3381 WXSTRING_INPUT( name, wxString, ST(1) );
3382 RETVAL = new wxBrush( name, style );
3383 ST(0) = sv_newmortal();
3384 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3385 wxPli_thread_sv_register( aTHX_ "Wx::Brush", RETVAL, ST(0) );
3392 XS(XS_Wx__Brush_newBitmap); /* prototype to pass -Wmissing-prototypes */
3393 XS(XS_Wx__Brush_newBitmap)
3401 croak_xs_usage(cv, "CLASS, stipple");
3404 wxBitmap* stipple = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
3406 RETVAL = new wxBrush( *stipple );
3407 ST(0) = sv_newmortal();
3408 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3409 wxPli_thread_sv_register( aTHX_ "Wx::Brush", RETVAL, ST(0) );
3416 XS(XS_Wx__Brush_CLONE); /* prototype to pass -Wmissing-prototypes */
3417 XS(XS_Wx__Brush_CLONE)
3425 croak_xs_usage(cv, "CLASS");
3427 char * CLASS = (char *)SvPV_nolen(ST(0));
3428 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
3434 XS(XS_Wx__Brush_DESTROY); /* prototype to pass -Wmissing-prototypes */
3435 XS(XS_Wx__Brush_DESTROY)
3443 croak_xs_usage(cv, "THIS");
3445 wxBrush * THIS = (wxBrush *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Brush" );
3446 wxPli_thread_sv_unregister( aTHX_ "Wx::Brush", THIS, ST(0) );
3453 XS(XS_Wx__Brush_GetColour); /* prototype to pass -Wmissing-prototypes */
3454 XS(XS_Wx__Brush_GetColour)
3462 croak_xs_usage(cv, "THIS");
3464 wxBrush * THIS = (wxBrush *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Brush" );
3466 RETVAL = new wxColour( THIS->GetColour() );
3467 ST(0) = sv_newmortal();
3468 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
3469 wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
3476 XS(XS_Wx__Brush_GetStipple); /* prototype to pass -Wmissing-prototypes */
3477 XS(XS_Wx__Brush_GetStipple)
3485 croak_xs_usage(cv, "THIS");
3487 wxBrush * THIS = (wxBrush *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Brush" );
3489 RETVAL = new wxBitmap( *THIS->GetStipple() );
3490 ST(0) = sv_newmortal();
3491 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3492 wxPli_thread_sv_register( aTHX_ "Wx::Bitmap", RETVAL, ST(0) );
3499 XS(XS_Wx__Brush_GetStyle); /* prototype to pass -Wmissing-prototypes */
3500 XS(XS_Wx__Brush_GetStyle)
3508 croak_xs_usage(cv, "THIS");
3510 wxBrush * THIS = (wxBrush *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Brush" );
3511 wxBrushStyle RETVAL;
3514 RETVAL = THIS->GetStyle();
3515 XSprePUSH; PUSHi((IV)RETVAL);
3521 XS(XS_Wx__Brush_Ok); /* prototype to pass -Wmissing-prototypes */
3530 croak_xs_usage(cv, "THIS");
3532 wxBrush * THIS = (wxBrush *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Brush" );
3535 RETVAL = THIS->Ok();
3536 ST(0) = boolSV(RETVAL);
3542 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
3543 #define XSubPPtmpAABB 1
3546 XS(XS_Wx__Brush_IsOk); /* prototype to pass -Wmissing-prototypes */
3547 XS(XS_Wx__Brush_IsOk)
3555 croak_xs_usage(cv, "THIS");
3557 wxBrush * THIS = (wxBrush *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Brush" );
3560 RETVAL = THIS->IsOk();
3561 ST(0) = boolSV(RETVAL);
3568 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
3569 #define XSubPPtmpAABC 1
3572 XS(XS_Wx__Brush_IsHatch); /* prototype to pass -Wmissing-prototypes */
3573 XS(XS_Wx__Brush_IsHatch)
3581 croak_xs_usage(cv, "THIS");
3583 wxBrush * THIS = (wxBrush *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Brush" );
3586 RETVAL = THIS->IsHatch();
3587 ST(0) = boolSV(RETVAL);
3595 XS(XS_Wx__Brush_SetColour); /* prototype to pass -Wmissing-prototypes */
3596 XS(XS_Wx__Brush_SetColour)
3604 croak_xs_usage(cv, "THIS, ...");
3605 PERL_UNUSED_VAR(ax); /* -Wall */
3608 wxBrush * THIS = (wxBrush *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Brush" );
3610 MATCH_REDISP( wxPliOvl_n_n_n, SetColourRGB )
3611 MATCH_REDISP( wxPliOvl_wcol, SetColourColour )
3612 MATCH_REDISP( wxPliOvl_s, SetColourName )
3613 END_OVERLOAD( Wx::Brush::SetColour )
3620 XS(XS_Wx__Brush_SetColourColour); /* prototype to pass -Wmissing-prototypes */
3621 XS(XS_Wx__Brush_SetColourColour)
3629 croak_xs_usage(cv, "THIS, colour");
3631 wxColour* colour = (wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
3632 wxBrush * THIS = (wxBrush *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Brush" );
3633 THIS->SetColour( *colour );
3639 XS(XS_Wx__Brush_SetColourName); /* prototype to pass -Wmissing-prototypes */
3640 XS(XS_Wx__Brush_SetColourName)
3648 croak_xs_usage(cv, "THIS, name");
3651 wxBrush * THIS = (wxBrush *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Brush" );
3653 WXSTRING_INPUT( name, wxString, ST(1) );
3654 THIS->SetColour( name );
3660 XS(XS_Wx__Brush_SetColourRGB); /* prototype to pass -Wmissing-prototypes */
3661 XS(XS_Wx__Brush_SetColourRGB)
3669 croak_xs_usage(cv, "THIS, r, g, b");
3671 int r = (int)SvIV(ST(1));
3672 int g = (int)SvIV(ST(2));
3673 int b = (int)SvIV(ST(3));
3674 wxBrush * THIS = (wxBrush *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Brush" );
3675 THIS->SetColour( r, g, b );
3681 XS(XS_Wx__Brush_SetStipple); /* prototype to pass -Wmissing-prototypes */
3682 XS(XS_Wx__Brush_SetStipple)
3690 croak_xs_usage(cv, "THIS, stipple");
3692 wxBitmap* stipple = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
3693 wxBrush * THIS = (wxBrush *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Brush" );
3694 THIS->SetStipple( *stipple );
3700 XS(XS_Wx__Brush_SetStyle); /* prototype to pass -Wmissing-prototypes */
3701 XS(XS_Wx__Brush_SetStyle)
3709 croak_xs_usage(cv, "THIS, style");
3711 wxBrushStyle style = (wxBrushStyle)SvIV(ST(1));
3712 wxBrush * THIS = (wxBrush *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Brush" );
3714 THIS->SetStyle(style);
3720 /* INCLUDE: Returning to 'XS/Pen.xs' from 'XS/Brush.xs' */
3722 #include <wx/colour.h>
3725 XS(XS_Wx__Pen_new); /* prototype to pass -Wmissing-prototypes */
3734 croak_xs_usage(cv, "CLASS, ...");
3735 PERL_UNUSED_VAR(ax); /* -Wall */
3738 char * CLASS = (char *)SvPV_nolen(ST(0));
3740 MATCH_REDISP( wxPliOvl_wcol_n_n, newColour )
3741 MATCH_REDISP( wxPliOvl_wbmp_n, newBitmap )
3742 MATCH_REDISP( wxPliOvl_s_n_n, newString )
3743 END_OVERLOAD( Wx::Pen::new )
3750 XS(XS_Wx__Pen_newColour); /* prototype to pass -Wmissing-prototypes */
3751 XS(XS_Wx__Pen_newColour)
3759 croak_xs_usage(cv, "CLASS, colour, width, style");
3762 wxColour* colour = (wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
3763 int width = (int)SvIV(ST(2));
3764 int style = (int)SvIV(ST(3));
3766 RETVAL = new wxPen( *colour, width, style );
3767 ST(0) = sv_newmortal();
3768 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3769 wxPli_thread_sv_register( aTHX_ "Wx::Pen", RETVAL, ST(0) );
3776 XS(XS_Wx__Pen_newString); /* prototype to pass -Wmissing-prototypes */
3777 XS(XS_Wx__Pen_newString)
3785 croak_xs_usage(cv, "CLASS, name, width, style");
3789 int width = (int)SvIV(ST(2));
3790 int style = (int)SvIV(ST(3));
3793 WXSTRING_INPUT( name, wxString, ST(1) );
3794 RETVAL = new wxPen( name, width, style );
3795 ST(0) = sv_newmortal();
3796 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3797 wxPli_thread_sv_register( aTHX_ "Wx::Pen", RETVAL, ST(0) );
3803 #if defined( __WXMSW__ ) || defined( __WXPERL_FORCE__ )
3804 #define XSubPPtmpAABD 1
3807 XS(XS_Wx__Pen_newBitmap); /* prototype to pass -Wmissing-prototypes */
3808 XS(XS_Wx__Pen_newBitmap)
3816 croak_xs_usage(cv, "CLASS, stipple, width");
3819 wxBitmap* stipple = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
3820 int width = (int)SvIV(ST(2));
3822 RETVAL = new wxPen( *stipple, width );
3829 XS(XS_Wx__Pen_CLONE); /* prototype to pass -Wmissing-prototypes */
3830 XS(XS_Wx__Pen_CLONE)
3838 croak_xs_usage(cv, "CLASS");
3840 char * CLASS = (char *)SvPV_nolen(ST(0));
3841 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
3847 XS(XS_Wx__Pen_DESTROY); /* prototype to pass -Wmissing-prototypes */
3848 XS(XS_Wx__Pen_DESTROY)
3856 croak_xs_usage(cv, "THIS");
3858 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
3859 wxPli_thread_sv_unregister( aTHX_ "Wx::Pen", THIS, ST(0) );
3866 XS(XS_Wx__Pen_GetCap); /* prototype to pass -Wmissing-prototypes */
3867 XS(XS_Wx__Pen_GetCap)
3875 croak_xs_usage(cv, "THIS");
3877 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
3881 RETVAL = THIS->GetCap();
3882 XSprePUSH; PUSHi((IV)RETVAL);
3888 XS(XS_Wx__Pen_GetColour); /* prototype to pass -Wmissing-prototypes */
3889 XS(XS_Wx__Pen_GetColour)
3897 croak_xs_usage(cv, "THIS");
3899 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
3901 RETVAL = new wxColour( THIS->GetColour() );
3902 ST(0) = sv_newmortal();
3903 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
3904 wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
3911 XS(XS_Wx__Pen_GetDashes); /* prototype to pass -Wmissing-prototypes */
3912 XS(XS_Wx__Pen_GetDashes)
3920 croak_xs_usage(cv, "THIS");
3921 PERL_UNUSED_VAR(ax); /* -Wall */
3926 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
3927 n = THIS->GetDashes( &array );
3929 for( i = 0; i < n; ++i )
3931 PUSHs( sv_2mortal( newSViv( array[i] ) ) );
3939 XS(XS_Wx__Pen_GetJoin); /* prototype to pass -Wmissing-prototypes */
3940 XS(XS_Wx__Pen_GetJoin)
3948 croak_xs_usage(cv, "THIS");
3950 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
3954 RETVAL = THIS->GetJoin();
3955 XSprePUSH; PUSHi((IV)RETVAL);
3960 #if defined( __WXMSW__ ) || defined( __WXPERL_FORCE__ )
3961 #define XSubPPtmpAABE 1
3964 XS(XS_Wx__Pen_GetStipple); /* prototype to pass -Wmissing-prototypes */
3965 XS(XS_Wx__Pen_GetStipple)
3973 croak_xs_usage(cv, "THIS");
3975 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
3977 RETVAL = new wxBitmap( *THIS->GetStipple() );
3978 ST(0) = sv_newmortal();
3979 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3980 wxPli_thread_sv_register( aTHX_ "Wx::Bitmap", RETVAL, ST(0) );
3988 XS(XS_Wx__Pen_GetStyle); /* prototype to pass -Wmissing-prototypes */
3989 XS(XS_Wx__Pen_GetStyle)
3997 croak_xs_usage(cv, "THIS");
3999 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
4003 RETVAL = THIS->GetStyle();
4004 XSprePUSH; PUSHi((IV)RETVAL);
4010 XS(XS_Wx__Pen_GetWidth); /* prototype to pass -Wmissing-prototypes */
4011 XS(XS_Wx__Pen_GetWidth)
4019 croak_xs_usage(cv, "THIS");
4021 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
4025 RETVAL = THIS->GetWidth();
4026 XSprePUSH; PUSHi((IV)RETVAL);
4032 XS(XS_Wx__Pen_Ok); /* prototype to pass -Wmissing-prototypes */
4041 croak_xs_usage(cv, "THIS");
4043 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
4046 RETVAL = THIS->Ok();
4047 ST(0) = boolSV(RETVAL);
4053 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
4054 #define XSubPPtmpAABF 1
4057 XS(XS_Wx__Pen_IsOk); /* prototype to pass -Wmissing-prototypes */
4066 croak_xs_usage(cv, "THIS");
4068 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
4071 RETVAL = THIS->IsOk();
4072 ST(0) = boolSV(RETVAL);
4080 XS(XS_Wx__Pen_SetCap); /* prototype to pass -Wmissing-prototypes */
4081 XS(XS_Wx__Pen_SetCap)
4089 croak_xs_usage(cv, "THIS, capStyle");
4091 wxPenCap capStyle = (wxPenCap)SvIV(ST(1));
4092 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
4094 THIS->SetCap(capStyle);
4100 XS(XS_Wx__Pen_SetColour); /* prototype to pass -Wmissing-prototypes */
4101 XS(XS_Wx__Pen_SetColour)
4109 croak_xs_usage(cv, "THIS, ...");
4110 PERL_UNUSED_VAR(ax); /* -Wall */
4113 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
4115 MATCH_REDISP( wxPliOvl_wcol, SetColourColour )
4116 MATCH_REDISP( wxPliOvl_n_n_n, SetColourRGB )
4117 MATCH_REDISP( wxPliOvl_s, SetColourName )
4118 END_OVERLOAD( Wx::Pen::SetColour )
4125 XS(XS_Wx__Pen_SetColourColour); /* prototype to pass -Wmissing-prototypes */
4126 XS(XS_Wx__Pen_SetColourColour)
4134 croak_xs_usage(cv, "THIS, colour");
4136 wxColour* colour = (wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
4137 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
4138 THIS->SetColour( *colour );
4144 XS(XS_Wx__Pen_SetColourName); /* prototype to pass -Wmissing-prototypes */
4145 XS(XS_Wx__Pen_SetColourName)
4153 croak_xs_usage(cv, "THIS, name");
4156 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
4158 WXSTRING_INPUT( name, wxString, ST(1) );
4159 THIS->SetColour( name );
4165 XS(XS_Wx__Pen_SetColourRGB); /* prototype to pass -Wmissing-prototypes */
4166 XS(XS_Wx__Pen_SetColourRGB)
4174 croak_xs_usage(cv, "THIS, r, g, b");
4176 int r = (int)SvIV(ST(1));
4177 int g = (int)SvIV(ST(2));
4178 int b = (int)SvIV(ST(3));
4179 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
4180 THIS->SetColour( r, g, b );
4186 XS(XS_Wx__Pen_SetDashes); /* prototype to pass -Wmissing-prototypes */
4187 XS(XS_Wx__Pen_SetDashes)
4195 croak_xs_usage(cv, "THIS, ds");
4201 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
4202 THIS->GetDashes( &olddashes );
4210 ( SvTYPE( (SV*) ( av = (AV*) SvRV( ds ) ) ) != SVt_PVAV ) )
4212 croak( "the value is not an array reference" );
4216 n = av_len( av ) + 1;
4217 dashes = new wxDash[ n ];
4219 for( i = 0; i < n; ++i )
4221 t = *av_fetch( av, i, 0 );
4222 dashes[i] = SvIV( t );
4225 THIS->SetDashes( n, dashes );
4232 XS(XS_Wx__Pen_SetJoin); /* prototype to pass -Wmissing-prototypes */
4233 XS(XS_Wx__Pen_SetJoin)
4241 croak_xs_usage(cv, "THIS, join_style");
4243 wxPenJoin join_style = (wxPenJoin)SvIV(ST(1));
4244 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
4246 THIS->SetJoin(join_style);
4251 #if defined( __WXMSW__ ) || defined( __WXPERL_FORCE__ )
4252 #define XSubPPtmpAABG 1
4255 XS(XS_Wx__Pen_SetStipple); /* prototype to pass -Wmissing-prototypes */
4256 XS(XS_Wx__Pen_SetStipple)
4264 croak_xs_usage(cv, "THIS, stipple");
4266 wxBitmap* stipple = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
4267 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
4268 THIS->SetStipple( *stipple );
4275 XS(XS_Wx__Pen_SetStyle); /* prototype to pass -Wmissing-prototypes */
4276 XS(XS_Wx__Pen_SetStyle)
4284 croak_xs_usage(cv, "THIS, style");
4286 wxPenStyle style = (wxPenStyle)SvIV(ST(1));
4287 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
4289 THIS->SetStyle(style);
4295 XS(XS_Wx__Pen_SetWidth); /* prototype to pass -Wmissing-prototypes */
4296 XS(XS_Wx__Pen_SetWidth)
4304 croak_xs_usage(cv, "THIS, width");
4306 int width = (int)SvIV(ST(1));
4307 wxPen * THIS = (wxPen *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Pen" );
4309 THIS->SetWidth(width);
4315 /* INCLUDE: Returning to 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/DC.xs |' from 'XS/Pen.xs' */
4318 #include <wx/dcmemory.h>
4319 #include <wx/dcclient.h>
4320 #include <wx/dcscreen.h>
4321 #include <wx/window.h>
4322 #include <wx/dcbuffer.h>
4323 #define wxNullBitmapPtr (wxBitmap*) &wxNullBitmap
4325 XS(XS_Wx__DC_CLONE); /* prototype to pass -Wmissing-prototypes */
4334 croak_xs_usage(cv, "CLASS");
4336 char * CLASS = (char *)SvPV_nolen(ST(0));
4337 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
4343 XS(XS_Wx__DC_DESTROY); /* prototype to pass -Wmissing-prototypes */
4344 XS(XS_Wx__DC_DESTROY)
4352 croak_xs_usage(cv, "THIS");
4354 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4355 wxPli_thread_sv_unregister( aTHX_ wxPli_get_class( aTHX_ ST(0) ),
4357 if( wxPli_object_is_deleteable( aTHX_ ST(0) ) )
4363 #if WXPERL_W_VERSION_LT( 2, 7, 0 ) || WXWIN_COMPATIBILITY_2_6
4364 #define XSubPPtmpAABH 1
4367 XS(XS_Wx__DC_BeginDrawing); /* prototype to pass -Wmissing-prototypes */
4368 XS(XS_Wx__DC_BeginDrawing)
4376 croak_xs_usage(cv, "THIS");
4378 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4380 THIS->BeginDrawing();
4387 XS(XS_Wx__DC_Blit); /* prototype to pass -Wmissing-prototypes */
4395 if (items < 8 || items > 10)
4396 croak_xs_usage(cv, "THIS, xdest, ydest, width, height, source, xsrc, ysrc, logicalFunc = wxCOPY, useMask = false");
4398 wxCoord xdest = (wxCoord)SvIV(ST(1));
4399 wxCoord ydest = (wxCoord)SvIV(ST(2));
4400 wxCoord width = (wxCoord)SvIV(ST(3));
4401 wxCoord height = (wxCoord)SvIV(ST(4));
4402 wxDC* source = (wxDC *) wxPli_sv_2_object( aTHX_ ST(5), "Wx::DC" );
4403 wxCoord xsrc = (wxCoord)SvIV(ST(6));
4404 wxCoord ysrc = (wxCoord)SvIV(ST(7));
4405 wxRasterOperationMode logicalFunc;
4407 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4411 logicalFunc = wxCOPY;
4413 logicalFunc = (wxRasterOperationMode)SvIV(ST(8));
4419 useMask = (bool)SvTRUE(ST(9));
4422 RETVAL = THIS->Blit(xdest, ydest, width, height, source, xsrc, ysrc, logicalFunc, useMask);
4423 ST(0) = boolSV(RETVAL);
4429 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
4430 #define XSubPPtmpAABI 1
4433 XS(XS_Wx__DC_StretchBlit); /* prototype to pass -Wmissing-prototypes */
4434 XS(XS_Wx__DC_StretchBlit)
4441 if (items < 10 || items > 14)
4442 croak_xs_usage(cv, "THIS, xdest, ydest, wdest, hdest, source, xsrc, ysrc, wsrc, hsrc, logicalFunc = wxCOPY, useMask = false, xsrcmask = -1, ysrcmask = -1");
4444 wxCoord xdest = (wxCoord)SvIV(ST(1));
4445 wxCoord ydest = (wxCoord)SvIV(ST(2));
4446 wxCoord wdest = (wxCoord)SvIV(ST(3));
4447 wxCoord hdest = (wxCoord)SvIV(ST(4));
4448 wxDC* source = (wxDC *) wxPli_sv_2_object( aTHX_ ST(5), "Wx::DC" );
4449 wxCoord xsrc = (wxCoord)SvIV(ST(6));
4450 wxCoord ysrc = (wxCoord)SvIV(ST(7));
4451 wxCoord wsrc = (wxCoord)SvIV(ST(8));
4452 wxCoord hsrc = (wxCoord)SvIV(ST(9));
4453 wxRasterOperationMode logicalFunc;
4457 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4461 logicalFunc = wxCOPY;
4463 logicalFunc = (wxRasterOperationMode)SvIV(ST(10));
4469 useMask = (bool)SvTRUE(ST(11));
4475 xsrcmask = (wxCoord)SvIV(ST(12));
4481 ysrcmask = (wxCoord)SvIV(ST(13));
4484 RETVAL = THIS->StretchBlit(xdest, ydest, wdest, hdest, source, xsrc, ysrc, wsrc, hsrc, logicalFunc, useMask, xsrcmask, ysrcmask);
4485 ST(0) = boolSV(RETVAL);
4493 XS(XS_Wx__DC_CalcBoundingBox); /* prototype to pass -Wmissing-prototypes */
4494 XS(XS_Wx__DC_CalcBoundingBox)
4502 croak_xs_usage(cv, "THIS, x, y");
4504 wxCoord x = (wxCoord)SvIV(ST(1));
4505 wxCoord y = (wxCoord)SvIV(ST(2));
4506 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4508 THIS->CalcBoundingBox(x, y);
4514 XS(XS_Wx__DC_Clear); /* prototype to pass -Wmissing-prototypes */
4523 croak_xs_usage(cv, "THIS");
4525 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4533 XS(XS_Wx__DC_CrossHair); /* prototype to pass -Wmissing-prototypes */
4534 XS(XS_Wx__DC_CrossHair)
4542 croak_xs_usage(cv, "THIS, x, y");
4544 wxCoord x = (wxCoord)SvIV(ST(1));
4545 wxCoord y = (wxCoord)SvIV(ST(2));
4546 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4548 THIS->CrossHair(x, y);
4554 XS(XS_Wx__DC_DestroyClippingRegion); /* prototype to pass -Wmissing-prototypes */
4555 XS(XS_Wx__DC_DestroyClippingRegion)
4563 croak_xs_usage(cv, "THIS");
4565 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4567 THIS->DestroyClippingRegion();
4573 XS(XS_Wx__DC_DeviceToLogicalX); /* prototype to pass -Wmissing-prototypes */
4574 XS(XS_Wx__DC_DeviceToLogicalX)
4582 croak_xs_usage(cv, "THIS, x");
4584 wxCoord x = (wxCoord)SvIV(ST(1));
4585 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4589 RETVAL = THIS->DeviceToLogicalX(x);
4590 XSprePUSH; PUSHi((IV)RETVAL);
4596 XS(XS_Wx__DC_DeviceToLogicalXRel); /* prototype to pass -Wmissing-prototypes */
4597 XS(XS_Wx__DC_DeviceToLogicalXRel)
4605 croak_xs_usage(cv, "THIS, x");
4607 wxCoord x = (wxCoord)SvIV(ST(1));
4608 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4612 RETVAL = THIS->DeviceToLogicalXRel(x);
4613 XSprePUSH; PUSHi((IV)RETVAL);
4619 XS(XS_Wx__DC_DeviceToLogicalY); /* prototype to pass -Wmissing-prototypes */
4620 XS(XS_Wx__DC_DeviceToLogicalY)
4628 croak_xs_usage(cv, "THIS, y");
4630 wxCoord y = (wxCoord)SvIV(ST(1));
4631 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4635 RETVAL = THIS->DeviceToLogicalY(y);
4636 XSprePUSH; PUSHi((IV)RETVAL);
4642 XS(XS_Wx__DC_DeviceToLogicalYRel); /* prototype to pass -Wmissing-prototypes */
4643 XS(XS_Wx__DC_DeviceToLogicalYRel)
4651 croak_xs_usage(cv, "THIS, y");
4653 wxCoord y = (wxCoord)SvIV(ST(1));
4654 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4658 RETVAL = THIS->DeviceToLogicalYRel(y);
4659 XSprePUSH; PUSHi((IV)RETVAL);
4665 XS(XS_Wx__DC_DrawArc); /* prototype to pass -Wmissing-prototypes */
4666 XS(XS_Wx__DC_DrawArc)
4674 croak_xs_usage(cv, "THIS, x1, y1, x2, y2, xc, yc");
4676 wxCoord x1 = (wxCoord)SvIV(ST(1));
4677 wxCoord y1 = (wxCoord)SvIV(ST(2));
4678 wxCoord x2 = (wxCoord)SvIV(ST(3));
4679 wxCoord y2 = (wxCoord)SvIV(ST(4));
4680 wxCoord xc = (wxCoord)SvIV(ST(5));
4681 wxCoord yc = (wxCoord)SvIV(ST(6));
4682 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4684 THIS->DrawArc(x1, y1, x2, y2, xc, yc);
4690 XS(XS_Wx__DC_DrawBitmap); /* prototype to pass -Wmissing-prototypes */
4691 XS(XS_Wx__DC_DrawBitmap)
4699 croak_xs_usage(cv, "THIS, bitmap, x, y, transparent");
4701 wxBitmap* bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
4702 wxCoord x = (wxCoord)SvIV(ST(2));
4703 wxCoord y = (wxCoord)SvIV(ST(3));
4704 bool transparent = (bool)SvTRUE(ST(4));
4705 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4706 THIS->DrawBitmap( *bitmap, x, y, transparent );
4712 XS(XS_Wx__DC_DrawCheckMark); /* prototype to pass -Wmissing-prototypes */
4713 XS(XS_Wx__DC_DrawCheckMark)
4721 croak_xs_usage(cv, "THIS, ...");
4722 PERL_UNUSED_VAR(ax); /* -Wall */
4725 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4727 MATCH_REDISP( wxPliOvl_n_n_n_n, DrawCheckMarkXYWH )
4728 MATCH_REDISP( wxPliOvl_wrec, DrawCheckMarkRect )
4729 END_OVERLOAD( Wx::DC::DrawCheckMark )
4736 XS(XS_Wx__DC_DrawCheckMarkXYWH); /* prototype to pass -Wmissing-prototypes */
4737 XS(XS_Wx__DC_DrawCheckMarkXYWH)
4745 croak_xs_usage(cv, "THIS, x, y, width, height");
4747 wxCoord x = (wxCoord)SvIV(ST(1));
4748 wxCoord y = (wxCoord)SvIV(ST(2));
4749 wxCoord width = (wxCoord)SvIV(ST(3));
4750 wxCoord height = (wxCoord)SvIV(ST(4));
4751 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4752 THIS->DrawCheckMark( x, y, width, height );
4758 XS(XS_Wx__DC_DrawCheckMarkRect); /* prototype to pass -Wmissing-prototypes */
4759 XS(XS_Wx__DC_DrawCheckMarkRect)
4767 croak_xs_usage(cv, "THIS, rect");
4769 wxRect* rect = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
4770 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4771 THIS->DrawCheckMark( *rect );
4777 XS(XS_Wx__DC_DrawCircle); /* prototype to pass -Wmissing-prototypes */
4778 XS(XS_Wx__DC_DrawCircle)
4786 croak_xs_usage(cv, "THIS, x, y, radius");
4788 wxCoord x = (wxCoord)SvIV(ST(1));
4789 wxCoord y = (wxCoord)SvIV(ST(2));
4790 wxCoord radius = (wxCoord)SvIV(ST(3));
4791 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4793 THIS->DrawCircle(x, y, radius);
4799 XS(XS_Wx__DC_DrawEllipse); /* prototype to pass -Wmissing-prototypes */
4800 XS(XS_Wx__DC_DrawEllipse)
4808 croak_xs_usage(cv, "THIS, x, y, width, height");
4810 wxCoord x = (wxCoord)SvIV(ST(1));
4811 wxCoord y = (wxCoord)SvIV(ST(2));
4812 wxCoord width = (wxCoord)SvIV(ST(3));
4813 wxCoord height = (wxCoord)SvIV(ST(4));
4814 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4816 THIS->DrawEllipse(x, y, width, height);
4822 XS(XS_Wx__DC_DrawEllipticArc); /* prototype to pass -Wmissing-prototypes */
4823 XS(XS_Wx__DC_DrawEllipticArc)
4831 croak_xs_usage(cv, "THIS, x, y, width, height, start, end");
4833 wxCoord x = (wxCoord)SvIV(ST(1));
4834 wxCoord y = (wxCoord)SvIV(ST(2));
4835 wxCoord width = (wxCoord)SvIV(ST(3));
4836 wxCoord height = (wxCoord)SvIV(ST(4));
4837 double start = (double)SvNV(ST(5));
4838 double end = (double)SvNV(ST(6));
4839 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4841 THIS->DrawEllipticArc(x, y, width, height, start, end);
4847 XS(XS_Wx__DC_DrawIcon); /* prototype to pass -Wmissing-prototypes */
4848 XS(XS_Wx__DC_DrawIcon)
4856 croak_xs_usage(cv, "THIS, icon, x, y");
4858 wxIcon* icon = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Icon" );
4859 wxCoord x = (wxCoord)SvIV(ST(2));
4860 wxCoord y = (wxCoord)SvIV(ST(3));
4861 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4862 THIS->DrawIcon( *icon, x, y );
4868 XS(XS_Wx__DC_DrawLine); /* prototype to pass -Wmissing-prototypes */
4869 XS(XS_Wx__DC_DrawLine)
4877 croak_xs_usage(cv, "THIS, x1, y1, x2, y2");
4879 wxCoord x1 = (wxCoord)SvIV(ST(1));
4880 wxCoord y1 = (wxCoord)SvIV(ST(2));
4881 wxCoord x2 = (wxCoord)SvIV(ST(3));
4882 wxCoord y2 = (wxCoord)SvIV(ST(4));
4883 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4885 THIS->DrawLine(x1, y1, x2, y2);
4891 XS(XS_Wx__DC_DrawLines); /* prototype to pass -Wmissing-prototypes */
4892 XS(XS_Wx__DC_DrawLines)
4899 if (items < 2 || items > 4)
4900 croak_xs_usage(cv, "THIS, list, xoffset = 0, yoffset = 0");
4905 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
4910 wxPliArrayGuard<wxPoint> pts;
4911 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4916 xoffset = (wxCoord)SvIV(ST(2));
4922 yoffset = (wxCoord)SvIV(ST(3));
4924 wxPli_av_2_pointlist( aTHX_ list, &points, pts.lvalue() );
4925 THIS->DrawLines( &points, xoffset, yoffset );
4931 XS(XS_Wx__DC_DrawPoint); /* prototype to pass -Wmissing-prototypes */
4932 XS(XS_Wx__DC_DrawPoint)
4940 croak_xs_usage(cv, "THIS, x, y");
4942 wxCoord x = (wxCoord)SvIV(ST(1));
4943 wxCoord y = (wxCoord)SvIV(ST(2));
4944 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4946 THIS->DrawPoint(x, y);
4952 XS(XS_Wx__DC_DrawPolygon); /* prototype to pass -Wmissing-prototypes */
4953 XS(XS_Wx__DC_DrawPolygon)
4960 if (items < 4 || items > 5)
4961 croak_xs_usage(cv, "THIS, list, xoffset, yoffset, fill_style = wxODDEVEN_RULE");
4964 wxCoord xoffset = (wxCoord)SvIV(ST(2));
4965 wxCoord yoffset = (wxCoord)SvIV(ST(3));
4966 wxPolygonFillMode fill_style;
4967 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
4972 wxPliArrayGuard<wxPoint> pts;
4973 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
4976 fill_style = wxODDEVEN_RULE;
4978 fill_style = (wxPolygonFillMode)SvIV(ST(4));
4980 wxPli_av_2_pointlist( aTHX_ list, &points, pts.lvalue() );
4981 THIS->DrawPolygon( &points, xoffset, yoffset, fill_style );
4987 XS(XS_Wx__DC_DrawRectangle); /* prototype to pass -Wmissing-prototypes */
4988 XS(XS_Wx__DC_DrawRectangle)
4996 croak_xs_usage(cv, "THIS, x, y, width, height");
4998 wxCoord x = (wxCoord)SvIV(ST(1));
4999 wxCoord y = (wxCoord)SvIV(ST(2));
5000 wxCoord width = (wxCoord)SvIV(ST(3));
5001 wxCoord height = (wxCoord)SvIV(ST(4));
5002 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5004 THIS->DrawRectangle(x, y, width, height);
5010 XS(XS_Wx__DC_DrawRotatedText); /* prototype to pass -Wmissing-prototypes */
5011 XS(XS_Wx__DC_DrawRotatedText)
5019 croak_xs_usage(cv, "THIS, text, x, y, angle");
5022 wxCoord x = (wxCoord)SvIV(ST(2));
5023 wxCoord y = (wxCoord)SvIV(ST(3));
5024 double angle = (double)SvNV(ST(4));
5025 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5027 WXSTRING_INPUT( text, wxString, ST(1) );
5029 THIS->DrawRotatedText(text, x, y, angle);
5035 XS(XS_Wx__DC_DrawRoundedRectangle); /* prototype to pass -Wmissing-prototypes */
5036 XS(XS_Wx__DC_DrawRoundedRectangle)
5043 if (items < 5 || items > 6)
5044 croak_xs_usage(cv, "THIS, x, y, width, height, radius = 20");
5046 wxCoord x = (wxCoord)SvIV(ST(1));
5047 wxCoord y = (wxCoord)SvIV(ST(2));
5048 wxCoord width = (wxCoord)SvIV(ST(3));
5049 wxCoord height = (wxCoord)SvIV(ST(4));
5051 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5056 radius = (wxCoord)SvIV(ST(5));
5059 THIS->DrawRoundedRectangle(x, y, width, height, radius);
5065 XS(XS_Wx__DC_DrawSpline); /* prototype to pass -Wmissing-prototypes */
5066 XS(XS_Wx__DC_DrawSpline)
5074 croak_xs_usage(cv, "THIS, list");
5077 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
5082 wxPliArrayGuard<wxPoint> pts;
5083 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5084 wxPli_av_2_pointlist( aTHX_ list, &points, pts.lvalue() );
5085 THIS->DrawSpline( &points );
5091 XS(XS_Wx__DC_DrawText); /* prototype to pass -Wmissing-prototypes */
5092 XS(XS_Wx__DC_DrawText)
5100 croak_xs_usage(cv, "THIS, text, x, y");
5103 wxCoord x = (wxCoord)SvIV(ST(2));
5104 wxCoord y = (wxCoord)SvIV(ST(3));
5105 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5107 WXSTRING_INPUT( text, wxString, ST(1) );
5109 THIS->DrawText(text, x, y);
5115 XS(XS_Wx__DC_EndDoc); /* prototype to pass -Wmissing-prototypes */
5116 XS(XS_Wx__DC_EndDoc)
5124 croak_xs_usage(cv, "THIS");
5126 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5133 #if WXPERL_W_VERSION_LT( 2, 7, 0 ) || WXWIN_COMPATIBILITY_2_6
5134 #define XSubPPtmpAABJ 1
5137 XS(XS_Wx__DC_EndDrawing); /* prototype to pass -Wmissing-prototypes */
5138 XS(XS_Wx__DC_EndDrawing)
5146 croak_xs_usage(cv, "THIS");
5148 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5157 XS(XS_Wx__DC_EndPage); /* prototype to pass -Wmissing-prototypes */
5158 XS(XS_Wx__DC_EndPage)
5166 croak_xs_usage(cv, "THIS");
5168 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5176 XS(XS_Wx__DC_FloodFill); /* prototype to pass -Wmissing-prototypes */
5177 XS(XS_Wx__DC_FloodFill)
5184 if (items < 4 || items > 5)
5185 croak_xs_usage(cv, "THIS, x, y, colour, style = wxFLOOD_SURFACE");
5187 wxCoord x = (wxCoord)SvIV(ST(1));
5188 wxCoord y = (wxCoord)SvIV(ST(2));
5189 wxColour* colour = (wxColour *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Colour" );
5190 wxFloodFillStyle style;
5191 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5194 style = wxFLOOD_SURFACE;
5196 style = (wxFloodFillStyle)SvIV(ST(4));
5198 THIS->FloodFill( x, y, *colour, style );
5203 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
5204 #define XSubPPtmpAABK 1
5207 XS(XS_Wx__DC_GetAsBitmap); /* prototype to pass -Wmissing-prototypes */
5208 XS(XS_Wx__DC_GetAsBitmap)
5215 if (items < 1 || items > 2)
5216 croak_xs_usage(cv, "THIS, subrect= NULL");
5218 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5225 subrect = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
5227 RETVAL = new wxBitmap( THIS->GetAsBitmap( subrect ) );
5228 ST(0) = sv_newmortal();
5229 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5230 wxPli_thread_sv_register( aTHX_ "Wx::Bitmap", RETVAL, ST(0) );
5238 XS(XS_Wx__DC_GetBackground); /* prototype to pass -Wmissing-prototypes */
5239 XS(XS_Wx__DC_GetBackground)
5247 croak_xs_usage(cv, "THIS");
5249 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5251 RETVAL = new wxBrush( THIS->GetBackground() );
5252 ST(0) = sv_newmortal();
5253 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5254 wxPli_thread_sv_register( aTHX_ "Wx::Brush", RETVAL, ST(0) );
5261 XS(XS_Wx__DC_GetBackgroundMode); /* prototype to pass -Wmissing-prototypes */
5262 XS(XS_Wx__DC_GetBackgroundMode)
5270 croak_xs_usage(cv, "THIS");
5272 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5276 RETVAL = THIS->GetBackgroundMode();
5277 XSprePUSH; PUSHi((IV)RETVAL);
5283 XS(XS_Wx__DC_GetBrush); /* prototype to pass -Wmissing-prototypes */
5284 XS(XS_Wx__DC_GetBrush)
5292 croak_xs_usage(cv, "THIS");
5294 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5296 RETVAL = new wxBrush( THIS->GetBrush() );
5297 ST(0) = sv_newmortal();
5298 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5299 wxPli_thread_sv_register( aTHX_ "Wx::Brush", RETVAL, ST(0) );
5306 XS(XS_Wx__DC_GetCharHeight); /* prototype to pass -Wmissing-prototypes */
5307 XS(XS_Wx__DC_GetCharHeight)
5315 croak_xs_usage(cv, "THIS");
5317 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5321 RETVAL = THIS->GetCharHeight();
5322 XSprePUSH; PUSHi((IV)RETVAL);
5328 XS(XS_Wx__DC_GetCharWidth); /* prototype to pass -Wmissing-prototypes */
5329 XS(XS_Wx__DC_GetCharWidth)
5337 croak_xs_usage(cv, "THIS");
5339 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5343 RETVAL = THIS->GetCharWidth();
5344 XSprePUSH; PUSHi((IV)RETVAL);
5350 XS(XS_Wx__DC_GetClippingBox); /* prototype to pass -Wmissing-prototypes */
5351 XS(XS_Wx__DC_GetClippingBox)
5359 croak_xs_usage(cv, "THIS");
5360 PERL_UNUSED_VAR(ax); /* -Wall */
5363 wxCoord x, y, width, height;
5364 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5365 THIS->GetClippingBox( &x, &y, &width, &height );
5367 PUSHs( sv_2mortal( newSViv( x ) ) );
5368 PUSHs( sv_2mortal( newSViv( y ) ) );
5369 PUSHs( sv_2mortal( newSViv( width ) ) );
5370 PUSHs( sv_2mortal( newSViv( height ) ) );
5377 XS(XS_Wx__DC_GetFont); /* prototype to pass -Wmissing-prototypes */
5378 XS(XS_Wx__DC_GetFont)
5386 croak_xs_usage(cv, "THIS");
5388 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5390 RETVAL = new wxFont( THIS->GetFont() );
5391 ST(0) = sv_newmortal();
5392 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5393 wxPli_thread_sv_register( aTHX_ "Wx::Font", RETVAL, ST(0) );
5400 XS(XS_Wx__DC_GetLogicalFunction); /* prototype to pass -Wmissing-prototypes */
5401 XS(XS_Wx__DC_GetLogicalFunction)
5409 croak_xs_usage(cv, "THIS");
5411 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5412 wxRasterOperationMode RETVAL;
5415 RETVAL = THIS->GetLogicalFunction();
5416 XSprePUSH; PUSHi((IV)RETVAL);
5422 XS(XS_Wx__DC_GetMapMode); /* prototype to pass -Wmissing-prototypes */
5423 XS(XS_Wx__DC_GetMapMode)
5431 croak_xs_usage(cv, "THIS");
5433 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5434 wxMappingMode RETVAL;
5437 RETVAL = THIS->GetMapMode();
5438 XSprePUSH; PUSHi((IV)RETVAL);
5443 #if !defined( __WXMAC__ ) && WXPERL_W_VERSION_LE( 2, 5, 3 )
5444 #define XSubPPtmpAABL 1
5447 XS(XS_Wx__DC_GetOptimization); /* prototype to pass -Wmissing-prototypes */
5448 XS(XS_Wx__DC_GetOptimization)
5456 croak_xs_usage(cv, "THIS");
5458 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5461 RETVAL = THIS->GetOptimization();
5462 ST(0) = boolSV(RETVAL);
5470 XS(XS_Wx__DC_GetPen); /* prototype to pass -Wmissing-prototypes */
5471 XS(XS_Wx__DC_GetPen)
5479 croak_xs_usage(cv, "THIS");
5481 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5483 RETVAL = new wxPen( THIS->GetPen() );
5484 ST(0) = sv_newmortal();
5485 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5486 wxPli_thread_sv_register( aTHX_ "Wx::Pen", RETVAL, ST(0) );
5493 XS(XS_Wx__DC_GetPixel); /* prototype to pass -Wmissing-prototypes */
5494 XS(XS_Wx__DC_GetPixel)
5502 croak_xs_usage(cv, "THIS, x, y");
5504 wxCoord x = (wxCoord)SvIV(ST(1));
5505 wxCoord y = (wxCoord)SvIV(ST(2));
5507 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5509 THIS->GetPixel( x, y, &c );
5510 RETVAL = new wxColour( c );
5511 ST(0) = sv_newmortal();
5512 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
5513 wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
5520 XS(XS_Wx__DC_GetSize); /* prototype to pass -Wmissing-prototypes */
5521 XS(XS_Wx__DC_GetSize)
5529 croak_xs_usage(cv, "THIS");
5531 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5533 RETVAL = new wxSize( THIS->GetSize() );
5534 ST(0) = sv_newmortal();
5535 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Size" );
5536 wxPli_thread_sv_register( aTHX_ "Wx::Size", RETVAL, ST(0) );
5543 XS(XS_Wx__DC_GetSizeWH); /* prototype to pass -Wmissing-prototypes */
5544 XS(XS_Wx__DC_GetSizeWH)
5552 croak_xs_usage(cv, "THIS");
5553 PERL_UNUSED_VAR(ax); /* -Wall */
5557 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5558 THIS->GetSize( &x, &y );
5560 PUSHs( sv_2mortal( newSViv( x ) ) );
5561 PUSHs( sv_2mortal( newSViv( y ) ) );
5568 XS(XS_Wx__DC_GetSizeMM); /* prototype to pass -Wmissing-prototypes */
5569 XS(XS_Wx__DC_GetSizeMM)
5577 croak_xs_usage(cv, "THIS");
5579 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5581 RETVAL = new wxSize( THIS->GetSizeMM() );
5582 ST(0) = sv_newmortal();
5583 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Size" );
5584 wxPli_thread_sv_register( aTHX_ "Wx::Size", RETVAL, ST(0) );
5591 XS(XS_Wx__DC_GetSizeMMWH); /* prototype to pass -Wmissing-prototypes */
5592 XS(XS_Wx__DC_GetSizeMMWH)
5600 croak_xs_usage(cv, "THIS");
5601 PERL_UNUSED_VAR(ax); /* -Wall */
5605 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5606 THIS->GetSizeMM( &x, &y );
5608 PUSHs( sv_2mortal( newSViv( x ) ) );
5609 PUSHs( sv_2mortal( newSViv( y ) ) );
5616 XS(XS_Wx__DC_GetPPI); /* prototype to pass -Wmissing-prototypes */
5617 XS(XS_Wx__DC_GetPPI)
5625 croak_xs_usage(cv, "THIS");
5627 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5629 RETVAL = new wxSize( THIS->GetPPI() );
5630 ST(0) = sv_newmortal();
5631 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Size" );
5632 wxPli_thread_sv_register( aTHX_ "Wx::Size", RETVAL, ST(0) );
5639 XS(XS_Wx__DC_GetTextBackground); /* prototype to pass -Wmissing-prototypes */
5640 XS(XS_Wx__DC_GetTextBackground)
5648 croak_xs_usage(cv, "THIS");
5650 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5652 RETVAL = new wxColour( THIS->GetTextBackground() );
5653 ST(0) = sv_newmortal();
5654 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
5655 wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
5662 XS(XS_Wx__DC_GetTextExtent); /* prototype to pass -Wmissing-prototypes */
5663 XS(XS_Wx__DC_GetTextExtent)
5670 if (items < 2 || items > 3)
5671 croak_xs_usage(cv, "THIS, string, font = NULL");
5672 PERL_UNUSED_VAR(ax); /* -Wall */
5677 wxCoord x, y, descent, externalLeading;
5678 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5680 WXSTRING_INPUT( string, wxString, ST(1) );
5685 font = (wxFont *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Font" );
5687 THIS->GetTextExtent( string, &x, &y, &descent, &externalLeading,
5690 PUSHs( sv_2mortal( newSViv( x ) ) );
5691 PUSHs( sv_2mortal( newSViv( y ) ) );
5692 PUSHs( sv_2mortal( newSViv( descent ) ) );
5693 PUSHs( sv_2mortal( newSViv( externalLeading ) ) );
5700 XS(XS_Wx__DC_GetPartialTextExtents); /* prototype to pass -Wmissing-prototypes */
5701 XS(XS_Wx__DC_GetPartialTextExtents)
5709 croak_xs_usage(cv, "THIS, string");
5710 PERL_UNUSED_VAR(ax); /* -Wall */
5715 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5717 WXSTRING_INPUT( string, wxString, ST(1) );
5718 bool ok = THIS->GetPartialTextExtents( string, widths );
5721 wxPli_intarray_push( aTHX_ widths );
5731 XS(XS_Wx__DC_GetMultiLineTextExtent); /* prototype to pass -Wmissing-prototypes */
5732 XS(XS_Wx__DC_GetMultiLineTextExtent)
5739 if (items < 2 || items > 3)
5740 croak_xs_usage(cv, "THIS, string, font = NULL");
5741 PERL_UNUSED_VAR(ax); /* -Wall */
5746 wxCoord w, h, hLine;
5747 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5749 WXSTRING_INPUT( string, wxString, ST(1) );
5754 font = (wxFont *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Font" );
5756 THIS->GetMultiLineTextExtent( string, &w, &h, &hLine, font );
5758 PUSHs( sv_2mortal( newSViv( w ) ) );
5759 PUSHs( sv_2mortal( newSViv( h ) ) );
5760 PUSHs( sv_2mortal( newSViv( hLine ) ) );
5767 XS(XS_Wx__DC_GetTextForeground); /* prototype to pass -Wmissing-prototypes */
5768 XS(XS_Wx__DC_GetTextForeground)
5776 croak_xs_usage(cv, "THIS");
5778 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5780 RETVAL = new wxColour( THIS->GetTextForeground() );
5781 ST(0) = sv_newmortal();
5782 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
5783 wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
5790 XS(XS_Wx__DC_GetUserScale); /* prototype to pass -Wmissing-prototypes */
5791 XS(XS_Wx__DC_GetUserScale)
5799 croak_xs_usage(cv, "THIS");
5800 PERL_UNUSED_VAR(ax); /* -Wall */
5804 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5805 THIS->GetUserScale( &x, &y );
5807 PUSHs( sv_2mortal( newSVnv( x ) ) );
5808 PUSHs( sv_2mortal( newSVnv( y ) ) );
5814 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
5815 #define XSubPPtmpAABM 1
5818 XS(XS_Wx__DC_GradientFillLinear); /* prototype to pass -Wmissing-prototypes */
5819 XS(XS_Wx__DC_GradientFillLinear)
5826 if (items < 4 || items > 5)
5827 croak_xs_usage(cv, "THIS, rect, initialColour, destColour, direction = wxEAST");
5829 wxRect* rect = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
5830 wxColour initialColour = *(wxColour *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Colour" );
5831 wxColour destColour = *(wxColour *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Colour" );
5832 wxDirection direction;
5833 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5838 direction = (wxDirection)SvIV(ST(4));
5841 THIS->GradientFillLinear(*rect, initialColour, destColour, direction);
5848 XS(XS_Wx__DC_LogicalToDeviceX); /* prototype to pass -Wmissing-prototypes */
5849 XS(XS_Wx__DC_LogicalToDeviceX)
5857 croak_xs_usage(cv, "THIS, x");
5859 wxCoord x = (wxCoord)SvIV(ST(1));
5860 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5864 RETVAL = THIS->LogicalToDeviceX(x);
5865 XSprePUSH; PUSHi((IV)RETVAL);
5871 XS(XS_Wx__DC_LogicalToDeviceXRel); /* prototype to pass -Wmissing-prototypes */
5872 XS(XS_Wx__DC_LogicalToDeviceXRel)
5880 croak_xs_usage(cv, "THIS, x");
5882 wxCoord x = (wxCoord)SvIV(ST(1));
5883 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5887 RETVAL = THIS->LogicalToDeviceXRel(x);
5888 XSprePUSH; PUSHi((IV)RETVAL);
5894 XS(XS_Wx__DC_LogicalToDeviceY); /* prototype to pass -Wmissing-prototypes */
5895 XS(XS_Wx__DC_LogicalToDeviceY)
5903 croak_xs_usage(cv, "THIS, y");
5905 wxCoord y = (wxCoord)SvIV(ST(1));
5906 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5910 RETVAL = THIS->LogicalToDeviceY(y);
5911 XSprePUSH; PUSHi((IV)RETVAL);
5917 XS(XS_Wx__DC_LogicalToDeviceYRel); /* prototype to pass -Wmissing-prototypes */
5918 XS(XS_Wx__DC_LogicalToDeviceYRel)
5926 croak_xs_usage(cv, "THIS, y");
5928 wxCoord y = (wxCoord)SvIV(ST(1));
5929 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5933 RETVAL = THIS->LogicalToDeviceYRel(y);
5934 XSprePUSH; PUSHi((IV)RETVAL);
5940 XS(XS_Wx__DC_MaxX); /* prototype to pass -Wmissing-prototypes */
5949 croak_xs_usage(cv, "THIS");
5951 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5955 RETVAL = THIS->MaxX();
5956 XSprePUSH; PUSHi((IV)RETVAL);
5962 XS(XS_Wx__DC_MaxY); /* prototype to pass -Wmissing-prototypes */
5971 croak_xs_usage(cv, "THIS");
5973 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5977 RETVAL = THIS->MaxY();
5978 XSprePUSH; PUSHi((IV)RETVAL);
5984 XS(XS_Wx__DC_MinX); /* prototype to pass -Wmissing-prototypes */
5993 croak_xs_usage(cv, "THIS");
5995 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
5999 RETVAL = THIS->MinX();
6000 XSprePUSH; PUSHi((IV)RETVAL);
6006 XS(XS_Wx__DC_MinY); /* prototype to pass -Wmissing-prototypes */
6015 croak_xs_usage(cv, "THIS");
6017 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6021 RETVAL = THIS->MinY();
6022 XSprePUSH; PUSHi((IV)RETVAL);
6027 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
6028 #define XSubPPtmpAABN 1
6031 XS(XS_Wx__DC_IsOk); /* prototype to pass -Wmissing-prototypes */
6040 croak_xs_usage(cv, "THIS");
6042 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6045 RETVAL = THIS->IsOk();
6046 ST(0) = boolSV(RETVAL);
6053 XS(XS_Wx__DC_Ok); /* prototype to pass -Wmissing-prototypes */
6062 croak_xs_usage(cv, "THIS");
6064 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6066 RETVAL = THIS->IsOk();
6067 ST(0) = boolSV(RETVAL);
6074 #define XSubPPtmpAABO 1
6077 XS(XS_Wx__DC_Ok); /* prototype to pass -Wmissing-prototypes */
6086 croak_xs_usage(cv, "THIS");
6088 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6091 RETVAL = THIS->Ok();
6092 ST(0) = boolSV(RETVAL);
6100 XS(XS_Wx__DC_ResetBoundingBox); /* prototype to pass -Wmissing-prototypes */
6101 XS(XS_Wx__DC_ResetBoundingBox)
6109 croak_xs_usage(cv, "THIS");
6111 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6113 THIS->ResetBoundingBox();
6119 XS(XS_Wx__DC_SetAxisOrientation); /* prototype to pass -Wmissing-prototypes */
6120 XS(XS_Wx__DC_SetAxisOrientation)
6128 croak_xs_usage(cv, "THIS, xLeftRight, yBottomUp");
6130 bool xLeftRight = (bool)SvTRUE(ST(1));
6131 bool yBottomUp = (bool)SvTRUE(ST(2));
6132 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6134 THIS->SetAxisOrientation(xLeftRight, yBottomUp);
6140 XS(XS_Wx__DC_GetDepth); /* prototype to pass -Wmissing-prototypes */
6141 XS(XS_Wx__DC_GetDepth)
6149 croak_xs_usage(cv, "THIS");
6151 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6155 RETVAL = THIS->GetDepth();
6156 XSprePUSH; PUSHi((IV)RETVAL);
6162 XS(XS_Wx__DC_GetDeviceOrigin); /* prototype to pass -Wmissing-prototypes */
6163 XS(XS_Wx__DC_GetDeviceOrigin)
6171 croak_xs_usage(cv, "THIS");
6173 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6175 RETVAL = new wxPoint( THIS->GetDeviceOrigin() );
6176 ST(0) = sv_newmortal();
6177 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
6178 wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
6185 XS(XS_Wx__DC_SetDeviceOrigin); /* prototype to pass -Wmissing-prototypes */
6186 XS(XS_Wx__DC_SetDeviceOrigin)
6194 croak_xs_usage(cv, "THIS, x, y");
6196 wxCoord x = (wxCoord)SvIV(ST(1));
6197 wxCoord y = (wxCoord)SvIV(ST(2));
6198 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6200 THIS->SetDeviceOrigin(x, y);
6206 XS(XS_Wx__DC_SetBackground); /* prototype to pass -Wmissing-prototypes */
6207 XS(XS_Wx__DC_SetBackground)
6215 croak_xs_usage(cv, "THIS, brush");
6217 wxBrush* brush = (wxBrush *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Brush" );
6218 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6219 THIS->SetBackground( *brush );
6225 XS(XS_Wx__DC_SetBackgroundMode); /* prototype to pass -Wmissing-prototypes */
6226 XS(XS_Wx__DC_SetBackgroundMode)
6234 croak_xs_usage(cv, "THIS, mode");
6236 int mode = (int)SvIV(ST(1));
6237 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6239 THIS->SetBackgroundMode(mode);
6245 XS(XS_Wx__DC_SetBrush); /* prototype to pass -Wmissing-prototypes */
6246 XS(XS_Wx__DC_SetBrush)
6254 croak_xs_usage(cv, "THIS, brush");
6256 wxBrush* brush = (wxBrush *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Brush" );
6257 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6258 THIS->SetBrush( *brush );
6264 XS(XS_Wx__DC_SetClippingRegion); /* prototype to pass -Wmissing-prototypes */
6265 XS(XS_Wx__DC_SetClippingRegion)
6273 croak_xs_usage(cv, "THIS, ...");
6274 PERL_UNUSED_VAR(ax); /* -Wall */
6277 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6279 MATCH_REDISP( wxPliOvl_n_n_n_n, SetClippingRegionXYWH )
6280 MATCH_REDISP( wxPliOvl_wreg, SetClippingRegionRegion )
6281 END_OVERLOAD( Wx::DC::SetClippingRegion )
6288 XS(XS_Wx__DC_SetClippingRegionXYWH); /* prototype to pass -Wmissing-prototypes */
6289 XS(XS_Wx__DC_SetClippingRegionXYWH)
6297 croak_xs_usage(cv, "THIS, x, y, w, h");
6299 wxCoord x = (wxCoord)SvIV(ST(1));
6300 wxCoord y = (wxCoord)SvIV(ST(2));
6301 wxCoord w = (wxCoord)SvIV(ST(3));
6302 wxCoord h = (wxCoord)SvIV(ST(4));
6303 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6304 THIS->SetClippingRegion( x, y, w, h );
6310 XS(XS_Wx__DC_SetClippingRegionRegion); /* prototype to pass -Wmissing-prototypes */
6311 XS(XS_Wx__DC_SetClippingRegionRegion)
6319 croak_xs_usage(cv, "THIS, region");
6321 wxRegion* region = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Region" );
6322 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6323 THIS->SetClippingRegion( *region );
6329 XS(XS_Wx__DC_SetFont); /* prototype to pass -Wmissing-prototypes */
6330 XS(XS_Wx__DC_SetFont)
6338 croak_xs_usage(cv, "THIS, font");
6340 wxFont* font = (wxFont *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Font" );
6341 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6342 THIS->SetFont( *font );
6348 XS(XS_Wx__DC_SetLogicalFunction); /* prototype to pass -Wmissing-prototypes */
6349 XS(XS_Wx__DC_SetLogicalFunction)
6357 croak_xs_usage(cv, "THIS, function");
6359 wxRasterOperationMode function = (wxRasterOperationMode)SvIV(ST(1));
6360 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6362 THIS->SetLogicalFunction(function);
6368 XS(XS_Wx__DC_SetMapMode); /* prototype to pass -Wmissing-prototypes */
6369 XS(XS_Wx__DC_SetMapMode)
6377 croak_xs_usage(cv, "THIS, mode");
6379 wxMappingMode mode = (wxMappingMode)SvIV(ST(1));
6380 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6382 THIS->SetMapMode(mode);
6387 #if !defined( __WXMAC__ ) && WXPERL_W_VERSION_LE( 2, 5, 3 )
6388 #define XSubPPtmpAABP 1
6391 XS(XS_Wx__DC_SetOptimization); /* prototype to pass -Wmissing-prototypes */
6392 XS(XS_Wx__DC_SetOptimization)
6400 croak_xs_usage(cv, "THIS, optimize");
6402 bool optimize = (bool)SvTRUE(ST(1));
6403 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6405 THIS->SetOptimization(optimize);
6412 XS(XS_Wx__DC_SetPalette); /* prototype to pass -Wmissing-prototypes */
6413 XS(XS_Wx__DC_SetPalette)
6421 croak_xs_usage(cv, "THIS, palette");
6423 wxPalette* palette = (wxPalette *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Palette" );
6424 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6425 THIS->SetPalette( *palette );
6431 XS(XS_Wx__DC_SetPen); /* prototype to pass -Wmissing-prototypes */
6432 XS(XS_Wx__DC_SetPen)
6440 croak_xs_usage(cv, "THIS, pen");
6442 wxPen* pen = (wxPen *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Pen" );
6443 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6444 THIS->SetPen( *pen );
6450 XS(XS_Wx__DC_SetTextBackground); /* prototype to pass -Wmissing-prototypes */
6451 XS(XS_Wx__DC_SetTextBackground)
6459 croak_xs_usage(cv, "THIS, colour");
6461 wxColour* colour = (wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
6462 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6463 THIS->SetTextBackground( *colour );
6469 XS(XS_Wx__DC_SetTextForeground); /* prototype to pass -Wmissing-prototypes */
6470 XS(XS_Wx__DC_SetTextForeground)
6478 croak_xs_usage(cv, "THIS, colour");
6480 wxColour* colour = (wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
6481 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6482 THIS->SetTextForeground( *colour );
6488 XS(XS_Wx__DC_SetUserScale); /* prototype to pass -Wmissing-prototypes */
6489 XS(XS_Wx__DC_SetUserScale)
6497 croak_xs_usage(cv, "THIS, xScale, yScale");
6499 double xScale = (double)SvNV(ST(1));
6500 double yScale = (double)SvNV(ST(2));
6501 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6503 THIS->SetUserScale(xScale, yScale);
6509 XS(XS_Wx__DC_StartDoc); /* prototype to pass -Wmissing-prototypes */
6510 XS(XS_Wx__DC_StartDoc)
6518 croak_xs_usage(cv, "THIS, message");
6521 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6524 WXSTRING_INPUT( message, wxString, ST(1) );
6526 RETVAL = THIS->StartDoc(message);
6527 ST(0) = boolSV(RETVAL);
6534 XS(XS_Wx__DC_StartPage); /* prototype to pass -Wmissing-prototypes */
6535 XS(XS_Wx__DC_StartPage)
6543 croak_xs_usage(cv, "THIS");
6545 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6553 XS(XS_Wx__DC_GetLogicalScale); /* prototype to pass -Wmissing-prototypes */
6554 XS(XS_Wx__DC_GetLogicalScale)
6562 croak_xs_usage(cv, "THIS");
6563 PERL_UNUSED_VAR(ax); /* -Wall */
6567 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6568 THIS->GetLogicalScale( &x, &y );
6570 PUSHs( sv_2mortal( newSVnv( x ) ) );
6571 PUSHs( sv_2mortal( newSVnv( y ) ) );
6578 XS(XS_Wx__DC_SetLogicalScale); /* prototype to pass -Wmissing-prototypes */
6579 XS(XS_Wx__DC_SetLogicalScale)
6587 croak_xs_usage(cv, "THIS, x, y");
6589 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6590 double x = (double)SvNV(ST(1));
6591 double y = (double)SvNV(ST(2));
6593 THIS->SetLogicalScale(x, y);
6598 #if WXPERL_W_VERSION_GE( 2, 7, 1 )
6599 #define XSubPPtmpAABQ 1
6602 XS(XS_Wx__DC_GetLayoutDirection); /* prototype to pass -Wmissing-prototypes */
6603 XS(XS_Wx__DC_GetLayoutDirection)
6611 croak_xs_usage(cv, "THIS");
6613 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6614 wxLayoutDirection RETVAL;
6617 RETVAL = THIS->GetLayoutDirection();
6618 XSprePUSH; PUSHi((IV)RETVAL);
6624 XS(XS_Wx__DC_SetLayoutDirection); /* prototype to pass -Wmissing-prototypes */
6625 XS(XS_Wx__DC_SetLayoutDirection)
6633 croak_xs_usage(cv, "THIS, dir");
6635 wxDC * THIS = (wxDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DC" );
6636 wxLayoutDirection dir = (wxLayoutDirection)SvIV(ST(1));
6638 THIS->SetLayoutDirection(dir);
6645 XS(XS_Wx__ScreenDC_new); /* prototype to pass -Wmissing-prototypes */
6646 XS(XS_Wx__ScreenDC_new)
6654 croak_xs_usage(cv, "CLASS");
6656 char * CLASS = (char *)SvPV_nolen(ST(0));
6657 wxScreenDC * RETVAL;
6659 RETVAL = new wxScreenDC();
6660 ST(0) = sv_newmortal();
6661 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
6662 wxPli_thread_sv_register( aTHX_ "Wx::ScreenDC", RETVAL, ST(0) );
6669 XS(XS_Wx__ScreenDC_EndDrawingOnTop); /* prototype to pass -Wmissing-prototypes */
6670 XS(XS_Wx__ScreenDC_EndDrawingOnTop)
6678 croak_xs_usage(cv, "THIS");
6680 wxScreenDC * THIS = (wxScreenDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ScreenDC" );
6683 RETVAL = THIS->EndDrawingOnTop();
6684 ST(0) = boolSV(RETVAL);
6691 XS(XS_Wx__ScreenDC_StartDrawingOnTop); /* prototype to pass -Wmissing-prototypes */
6692 XS(XS_Wx__ScreenDC_StartDrawingOnTop)
6700 croak_xs_usage(cv, "THIS, ...");
6701 PERL_UNUSED_VAR(ax); /* -Wall */
6704 wxScreenDC * THIS = (wxScreenDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ScreenDC" );
6706 MATCH_REDISP( wxPliOvl_wwin, StartDrawingOnTopWindow )
6707 MATCH_REDISP( wxPliOvl_wrec, StartDrawingOnTopRect )
6708 END_OVERLOAD( Wx::ScreenDC::StartDrawingOnTop )
6715 XS(XS_Wx__ScreenDC_StartDrawingOnTopWindow); /* prototype to pass -Wmissing-prototypes */
6716 XS(XS_Wx__ScreenDC_StartDrawingOnTopWindow)
6724 croak_xs_usage(cv, "THIS, window");
6726 wxWindow* window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
6727 wxScreenDC * THIS = (wxScreenDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ScreenDC" );
6729 RETVAL = THIS->StartDrawingOnTop( window );
6730 ST(0) = boolSV(RETVAL);
6737 XS(XS_Wx__ScreenDC_StartDrawingOnTopRect); /* prototype to pass -Wmissing-prototypes */
6738 XS(XS_Wx__ScreenDC_StartDrawingOnTopRect)
6746 croak_xs_usage(cv, "THIS, rect");
6748 wxRect* rect = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
6749 wxScreenDC * THIS = (wxScreenDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ScreenDC" );
6751 RETVAL = THIS->StartDrawingOnTop( rect );
6752 ST(0) = boolSV(RETVAL);
6759 XS(XS_Wx__WindowDC_new); /* prototype to pass -Wmissing-prototypes */
6760 XS(XS_Wx__WindowDC_new)
6768 croak_xs_usage(cv, "CLASS, window");
6770 wxWindow* window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
6771 char * CLASS = (char *)SvPV_nolen(ST(0));
6772 wxWindowDC * RETVAL;
6774 RETVAL = new wxWindowDC(window);
6775 ST(0) = sv_newmortal();
6776 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
6777 wxPli_thread_sv_register( aTHX_ "Wx::WindowDC", RETVAL, ST(0) );
6784 XS(XS_Wx__PaintDC_new); /* prototype to pass -Wmissing-prototypes */
6785 XS(XS_Wx__PaintDC_new)
6793 croak_xs_usage(cv, "CLASS, window");
6795 wxWindow* window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
6796 char * CLASS = (char *)SvPV_nolen(ST(0));
6799 RETVAL = new wxPaintDC(window);
6800 ST(0) = sv_newmortal();
6801 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
6802 wxPli_thread_sv_register( aTHX_ "Wx::PaintDC", RETVAL, ST(0) );
6809 XS(XS_Wx__MemoryDC_new); /* prototype to pass -Wmissing-prototypes */
6810 XS(XS_Wx__MemoryDC_new)
6818 croak_xs_usage(cv, "CLASS");
6820 char * CLASS = (char *)SvPV_nolen(ST(0));
6821 wxMemoryDC * RETVAL;
6823 RETVAL = new wxMemoryDC();
6824 ST(0) = sv_newmortal();
6825 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
6826 wxPli_thread_sv_register( aTHX_ "Wx::MemoryDC", RETVAL, ST(0) );
6833 XS(XS_Wx__MemoryDC_SelectObject); /* prototype to pass -Wmissing-prototypes */
6834 XS(XS_Wx__MemoryDC_SelectObject)
6842 croak_xs_usage(cv, "THIS, bitmap");
6844 wxBitmap* bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
6845 wxMemoryDC * THIS = (wxMemoryDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MemoryDC" );
6847 THIS->SelectObject(*bitmap);
6852 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
6853 #define XSubPPtmpAABR 1
6856 XS(XS_Wx__MemoryDC_SelectObjectAsSource); /* prototype to pass -Wmissing-prototypes */
6857 XS(XS_Wx__MemoryDC_SelectObjectAsSource)
6865 croak_xs_usage(cv, "THIS, bitmap");
6867 wxBitmap* bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
6868 wxMemoryDC * THIS = (wxMemoryDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MemoryDC" );
6870 THIS->SelectObjectAsSource(*bitmap);
6877 XS(XS_Wx__ClientDC_new); /* prototype to pass -Wmissing-prototypes */
6878 XS(XS_Wx__ClientDC_new)
6886 croak_xs_usage(cv, "CLASS, window");
6888 wxWindow* window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
6889 char * CLASS = (char *)SvPV_nolen(ST(0));
6890 wxClientDC * RETVAL;
6892 RETVAL = new wxClientDC(window);
6893 ST(0) = sv_newmortal();
6894 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
6895 wxPli_thread_sv_register( aTHX_ "Wx::ClientDC", RETVAL, ST(0) );
6902 XS(XS_Wx__BufferedDC_newDefault); /* prototype to pass -Wmissing-prototypes */
6903 XS(XS_Wx__BufferedDC_newDefault)
6911 croak_xs_usage(cv, "CLASS");
6913 char * CLASS = (char *)SvPV_nolen(ST(0));
6914 wxBufferedDC * RETVAL;
6915 RETVAL = new wxBufferedDC();
6916 ST(0) = sv_newmortal();
6917 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
6918 wxPli_thread_sv_register( aTHX_ "Wx::BufferedDC", RETVAL, ST(0) );
6924 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
6925 #define XSubPPtmpAABS 1
6928 XS(XS_Wx__BufferedDC_newBitmap); /* prototype to pass -Wmissing-prototypes */
6929 XS(XS_Wx__BufferedDC_newBitmap)
6936 if (items < 2 || items > 4)
6937 croak_xs_usage(cv, "CLASS, dc, buffer = wxNullBitmapPtr, style = wxBUFFER_CLIENT_AREA");
6939 wxDC* dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::DC" );
6942 char * CLASS = (char *)SvPV_nolen(ST(0));
6943 wxBufferedDC * RETVAL;
6946 buffer = wxNullBitmapPtr;
6948 buffer = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Bitmap" );
6952 style = wxBUFFER_CLIENT_AREA;
6954 style = (int)SvIV(ST(3));
6956 RETVAL = new wxBufferedDC( dc, *( buffer ), style );
6957 ST(0) = sv_newmortal();
6958 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
6959 wxPli_thread_sv_register( aTHX_ "Wx::BufferedDC", RETVAL, ST(0) );
6966 XS(XS_Wx__BufferedDC_newSize); /* prototype to pass -Wmissing-prototypes */
6967 XS(XS_Wx__BufferedDC_newSize)
6974 if (items < 3 || items > 4)
6975 croak_xs_usage(cv, "CLASS, dc, area, style = wxBUFFER_CLIENT_AREA");
6977 wxDC* dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::DC" );
6978 wxSize area = wxPli_sv_2_wxsize( aTHX_ ST(2) );
6980 char * CLASS = (char *)SvPV_nolen(ST(0));
6981 wxBufferedDC * RETVAL;
6984 style = wxBUFFER_CLIENT_AREA;
6986 style = (int)SvIV(ST(3));
6988 RETVAL = new wxBufferedDC( dc, area, style );
6989 ST(0) = sv_newmortal();
6990 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
6991 wxPli_thread_sv_register( aTHX_ "Wx::BufferedDC", RETVAL, ST(0) );
6998 XS(XS_Wx__BufferedDC_InitBitmap); /* prototype to pass -Wmissing-prototypes */
6999 XS(XS_Wx__BufferedDC_InitBitmap)
7006 if (items < 2 || items > 4)
7007 croak_xs_usage(cv, "THIS, dc, buffer = wxNullBitmapPtr, style = wxBUFFER_CLIENT_AREA");
7009 wxDC* dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::DC" );
7012 wxBufferedDC * THIS = (wxBufferedDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::BufferedDC" );
7015 buffer = wxNullBitmapPtr;
7017 buffer = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Bitmap" );
7021 style = wxBUFFER_CLIENT_AREA;
7023 style = (int)SvIV(ST(3));
7025 THIS->Init( dc, *( buffer ), style );
7031 XS(XS_Wx__BufferedDC_InitSize); /* prototype to pass -Wmissing-prototypes */
7032 XS(XS_Wx__BufferedDC_InitSize)
7039 if (items < 3 || items > 4)
7040 croak_xs_usage(cv, "THIS, dc, area, style = wxBUFFER_CLIENT_AREA");
7042 wxDC* dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::DC" );
7043 wxSize area = wxPli_sv_2_wxsize( aTHX_ ST(2) );
7045 wxBufferedDC * THIS = (wxBufferedDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::BufferedDC" );
7048 style = wxBUFFER_CLIENT_AREA;
7050 style = (int)SvIV(ST(3));
7052 THIS->Init( dc, area, style );
7058 #define XSubPPtmpAABT 1
7061 XS(XS_Wx__BufferedDC_newBitmap); /* prototype to pass -Wmissing-prototypes */
7062 XS(XS_Wx__BufferedDC_newBitmap)
7069 if (items < 2 || items > 3)
7070 croak_xs_usage(cv, "CLASS, dc, buffer = wxNullBitmapPtr");
7072 wxDC* dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::DC" );
7074 char * CLASS = (char *)SvPV_nolen(ST(0));
7075 wxBufferedDC * RETVAL;
7078 buffer = wxNullBitmapPtr;
7080 buffer = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Bitmap" );
7082 RETVAL = new wxBufferedDC( dc, *( buffer ) );
7083 ST(0) = sv_newmortal();
7084 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7085 wxPli_thread_sv_register( aTHX_ "Wx::BufferedDC", RETVAL, ST(0) );
7092 XS(XS_Wx__BufferedDC_newSize); /* prototype to pass -Wmissing-prototypes */
7093 XS(XS_Wx__BufferedDC_newSize)
7101 croak_xs_usage(cv, "CLASS, dc, area");
7103 wxDC* dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::DC" );
7104 wxSize area = wxPli_sv_2_wxsize( aTHX_ ST(2) );
7105 char * CLASS = (char *)SvPV_nolen(ST(0));
7106 wxBufferedDC * RETVAL;
7107 RETVAL = new wxBufferedDC( dc, area );
7108 ST(0) = sv_newmortal();
7109 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7110 wxPli_thread_sv_register( aTHX_ "Wx::BufferedDC", RETVAL, ST(0) );
7117 XS(XS_Wx__BufferedDC_InitBitmap); /* prototype to pass -Wmissing-prototypes */
7118 XS(XS_Wx__BufferedDC_InitBitmap)
7125 if (items < 2 || items > 3)
7126 croak_xs_usage(cv, "THIS, dc, buffer = wxNullBitmapPtr");
7128 wxDC* dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::DC" );
7130 wxBufferedDC * THIS = (wxBufferedDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::BufferedDC" );
7133 buffer = wxNullBitmapPtr;
7135 buffer = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Bitmap" );
7137 THIS->Init( dc, *( buffer ) );
7143 XS(XS_Wx__BufferedDC_InitSize); /* prototype to pass -Wmissing-prototypes */
7144 XS(XS_Wx__BufferedDC_InitSize)
7152 croak_xs_usage(cv, "THIS, dc, area");
7154 wxDC* dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::DC" );
7155 wxSize area = wxPli_sv_2_wxsize( aTHX_ ST(2) );
7156 wxBufferedDC * THIS = (wxBufferedDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::BufferedDC" );
7157 THIS->Init( dc, area );
7164 XS(XS_Wx__BufferedDC_new); /* prototype to pass -Wmissing-prototypes */
7165 XS(XS_Wx__BufferedDC_new)
7172 PERL_UNUSED_VAR(cv); /* -W */
7173 PERL_UNUSED_VAR(ax); /* -Wall */
7177 MATCH_VOIDM_REDISP( newDefault )
7178 MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wdc_wsiz_n, newSize, 2 )
7179 MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wdc_wbmp_n, newBitmap, 1 )
7180 END_OVERLOAD( "Wx::BufferedDC::new" )
7187 XS(XS_Wx__BufferedDC_Init); /* prototype to pass -Wmissing-prototypes */
7188 XS(XS_Wx__BufferedDC_Init)
7195 PERL_UNUSED_VAR(cv); /* -W */
7196 PERL_UNUSED_VAR(ax); /* -Wall */
7200 MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wdc_wsiz_n, InitSize, 2 )
7201 MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wdc_wbmp_n, InitBitmap, 1 )
7202 END_OVERLOAD( "Wx::BufferedDC::Init" )
7209 XS(XS_Wx__BufferedDC_UnMask); /* prototype to pass -Wmissing-prototypes */
7210 XS(XS_Wx__BufferedDC_UnMask)
7218 croak_xs_usage(cv, "THIS");
7220 wxBufferedDC * THIS = (wxBufferedDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::BufferedDC" );
7227 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
7228 #define XSubPPtmpAABU 1
7231 XS(XS_Wx__BufferedDC_SetStyle); /* prototype to pass -Wmissing-prototypes */
7232 XS(XS_Wx__BufferedDC_SetStyle)
7240 croak_xs_usage(cv, "THIS, style");
7242 int style = (int)SvIV(ST(1));
7243 wxBufferedDC * THIS = (wxBufferedDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::BufferedDC" );
7245 THIS->SetStyle(style);
7251 XS(XS_Wx__BufferedDC_GetStyle); /* prototype to pass -Wmissing-prototypes */
7252 XS(XS_Wx__BufferedDC_GetStyle)
7260 croak_xs_usage(cv, "THIS");
7262 wxBufferedDC * THIS = (wxBufferedDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::BufferedDC" );
7266 RETVAL = THIS->GetStyle();
7267 XSprePUSH; PUSHi((IV)RETVAL);
7273 #if WXPERL_W_VERSION_GE( 2, 5, 5 )
7274 #define XSubPPtmpAABV 1
7277 XS(XS_Wx__BufferedPaintDC_newBitmap); /* prototype to pass -Wmissing-prototypes */
7278 XS(XS_Wx__BufferedPaintDC_newBitmap)
7285 if (items < 3 || items > 4)
7286 croak_xs_usage(cv, "CLASS, window, buffer, style = wxBUFFER_CLIENT_AREA");
7288 wxWindow* window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
7289 wxBitmap* buffer = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Bitmap" );
7291 char * CLASS = (char *)SvPV_nolen(ST(0));
7292 wxBufferedPaintDC * RETVAL;
7295 style = wxBUFFER_CLIENT_AREA;
7297 style = (int)SvIV(ST(3));
7299 RETVAL = new wxBufferedPaintDC( window, *( buffer ), style );
7300 ST(0) = sv_newmortal();
7301 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7302 wxPli_thread_sv_register( aTHX_ "Wx::BufferedPaintDC", RETVAL, ST(0) );
7309 XS(XS_Wx__BufferedPaintDC_newWindow); /* prototype to pass -Wmissing-prototypes */
7310 XS(XS_Wx__BufferedPaintDC_newWindow)
7317 if (items < 2 || items > 3)
7318 croak_xs_usage(cv, "CLASS, window, style = wxBUFFER_CLIENT_AREA");
7320 wxWindow* window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
7322 char * CLASS = (char *)SvPV_nolen(ST(0));
7323 wxBufferedPaintDC * RETVAL;
7326 style = wxBUFFER_CLIENT_AREA;
7328 style = (int)SvIV(ST(2));
7330 RETVAL = new wxBufferedPaintDC( window, style );
7331 ST(0) = sv_newmortal();
7332 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7333 wxPli_thread_sv_register( aTHX_ "Wx::BufferedPaintDC", RETVAL, ST(0) );
7340 #define XSubPPtmpAABW 1
7343 XS(XS_Wx__BufferedPaintDC_newBitmap); /* prototype to pass -Wmissing-prototypes */
7344 XS(XS_Wx__BufferedPaintDC_newBitmap)
7352 croak_xs_usage(cv, "CLASS, window, buffer");
7354 wxWindow* window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
7355 wxBitmap* buffer = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Bitmap" );
7356 char * CLASS = (char *)SvPV_nolen(ST(0));
7357 wxBufferedPaintDC * RETVAL;
7358 RETVAL = new wxBufferedPaintDC( window, *( buffer ) );
7359 ST(0) = sv_newmortal();
7360 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7361 wxPli_thread_sv_register( aTHX_ "Wx::BufferedPaintDC", RETVAL, ST(0) );
7368 XS(XS_Wx__BufferedPaintDC_newWindow); /* prototype to pass -Wmissing-prototypes */
7369 XS(XS_Wx__BufferedPaintDC_newWindow)
7377 croak_xs_usage(cv, "CLASS, window");
7379 wxWindow* window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
7380 char * CLASS = (char *)SvPV_nolen(ST(0));
7381 wxBufferedPaintDC * RETVAL;
7382 RETVAL = new wxBufferedPaintDC( window );
7383 ST(0) = sv_newmortal();
7384 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7385 wxPli_thread_sv_register( aTHX_ "Wx::BufferedPaintDC", RETVAL, ST(0) );
7393 XS(XS_Wx__BufferedPaintDC_new); /* prototype to pass -Wmissing-prototypes */
7394 XS(XS_Wx__BufferedPaintDC_new)
7401 PERL_UNUSED_VAR(cv); /* -W */
7402 PERL_UNUSED_VAR(ax); /* -Wall */
7406 MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wdc_wbmp_n, newBitmap, 2 )
7407 MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wdc_n, newBitmap, 1 )
7408 END_OVERLOAD( "Wx::BufferedPaintDC::new" )
7414 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
7415 #define XSubPPtmpAABX 1
7418 XS(XS_Wx__AutoBufferedPaintDC_new); /* prototype to pass -Wmissing-prototypes */
7419 XS(XS_Wx__AutoBufferedPaintDC_new)
7427 croak_xs_usage(cv, "CLASS, win");
7429 wxWindow* win = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
7430 char * CLASS = (char *)SvPV_nolen(ST(0));
7431 wxAutoBufferedPaintDC * RETVAL;
7433 RETVAL = new wxAutoBufferedPaintDC(win);
7434 ST(0) = sv_newmortal();
7435 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7436 wxPli_thread_sv_register( aTHX_ "Wx::AutoBufferedPaintDC", RETVAL, ST(0) );
7443 XS(XS_Wx_AutoBufferedPaintDCFactory); /* prototype to pass -Wmissing-prototypes */
7444 XS(XS_Wx_AutoBufferedPaintDCFactory)
7452 croak_xs_usage(cv, "window");
7454 wxWindow* window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Window" );
7457 RETVAL = wxAutoBufferedPaintDCFactory(window);
7458 ST(0) = sv_newmortal();
7459 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7460 wxPli_thread_sv_register( aTHX_ "Wx::DC", RETVAL, ST(0) );
7466 #include <wx/dcmirror.h>
7468 XS(XS_Wx__MirrorDC_new); /* prototype to pass -Wmissing-prototypes */
7469 XS(XS_Wx__MirrorDC_new)
7477 croak_xs_usage(cv, "CLASS, dc, mirror");
7479 wxDC* dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::DC" );
7480 bool mirror = (bool)SvTRUE(ST(2));
7481 char * CLASS = (char *)SvPV_nolen(ST(0));
7482 wxMirrorDC * RETVAL;
7483 RETVAL = new wxMirrorDC( *( dc ), mirror );
7484 ST(0) = sv_newmortal();
7485 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7486 wxPli_thread_sv_register( aTHX_ "Wx::MirrorDC", RETVAL, ST(0) );
7493 XS(XS_Wx__DCClipper_new); /* prototype to pass -Wmissing-prototypes */
7494 XS(XS_Wx__DCClipper_new)
7501 PERL_UNUSED_VAR(cv); /* -W */
7502 PERL_UNUSED_VAR(ax); /* -Wall */
7506 MATCH_REDISP( wxPliOvl_wdc_wrgn, newRegion )
7507 MATCH_REDISP( wxPliOvl_wdc_wrec, newRect )
7508 MATCH_REDISP( wxPliOvl_wdc_n_n_n_n, newXYWH )
7509 END_OVERLOAD( Wx::DCClipper::new )
7516 XS(XS_Wx__DCClipper_newRegion); /* prototype to pass -Wmissing-prototypes */
7517 XS(XS_Wx__DCClipper_newRegion)
7525 croak_xs_usage(cv, "CLASS, dc, region");
7527 wxDC* dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::DC" );
7528 wxRegion* region = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Region" );
7529 char * CLASS = (char *)SvPV_nolen(ST(0));
7530 wxDCClipper * RETVAL;
7531 RETVAL = new wxDCClipper( *( dc ), *( region ) );
7532 ST(0) = sv_newmortal();
7533 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::DCClipper" );
7534 wxPli_thread_sv_register( aTHX_ "Wx::DCClipper", RETVAL, ST(0) );
7541 XS(XS_Wx__DCClipper_newRect); /* prototype to pass -Wmissing-prototypes */
7542 XS(XS_Wx__DCClipper_newRect)
7550 croak_xs_usage(cv, "CLASS, dc, rect");
7552 wxDC* dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::DC" );
7553 wxRect* rect = (wxRect *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Rect" );
7554 char * CLASS = (char *)SvPV_nolen(ST(0));
7555 wxDCClipper * RETVAL;
7556 RETVAL = new wxDCClipper( *( dc ), *( rect ) );
7557 ST(0) = sv_newmortal();
7558 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::DCClipper" );
7559 wxPli_thread_sv_register( aTHX_ "Wx::DCClipper", RETVAL, ST(0) );
7566 XS(XS_Wx__DCClipper_newXYWH); /* prototype to pass -Wmissing-prototypes */
7567 XS(XS_Wx__DCClipper_newXYWH)
7575 croak_xs_usage(cv, "CLASS, dc, x, y, w, h");
7577 wxDC* dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::DC" );
7578 int x = (int)SvIV(ST(2));
7579 int y = (int)SvIV(ST(3));
7580 int w = (int)SvIV(ST(4));
7581 int h = (int)SvIV(ST(5));
7582 char * CLASS = (char *)SvPV_nolen(ST(0));
7583 wxDCClipper * RETVAL;
7584 RETVAL = new wxDCClipper( *( dc ), x, y, w, h );
7585 ST(0) = sv_newmortal();
7586 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::DCClipper" );
7587 wxPli_thread_sv_register( aTHX_ "Wx::DCClipper", RETVAL, ST(0) );
7594 XS(XS_Wx__DCClipper_CLONE); /* prototype to pass -Wmissing-prototypes */
7595 XS(XS_Wx__DCClipper_CLONE)
7603 croak_xs_usage(cv, "CLASS");
7605 char * CLASS = (char *)SvPV_nolen(ST(0));
7606 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
7612 XS(XS_Wx__DCClipper_DESTROY); /* prototype to pass -Wmissing-prototypes */
7613 XS(XS_Wx__DCClipper_DESTROY)
7621 croak_xs_usage(cv, "THIS");
7623 wxDCClipper * THIS = (wxDCClipper *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::DCClipper" );
7624 wxPli_thread_sv_unregister( aTHX_ "Wx::DCClipper", THIS, ST(0) );
7632 /* INCLUDE: Returning to 'XS/Cursor.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/DC.xs |' */
7634 #include <wx/cursor.h>
7636 XS(XS_Wx__Cursor_new); /* prototype to pass -Wmissing-prototypes */
7637 XS(XS_Wx__Cursor_new)
7645 croak_xs_usage(cv, "CLASS, ...");
7646 PERL_UNUSED_VAR(ax); /* -Wall */
7649 char * CLASS = (char *)SvPV_nolen(ST(0));
7651 MATCH_REDISP( wxPliOvl_n, newId )
7652 MATCH_REDISP( wxPliOvl_wimg, newImage )
7653 MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_s_n_n_n, newFile, 2 )
7654 END_OVERLOAD( Wx::Cursor::new )
7660 #if defined( __WXMSW__ ) || defined( __WXPERL_FORCE__ )
7661 #define XSubPPtmpAABY 1
7664 XS(XS_Wx__Cursor_newFile); /* prototype to pass -Wmissing-prototypes */
7665 XS(XS_Wx__Cursor_newFile)
7672 if (items < 3 || items > 5)
7673 croak_xs_usage(cv, "CLASS, name, type, hsx = -1, hsy = -1");
7677 wxBitmapType type = (wxBitmapType)SvIV(ST(2));
7682 WXSTRING_INPUT( name, wxString, ST(1) );
7687 hsx = (int)SvIV(ST(3));
7693 hsy = (int)SvIV(ST(4));
7695 RETVAL = new wxCursor( name, type, hsx, hsy );
7696 ST(0) = sv_newmortal();
7697 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7698 wxPli_thread_sv_register( aTHX_ "Wx::Cursor", RETVAL, ST(0) );
7706 XS(XS_Wx__Cursor_newId); /* prototype to pass -Wmissing-prototypes */
7707 XS(XS_Wx__Cursor_newId)
7715 croak_xs_usage(cv, "CLASS, id");
7718 wxStockCursor id = (wxStockCursor)SvIV(ST(1));
7720 RETVAL = new wxCursor( id );
7721 ST(0) = sv_newmortal();
7722 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7723 wxPli_thread_sv_register( aTHX_ "Wx::Cursor", RETVAL, ST(0) );
7729 #if !defined(__WXMAC__)
7730 #define XSubPPtmpAABZ 1
7733 XS(XS_Wx__Cursor_newImage); /* prototype to pass -Wmissing-prototypes */
7734 XS(XS_Wx__Cursor_newImage)
7742 croak_xs_usage(cv, "CLASS, img");
7745 wxImage* img = (wxImage *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Image" );
7747 RETVAL = new wxCursor( *img );
7748 ST(0) = sv_newmortal();
7749 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7750 wxPli_thread_sv_register( aTHX_ "Wx::Cursor", RETVAL, ST(0) );
7757 #if !defined( __WXGTK__ ) && !defined(__WXMAC__) \
7758 && WXPERL_W_VERSION_LT( 2, 9, 0 )
7759 #define XSubPPtmpAACA 1
7762 XS(XS_Wx__Cursor_newData); /* prototype to pass -Wmissing-prototypes */
7763 XS(XS_Wx__Cursor_newData)
7770 if (items < 4 || items > 7)
7771 croak_xs_usage(cv, "CLASS, bits, width, height, hotSpotX = -1, hotSpotY = -1, maskBits = 0");
7775 int width = (int)SvIV(ST(2));
7776 int height = (int)SvIV(ST(3));
7780 char* data = SvPV_nolen( bits );
7781 char* mask = maskBits ? SvPV_nolen( maskBits ) : 0;
7787 hotSpotX = (int)SvIV(ST(4));
7793 hotSpotY = (int)SvIV(ST(5));
7801 RETVAL = new wxCursor( data, width, height, hotSpotX, hotSpotY, mask );
7802 ST(0) = sv_newmortal();
7803 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7804 wxPli_thread_sv_register( aTHX_ "Wx::Cursor", RETVAL, ST(0) );
7812 XS(XS_Wx__Cursor_CLONE); /* prototype to pass -Wmissing-prototypes */
7813 XS(XS_Wx__Cursor_CLONE)
7821 croak_xs_usage(cv, "CLASS");
7823 char * CLASS = (char *)SvPV_nolen(ST(0));
7824 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
7830 XS(XS_Wx__Cursor_DESTROY); /* prototype to pass -Wmissing-prototypes */
7831 XS(XS_Wx__Cursor_DESTROY)
7839 croak_xs_usage(cv, "THIS");
7841 wxCursor * THIS = (wxCursor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Cursor" );
7842 wxPli_thread_sv_unregister( aTHX_ "Wx::Cursor", THIS, ST(0) );
7849 XS(XS_Wx__Cursor_Ok); /* prototype to pass -Wmissing-prototypes */
7850 XS(XS_Wx__Cursor_Ok)
7858 croak_xs_usage(cv, "THIS");
7860 wxCursor * THIS = (wxCursor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Cursor" );
7863 RETVAL = THIS->Ok();
7864 ST(0) = boolSV(RETVAL);
7870 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
7871 #define XSubPPtmpAACB 1
7874 XS(XS_Wx__Cursor_IsOk); /* prototype to pass -Wmissing-prototypes */
7875 XS(XS_Wx__Cursor_IsOk)
7883 croak_xs_usage(cv, "THIS");
7885 wxCursor * THIS = (wxCursor *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Cursor" );
7888 RETVAL = THIS->IsOk();
7889 ST(0) = boolSV(RETVAL);
7897 /* INCLUDE: Returning to 'XS/Icon.xs' from 'XS/Cursor.xs' */
7899 #include <wx/icon.h>
7900 #if !defined( __WXMSW__ )
7904 XS(XS_Wx_GetWxPerlIcon); /* prototype to pass -Wmissing-prototypes */
7905 XS(XS_Wx_GetWxPerlIcon)
7912 if (items < 0 || items > 1)
7913 croak_xs_usage(cv, "get_small = false");
7921 get_small = (bool)SvTRUE(ST(0));
7923 #if defined( __WXMSW__ )
7924 int sz = get_small ? 16 : 32;
7925 RETVAL = new wxIcon( wxT("wxplicon"), wxBITMAP_TYPE_ICO_RESOURCE, -1, -1 );
7927 croak( "Unable to load icon" );
7929 char** image = (char**)( get_small ? wxpl16_xpm : wxpl32_xpm );
7930 RETVAL = new wxIcon( image );
7932 ST(0) = sv_newmortal();
7933 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7934 wxPli_thread_sv_register( aTHX_ "Wx::Icon", RETVAL, ST(0) );
7941 XS(XS_Wx__Icon_new); /* prototype to pass -Wmissing-prototypes */
7950 croak_xs_usage(cv, "CLASS, ...");
7951 PERL_UNUSED_VAR(ax); /* -Wall */
7954 char * CLASS = (char *)SvPV_nolen(ST(0));
7956 MATCH_VOIDM_REDISP( newNull )
7957 MATCH_REDISP( wxPliOvl_wilo, newLocation )
7958 MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_s_n_n_n, newFile, 2 )
7959 END_OVERLOAD( Wx::Icon::new )
7966 XS(XS_Wx__Icon_newNull); /* prototype to pass -Wmissing-prototypes */
7967 XS(XS_Wx__Icon_newNull)
7975 croak_xs_usage(cv, "CLASS");
7979 RETVAL = new wxIcon();
7980 ST(0) = sv_newmortal();
7981 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
7982 wxPli_thread_sv_register( aTHX_ "Wx::Icon", RETVAL, ST(0) );
7989 XS(XS_Wx__Icon_newFile); /* prototype to pass -Wmissing-prototypes */
7990 XS(XS_Wx__Icon_newFile)
7997 if (items < 3 || items > 5)
7998 croak_xs_usage(cv, "CLASS, name, type, desW = -1, desH = -1");
8002 long type = (long)SvIV(ST(2));
8007 WXSTRING_INPUT( name, wxString, ST(1) );
8012 desW = (int)SvIV(ST(3));
8018 desH = (int)SvIV(ST(4));
8020 #if defined( __WXMOTIF__ ) || defined( __WXX11__ ) || defined( __WXGTK__ ) \
8021 || WXPERL_W_VERSION_GE( 2, 9, 0 )
8022 RETVAL = new wxIcon( name, wxBitmapType(type), desW, desH );
8024 RETVAL = new wxIcon( name, type, desW, desH );
8026 ST(0) = sv_newmortal();
8027 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8028 wxPli_thread_sv_register( aTHX_ "Wx::Icon", RETVAL, ST(0) );
8034 #if defined( __WXGTK__ ) || defined( __WXPERL_FORCE__ )
8037 XS(XS_Wx__Icon_newFromXPM); /* prototype to pass -Wmissing-prototypes */
8038 XS(XS_Wx__Icon_newFromXPM)
8046 croak_xs_usage(cv, "CLASS, data");
8051 size_t i, n = wxPli_av_2_charparray( aTHX_ data, &xpm_data );
8053 RETVAL = new wxIcon( xpm_data );
8054 for( i = 0; i < n; ++i )
8055 free( xpm_data[i] );
8056 ST(0) = sv_newmortal();
8057 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8058 wxPli_thread_sv_register( aTHX_ "Wx::Icon", RETVAL, ST(0) );
8064 #if WXPERL_W_VERSION_GE( 2, 5, 2 )
8065 #define XSubPPtmpAACC 1
8068 XS(XS_Wx__Icon_newLocation); /* prototype to pass -Wmissing-prototypes */
8069 XS(XS_Wx__Icon_newLocation)
8077 croak_xs_usage(cv, "CLASS, location");
8080 wxIconLocation* location = (wxIconLocation *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::IconLocation" );
8082 RETVAL = new wxIcon( *location );
8083 ST(0) = sv_newmortal();
8084 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8085 wxPli_thread_sv_register( aTHX_ "Wx::Icon", RETVAL, ST(0) );
8093 XS(XS_Wx__Icon_CLONE); /* prototype to pass -Wmissing-prototypes */
8094 XS(XS_Wx__Icon_CLONE)
8102 croak_xs_usage(cv, "CLASS");
8104 char * CLASS = (char *)SvPV_nolen(ST(0));
8105 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
8111 XS(XS_Wx__Icon_DESTROY); /* prototype to pass -Wmissing-prototypes */
8112 XS(XS_Wx__Icon_DESTROY)
8120 croak_xs_usage(cv, "THIS");
8122 wxIcon * THIS = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Icon" );
8123 wxPli_thread_sv_unregister( aTHX_ "Wx::Icon", THIS, ST(0) );
8130 XS(XS_Wx__Icon_LoadFile); /* prototype to pass -Wmissing-prototypes */
8131 XS(XS_Wx__Icon_LoadFile)
8139 croak_xs_usage(cv, "THIS, name, type");
8142 long type = (long)SvIV(ST(2));
8143 wxIcon * THIS = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Icon" );
8146 WXSTRING_INPUT( name, wxString, ST(1) );
8147 #if defined( __WXMOTIF__ )
8148 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
8149 RETVAL = THIS->LoadFile( name, wxBitmapType(type), -1, -1 );
8151 RETVAL = THIS->LoadFile( name, type, -1, -1 );
8154 #if defined( __WXX11__ ) || defined( __WXMAC__ ) || defined( __WXGTK__ ) \
8155 || ( defined(__WXMSW__) && WXPERL_W_VERSION_GE( 2, 9, 0 ) )
8156 RETVAL = THIS->LoadFile( name, wxBitmapType(type) );
8158 RETVAL = THIS->LoadFile( name, type );
8161 ST(0) = boolSV(RETVAL);
8168 XS(XS_Wx__Icon_Ok); /* prototype to pass -Wmissing-prototypes */
8177 croak_xs_usage(cv, "THIS");
8179 wxIcon * THIS = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Icon" );
8182 RETVAL = THIS->Ok();
8183 ST(0) = boolSV(RETVAL);
8189 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
8190 #define XSubPPtmpAACD 1
8193 XS(XS_Wx__Icon_IsOk); /* prototype to pass -Wmissing-prototypes */
8194 XS(XS_Wx__Icon_IsOk)
8202 croak_xs_usage(cv, "THIS");
8204 wxIcon * THIS = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Icon" );
8207 RETVAL = THIS->IsOk();
8208 ST(0) = boolSV(RETVAL);
8216 XS(XS_Wx__Icon_CopyFromBitmap); /* prototype to pass -Wmissing-prototypes */
8217 XS(XS_Wx__Icon_CopyFromBitmap)
8225 croak_xs_usage(cv, "THIS, bitmap");
8227 wxBitmap* bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
8228 wxIcon * THIS = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Icon" );
8230 THIS->CopyFromBitmap(*bitmap);
8235 #if defined( __WXMSW__ ) || defined( __WXPERL_FORCE__ )
8236 #define XSubPPtmpAACE 1
8239 XS(XS_Wx__Icon_GetDepth); /* prototype to pass -Wmissing-prototypes */
8240 XS(XS_Wx__Icon_GetDepth)
8248 croak_xs_usage(cv, "THIS");
8250 wxIcon * THIS = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Icon" );
8254 RETVAL = THIS->GetDepth();
8255 XSprePUSH; PUSHi((IV)RETVAL);
8261 XS(XS_Wx__Icon_GetHeight); /* prototype to pass -Wmissing-prototypes */
8262 XS(XS_Wx__Icon_GetHeight)
8270 croak_xs_usage(cv, "THIS");
8272 wxIcon * THIS = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Icon" );
8276 RETVAL = THIS->GetHeight();
8277 XSprePUSH; PUSHi((IV)RETVAL);
8283 XS(XS_Wx__Icon_GetWidth); /* prototype to pass -Wmissing-prototypes */
8284 XS(XS_Wx__Icon_GetWidth)
8292 croak_xs_usage(cv, "THIS");
8294 wxIcon * THIS = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Icon" );
8298 RETVAL = THIS->GetWidth();
8299 XSprePUSH; PUSHi((IV)RETVAL);
8305 XS(XS_Wx__Icon_SetDepth); /* prototype to pass -Wmissing-prototypes */
8306 XS(XS_Wx__Icon_SetDepth)
8314 croak_xs_usage(cv, "THIS, depth");
8316 int depth = (int)SvIV(ST(1));
8317 wxIcon * THIS = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Icon" );
8319 THIS->SetDepth(depth);
8325 XS(XS_Wx__Icon_SetHeight); /* prototype to pass -Wmissing-prototypes */
8326 XS(XS_Wx__Icon_SetHeight)
8334 croak_xs_usage(cv, "THIS, height");
8336 int height = (int)SvIV(ST(1));
8337 wxIcon * THIS = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Icon" );
8339 THIS->SetHeight(height);
8345 XS(XS_Wx__Icon_SetWidth); /* prototype to pass -Wmissing-prototypes */
8346 XS(XS_Wx__Icon_SetWidth)
8354 croak_xs_usage(cv, "THIS, width");
8356 int width = (int)SvIV(ST(1));
8357 wxIcon * THIS = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Icon" );
8359 THIS->SetWidth(width);
8366 /* INCLUDE: Returning to 'XS/Bitmap.xs' from 'XS/Icon.xs' */
8368 #include <wx/bitmap.h>
8370 XS(XS_Wx__Mask_new); /* prototype to pass -Wmissing-prototypes */
8379 croak_xs_usage(cv, "CLASS, ...");
8380 PERL_UNUSED_VAR(ax); /* -Wall */
8383 char * CLASS = (char *)SvPV_nolen(ST(0));
8385 MATCH_REDISP( wxPliOvl_wbmp_wcol, newBitmapColour )
8386 MATCH_REDISP( wxPliOvl_wbmp_n, newBitmapIndex )
8387 MATCH_REDISP( wxPliOvl_wbmp, newBitmap )
8388 END_OVERLOAD( Wx::Mask::new )
8395 XS(XS_Wx__Mask_newBitmap); /* prototype to pass -Wmissing-prototypes */
8396 XS(XS_Wx__Mask_newBitmap)
8404 croak_xs_usage(cv, "CLASS, bitmap");
8407 wxBitmap* bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
8409 RETVAL = new wxMask( *bitmap );
8410 ST(0) = sv_newmortal();
8411 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8418 XS(XS_Wx__Mask_newBitmapColour); /* prototype to pass -Wmissing-prototypes */
8419 XS(XS_Wx__Mask_newBitmapColour)
8427 croak_xs_usage(cv, "CLASS, bitmap, colour");
8430 wxBitmap* bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
8431 wxColour* colour = (wxColour *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Colour" );
8433 RETVAL = new wxMask( *bitmap, *colour );
8434 ST(0) = sv_newmortal();
8435 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8442 XS(XS_Wx__Mask_newBitmapIndex); /* prototype to pass -Wmissing-prototypes */
8443 XS(XS_Wx__Mask_newBitmapIndex)
8451 croak_xs_usage(cv, "CLASS, bitmap, index");
8454 wxBitmap* bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
8455 int index = (int)SvIV(ST(2));
8457 RETVAL = new wxMask( *bitmap, index );
8458 ST(0) = sv_newmortal();
8459 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8466 XS(XS_Wx__Mask_Destroy); /* prototype to pass -Wmissing-prototypes */
8467 XS(XS_Wx__Mask_Destroy)
8475 croak_xs_usage(cv, "THIS");
8477 wxMask * THIS = (wxMask *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Mask" );
8484 #define XSubPPtmpAACF 1
8487 XS(XS_Wx__Bitmap_bmp_spaceship); /* prototype to pass -Wmissing-prototypes */
8488 XS(XS_Wx__Bitmap_bmp_spaceship)
8496 croak_xs_usage(cv, "bmp1, bmp2, ...");
8502 // this is not a proper spaceship method
8503 // it just allows autogeneration of != and ==
8504 // anyway, comparing bitmaps is just useless
8506 if( SvROK( bmp1 ) && SvROK( bmp2 ) &&
8507 sv_derived_from( bmp1, "Wx::Bitmap" ) &&
8508 sv_derived_from( bmp2, "Wx::Bitmap" ) )
8510 wxBitmap* bitmap1 = (wxBitmap*)_sv_2_object( bmp1, "Wx::Bitmap" );
8511 wxBitmap* bitmap2 = (wxBitmap*)_sv_2_object( bmp2, "Wx::Bitmap" );
8513 RETVAL = *bitmap1 == *bitmap2 ? 0 : 1;
8516 XSprePUSH; PUSHi((IV)RETVAL);
8523 XS(XS_Wx__Bitmap_new); /* prototype to pass -Wmissing-prototypes */
8524 XS(XS_Wx__Bitmap_new)
8532 croak_xs_usage(cv, "CLASS, ...");
8533 PERL_UNUSED_VAR(ax); /* -Wall */
8536 char * CLASS = (char *)SvPV_nolen(ST(0));
8538 MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_n_n_n, newEmpty, 2 )
8539 MATCH_REDISP( wxPliOvl_s_n, newFile )
8540 MATCH_REDISP( wxPliOvl_wico, newIcon )
8541 MATCH_REDISP( wxPliOvl_wimg, newImage )
8542 END_OVERLOAD( Wx::Bitmap::new )
8549 XS(XS_Wx__Bitmap_newEmpty); /* prototype to pass -Wmissing-prototypes */
8550 XS(XS_Wx__Bitmap_newEmpty)
8557 if (items < 3 || items > 4)
8558 croak_xs_usage(cv, "CLASS, width, height, depth = -1");
8561 int width = (int)SvIV(ST(1));
8562 int height = (int)SvIV(ST(2));
8569 depth = (int)SvIV(ST(3));
8571 RETVAL = new wxBitmap( width, height, depth );
8572 ST(0) = sv_newmortal();
8573 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8574 wxPli_thread_sv_register( aTHX_ "Wx::Bitmap", RETVAL, ST(0) );
8581 XS(XS_Wx__Bitmap_newFile); /* prototype to pass -Wmissing-prototypes */
8582 XS(XS_Wx__Bitmap_newFile)
8590 croak_xs_usage(cv, "CLASS, name, type");
8594 long type = (long)SvIV(ST(2));
8597 WXSTRING_INPUT( name, wxString, ST(1) );
8598 #if WXPERL_W_VERSION_GE( 2, 5, 0 )
8599 RETVAL = new wxBitmap( name, wxBitmapType(type) );
8601 RETVAL = new wxBitmap( name, type );
8603 ST(0) = sv_newmortal();
8604 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8605 wxPli_thread_sv_register( aTHX_ "Wx::Bitmap", RETVAL, ST(0) );
8612 XS(XS_Wx__Bitmap_newIcon); /* prototype to pass -Wmissing-prototypes */
8613 XS(XS_Wx__Bitmap_newIcon)
8621 croak_xs_usage(cv, "CLASS, icon");
8624 wxIcon* icon = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Icon" );
8626 RETVAL = new wxBitmap( *icon );
8627 ST(0) = sv_newmortal();
8628 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8629 wxPli_thread_sv_register( aTHX_ "Wx::Bitmap", RETVAL, ST(0) );
8636 XS(XS_Wx__Bitmap_newFromBits); /* prototype to pass -Wmissing-prototypes */
8637 XS(XS_Wx__Bitmap_newFromBits)
8644 if (items < 4 || items > 5)
8645 croak_xs_usage(cv, "CLASS, bits, width, height, depth = 1");
8649 int width = (int)SvIV(ST(2));
8650 int height = (int)SvIV(ST(3));
8652 char* buffer = SvPV_nolen( bits );
8658 depth = (int)SvIV(ST(4));
8660 RETVAL = new wxBitmap( buffer, width, height, depth );
8661 ST(0) = sv_newmortal();
8662 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8663 wxPli_thread_sv_register( aTHX_ "Wx::Bitmap", RETVAL, ST(0) );
8670 XS(XS_Wx__Bitmap_newFromXPM); /* prototype to pass -Wmissing-prototypes */
8671 XS(XS_Wx__Bitmap_newFromXPM)
8679 croak_xs_usage(cv, "CLASS, data");
8684 size_t i, n = wxPli_av_2_charparray( aTHX_ data, &xpm_data );
8686 RETVAL = new wxBitmap( xpm_data );
8687 for( i = 0; i < n; ++i )
8688 free( xpm_data[i] );
8689 ST(0) = sv_newmortal();
8690 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8691 wxPli_thread_sv_register( aTHX_ "Wx::Bitmap", RETVAL, ST(0) );
8698 XS(XS_Wx__Bitmap_newImage); /* prototype to pass -Wmissing-prototypes */
8699 XS(XS_Wx__Bitmap_newImage)
8707 croak_xs_usage(cv, "CLASS, image");
8710 wxImage* image = (wxImage *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Image" );
8712 RETVAL = new wxBitmap( *image );
8713 ST(0) = sv_newmortal();
8714 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8715 wxPli_thread_sv_register( aTHX_ "Wx::Bitmap", RETVAL, ST(0) );
8722 XS(XS_Wx__Bitmap_CLONE); /* prototype to pass -Wmissing-prototypes */
8723 XS(XS_Wx__Bitmap_CLONE)
8731 croak_xs_usage(cv, "CLASS");
8733 char * CLASS = (char *)SvPV_nolen(ST(0));
8734 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
8740 XS(XS_Wx__Bitmap_DESTROY); /* prototype to pass -Wmissing-prototypes */
8741 XS(XS_Wx__Bitmap_DESTROY)
8749 croak_xs_usage(cv, "THIS");
8751 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
8752 wxPli_thread_sv_unregister( aTHX_ "Wx::Bitmap", THIS, ST(0) );
8759 XS(XS_Wx__Bitmap_ConvertToImage); /* prototype to pass -Wmissing-prototypes */
8760 XS(XS_Wx__Bitmap_ConvertToImage)
8768 croak_xs_usage(cv, "THIS");
8770 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
8772 RETVAL = new wxImage( THIS->ConvertToImage() );
8773 ST(0) = sv_newmortal();
8774 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8775 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
8782 XS(XS_Wx__Bitmap_CopyFromIcon); /* prototype to pass -Wmissing-prototypes */
8783 XS(XS_Wx__Bitmap_CopyFromIcon)
8791 croak_xs_usage(cv, "THIS, icon");
8793 wxIcon* icon = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Icon" );
8794 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
8795 THIS->CopyFromIcon( *icon );
8800 #if defined( __WXMOTIF__ ) || \
8801 defined( __WXMSW__ ) || \
8802 defined( __WXPERL_FORCE__ )
8803 #define XSubPPtmpAACG 1
8806 XS(XS_Wx__Bitmap_AddHandler); /* prototype to pass -Wmissing-prototypes */
8807 XS(XS_Wx__Bitmap_AddHandler)
8815 croak_xs_usage(cv, "handler");
8817 wxBitmapHandler* handler = (wxBitmapHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::BitmapHandler" );
8818 wxBitmap::AddHandler( handler );
8824 #if defined( __WXMOTIF__ ) || defined( __WXPERL_FORCE__ )
8825 #define XSubPPtmpAACH 1
8828 XS(XS_Wx__Bitmap_FindHandlerName); /* prototype to pass -Wmissing-prototypes */
8829 XS(XS_Wx__Bitmap_FindHandlerName)
8837 croak_xs_usage(cv, "name");
8840 wxBitmapHandler * RETVAL;
8842 WXSTRING_INPUT( name, wxString, ST(0) );
8843 RETVAL = wxBitmap::FindHandler( name );
8844 ST(0) = sv_newmortal();
8845 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8852 XS(XS_Wx__Bitmap_FindHandlerExtType); /* prototype to pass -Wmissing-prototypes */
8853 XS(XS_Wx__Bitmap_FindHandlerExtType)
8861 croak_xs_usage(cv, "extension, type");
8864 long type = (long)SvIV(ST(1));
8865 wxBitmapHandler * RETVAL;
8867 WXSTRING_INPUT( extension, wxString, ST(0) );
8868 #if WXPERL_W_VERSION_GE( 2, 5, 1 ) && defined(__WXMOTIF__)
8869 RETVAL = wxBitmap::FindHandler( extension, wxBitmapType(type) );
8871 RETVAL = wxBitmap::FindHandler( extension, type );
8873 ST(0) = sv_newmortal();
8874 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8881 XS(XS_Wx__Bitmap_FindHandlerType); /* prototype to pass -Wmissing-prototypes */
8882 XS(XS_Wx__Bitmap_FindHandlerType)
8890 croak_xs_usage(cv, "type");
8892 long type = (long)SvIV(ST(0));
8893 wxBitmapHandler * RETVAL;
8894 #if WXPERL_W_VERSION_GE( 2, 5, 1 ) && defined(__WXMOTIF__)
8895 RETVAL = wxBitmap::FindHandler( wxBitmapType(type) );
8897 RETVAL = wxBitmap::FindHandler( type );
8899 ST(0) = sv_newmortal();
8900 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8908 XS(XS_Wx__Bitmap_GetDepth); /* prototype to pass -Wmissing-prototypes */
8909 XS(XS_Wx__Bitmap_GetDepth)
8917 croak_xs_usage(cv, "THIS");
8919 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
8923 RETVAL = THIS->GetDepth();
8924 XSprePUSH; PUSHi((IV)RETVAL);
8929 #if defined( __WXMOTIF__ ) || defined( __WXMSW__ ) \
8930 || defined( __WXPERL_FORCE__ )
8931 #define XSubPPtmpAACI 1
8934 XS(XS_Wx__Bitmap_GetHandlers); /* prototype to pass -Wmissing-prototypes */
8935 XS(XS_Wx__Bitmap_GetHandlers)
8943 croak_xs_usage(cv, "");
8944 PERL_UNUSED_VAR(ax); /* -Wall */
8947 const wxList& list = wxBitmap::GetHandlers();
8950 EXTEND( SP, list.GetCount() );
8952 for( node = list.GetFirst(); node; node = node->GetNext() )
8953 PUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(), node->GetData() ) );
8961 XS(XS_Wx__Bitmap_GetHeight); /* prototype to pass -Wmissing-prototypes */
8962 XS(XS_Wx__Bitmap_GetHeight)
8970 croak_xs_usage(cv, "THIS");
8972 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
8976 RETVAL = THIS->GetHeight();
8977 XSprePUSH; PUSHi((IV)RETVAL);
8983 XS(XS_Wx__Bitmap_GetPalette); /* prototype to pass -Wmissing-prototypes */
8984 XS(XS_Wx__Bitmap_GetPalette)
8992 croak_xs_usage(cv, "THIS");
8994 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
8996 RETVAL = new wxPalette( *THIS->GetPalette() );
8997 ST(0) = sv_newmortal();
8998 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
8999 wxPli_thread_sv_register( aTHX_ "Wx::Palette", RETVAL, ST(0) );
9006 XS(XS_Wx__Bitmap_GetMask); /* prototype to pass -Wmissing-prototypes */
9007 XS(XS_Wx__Bitmap_GetMask)
9015 croak_xs_usage(cv, "THIS");
9017 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
9020 RETVAL = THIS->GetMask();
9021 ST(0) = sv_newmortal();
9022 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
9029 XS(XS_Wx__Bitmap_GetWidth); /* prototype to pass -Wmissing-prototypes */
9030 XS(XS_Wx__Bitmap_GetWidth)
9038 croak_xs_usage(cv, "THIS");
9040 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
9044 RETVAL = THIS->GetWidth();
9045 XSprePUSH; PUSHi((IV)RETVAL);
9051 XS(XS_Wx__Bitmap_GetSubBitmap); /* prototype to pass -Wmissing-prototypes */
9052 XS(XS_Wx__Bitmap_GetSubBitmap)
9060 croak_xs_usage(cv, "THIS, rect");
9062 wxRect* rect = (wxRect *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Rect" );
9063 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
9065 RETVAL = new wxBitmap( THIS->GetSubBitmap( *rect ) );
9066 ST(0) = sv_newmortal();
9067 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
9068 wxPli_thread_sv_register( aTHX_ "Wx::Bitmap", RETVAL, ST(0) );
9074 #if defined( __WXMOTIF__ ) || defined( __WXMSW__ ) || defined( __WXPERL_FORCE__ )
9075 #define XSubPPtmpAACJ 1
9078 XS(XS_Wx__Bitmap_InitStandardHandlers); /* prototype to pass -Wmissing-prototypes */
9079 XS(XS_Wx__Bitmap_InitStandardHandlers)
9087 croak_xs_usage(cv, "");
9089 wxBitmap::InitStandardHandlers();
9095 XS(XS_Wx__Bitmap_InsertHandler); /* prototype to pass -Wmissing-prototypes */
9096 XS(XS_Wx__Bitmap_InsertHandler)
9104 croak_xs_usage(cv, "handler");
9106 wxBitmapHandler* handler = (wxBitmapHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::BitmapHandler" );
9107 wxBitmap::InsertHandler( handler );
9113 #if WXPERL_W_VERSION_GE( 2, 3, 1 )
9114 #define XSubPPtmpAACK 1
9117 XS(XS_Wx__Bitmap_LoadFile); /* prototype to pass -Wmissing-prototypes */
9118 XS(XS_Wx__Bitmap_LoadFile)
9126 croak_xs_usage(cv, "THIS, name, type");
9129 wxBitmapType type = (wxBitmapType)SvIV(ST(2));
9130 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
9133 WXSTRING_INPUT( name, wxString, ST(1) );
9135 RETVAL = THIS->LoadFile(name, type);
9136 ST(0) = boolSV(RETVAL);
9143 #define XSubPPtmpAACL 1
9146 XS(XS_Wx__Bitmap_LoadFile); /* prototype to pass -Wmissing-prototypes */
9147 XS(XS_Wx__Bitmap_LoadFile)
9155 croak_xs_usage(cv, "THIS, name, type");
9158 long type = (long)SvIV(ST(2));
9159 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
9162 WXSTRING_INPUT( name, wxString, ST(1) );
9164 RETVAL = THIS->LoadFile(name, type);
9165 ST(0) = boolSV(RETVAL);
9173 XS(XS_Wx__Bitmap_Ok); /* prototype to pass -Wmissing-prototypes */
9174 XS(XS_Wx__Bitmap_Ok)
9182 croak_xs_usage(cv, "THIS");
9184 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
9187 RETVAL = THIS->Ok();
9188 ST(0) = boolSV(RETVAL);
9194 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
9195 #define XSubPPtmpAACM 1
9198 XS(XS_Wx__Bitmap_IsOk); /* prototype to pass -Wmissing-prototypes */
9199 XS(XS_Wx__Bitmap_IsOk)
9207 croak_xs_usage(cv, "THIS");
9209 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
9212 RETVAL = THIS->IsOk();
9213 ST(0) = boolSV(RETVAL);
9220 #if defined( __WXMOTIF__ ) || defined( __WXMSW__ ) || defined( __WXPERL_FORCE__ )
9221 #define XSubPPtmpAACN 1
9224 XS(XS_Wx__Bitmap_RemoveHandler); /* prototype to pass -Wmissing-prototypes */
9225 XS(XS_Wx__Bitmap_RemoveHandler)
9233 croak_xs_usage(cv, "name");
9238 WXSTRING_INPUT( name, wxString, ST(0) );
9239 RETVAL = wxBitmap::RemoveHandler( name );
9240 ST(0) = boolSV(RETVAL);
9248 XS(XS_Wx__Bitmap_SaveFile); /* prototype to pass -Wmissing-prototypes */
9249 XS(XS_Wx__Bitmap_SaveFile)
9256 if (items < 3 || items > 4)
9257 croak_xs_usage(cv, "THIS, name, type, palette = 0");
9260 wxBitmapType type = (wxBitmapType)SvIV(ST(2));
9262 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
9265 WXSTRING_INPUT( name, wxString, ST(1) );
9270 palette = (wxPalette *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Palette" );
9273 RETVAL = THIS->SaveFile(name, type, palette);
9274 ST(0) = boolSV(RETVAL);
9281 XS(XS_Wx__Bitmap_SetDepth); /* prototype to pass -Wmissing-prototypes */
9282 XS(XS_Wx__Bitmap_SetDepth)
9290 croak_xs_usage(cv, "THIS, depth");
9292 int depth = (int)SvIV(ST(1));
9293 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
9295 THIS->SetDepth(depth);
9301 XS(XS_Wx__Bitmap_SetHeight); /* prototype to pass -Wmissing-prototypes */
9302 XS(XS_Wx__Bitmap_SetHeight)
9310 croak_xs_usage(cv, "THIS, height");
9312 int height = (int)SvIV(ST(1));
9313 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
9315 THIS->SetHeight(height);
9321 XS(XS_Wx__Bitmap_SetMask); /* prototype to pass -Wmissing-prototypes */
9322 XS(XS_Wx__Bitmap_SetMask)
9330 croak_xs_usage(cv, "THIS, mask");
9332 wxMask* mask = (wxMask *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Mask" );
9333 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
9334 THIS->SetMask( mask );
9339 #if defined( __WXMOTIF__ ) || defined( __WXMSW__ ) || defined( __WXPERL_FORCE__ )
9340 #define XSubPPtmpAACO 1
9343 XS(XS_Wx__Bitmap_SetPalette); /* prototype to pass -Wmissing-prototypes */
9344 XS(XS_Wx__Bitmap_SetPalette)
9352 croak_xs_usage(cv, "THIS, palette");
9354 wxPalette* palette = (wxPalette *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Palette" );
9355 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
9356 THIS->SetPalette( *palette );
9363 XS(XS_Wx__Bitmap_SetWidth); /* prototype to pass -Wmissing-prototypes */
9364 XS(XS_Wx__Bitmap_SetWidth)
9372 croak_xs_usage(cv, "THIS, width");
9374 int width = (int)SvIV(ST(1));
9375 wxBitmap * THIS = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Bitmap" );
9377 THIS->SetWidth(width);
9383 /* INCLUDE: Returning to 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/ImageList.xs |' from 'XS/Bitmap.xs' */
9385 #include <wx/imaglist.h>
9386 #define wxNullBitmapPtr (wxBitmap*) &wxNullBitmap
9388 XS(XS_Wx__ImageList_new); /* prototype to pass -Wmissing-prototypes */
9389 XS(XS_Wx__ImageList_new)
9396 if (items < 3 || items > 5)
9397 croak_xs_usage(cv, "CLASS, width, height, mask = true, initialCount = 1");
9399 int width = (int)SvIV(ST(1));
9400 int height = (int)SvIV(ST(2));
9403 char * CLASS = (char *)SvPV_nolen(ST(0));
9404 wxImageList * RETVAL;
9409 mask = (bool)SvTRUE(ST(3));
9415 initialCount = (int)SvIV(ST(4));
9418 RETVAL = new wxImageList(width, height, mask, initialCount);
9419 ST(0) = sv_newmortal();
9420 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
9421 wxPli_thread_sv_register( aTHX_ "Wx::ImageList", RETVAL, ST(0) );
9428 XS(XS_Wx__ImageList_AddBitmap); /* prototype to pass -Wmissing-prototypes */
9429 XS(XS_Wx__ImageList_AddBitmap)
9436 if (items < 2 || items > 3)
9437 croak_xs_usage(cv, "THIS, bitmap, mask = wxNullBitmapPtr");
9439 wxBitmap* bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
9441 wxImageList * THIS = (wxImageList *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageList" );
9446 mask = wxNullBitmapPtr;
9448 mask = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Bitmap" );
9450 RETVAL = THIS->Add( *( bitmap ), *( mask ) );
9451 XSprePUSH; PUSHi((IV)RETVAL);
9457 XS(XS_Wx__ImageList_AddWithColourMask); /* prototype to pass -Wmissing-prototypes */
9458 XS(XS_Wx__ImageList_AddWithColourMask)
9466 croak_xs_usage(cv, "THIS, bitmap, colour");
9468 wxBitmap* bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
9469 wxColour* colour = (wxColour *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Colour" );
9470 wxImageList * THIS = (wxImageList *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageList" );
9473 RETVAL = THIS->Add( *( bitmap ), *( colour ) );
9474 XSprePUSH; PUSHi((IV)RETVAL);
9480 XS(XS_Wx__ImageList_AddIcon); /* prototype to pass -Wmissing-prototypes */
9481 XS(XS_Wx__ImageList_AddIcon)
9489 croak_xs_usage(cv, "THIS, icon");
9491 wxIcon* icon = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Icon" );
9492 wxImageList * THIS = (wxImageList *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageList" );
9495 RETVAL = THIS->Add( *( icon ) );
9496 XSprePUSH; PUSHi((IV)RETVAL);
9502 XS(XS_Wx__ImageList_Draw); /* prototype to pass -Wmissing-prototypes */
9503 XS(XS_Wx__ImageList_Draw)
9510 if (items < 5 || items > 7)
9511 croak_xs_usage(cv, "THIS, index, dc, x, y, flags = wxIMAGELIST_DRAW_NORMAL, solidBackground = false");
9513 int index = (int)SvIV(ST(1));
9514 wxDC* dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::DC" );
9515 int x = (int)SvIV(ST(3));
9516 int y = (int)SvIV(ST(4));
9518 bool solidBackground;
9519 wxImageList * THIS = (wxImageList *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageList" );
9523 flags = wxIMAGELIST_DRAW_NORMAL;
9525 flags = (int)SvIV(ST(5));
9529 solidBackground = false;
9531 solidBackground = (bool)SvTRUE(ST(6));
9533 RETVAL = THIS->Draw( index, *( dc ), x, y, flags, solidBackground );
9534 ST(0) = boolSV(RETVAL);
9541 XS(XS_Wx__ImageList_GetImageCount); /* prototype to pass -Wmissing-prototypes */
9542 XS(XS_Wx__ImageList_GetImageCount)
9550 croak_xs_usage(cv, "THIS");
9552 wxImageList * THIS = (wxImageList *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageList" );
9556 RETVAL = THIS->GetImageCount();
9557 XSprePUSH; PUSHi((IV)RETVAL);
9563 XS(XS_Wx__ImageList_Remove); /* prototype to pass -Wmissing-prototypes */
9564 XS(XS_Wx__ImageList_Remove)
9572 croak_xs_usage(cv, "THIS, index");
9574 int index = (int)SvIV(ST(1));
9575 wxImageList * THIS = (wxImageList *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageList" );
9578 RETVAL = THIS->Remove(index);
9579 ST(0) = boolSV(RETVAL);
9586 XS(XS_Wx__ImageList_RemoveAll); /* prototype to pass -Wmissing-prototypes */
9587 XS(XS_Wx__ImageList_RemoveAll)
9595 croak_xs_usage(cv, "THIS");
9597 wxImageList * THIS = (wxImageList *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageList" );
9600 RETVAL = THIS->RemoveAll();
9601 ST(0) = boolSV(RETVAL);
9607 #if defined( __WXMSW__ )
9608 #define XSubPPtmpAACP 1
9611 XS(XS_Wx__ImageList_ReplaceBitmap); /* prototype to pass -Wmissing-prototypes */
9612 XS(XS_Wx__ImageList_ReplaceBitmap)
9619 if (items < 3 || items > 4)
9620 croak_xs_usage(cv, "THIS, index, bitmap, mask = wxNullBitmapPtr");
9622 int index = (int)SvIV(ST(1));
9623 wxBitmap* bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Bitmap" );
9625 wxImageList * THIS = (wxImageList *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageList" );
9629 mask = wxNullBitmapPtr;
9631 mask = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Bitmap" );
9633 RETVAL = THIS->Replace( index, *( bitmap ), *( mask ) );
9634 ST(0) = boolSV(RETVAL);
9641 #define XSubPPtmpAACQ 1
9644 XS(XS_Wx__ImageList_ReplaceBitmap); /* prototype to pass -Wmissing-prototypes */
9645 XS(XS_Wx__ImageList_ReplaceBitmap)
9653 croak_xs_usage(cv, "THIS, index, bitmap");
9655 int index = (int)SvIV(ST(1));
9656 wxBitmap* bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Bitmap" );
9657 wxImageList * THIS = (wxImageList *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageList" );
9659 RETVAL = THIS->Replace( index, *( bitmap ) );
9660 ST(0) = boolSV(RETVAL);
9668 XS(XS_Wx__ImageList_ReplaceIcon); /* prototype to pass -Wmissing-prototypes */
9669 XS(XS_Wx__ImageList_ReplaceIcon)
9677 croak_xs_usage(cv, "THIS, index, icon");
9679 int index = (int)SvIV(ST(1));
9680 wxIcon* icon = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Icon" );
9681 wxImageList * THIS = (wxImageList *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageList" );
9683 RETVAL = THIS->Replace( index, *( icon ) );
9684 ST(0) = boolSV(RETVAL);
9690 #if WXPERL_W_VERSION_GE( 2, 5, 4 )
9691 #define XSubPPtmpAACR 1
9694 XS(XS_Wx__ImageList_GetBitmap); /* prototype to pass -Wmissing-prototypes */
9695 XS(XS_Wx__ImageList_GetBitmap)
9703 croak_xs_usage(cv, "THIS, index");
9705 int index = (int)SvIV(ST(1));
9706 wxImageList * THIS = (wxImageList *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageList" );
9708 RETVAL = new wxBitmap( THIS->GetBitmap( index ) );
9709 ST(0) = sv_newmortal();
9710 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
9711 wxPli_thread_sv_register( aTHX_ "Wx::Bitmap", RETVAL, ST(0) );
9718 XS(XS_Wx__ImageList_GetIcon); /* prototype to pass -Wmissing-prototypes */
9719 XS(XS_Wx__ImageList_GetIcon)
9727 croak_xs_usage(cv, "THIS, index");
9729 int index = (int)SvIV(ST(1));
9730 wxImageList * THIS = (wxImageList *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageList" );
9732 RETVAL = new wxIcon( THIS->GetIcon( index ) );
9733 ST(0) = sv_newmortal();
9734 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
9735 wxPli_thread_sv_register( aTHX_ "Wx::Icon", RETVAL, ST(0) );
9743 XS(XS_Wx__ImageList_CLONE); /* prototype to pass -Wmissing-prototypes */
9744 XS(XS_Wx__ImageList_CLONE)
9752 croak_xs_usage(cv, "CLASS");
9754 char * CLASS = (char *)SvPV_nolen(ST(0));
9755 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
9761 XS(XS_Wx__ImageList_DESTROY); /* prototype to pass -Wmissing-prototypes */
9762 XS(XS_Wx__ImageList_DESTROY)
9770 croak_xs_usage(cv, "THIS");
9772 wxImageList* THIS = (wxImageList *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageList" );
9773 wxPli_thread_sv_unregister( aTHX_ "Wx::ImageList", THIS, ST(0) );
9774 if( wxPli_object_is_deleteable( aTHX_ ST(0) ) )
9781 XS(XS_Wx__ImageList_Add); /* prototype to pass -Wmissing-prototypes */
9782 XS(XS_Wx__ImageList_Add)
9790 croak_xs_usage(cv, "THIS, ...");
9791 PERL_UNUSED_VAR(ax); /* -Wall */
9794 wxImageList * THIS = (wxImageList *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageList" );
9796 MATCH_REDISP( wxPliOvl_wbmp_wcol, AddWithColourMask )
9797 MATCH_REDISP( wxPliOvl_wico, AddIcon )
9798 MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wbmp_wbmp, AddBitmap, 1 )
9799 END_OVERLOAD( Wx::ImageList::Add )
9806 XS(XS_Wx__ImageList_GetSize); /* prototype to pass -Wmissing-prototypes */
9807 XS(XS_Wx__ImageList_GetSize)
9815 croak_xs_usage(cv, "THIS, index");
9816 PERL_UNUSED_VAR(ax); /* -Wall */
9819 int index = (int)SvIV(ST(1));
9823 wxImageList * THIS = (wxImageList *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageList" );
9824 result = THIS->GetSize( index, width, height );
9826 PUSHs( sv_2mortal( newSViv( result ) ) );
9827 PUSHs( sv_2mortal( newSViv( width ) ) );
9828 PUSHs( sv_2mortal( newSViv( height ) ) );
9835 XS(XS_Wx__ImageList_Replace); /* prototype to pass -Wmissing-prototypes */
9836 XS(XS_Wx__ImageList_Replace)
9844 croak_xs_usage(cv, "THIS, ...");
9845 PERL_UNUSED_VAR(ax); /* -Wall */
9848 wxImageList * THIS = (wxImageList *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ImageList" );
9850 MATCH_REDISP( wxPliOvl_n_wico, ReplaceIcon )
9851 MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_n_wbmp_wbmp, ReplaceBitmap, 2 )
9852 END_OVERLOAD( Wx::ImageList::Replace )
9859 /* INCLUDE: Returning to 'XS/Font.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/ImageList.xs |' */
9861 #include <wx/fontutil.h>
9864 XS(XS_Wx__NativeFontInfo_new); /* prototype to pass -Wmissing-prototypes */
9865 XS(XS_Wx__NativeFontInfo_new)
9873 croak_xs_usage(cv, "CLASS");
9875 char * CLASS = (char *)SvPV_nolen(ST(0));
9876 wxNativeFontInfo * RETVAL;
9878 RETVAL = new wxNativeFontInfo();
9879 ST(0) = sv_newmortal();
9880 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::NativeFontInfo" );
9881 wxPli_thread_sv_register( aTHX_ "Wx::NativeFontInfo", RETVAL, ST(0) );
9888 XS(XS_Wx__NativeFontInfo_CLONE); /* prototype to pass -Wmissing-prototypes */
9889 XS(XS_Wx__NativeFontInfo_CLONE)
9897 croak_xs_usage(cv, "CLASS");
9899 char * CLASS = (char *)SvPV_nolen(ST(0));
9900 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
9906 XS(XS_Wx__NativeFontInfo_DESTROY); /* prototype to pass -Wmissing-prototypes */
9907 XS(XS_Wx__NativeFontInfo_DESTROY)
9915 croak_xs_usage(cv, "THIS");
9917 wxNativeFontInfo * THIS = (wxNativeFontInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NativeFontInfo" );
9918 wxPli_thread_sv_unregister( aTHX_ "Wx::NativeFontInfo", THIS, ST(0) );
9925 XS(XS_Wx__NativeFontInfo_FromString); /* prototype to pass -Wmissing-prototypes */
9926 XS(XS_Wx__NativeFontInfo_FromString)
9934 croak_xs_usage(cv, "THIS, string");
9937 wxNativeFontInfo * THIS = (wxNativeFontInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NativeFontInfo" );
9940 WXSTRING_INPUT( string, wxString, ST(1) );
9942 RETVAL = THIS->FromString(string);
9943 ST(0) = boolSV(RETVAL);
9950 XS(XS_Wx__NativeFontInfo_ToString); /* prototype to pass -Wmissing-prototypes */
9951 XS(XS_Wx__NativeFontInfo_ToString)
9959 croak_xs_usage(cv, "THIS");
9961 wxNativeFontInfo * THIS = (wxNativeFontInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NativeFontInfo" );
9964 RETVAL = THIS->ToString();
9965 ST(0) = sv_newmortal();
9966 WXSTRING_OUTPUT( RETVAL, ST(0) );
9973 XS(XS_Wx__NativeFontInfo_FromUserString); /* prototype to pass -Wmissing-prototypes */
9974 XS(XS_Wx__NativeFontInfo_FromUserString)
9982 croak_xs_usage(cv, "THIS, string");
9985 wxNativeFontInfo * THIS = (wxNativeFontInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NativeFontInfo" );
9988 WXSTRING_INPUT( string, wxString, ST(1) );
9990 RETVAL = THIS->FromUserString(string);
9991 ST(0) = boolSV(RETVAL);
9998 XS(XS_Wx__NativeFontInfo_ToUserString); /* prototype to pass -Wmissing-prototypes */
9999 XS(XS_Wx__NativeFontInfo_ToUserString)
10007 croak_xs_usage(cv, "THIS");
10009 wxNativeFontInfo * THIS = (wxNativeFontInfo *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NativeFontInfo" );
10012 RETVAL = THIS->ToUserString();
10013 ST(0) = sv_newmortal();
10014 WXSTRING_OUTPUT( RETVAL, ST(0) );
10021 XS(XS_Wx__Font_new); /* prototype to pass -Wmissing-prototypes */
10022 XS(XS_Wx__Font_new)
10030 croak_xs_usage(cv, "CLASS, ...");
10031 PERL_UNUSED_VAR(ax); /* -Wall */
10034 char * CLASS = (char *)SvPV_nolen(ST(0));
10036 MATCH_REDISP( wxPliOvl_wfon, newFont )
10037 #if defined(__WXMSW__) && WXPERL_W_VERSION_GE( 2, 5, 3 )
10038 MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wsiz_n_n_n_b_s_n, newSize, 4 )
10040 MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_n_n_n_n_b_s_n, newLong, 4 )
10041 MATCH_REDISP( wxPliOvl_s, newNativeInfo )
10042 END_OVERLOAD( Wx::Font::new )
10049 XS(XS_Wx__Font_newNativeInfo); /* prototype to pass -Wmissing-prototypes */
10050 XS(XS_Wx__Font_newNativeInfo)
10058 croak_xs_usage(cv, "CLASS, info");
10064 WXSTRING_INPUT( info, wxString, ST(1) );
10065 #if defined(__WXMOTIF__) || defined(__WXX11__)
10066 wxNativeFontInfo fontinfo;
10067 fontinfo.FromString( info );
10068 RETVAL = new wxFont( fontinfo );
10070 RETVAL = new wxFont( info );
10072 ST(0) = sv_newmortal();
10073 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
10074 wxPli_thread_sv_register( aTHX_ "Wx::Font", RETVAL, ST(0) );
10081 XS(XS_Wx__Font_newFont); /* prototype to pass -Wmissing-prototypes */
10082 XS(XS_Wx__Font_newFont)
10090 croak_xs_usage(cv, "CLASS, font");
10093 wxFont* font = (wxFont *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Font" );
10095 RETVAL = new wxFont( *font );
10096 ST(0) = sv_newmortal();
10097 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
10098 wxPli_thread_sv_register( aTHX_ "Wx::Font", RETVAL, ST(0) );
10105 XS(XS_Wx__Font_newLong); /* prototype to pass -Wmissing-prototypes */
10106 XS(XS_Wx__Font_newLong)
10113 if (items < 5 || items > 8)
10114 croak_xs_usage(cv, "CLASS, pointsize, family, style, weight, underline = false, faceName = wxEmptyString, encoding = wxFONTENCODING_DEFAULT");
10117 int pointsize = (int)SvIV(ST(1));
10118 int family = (int)SvIV(ST(2));
10119 int style = (int)SvIV(ST(3));
10120 int weight = (int)SvIV(ST(4));
10123 wxFontEncoding encoding;
10129 underline = (bool)SvTRUE(ST(5));
10133 faceName = wxEmptyString;
10135 WXSTRING_INPUT( faceName, wxString, ST(6) );
10139 encoding = wxFONTENCODING_DEFAULT;
10141 encoding = (wxFontEncoding)SvIV(ST(7));
10143 RETVAL = new wxFont( pointsize, family, style, weight, underline,
10144 faceName, encoding );
10145 ST(0) = sv_newmortal();
10146 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
10147 wxPli_thread_sv_register( aTHX_ "Wx::Font", RETVAL, ST(0) );
10153 #if defined(__WXMSW__) && WXPERL_W_VERSION_GE( 2, 5, 3 )
10154 #define XSubPPtmpAACS 1
10157 XS(XS_Wx__Font_newSize); /* prototype to pass -Wmissing-prototypes */
10158 XS(XS_Wx__Font_newSize)
10165 if (items < 5 || items > 8)
10166 croak_xs_usage(cv, "CLASS, size, family, style, weight, underline = false, faceName = wxEmptyString, encoding = wxFONTENCODING_DEFAULT");
10169 wxSize size = wxPli_sv_2_wxsize( aTHX_ ST(1) );
10170 int family = (int)SvIV(ST(2));
10171 int style = (int)SvIV(ST(3));
10172 int weight = (int)SvIV(ST(4));
10175 wxFontEncoding encoding;
10181 underline = (bool)SvTRUE(ST(5));
10185 faceName = wxEmptyString;
10187 WXSTRING_INPUT( faceName, wxString, ST(6) );
10191 encoding = wxFONTENCODING_DEFAULT;
10193 encoding = (wxFontEncoding)SvIV(ST(7));
10195 RETVAL = new wxFont( size, family, style, weight, underline, faceName, encoding );
10196 ST(0) = sv_newmortal();
10197 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
10198 wxPli_thread_sv_register( aTHX_ "Wx::Font", RETVAL, ST(0) );
10206 XS(XS_Wx__Font_New); /* prototype to pass -Wmissing-prototypes */
10207 XS(XS_Wx__Font_New)
10214 PERL_UNUSED_VAR(cv); /* -W */
10215 PERL_UNUSED_VAR(ax); /* -Wall */
10219 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
10220 MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wsiz_n_n_n_b_s_n, NewSize, 4 )
10221 MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wsiz_n_n_s_n, NewSizeFlags, 2 )
10223 MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_n_n_n_n_b_s_n, NewPoint, 4 )
10224 MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_n_n_n_s_n, NewPointFlags, 2 )
10225 END_OVERLOAD( Wx::Font::New )
10232 XS(XS_Wx__Font_NewPoint); /* prototype to pass -Wmissing-prototypes */
10233 XS(XS_Wx__Font_NewPoint)
10240 if (items < 5 || items > 8)
10241 croak_xs_usage(cv, "CLASS, pointsize, family, style, weight, underline = false, faceName = wxEmptyString, encoding = wxFONTENCODING_DEFAULT");
10244 int pointsize = (int)SvIV(ST(1));
10245 wxFontFamily family = (wxFontFamily)SvIV(ST(2));
10246 int style = (int)SvIV(ST(3));
10247 int weight = (int)SvIV(ST(4));
10250 wxFontEncoding encoding;
10256 underline = (bool)SvTRUE(ST(5));
10260 faceName = wxEmptyString;
10262 WXSTRING_INPUT( faceName, wxString, ST(6) );
10266 encoding = wxFONTENCODING_DEFAULT;
10268 encoding = (wxFontEncoding)SvIV(ST(7));
10270 RETVAL = wxFont::New( pointsize, family, style, weight, underline,
10271 faceName, encoding );
10272 ST(0) = sv_newmortal();
10273 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
10274 wxPli_thread_sv_register( aTHX_ "Wx::Font", RETVAL, ST(0) );
10281 XS(XS_Wx__Font_NewPointFlags); /* prototype to pass -Wmissing-prototypes */
10282 XS(XS_Wx__Font_NewPointFlags)
10289 if (items < 3 || items > 6)
10290 croak_xs_usage(cv, "CLASS, pointsize, family, flags = wxFONTFLAG_DEFAULT, faceName = wxEmptyString, encoding = wxFONTENCODING_DEFAULT");
10293 int pointsize = (int)SvIV(ST(1));
10294 wxFontFamily family = (wxFontFamily)SvIV(ST(2));
10297 wxFontEncoding encoding;
10301 flags = wxFONTFLAG_DEFAULT;
10303 flags = (int)SvIV(ST(3));
10307 faceName = wxEmptyString;
10309 WXSTRING_INPUT( faceName, wxString, ST(4) );
10313 encoding = wxFONTENCODING_DEFAULT;
10315 encoding = (wxFontEncoding)SvIV(ST(5));
10317 RETVAL = wxFont::New( pointsize, family, flags, faceName, encoding );
10318 ST(0) = sv_newmortal();
10319 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
10320 wxPli_thread_sv_register( aTHX_ "Wx::Font", RETVAL, ST(0) );
10326 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
10327 #define XSubPPtmpAACT 1
10330 XS(XS_Wx__Font_NewSize); /* prototype to pass -Wmissing-prototypes */
10331 XS(XS_Wx__Font_NewSize)
10338 if (items < 5 || items > 8)
10339 croak_xs_usage(cv, "CLASS, size, family, style, weight, underline = false, faceName = wxEmptyString, encoding = wxFONTENCODING_DEFAULT");
10342 wxSize size = wxPli_sv_2_wxsize( aTHX_ ST(1) );
10343 wxFontFamily family = (wxFontFamily)SvIV(ST(2));
10344 int style = (int)SvIV(ST(3));
10345 int weight = (int)SvIV(ST(4));
10348 wxFontEncoding encoding;
10354 underline = (bool)SvTRUE(ST(5));
10358 faceName = wxEmptyString;
10360 WXSTRING_INPUT( faceName, wxString, ST(6) );
10364 encoding = wxFONTENCODING_DEFAULT;
10366 encoding = (wxFontEncoding)SvIV(ST(7));
10368 RETVAL = wxFont::New( size, family, style, weight, underline, faceName, encoding );
10369 ST(0) = sv_newmortal();
10370 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
10371 wxPli_thread_sv_register( aTHX_ "Wx::Font", RETVAL, ST(0) );
10378 XS(XS_Wx__Font_NewSizeFlags); /* prototype to pass -Wmissing-prototypes */
10379 XS(XS_Wx__Font_NewSizeFlags)
10386 if (items < 3 || items > 6)
10387 croak_xs_usage(cv, "CLASS, size, family, flags = wxFONTFLAG_DEFAULT, faceName = wxEmptyString, encoding = wxFONTENCODING_DEFAULT");
10390 wxSize size = wxPli_sv_2_wxsize( aTHX_ ST(1) );
10391 wxFontFamily family = (wxFontFamily)SvIV(ST(2));
10394 wxFontEncoding encoding;
10398 flags = wxFONTFLAG_DEFAULT;
10400 flags = (int)SvIV(ST(3));
10404 faceName = wxEmptyString;
10406 WXSTRING_INPUT( faceName, wxString, ST(4) );
10410 encoding = wxFONTENCODING_DEFAULT;
10412 encoding = (wxFontEncoding)SvIV(ST(5));
10414 RETVAL = wxFont::New( size, family, flags, faceName, encoding );
10415 ST(0) = sv_newmortal();
10416 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
10417 wxPli_thread_sv_register( aTHX_ "Wx::Font", RETVAL, ST(0) );
10425 XS(XS_Wx__Font_CLONE); /* prototype to pass -Wmissing-prototypes */
10426 XS(XS_Wx__Font_CLONE)
10434 croak_xs_usage(cv, "CLASS");
10436 char * CLASS = (char *)SvPV_nolen(ST(0));
10437 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
10443 XS(XS_Wx__Font_DESTROY); /* prototype to pass -Wmissing-prototypes */
10444 XS(XS_Wx__Font_DESTROY)
10452 croak_xs_usage(cv, "THIS");
10454 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10455 wxPli_thread_sv_unregister( aTHX_ "Wx::Font", THIS, ST(0) );
10462 XS(XS_Wx__Font_font_spaceship); /* prototype to pass -Wmissing-prototypes */
10463 XS(XS_Wx__Font_font_spaceship)
10471 croak_xs_usage(cv, "fnt1, fnt2, ...");
10477 // this is not a proper spaceship method
10478 // it just allows autogeneration of != and ==
10479 // anyway, comparing fontss is just useless
10481 if( SvROK( fnt1 ) && SvROK( fnt2 ) &&
10482 sv_derived_from( fnt1, "Wx::Font" ) &&
10483 sv_derived_from( fnt2, "Wx::Font" ) )
10485 wxFont* font1 = (wxFont*)wxPli_sv_2_object( aTHX_ fnt1, "Wx::Font" );
10486 wxFont* font2 = (wxFont*)wxPli_sv_2_object( aTHX_ fnt2, "Wx::Font" );
10488 RETVAL = *font1 == *font2 ? 0 : 1;
10492 XSprePUSH; PUSHi((IV)RETVAL);
10498 XS(XS_Wx__Font_GetDefaultEncoding); /* prototype to pass -Wmissing-prototypes */
10499 XS(XS_Wx__Font_GetDefaultEncoding)
10507 croak_xs_usage(cv, "");
10509 wxFontEncoding RETVAL;
10511 RETVAL = wxFont::GetDefaultEncoding();
10512 XSprePUSH; PUSHi((IV)RETVAL);
10518 XS(XS_Wx__Font_GetFaceName); /* prototype to pass -Wmissing-prototypes */
10519 XS(XS_Wx__Font_GetFaceName)
10527 croak_xs_usage(cv, "THIS");
10529 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10532 RETVAL = THIS->GetFaceName();
10533 ST(0) = sv_newmortal();
10534 WXSTRING_OUTPUT( RETVAL, ST(0) );
10541 XS(XS_Wx__Font_GetFamily); /* prototype to pass -Wmissing-prototypes */
10542 XS(XS_Wx__Font_GetFamily)
10550 croak_xs_usage(cv, "THIS");
10552 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10556 RETVAL = THIS->GetFamily();
10557 XSprePUSH; PUSHi((IV)RETVAL);
10562 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
10563 #define XSubPPtmpAACU 1
10566 XS(XS_Wx__Font_GetNativeFontInfo); /* prototype to pass -Wmissing-prototypes */
10567 XS(XS_Wx__Font_GetNativeFontInfo)
10575 croak_xs_usage(cv, "THIS");
10577 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10578 wxNativeFontInfo * RETVAL;
10579 RETVAL = new wxNativeFontInfo( *(THIS->GetNativeFontInfo()) );
10580 ST(0) = sv_newmortal();
10581 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::NativeFontInfo" );
10582 wxPli_thread_sv_register( aTHX_ "Wx::NativeFontInfo", RETVAL, ST(0) );
10589 #define XSubPPtmpAACV 1
10592 XS(XS_Wx__Font_GetNativeFontInfo); /* prototype to pass -Wmissing-prototypes */
10593 XS(XS_Wx__Font_GetNativeFontInfo)
10601 croak_xs_usage(cv, "THIS");
10603 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10604 wxNativeFontInfo * RETVAL;
10606 RETVAL = THIS->GetNativeFontInfo();
10607 ST(0) = sv_newmortal();
10608 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::NativeFontInfo" );
10609 wxPli_thread_sv_register( aTHX_ "Wx::NativeFontInfo", RETVAL, ST(0) );
10617 XS(XS_Wx__Font_SetNativeFontInfoUserDesc); /* prototype to pass -Wmissing-prototypes */
10618 XS(XS_Wx__Font_SetNativeFontInfoUserDesc)
10626 croak_xs_usage(cv, "THIS, info");
10629 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10631 WXSTRING_INPUT( info, wxString, ST(1) );
10633 THIS->SetNativeFontInfoUserDesc(info);
10639 XS(XS_Wx__Font_GetFamilyString); /* prototype to pass -Wmissing-prototypes */
10640 XS(XS_Wx__Font_GetFamilyString)
10648 croak_xs_usage(cv, "THIS");
10650 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10653 RETVAL = THIS->GetFamilyString();
10654 ST(0) = sv_newmortal();
10655 WXSTRING_OUTPUT( RETVAL, ST(0) );
10662 XS(XS_Wx__Font_GetStyleString); /* prototype to pass -Wmissing-prototypes */
10663 XS(XS_Wx__Font_GetStyleString)
10671 croak_xs_usage(cv, "THIS");
10673 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10676 RETVAL = THIS->GetStyleString();
10677 ST(0) = sv_newmortal();
10678 WXSTRING_OUTPUT( RETVAL, ST(0) );
10685 XS(XS_Wx__Font_GetWeightString); /* prototype to pass -Wmissing-prototypes */
10686 XS(XS_Wx__Font_GetWeightString)
10694 croak_xs_usage(cv, "THIS");
10696 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10699 RETVAL = THIS->GetWeightString();
10700 ST(0) = sv_newmortal();
10701 WXSTRING_OUTPUT( RETVAL, ST(0) );
10708 XS(XS_Wx__Font_GetNativeFontInfoDesc); /* prototype to pass -Wmissing-prototypes */
10709 XS(XS_Wx__Font_GetNativeFontInfoDesc)
10717 croak_xs_usage(cv, "THIS");
10719 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10722 RETVAL = THIS->GetNativeFontInfoDesc();
10723 ST(0) = sv_newmortal();
10724 WXSTRING_OUTPUT( RETVAL, ST(0) );
10731 XS(XS_Wx__Font_GetNativeFontInfoUserDesc); /* prototype to pass -Wmissing-prototypes */
10732 XS(XS_Wx__Font_GetNativeFontInfoUserDesc)
10740 croak_xs_usage(cv, "THIS");
10742 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10745 RETVAL = THIS->GetNativeFontInfoUserDesc();
10746 ST(0) = sv_newmortal();
10747 WXSTRING_OUTPUT( RETVAL, ST(0) );
10753 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
10754 #define XSubPPtmpAACW 1
10757 XS(XS_Wx__Font_GetPixelSize); /* prototype to pass -Wmissing-prototypes */
10758 XS(XS_Wx__Font_GetPixelSize)
10766 croak_xs_usage(cv, "THIS");
10768 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10770 RETVAL = new wxSize( THIS->GetPixelSize() );
10771 ST(0) = sv_newmortal();
10772 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Size" );
10773 wxPli_thread_sv_register( aTHX_ "Wx::Size", RETVAL, ST(0) );
10781 XS(XS_Wx__Font_GetEncoding); /* prototype to pass -Wmissing-prototypes */
10782 XS(XS_Wx__Font_GetEncoding)
10790 croak_xs_usage(cv, "THIS");
10792 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10793 wxFontEncoding RETVAL;
10796 RETVAL = THIS->GetEncoding();
10797 XSprePUSH; PUSHi((IV)RETVAL);
10803 XS(XS_Wx__Font_GetPointSize); /* prototype to pass -Wmissing-prototypes */
10804 XS(XS_Wx__Font_GetPointSize)
10812 croak_xs_usage(cv, "THIS");
10814 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10818 RETVAL = THIS->GetPointSize();
10819 XSprePUSH; PUSHi((IV)RETVAL);
10825 XS(XS_Wx__Font_GetStyle); /* prototype to pass -Wmissing-prototypes */
10826 XS(XS_Wx__Font_GetStyle)
10834 croak_xs_usage(cv, "THIS");
10836 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10840 RETVAL = THIS->GetStyle();
10841 XSprePUSH; PUSHi((IV)RETVAL);
10847 XS(XS_Wx__Font_GetUnderlined); /* prototype to pass -Wmissing-prototypes */
10848 XS(XS_Wx__Font_GetUnderlined)
10856 croak_xs_usage(cv, "THIS");
10858 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10861 RETVAL = THIS->GetUnderlined();
10862 ST(0) = boolSV(RETVAL);
10869 XS(XS_Wx__Font_GetWeight); /* prototype to pass -Wmissing-prototypes */
10870 XS(XS_Wx__Font_GetWeight)
10878 croak_xs_usage(cv, "THIS");
10880 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10884 RETVAL = THIS->GetWeight();
10885 XSprePUSH; PUSHi((IV)RETVAL);
10891 XS(XS_Wx__Font_IsFixedWidth); /* prototype to pass -Wmissing-prototypes */
10892 XS(XS_Wx__Font_IsFixedWidth)
10900 croak_xs_usage(cv, "THIS");
10902 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10905 RETVAL = THIS->IsFixedWidth();
10906 ST(0) = boolSV(RETVAL);
10913 XS(XS_Wx__Font_Ok); /* prototype to pass -Wmissing-prototypes */
10922 croak_xs_usage(cv, "THIS");
10924 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10927 RETVAL = THIS->Ok();
10928 ST(0) = boolSV(RETVAL);
10934 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
10935 #define XSubPPtmpAACX 1
10938 XS(XS_Wx__Font_IsOk); /* prototype to pass -Wmissing-prototypes */
10939 XS(XS_Wx__Font_IsOk)
10947 croak_xs_usage(cv, "THIS");
10949 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10952 RETVAL = THIS->IsOk();
10953 ST(0) = boolSV(RETVAL);
10961 XS(XS_Wx__Font_SetDefaultEncoding); /* prototype to pass -Wmissing-prototypes */
10962 XS(XS_Wx__Font_SetDefaultEncoding)
10970 croak_xs_usage(cv, "encoding");
10972 wxFontEncoding encoding = (wxFontEncoding)SvIV(ST(0));
10973 wxFont::SetDefaultEncoding( encoding );
10978 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
10979 #define XSubPPtmpAACY 1
10982 XS(XS_Wx__Font_SetFaceName); /* prototype to pass -Wmissing-prototypes */
10983 XS(XS_Wx__Font_SetFaceName)
10991 croak_xs_usage(cv, "THIS, faceName");
10994 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
10997 WXSTRING_INPUT( faceName, wxString, ST(1) );
10999 RETVAL = THIS->SetFaceName(faceName);
11000 ST(0) = boolSV(RETVAL);
11007 #define XSubPPtmpAACZ 1
11010 XS(XS_Wx__Font_SetFaceName); /* prototype to pass -Wmissing-prototypes */
11011 XS(XS_Wx__Font_SetFaceName)
11019 croak_xs_usage(cv, "THIS, faceName");
11022 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
11024 WXSTRING_INPUT( faceName, wxString, ST(1) );
11026 THIS->SetFaceName(faceName);
11033 XS(XS_Wx__Font_SetEncoding); /* prototype to pass -Wmissing-prototypes */
11034 XS(XS_Wx__Font_SetEncoding)
11042 croak_xs_usage(cv, "THIS, encoding");
11044 wxFontEncoding encoding = (wxFontEncoding)SvIV(ST(1));
11045 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
11047 THIS->SetEncoding(encoding);
11053 XS(XS_Wx__Font_SetFamily); /* prototype to pass -Wmissing-prototypes */
11054 XS(XS_Wx__Font_SetFamily)
11062 croak_xs_usage(cv, "THIS, family");
11064 int family = (int)SvIV(ST(1));
11065 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
11067 THIS->SetFamily(family);
11073 XS(XS_Wx__Font_SetNativeFontInfo); /* prototype to pass -Wmissing-prototypes */
11074 XS(XS_Wx__Font_SetNativeFontInfo)
11082 croak_xs_usage(cv, "THIS, info");
11085 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
11087 WXSTRING_INPUT( info, wxString, ST(1) );
11088 THIS->SetNativeFontInfo( info );
11093 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
11094 #define XSubPPtmpAADA 1
11097 XS(XS_Wx__Font_SetPixelSize); /* prototype to pass -Wmissing-prototypes */
11098 XS(XS_Wx__Font_SetPixelSize)
11106 croak_xs_usage(cv, "THIS, pixelsize");
11108 wxSize pixelsize = wxPli_sv_2_wxsize( aTHX_ ST(1) );
11109 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
11111 THIS->SetPixelSize(pixelsize);
11117 XS(XS_Wx__Font_IsUsingSizeInPixels); /* prototype to pass -Wmissing-prototypes */
11118 XS(XS_Wx__Font_IsUsingSizeInPixels)
11126 croak_xs_usage(cv, "THIS");
11128 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
11131 RETVAL = THIS->IsUsingSizeInPixels();
11132 ST(0) = boolSV(RETVAL);
11140 XS(XS_Wx__Font_SetPointSize); /* prototype to pass -Wmissing-prototypes */
11141 XS(XS_Wx__Font_SetPointSize)
11149 croak_xs_usage(cv, "THIS, pointsize");
11151 int pointsize = (int)SvIV(ST(1));
11152 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
11154 THIS->SetPointSize(pointsize);
11160 XS(XS_Wx__Font_SetStyle); /* prototype to pass -Wmissing-prototypes */
11161 XS(XS_Wx__Font_SetStyle)
11169 croak_xs_usage(cv, "THIS, style");
11171 int style = (int)SvIV(ST(1));
11172 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
11174 THIS->SetStyle(style);
11180 XS(XS_Wx__Font_SetUnderlined); /* prototype to pass -Wmissing-prototypes */
11181 XS(XS_Wx__Font_SetUnderlined)
11189 croak_xs_usage(cv, "THIS, underlined");
11191 bool underlined = (bool)SvTRUE(ST(1));
11192 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
11194 THIS->SetUnderlined(underlined);
11200 XS(XS_Wx__Font_SetWeight); /* prototype to pass -Wmissing-prototypes */
11201 XS(XS_Wx__Font_SetWeight)
11209 croak_xs_usage(cv, "THIS, weight");
11211 int weight = (int)SvIV(ST(1));
11212 wxFont * THIS = (wxFont *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Font" );
11214 THIS->SetWeight(weight);
11220 /* INCLUDE: Returning to 'XS/ColourDatabase.xs' from 'XS/Font.xs' */
11223 XS(XS_Wx__ColourDatabase_AddColour); /* prototype to pass -Wmissing-prototypes */
11224 XS(XS_Wx__ColourDatabase_AddColour)
11232 croak_xs_usage(cv, "colourname, colour");
11234 wxString colourname;
11235 wxColour* colour = (wxColour *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Colour" );
11237 WXSTRING_INPUT( colourname, wxString, ST(0) );
11238 wxTheColourDatabase->AddColour( colourname, *colour );
11244 XS(XS_Wx__ColourDatabase_Find); /* prototype to pass -Wmissing-prototypes */
11245 XS(XS_Wx__ColourDatabase_Find)
11253 croak_xs_usage(cv, "colourname");
11255 wxString colourname;
11258 WXSTRING_INPUT( colourname, wxString, ST(0) );
11259 RETVAL = new wxColour( wxTheColourDatabase->Find( colourname ) );
11260 ST(0) = sv_newmortal();
11261 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
11262 wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
11269 XS(XS_Wx__ColourDatabase_FindName); /* prototype to pass -Wmissing-prototypes */
11270 XS(XS_Wx__ColourDatabase_FindName)
11278 croak_xs_usage(cv, "colour");
11280 wxColour* colour = (wxColour *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Colour" );
11282 RETVAL = wxTheColourDatabase->FindName( *colour );
11283 ST(0) = sv_newmortal();
11284 WXSTRING_OUTPUT( RETVAL, ST(0) );
11291 /* INCLUDE: Returning to 'XS/Colour.xs' from 'XS/ColourDatabase.xs' */
11294 XS(XS_Wx__Colour_new); /* prototype to pass -Wmissing-prototypes */
11295 XS(XS_Wx__Colour_new)
11303 croak_xs_usage(cv, "CLASS, ...");
11304 PERL_UNUSED_VAR(ax); /* -Wall */
11307 char * CLASS = (char *)SvPV_nolen(ST(0));
11309 MATCH_REDISP( wxPliOvl_n_n_n_n, newRGBA )
11310 MATCH_REDISP( wxPliOvl_n_n_n, newRGB )
11311 MATCH_REDISP( wxPliOvl_s, newName )
11312 END_OVERLOAD( Wx::Colour::new )
11318 #if WXPERL_W_VERSION_GE( 2, 7, 1 )
11319 #define XSubPPtmpAADB 1
11322 XS(XS_Wx__Colour_newRGBA); /* prototype to pass -Wmissing-prototypes */
11323 XS(XS_Wx__Colour_newRGBA)
11330 if (items < 4 || items > 5)
11331 croak_xs_usage(cv, "CLASS, red, green, blue, alpha = wxALPHA_OPAQUE");
11334 unsigned char red = (unsigned char)SvUV(ST(1));
11335 unsigned char green = (unsigned char)SvUV(ST(2));
11336 unsigned char blue = (unsigned char)SvUV(ST(3));
11337 unsigned char alpha;
11341 alpha = wxALPHA_OPAQUE;
11343 alpha = (unsigned char)SvUV(ST(4));
11345 RETVAL = new wxColour( red, green, blue, alpha );
11346 ST(0) = sv_newmortal();
11347 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
11348 wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
11356 XS(XS_Wx__Colour_newRGB); /* prototype to pass -Wmissing-prototypes */
11357 XS(XS_Wx__Colour_newRGB)
11365 croak_xs_usage(cv, "CLASS, red, green, blue");
11368 unsigned char red = (unsigned char)SvUV(ST(1));
11369 unsigned char green = (unsigned char)SvUV(ST(2));
11370 unsigned char blue = (unsigned char)SvUV(ST(3));
11372 RETVAL = new wxColour( red, green, blue );
11373 ST(0) = sv_newmortal();
11374 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
11375 wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
11382 XS(XS_Wx__Colour_newName); /* prototype to pass -Wmissing-prototypes */
11383 XS(XS_Wx__Colour_newName)
11391 croak_xs_usage(cv, "CLASS, name");
11397 WXSTRING_INPUT( name, wxString, ST(1) );
11398 RETVAL = new wxColour( name );
11399 ST(0) = sv_newmortal();
11400 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Colour" );
11401 wxPli_thread_sv_register( aTHX_ "Wx::Colour", RETVAL, ST(0) );
11408 XS(XS_Wx__Colour_CLONE); /* prototype to pass -Wmissing-prototypes */
11409 XS(XS_Wx__Colour_CLONE)
11417 croak_xs_usage(cv, "CLASS");
11419 char * CLASS = (char *)SvPV_nolen(ST(0));
11420 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
11426 XS(XS_Wx__Colour_DESTROY); /* prototype to pass -Wmissing-prototypes */
11427 XS(XS_Wx__Colour_DESTROY)
11435 croak_xs_usage(cv, "THIS");
11437 wxColour * THIS = (wxColour *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Colour" );
11438 wxPli_thread_sv_unregister( aTHX_ "Wx::Colour", THIS, ST(0) );
11445 XS(XS_Wx__Colour_Blue); /* prototype to pass -Wmissing-prototypes */
11446 XS(XS_Wx__Colour_Blue)
11454 croak_xs_usage(cv, "THIS");
11456 wxColour * THIS = (wxColour *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Colour" );
11457 unsigned char RETVAL;
11460 RETVAL = THIS->Blue();
11461 XSprePUSH; PUSHu((UV)RETVAL);
11467 XS(XS_Wx__Colour_Green); /* prototype to pass -Wmissing-prototypes */
11468 XS(XS_Wx__Colour_Green)
11476 croak_xs_usage(cv, "THIS");
11478 wxColour * THIS = (wxColour *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Colour" );
11479 unsigned char RETVAL;
11482 RETVAL = THIS->Green();
11483 XSprePUSH; PUSHu((UV)RETVAL);
11489 XS(XS_Wx__Colour_Ok); /* prototype to pass -Wmissing-prototypes */
11490 XS(XS_Wx__Colour_Ok)
11498 croak_xs_usage(cv, "THIS");
11500 wxColour * THIS = (wxColour *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Colour" );
11503 RETVAL = THIS->Ok();
11504 ST(0) = boolSV(RETVAL);
11510 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
11511 #define XSubPPtmpAADC 1
11514 XS(XS_Wx__Colour_IsOk); /* prototype to pass -Wmissing-prototypes */
11515 XS(XS_Wx__Colour_IsOk)
11523 croak_xs_usage(cv, "THIS");
11525 wxColour * THIS = (wxColour *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Colour" );
11528 RETVAL = THIS->IsOk();
11529 ST(0) = boolSV(RETVAL);
11537 XS(XS_Wx__Colour_Red); /* prototype to pass -Wmissing-prototypes */
11538 XS(XS_Wx__Colour_Red)
11546 croak_xs_usage(cv, "THIS");
11548 wxColour * THIS = (wxColour *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Colour" );
11549 unsigned char RETVAL;
11552 RETVAL = THIS->Red();
11553 XSprePUSH; PUSHu((UV)RETVAL);
11558 #if WXPERL_W_VERSION_GE( 2, 7, 1 )
11559 #define XSubPPtmpAADD 1
11562 XS(XS_Wx__Colour_Alpha); /* prototype to pass -Wmissing-prototypes */
11563 XS(XS_Wx__Colour_Alpha)
11571 croak_xs_usage(cv, "THIS");
11573 wxColour * THIS = (wxColour *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Colour" );
11574 unsigned char RETVAL;
11577 RETVAL = THIS->Alpha();
11578 XSprePUSH; PUSHu((UV)RETVAL);
11584 XS(XS_Wx__Colour_Set); /* prototype to pass -Wmissing-prototypes */
11585 XS(XS_Wx__Colour_Set)
11593 croak_xs_usage(cv, "THIS, red, green, blue, alpha");
11595 unsigned char red = (unsigned char)SvUV(ST(1));
11596 unsigned char green = (unsigned char)SvUV(ST(2));
11597 unsigned char blue = (unsigned char)SvUV(ST(3));
11598 unsigned char alpha = (unsigned char)SvUV(ST(4));
11599 wxColour * THIS = (wxColour *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Colour" );
11601 THIS->Set(red, green, blue, alpha);
11607 #define XSubPPtmpAADE 1
11610 XS(XS_Wx__Colour_Set); /* prototype to pass -Wmissing-prototypes */
11611 XS(XS_Wx__Colour_Set)
11619 croak_xs_usage(cv, "THIS, red, green, blue");
11621 unsigned char red = (unsigned char)SvUV(ST(1));
11622 unsigned char green = (unsigned char)SvUV(ST(2));
11623 unsigned char blue = (unsigned char)SvUV(ST(3));
11624 wxColour * THIS = (wxColour *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Colour" );
11626 THIS->Set(red, green, blue);
11632 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
11633 #define XSubPPtmpAADF 1
11636 XS(XS_Wx__Colour_GetAsString); /* prototype to pass -Wmissing-prototypes */
11637 XS(XS_Wx__Colour_GetAsString)
11645 croak_xs_usage(cv, "THIS, flags");
11647 wxColour * THIS = (wxColour *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Colour" );
11649 long flags = (long)SvIV(ST(1));
11651 RETVAL = THIS->GetAsString(flags);
11652 ST(0) = sv_newmortal();
11653 WXSTRING_OUTPUT( RETVAL, ST(0) );
11660 #if !defined(__WXMAC__)
11661 #define XSubPPtmpAADG 1
11664 XS(XS_Wx__Colour_GetPixel); /* prototype to pass -Wmissing-prototypes */
11665 XS(XS_Wx__Colour_GetPixel)
11673 croak_xs_usage(cv, "THIS");
11675 wxColour * THIS = (wxColour *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Colour" );
11679 RETVAL = THIS->GetPixel();
11680 XSprePUSH; PUSHi((IV)RETVAL);
11687 /* INCLUDE: Returning to 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Animation.xsp |' from 'XS/Colour.xs' */
11689 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
11690 #include <wx/animate.h>
11691 #define XSubPPtmpAADH 1
11694 XS(XS_Wx__Animation_new); /* prototype to pass -Wmissing-prototypes */
11695 XS(XS_Wx__Animation_new)
11703 croak_xs_usage(cv, "CLASS");
11705 char * CLASS = (char *)SvPV_nolen(ST(0));
11706 wxAnimation * RETVAL;
11708 RETVAL = new wxAnimation();
11709 ST(0) = sv_newmortal();
11710 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
11711 wxPli_thread_sv_register( aTHX_ "Wx::Animation", RETVAL, ST(0) );
11718 XS(XS_Wx__Animation_CLONE); /* prototype to pass -Wmissing-prototypes */
11719 XS(XS_Wx__Animation_CLONE)
11727 croak_xs_usage(cv, "CLASS");
11729 char * CLASS = (char *)SvPV_nolen(ST(0));
11730 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
11736 XS(XS_Wx__Animation_DESTROY); /* prototype to pass -Wmissing-prototypes */
11737 XS(XS_Wx__Animation_DESTROY)
11745 croak_xs_usage(cv, "THIS");
11747 wxAnimation * THIS = (wxAnimation *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Animation" );
11748 wxPli_thread_sv_unregister( aTHX_ "Wx::Bitmap", THIS, ST(0) );
11755 XS(XS_Wx__Animation_IsOk); /* prototype to pass -Wmissing-prototypes */
11756 XS(XS_Wx__Animation_IsOk)
11764 croak_xs_usage(cv, "THIS");
11766 wxAnimation * THIS = (wxAnimation *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Animation" );
11769 RETVAL = THIS->IsOk();
11770 ST(0) = boolSV(RETVAL);
11777 XS(XS_Wx__Animation_GetDelay); /* prototype to pass -Wmissing-prototypes */
11778 XS(XS_Wx__Animation_GetDelay)
11786 croak_xs_usage(cv, "THIS, frame");
11788 unsigned int frame = (unsigned int)SvUV( ST(1) );
11789 wxAnimation * THIS = (wxAnimation *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Animation" );
11793 RETVAL = THIS->GetDelay(frame);
11794 XSprePUSH; PUSHi((IV)RETVAL);
11800 XS(XS_Wx__Animation_GetFrameCount); /* prototype to pass -Wmissing-prototypes */
11801 XS(XS_Wx__Animation_GetFrameCount)
11809 croak_xs_usage(cv, "THIS");
11811 wxAnimation * THIS = (wxAnimation *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Animation" );
11812 unsigned int RETVAL;
11815 RETVAL = THIS->GetFrameCount();
11816 XSprePUSH; PUSHu((UV)RETVAL );
11822 XS(XS_Wx__Animation_GetFrame); /* prototype to pass -Wmissing-prototypes */
11823 XS(XS_Wx__Animation_GetFrame)
11831 croak_xs_usage(cv, "THIS, frame");
11833 unsigned int frame = (unsigned int)SvUV( ST(1) );
11834 wxAnimation * THIS = (wxAnimation *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Animation" );
11836 RETVAL = new wxImage( THIS->GetFrame( frame ) );
11837 ST(0) = sv_newmortal();
11838 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
11839 wxPli_thread_sv_register( aTHX_ "Wx::Image", RETVAL, ST(0) );
11846 XS(XS_Wx__Animation_GetSize); /* prototype to pass -Wmissing-prototypes */
11847 XS(XS_Wx__Animation_GetSize)
11855 croak_xs_usage(cv, "THIS");
11857 wxAnimation * THIS = (wxAnimation *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Animation" );
11860 RETVAL = THIS->GetSize();
11861 ST(0) = sv_newmortal();
11862 wxPli_non_object_2_sv( aTHX_ ST(0), new wxSize(RETVAL), "Wx::Size" );
11869 XS(XS_Wx__Animation_LoadFile); /* prototype to pass -Wmissing-prototypes */
11870 XS(XS_Wx__Animation_LoadFile)
11877 if (items < 2 || items > 3)
11878 croak_xs_usage(cv, "THIS, name, type = wxANIMATION_TYPE_ANY");
11881 wxAnimationType type;
11882 wxAnimation * THIS = (wxAnimation *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Animation" );
11885 WXSTRING_INPUT( name, wxString, ST(1) );
11888 type = wxANIMATION_TYPE_ANY;
11890 type = (wxAnimationType)SvIV(ST(2));
11893 RETVAL = THIS->LoadFile(name, type);
11894 ST(0) = boolSV(RETVAL);
11901 XS(XS_Wx__Animation_Load); /* prototype to pass -Wmissing-prototypes */
11902 XS(XS_Wx__Animation_Load)
11909 if (items < 2 || items > 3)
11910 croak_xs_usage(cv, "THIS, stream, type = wxANIMATION_TYPE_ANY");
11912 wxPliInputStream stream;
11913 wxAnimationType type;
11914 wxAnimation * THIS = (wxAnimation *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Animation" );
11917 wxPli_sv_2_istream( aTHX_ ST(1), stream );
11920 type = wxANIMATION_TYPE_ANY;
11922 type = (wxAnimationType)SvIV(ST(2));
11925 RETVAL = THIS->Load(stream, type);
11926 ST(0) = boolSV(RETVAL);
11934 /* INCLUDE: Returning to 'GDI.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Animation.xsp |' */
11937 /* INCLUDE: Including 'XS/GraphicsContext.xs' from 'GDI.xs' */
11940 /* INCLUDE: Including 'XS/GraphicsPath.xs' from 'XS/GraphicsContext.xs' */
11943 /* INCLUDE: Including 'XS/GraphicsMatrix.xs' from 'XS/GraphicsPath.xs' */
11946 /* INCLUDE: Including 'XS/GraphicsObject.xs' from 'XS/GraphicsMatrix.xs' */
11949 /* INCLUDE: Including 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/GraphicsRenderer.xsp |' from 'XS/GraphicsObject.xs' */
11951 #if wxUSE_GRAPHICS_CONTEXT
11952 #include <wx/graphics.h>
11953 #define XSubPPtmpAADI 1
11956 XS(XS_Wx__GraphicsRenderer_GetDefaultRenderer); /* prototype to pass -Wmissing-prototypes */
11957 XS(XS_Wx__GraphicsRenderer_GetDefaultRenderer)
11965 croak_xs_usage(cv, "");
11967 wxGraphicsRenderer * RETVAL;
11968 RETVAL = wxGraphicsRenderer::GetDefaultRenderer();
11969 ST(0) = sv_newmortal();
11970 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
11977 XS(XS_Wx__GraphicsRenderer_CreateContext); /* prototype to pass -Wmissing-prototypes */
11978 XS(XS_Wx__GraphicsRenderer_CreateContext)
11985 PERL_UNUSED_VAR(cv); /* -W */
11986 PERL_UNUSED_VAR(ax); /* -Wall */
11990 MATCH_REDISP_FUNCTION( wxPliOvl_wwin, CreateFromWindow )
11991 MATCH_REDISP_FUNCTION( wxPliOvl_wdc, CreateFromDC )
11992 END_OVERLOAD( "Wx::GraphicsRenderer::CreateContext" )
11999 XS(XS_Wx__GraphicsRenderer_CreateFromDC); /* prototype to pass -Wmissing-prototypes */
12000 XS(XS_Wx__GraphicsRenderer_CreateFromDC)
12008 croak_xs_usage(cv, "THIS, dc");
12010 wxWindowDC* dc = (wxWindowDC *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::WindowDC" );
12011 wxGraphicsRenderer * THIS = (wxGraphicsRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsRenderer" );
12012 wxGraphicsContext * RETVAL;
12013 RETVAL = THIS->CreateContext( *( dc ) );
12014 ST(0) = sv_newmortal();
12015 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
12016 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsContext", RETVAL, ST(0) );
12023 XS(XS_Wx__GraphicsRenderer_CreateFromWindow); /* prototype to pass -Wmissing-prototypes */
12024 XS(XS_Wx__GraphicsRenderer_CreateFromWindow)
12032 croak_xs_usage(cv, "THIS, window");
12034 wxWindow* window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
12035 wxGraphicsRenderer * THIS = (wxGraphicsRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsRenderer" );
12036 wxGraphicsContext * RETVAL;
12037 RETVAL = THIS->CreateContext( window );
12038 ST(0) = sv_newmortal();
12039 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
12040 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsContext", RETVAL, ST(0) );
12047 XS(XS_Wx__GraphicsRenderer_CreateMeasuringContext); /* prototype to pass -Wmissing-prototypes */
12048 XS(XS_Wx__GraphicsRenderer_CreateMeasuringContext)
12056 croak_xs_usage(cv, "THIS");
12058 wxGraphicsRenderer * THIS = (wxGraphicsRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsRenderer" );
12059 wxGraphicsContext * RETVAL;
12061 RETVAL = THIS->CreateMeasuringContext();
12062 ST(0) = sv_newmortal();
12063 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
12064 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsContext", RETVAL, ST(0) );
12071 XS(XS_Wx__GraphicsRenderer_CreatePath); /* prototype to pass -Wmissing-prototypes */
12072 XS(XS_Wx__GraphicsRenderer_CreatePath)
12080 croak_xs_usage(cv, "THIS");
12082 wxGraphicsRenderer * THIS = (wxGraphicsRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsRenderer" );
12083 wxGraphicsPath * RETVAL;
12084 RETVAL = new wxGraphicsPath( THIS->CreatePath() );
12085 ST(0) = sv_newmortal();
12086 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
12087 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsPath", RETVAL, ST(0) );
12094 XS(XS_Wx__GraphicsRenderer_CreateMatrix); /* prototype to pass -Wmissing-prototypes */
12095 XS(XS_Wx__GraphicsRenderer_CreateMatrix)
12102 if (items < 1 || items > 7)
12103 croak_xs_usage(cv, "THIS, a = 1.0, b = 0.0, c = 0.0, d = 1.0, tx = 0.0, ty = 0.0");
12111 wxGraphicsRenderer * THIS = (wxGraphicsRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsRenderer" );
12112 wxGraphicsMatrix * RETVAL;
12117 a = (double)SvNV(ST(1));
12123 b = (double)SvNV(ST(2));
12129 c = (double)SvNV(ST(3));
12135 d = (double)SvNV(ST(4));
12141 tx = (double)SvNV(ST(5));
12147 ty = (double)SvNV(ST(6));
12149 RETVAL = new wxGraphicsMatrix( THIS->CreateMatrix( a, b, c, d, tx, ty ) );
12150 ST(0) = sv_newmortal();
12151 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
12152 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsMatrix", RETVAL, ST(0) );
12159 XS(XS_Wx__GraphicsRenderer_CreatePen); /* prototype to pass -Wmissing-prototypes */
12160 XS(XS_Wx__GraphicsRenderer_CreatePen)
12168 croak_xs_usage(cv, "THIS, pen");
12170 wxPen* pen = (wxPen *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Pen" );
12171 wxGraphicsRenderer * THIS = (wxGraphicsRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsRenderer" );
12172 wxGraphicsPen * RETVAL;
12173 RETVAL = new wxGraphicsPen( THIS->CreatePen( *( pen ) ) );
12174 ST(0) = sv_newmortal();
12175 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
12176 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsPen", RETVAL, ST(0) );
12183 XS(XS_Wx__GraphicsRenderer_CreateBrush); /* prototype to pass -Wmissing-prototypes */
12184 XS(XS_Wx__GraphicsRenderer_CreateBrush)
12192 croak_xs_usage(cv, "THIS, brush");
12194 wxBrush* brush = (wxBrush *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Brush" );
12195 wxGraphicsRenderer * THIS = (wxGraphicsRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsRenderer" );
12196 wxGraphicsBrush * RETVAL;
12197 RETVAL = new wxGraphicsBrush( THIS->CreateBrush( *( brush ) ) );
12198 ST(0) = sv_newmortal();
12199 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
12200 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsBrush", RETVAL, ST(0) );
12207 XS(XS_Wx__GraphicsRenderer_CreateLinearGradientBrush); /* prototype to pass -Wmissing-prototypes */
12208 XS(XS_Wx__GraphicsRenderer_CreateLinearGradientBrush)
12216 croak_xs_usage(cv, "THIS, x1, y1, x2, y2, c1, c2");
12218 wxDouble x1 = (double)SvNV(ST(1));
12219 wxDouble y1 = (double)SvNV(ST(2));
12220 wxDouble x2 = (double)SvNV(ST(3));
12221 wxDouble y2 = (double)SvNV(ST(4));
12222 wxColour* c1 = (wxColour *) wxPli_sv_2_object( aTHX_ ST(5), "Wx::Colour" );
12223 wxColour* c2 = (wxColour *) wxPli_sv_2_object( aTHX_ ST(6), "Wx::Colour" );
12224 wxGraphicsRenderer * THIS = (wxGraphicsRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsRenderer" );
12225 wxGraphicsBrush * RETVAL;
12226 RETVAL = new wxGraphicsBrush( THIS->CreateLinearGradientBrush( x1, y1, x2, y2, *( c1 ), *( c2 ) ) );
12227 ST(0) = sv_newmortal();
12228 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
12229 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsBrush", RETVAL, ST(0) );
12236 XS(XS_Wx__GraphicsRenderer_CreateRadialGradientBrush); /* prototype to pass -Wmissing-prototypes */
12237 XS(XS_Wx__GraphicsRenderer_CreateRadialGradientBrush)
12245 croak_xs_usage(cv, "THIS, xo, yo, xc, yc, radius, oColor, cColor");
12247 wxDouble xo = (double)SvNV(ST(1));
12248 wxDouble yo = (double)SvNV(ST(2));
12249 wxDouble xc = (double)SvNV(ST(3));
12250 wxDouble yc = (double)SvNV(ST(4));
12251 wxDouble radius = (double)SvNV(ST(5));
12252 wxColour* oColor = (wxColour *) wxPli_sv_2_object( aTHX_ ST(6), "Wx::Colour" );
12253 wxColour* cColor = (wxColour *) wxPli_sv_2_object( aTHX_ ST(7), "Wx::Colour" );
12254 wxGraphicsRenderer * THIS = (wxGraphicsRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsRenderer" );
12255 wxGraphicsBrush * RETVAL;
12256 RETVAL = new wxGraphicsBrush( THIS->CreateRadialGradientBrush( xo, yo, xc, yc, radius, *( oColor ), *( cColor ) ) );
12257 ST(0) = sv_newmortal();
12258 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
12259 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsBrush", RETVAL, ST(0) );
12265 #define wxBLACKPtr (wxColour*)wxBLACK
12267 XS(XS_Wx__GraphicsRenderer_CreateFont); /* prototype to pass -Wmissing-prototypes */
12268 XS(XS_Wx__GraphicsRenderer_CreateFont)
12275 if (items < 2 || items > 3)
12276 croak_xs_usage(cv, "THIS, font, col = wxBLACKPtr");
12278 wxFont* font = (wxFont *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Font" );
12280 wxGraphicsRenderer * THIS = (wxGraphicsRenderer *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsRenderer" );
12281 wxGraphicsFont * RETVAL;
12286 col = (wxColour *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Colour" );
12288 RETVAL = new wxGraphicsFont( THIS->CreateFont( *( font ), *( col ) ) );
12289 ST(0) = sv_newmortal();
12290 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
12291 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsFont", RETVAL, ST(0) );
12299 /* INCLUDE: Returning to 'XS/GraphicsObject.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/GraphicsRenderer.xsp |' */
12301 #if wxUSE_GRAPHICS_CONTEXT
12302 #include <wx/graphics.h>
12303 #define XSubPPtmpAADJ 1
12306 XS(XS_Wx__GraphicsObject_CLONE); /* prototype to pass -Wmissing-prototypes */
12307 XS(XS_Wx__GraphicsObject_CLONE)
12315 croak_xs_usage(cv, "CLASS");
12317 char * CLASS = (char *)SvPV_nolen(ST(0));
12318 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
12324 XS(XS_Wx__GraphicsObject_DESTROY); /* prototype to pass -Wmissing-prototypes */
12325 XS(XS_Wx__GraphicsObject_DESTROY)
12333 croak_xs_usage(cv, "THIS");
12335 wxGraphicsObject * THIS = (wxGraphicsObject *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsObject" );
12336 wxPli_thread_sv_unregister( aTHX_ wxPli_get_class( aTHX_ ST(0) ),
12344 XS(XS_Wx__GraphicsObject_GetRenderer); /* prototype to pass -Wmissing-prototypes */
12345 XS(XS_Wx__GraphicsObject_GetRenderer)
12353 croak_xs_usage(cv, "THIS");
12355 wxGraphicsObject * THIS = (wxGraphicsObject *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsObject" );
12356 wxGraphicsRenderer * RETVAL;
12358 RETVAL = THIS->GetRenderer();
12359 ST(0) = sv_newmortal();
12360 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
12367 XS(XS_Wx__GraphicsObject_IsNull); /* prototype to pass -Wmissing-prototypes */
12368 XS(XS_Wx__GraphicsObject_IsNull)
12376 croak_xs_usage(cv, "THIS");
12378 wxGraphicsObject * THIS = (wxGraphicsObject *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsObject" );
12381 RETVAL = THIS->IsNull();
12382 ST(0) = boolSV(RETVAL);
12390 /* INCLUDE: Returning to 'XS/GraphicsMatrix.xs' from 'XS/GraphicsObject.xs' */
12392 #if wxUSE_GRAPHICS_CONTEXT
12393 #include <wx/graphics.h>
12394 #define XSubPPtmpAADK 1
12397 XS(XS_Wx__GraphicsMatrix_Concat); /* prototype to pass -Wmissing-prototypes */
12398 XS(XS_Wx__GraphicsMatrix_Concat)
12406 croak_xs_usage(cv, "THIS, t");
12408 wxGraphicsMatrix* t = (wxGraphicsMatrix *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GraphicsMatrix" );
12409 wxGraphicsMatrix * THIS = (wxGraphicsMatrix *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsMatrix" );
12417 XS(XS_Wx__GraphicsMatrix_Get); /* prototype to pass -Wmissing-prototypes */
12418 XS(XS_Wx__GraphicsMatrix_Get)
12426 croak_xs_usage(cv, "THIS");
12427 PERL_UNUSED_VAR(ax); /* -Wall */
12430 wxDouble a, b, c, d, tx, ty;
12431 wxGraphicsMatrix * THIS = (wxGraphicsMatrix *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsMatrix" );
12432 THIS->Get( &a, &b, &c, &d, &tx, &ty );
12434 PUSHs( sv_2mortal( newSVnv( a ) ) );
12435 PUSHs( sv_2mortal( newSVnv( b ) ) );
12436 PUSHs( sv_2mortal( newSVnv( c ) ) );
12437 PUSHs( sv_2mortal( newSVnv( d ) ) );
12438 PUSHs( sv_2mortal( newSVnv( tx ) ) );
12439 PUSHs( sv_2mortal( newSVnv( ty ) ) );
12446 XS(XS_Wx__GraphicsMatrix_Invert); /* prototype to pass -Wmissing-prototypes */
12447 XS(XS_Wx__GraphicsMatrix_Invert)
12455 croak_xs_usage(cv, "THIS");
12457 wxGraphicsMatrix * THIS = (wxGraphicsMatrix *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsMatrix" );
12465 XS(XS_Wx__GraphicsMatrix_IsEqual); /* prototype to pass -Wmissing-prototypes */
12466 XS(XS_Wx__GraphicsMatrix_IsEqual)
12474 croak_xs_usage(cv, "THIS, t");
12476 wxGraphicsMatrix* t = (wxGraphicsMatrix *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GraphicsMatrix" );
12477 wxGraphicsMatrix * THIS = (wxGraphicsMatrix *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsMatrix" );
12480 RETVAL = THIS->IsEqual(*t);
12481 ST(0) = boolSV(RETVAL);
12488 XS(XS_Wx__GraphicsMatrix_IsIdentity); /* prototype to pass -Wmissing-prototypes */
12489 XS(XS_Wx__GraphicsMatrix_IsIdentity)
12497 croak_xs_usage(cv, "THIS");
12499 wxGraphicsMatrix * THIS = (wxGraphicsMatrix *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsMatrix" );
12502 RETVAL = THIS->IsIdentity();
12503 ST(0) = boolSV(RETVAL);
12510 XS(XS_Wx__GraphicsMatrix_Rotate); /* prototype to pass -Wmissing-prototypes */
12511 XS(XS_Wx__GraphicsMatrix_Rotate)
12519 croak_xs_usage(cv, "THIS, angle");
12521 wxDouble angle = (double)SvNV(ST(1));
12522 wxGraphicsMatrix * THIS = (wxGraphicsMatrix *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsMatrix" );
12524 THIS->Rotate(angle);
12530 XS(XS_Wx__GraphicsMatrix_Scale); /* prototype to pass -Wmissing-prototypes */
12531 XS(XS_Wx__GraphicsMatrix_Scale)
12539 croak_xs_usage(cv, "THIS, xScale, yScale");
12541 wxDouble xScale = (double)SvNV(ST(1));
12542 wxDouble yScale = (double)SvNV(ST(2));
12543 wxGraphicsMatrix * THIS = (wxGraphicsMatrix *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsMatrix" );
12545 THIS->Scale(xScale, yScale);
12551 XS(XS_Wx__GraphicsMatrix_Translate); /* prototype to pass -Wmissing-prototypes */
12552 XS(XS_Wx__GraphicsMatrix_Translate)
12560 croak_xs_usage(cv, "THIS, dx, dy");
12562 wxDouble dx = (double)SvNV(ST(1));
12563 wxDouble dy = (double)SvNV(ST(2));
12564 wxGraphicsMatrix * THIS = (wxGraphicsMatrix *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsMatrix" );
12566 THIS->Translate(dx, dy);
12572 XS(XS_Wx__GraphicsMatrix_Set); /* prototype to pass -Wmissing-prototypes */
12573 XS(XS_Wx__GraphicsMatrix_Set)
12581 croak_xs_usage(cv, "THIS, a, b, c, d, tx, ty");
12583 wxDouble a = (double)SvNV(ST(1));
12584 wxDouble b = (double)SvNV(ST(2));
12585 wxDouble c = (double)SvNV(ST(3));
12586 wxDouble d = (double)SvNV(ST(4));
12587 wxDouble tx = (double)SvNV(ST(5));
12588 wxDouble ty = (double)SvNV(ST(6));
12589 wxGraphicsMatrix * THIS = (wxGraphicsMatrix *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsMatrix" );
12591 THIS->Set(a, b, c, d, tx, ty);
12597 XS(XS_Wx__GraphicsMatrix_TransformPoint); /* prototype to pass -Wmissing-prototypes */
12598 XS(XS_Wx__GraphicsMatrix_TransformPoint)
12606 croak_xs_usage(cv, "THIS, x, y");
12607 PERL_UNUSED_VAR(ax); /* -Wall */
12610 wxDouble x = (double)SvNV(ST(1));
12611 wxDouble y = (double)SvNV(ST(2));
12612 wxDouble x_out, y_out;
12613 wxGraphicsMatrix * THIS = (wxGraphicsMatrix *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsMatrix" );
12616 THIS->TransformPoint( &x, &y );
12618 PUSHs( sv_2mortal( newSVnv( x ) ) );
12619 PUSHs( sv_2mortal( newSVnv( y ) ) );
12626 XS(XS_Wx__GraphicsMatrix_TransformDistance); /* prototype to pass -Wmissing-prototypes */
12627 XS(XS_Wx__GraphicsMatrix_TransformDistance)
12635 croak_xs_usage(cv, "THIS, dx, dy");
12636 PERL_UNUSED_VAR(ax); /* -Wall */
12639 wxDouble dx = (double)SvNV(ST(1));
12640 wxDouble dy = (double)SvNV(ST(2));
12641 wxDouble dx_out, dy_out;
12642 wxGraphicsMatrix * THIS = (wxGraphicsMatrix *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsMatrix" );
12645 THIS->TransformDistance( &dx, &dy );
12647 PUSHs( sv_2mortal( newSVnv( dx ) ) );
12648 PUSHs( sv_2mortal( newSVnv( dy ) ) );
12656 /* INCLUDE: Returning to 'XS/GraphicsPath.xs' from 'XS/GraphicsMatrix.xs' */
12658 #if wxUSE_GRAPHICS_CONTEXT
12659 #include <wx/graphics.h>
12660 #define XSubPPtmpAADL 1
12663 XS(XS_Wx__GraphicsPath_MoveToPoint); /* prototype to pass -Wmissing-prototypes */
12664 XS(XS_Wx__GraphicsPath_MoveToPoint)
12672 croak_xs_usage(cv, "THIS, x, y");
12674 wxDouble x = (double)SvNV(ST(1));
12675 wxDouble y = (double)SvNV(ST(2));
12676 wxGraphicsPath * THIS = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsPath" );
12678 THIS->MoveToPoint(x, y);
12684 XS(XS_Wx__GraphicsPath_AddArc); /* prototype to pass -Wmissing-prototypes */
12685 XS(XS_Wx__GraphicsPath_AddArc)
12693 croak_xs_usage(cv, "THIS, x, y, r, startAngle, endAngle, clockwise");
12695 wxDouble x = (double)SvNV(ST(1));
12696 wxDouble y = (double)SvNV(ST(2));
12697 wxDouble r = (double)SvNV(ST(3));
12698 wxDouble startAngle = (double)SvNV(ST(4));
12699 wxDouble endAngle = (double)SvNV(ST(5));
12700 bool clockwise = (bool)SvTRUE(ST(6));
12701 wxGraphicsPath * THIS = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsPath" );
12703 THIS->AddArc(x, y, r, startAngle, endAngle, clockwise);
12709 XS(XS_Wx__GraphicsPath_AddArcToPoint); /* prototype to pass -Wmissing-prototypes */
12710 XS(XS_Wx__GraphicsPath_AddArcToPoint)
12718 croak_xs_usage(cv, "THIS, x1, y1, x2, y2, r");
12720 wxDouble x1 = (double)SvNV(ST(1));
12721 wxDouble y1 = (double)SvNV(ST(2));
12722 wxDouble x2 = (double)SvNV(ST(3));
12723 wxDouble y2 = (double)SvNV(ST(4));
12724 wxDouble r = (double)SvNV(ST(5));
12725 wxGraphicsPath * THIS = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsPath" );
12727 THIS->AddArcToPoint(x1, y1, x2, y2, r);
12733 XS(XS_Wx__GraphicsPath_AddCircle); /* prototype to pass -Wmissing-prototypes */
12734 XS(XS_Wx__GraphicsPath_AddCircle)
12742 croak_xs_usage(cv, "THIS, x, y, r");
12744 wxDouble x = (double)SvNV(ST(1));
12745 wxDouble y = (double)SvNV(ST(2));
12746 wxDouble r = (double)SvNV(ST(3));
12747 wxGraphicsPath * THIS = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsPath" );
12749 THIS->AddCircle(x, y, r);
12755 XS(XS_Wx__GraphicsPath_AddCurveToPoint); /* prototype to pass -Wmissing-prototypes */
12756 XS(XS_Wx__GraphicsPath_AddCurveToPoint)
12764 croak_xs_usage(cv, "THIS, cx1, cy1, cx2, cy2, x, y");
12766 wxDouble cx1 = (double)SvNV(ST(1));
12767 wxDouble cy1 = (double)SvNV(ST(2));
12768 wxDouble cx2 = (double)SvNV(ST(3));
12769 wxDouble cy2 = (double)SvNV(ST(4));
12770 wxDouble x = (double)SvNV(ST(5));
12771 wxDouble y = (double)SvNV(ST(6));
12772 wxGraphicsPath * THIS = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsPath" );
12774 THIS->AddCurveToPoint(cx1, cy1, cx2, cy2, x, y);
12780 XS(XS_Wx__GraphicsPath_AddEllipse); /* prototype to pass -Wmissing-prototypes */
12781 XS(XS_Wx__GraphicsPath_AddEllipse)
12789 croak_xs_usage(cv, "THIS, x, y, w, h");
12791 wxDouble x = (double)SvNV(ST(1));
12792 wxDouble y = (double)SvNV(ST(2));
12793 wxDouble w = (double)SvNV(ST(3));
12794 wxDouble h = (double)SvNV(ST(4));
12795 wxGraphicsPath * THIS = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsPath" );
12797 THIS->AddEllipse(x, y, w, h);
12803 XS(XS_Wx__GraphicsPath_AddLineToPoint); /* prototype to pass -Wmissing-prototypes */
12804 XS(XS_Wx__GraphicsPath_AddLineToPoint)
12812 croak_xs_usage(cv, "THIS, x, y");
12814 wxDouble x = (double)SvNV(ST(1));
12815 wxDouble y = (double)SvNV(ST(2));
12816 wxGraphicsPath * THIS = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsPath" );
12818 THIS->AddLineToPoint(x, y);
12824 XS(XS_Wx__GraphicsPath_AddPath); /* prototype to pass -Wmissing-prototypes */
12825 XS(XS_Wx__GraphicsPath_AddPath)
12833 croak_xs_usage(cv, "THIS, path");
12835 wxGraphicsPath* path = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GraphicsPath" );
12836 wxGraphicsPath * THIS = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsPath" );
12837 THIS->AddPath(*path);
12843 XS(XS_Wx__GraphicsPath_AddQuadCurveToPoint); /* prototype to pass -Wmissing-prototypes */
12844 XS(XS_Wx__GraphicsPath_AddQuadCurveToPoint)
12852 croak_xs_usage(cv, "THIS, cx, cy, x, y");
12854 wxDouble cx = (double)SvNV(ST(1));
12855 wxDouble cy = (double)SvNV(ST(2));
12856 wxDouble x = (double)SvNV(ST(3));
12857 wxDouble y = (double)SvNV(ST(4));
12858 wxGraphicsPath * THIS = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsPath" );
12860 THIS->AddQuadCurveToPoint(cx, cy, x, y);
12866 XS(XS_Wx__GraphicsPath_AddRectangle); /* prototype to pass -Wmissing-prototypes */
12867 XS(XS_Wx__GraphicsPath_AddRectangle)
12875 croak_xs_usage(cv, "THIS, x, y, w, h");
12877 wxDouble x = (double)SvNV(ST(1));
12878 wxDouble y = (double)SvNV(ST(2));
12879 wxDouble w = (double)SvNV(ST(3));
12880 wxDouble h = (double)SvNV(ST(4));
12881 wxGraphicsPath * THIS = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsPath" );
12883 THIS->AddRectangle(x, y, w, h);
12889 XS(XS_Wx__GraphicsPath_AddRoundedRectangle); /* prototype to pass -Wmissing-prototypes */
12890 XS(XS_Wx__GraphicsPath_AddRoundedRectangle)
12898 croak_xs_usage(cv, "THIS, x, y, w, h, radius");
12900 wxDouble x = (double)SvNV(ST(1));
12901 wxDouble y = (double)SvNV(ST(2));
12902 wxDouble w = (double)SvNV(ST(3));
12903 wxDouble h = (double)SvNV(ST(4));
12904 wxDouble radius = (double)SvNV(ST(5));
12905 wxGraphicsPath * THIS = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsPath" );
12907 THIS->AddRoundedRectangle(x, y, w, h, radius);
12913 XS(XS_Wx__GraphicsPath_CloseSubpath); /* prototype to pass -Wmissing-prototypes */
12914 XS(XS_Wx__GraphicsPath_CloseSubpath)
12922 croak_xs_usage(cv, "THIS");
12924 wxGraphicsPath * THIS = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsPath" );
12926 THIS->CloseSubpath();
12932 XS(XS_Wx__GraphicsPath_Contains); /* prototype to pass -Wmissing-prototypes */
12933 XS(XS_Wx__GraphicsPath_Contains)
12940 if (items < 3 || items > 4)
12941 croak_xs_usage(cv, "THIS, x, y, fillStyle = wxODDEVEN_RULE");
12943 wxDouble x = (double)SvNV(ST(1));
12944 wxDouble y = (double)SvNV(ST(2));
12945 wxPolygonFillMode fillStyle;
12946 wxGraphicsPath * THIS = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsPath" );
12950 fillStyle = wxODDEVEN_RULE;
12952 fillStyle = (wxPolygonFillMode)SvIV(ST(3));
12955 RETVAL = THIS->Contains(x, y, fillStyle);
12956 ST(0) = boolSV(RETVAL);
12963 XS(XS_Wx__GraphicsPath_GetBox); /* prototype to pass -Wmissing-prototypes */
12964 XS(XS_Wx__GraphicsPath_GetBox)
12972 croak_xs_usage(cv, "THIS");
12973 PERL_UNUSED_VAR(ax); /* -Wall */
12976 wxDouble x, y, w, h;
12977 wxGraphicsPath * THIS = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsPath" );
12978 THIS->GetBox( &x, &y, &w, &h );
12980 PUSHs( sv_2mortal( newSVnv( x ) ) );
12981 PUSHs( sv_2mortal( newSVnv( y ) ) );
12982 PUSHs( sv_2mortal( newSVnv( w ) ) );
12983 PUSHs( sv_2mortal( newSVnv( h ) ) );
12990 XS(XS_Wx__GraphicsPath_GetCurrentPoint); /* prototype to pass -Wmissing-prototypes */
12991 XS(XS_Wx__GraphicsPath_GetCurrentPoint)
12999 croak_xs_usage(cv, "THIS");
13000 PERL_UNUSED_VAR(ax); /* -Wall */
13004 wxGraphicsPath * THIS = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsPath" );
13005 THIS->GetCurrentPoint( &x, &y );
13007 PUSHs( sv_2mortal( newSVnv( x ) ) );
13008 PUSHs( sv_2mortal( newSVnv( y ) ) );
13015 XS(XS_Wx__GraphicsPath_Transform); /* prototype to pass -Wmissing-prototypes */
13016 XS(XS_Wx__GraphicsPath_Transform)
13024 croak_xs_usage(cv, "THIS, matrix");
13026 wxGraphicsMatrix* matrix = (wxGraphicsMatrix *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GraphicsMatrix" );
13027 wxGraphicsPath * THIS = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsPath" );
13028 THIS->Transform( *matrix );
13035 /* INCLUDE: Returning to 'XS/GraphicsContext.xs' from 'XS/GraphicsPath.xs' */
13037 #if wxUSE_GRAPHICS_CONTEXT
13038 #include <wx/graphics.h>
13039 #include <wx/window.h>
13040 #include "cpp/streams.h"
13041 #include "cpp/overload.h"
13042 #define XSubPPtmpAADM 1
13045 XS(XS_Wx__GraphicsContext_Create); /* prototype to pass -Wmissing-prototypes */
13046 XS(XS_Wx__GraphicsContext_Create)
13053 PERL_UNUSED_VAR(cv); /* -W */
13054 PERL_UNUSED_VAR(ax); /* -Wall */
13058 MATCH_REDISP_FUNCTION(wxPliOvl_wwin, Wx::GraphicsContext::createFromWindow)
13059 MATCH_REDISP_FUNCTION(wxPliOvl_wdc, Wx::GraphicsContext::createFromDC)
13060 END_OVERLOAD( "Wx::GraphicsContext::Create" )
13067 XS(XS_Wx__GraphicsContext_createFromWindow); /* prototype to pass -Wmissing-prototypes */
13068 XS(XS_Wx__GraphicsContext_createFromWindow)
13076 croak_xs_usage(cv, "window");
13078 wxWindow* window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Window" );
13079 wxGraphicsContext * RETVAL;
13080 RETVAL = wxGraphicsContext::Create( window );
13081 ST(0) = sv_newmortal();
13082 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
13083 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsContext", RETVAL, ST(0) );
13090 XS(XS_Wx__GraphicsContext_createFromDC); /* prototype to pass -Wmissing-prototypes */
13091 XS(XS_Wx__GraphicsContext_createFromDC)
13099 croak_xs_usage(cv, "dc");
13101 wxWindowDC* dc = (wxWindowDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::WindowDC" );
13102 wxGraphicsContext * RETVAL;
13103 RETVAL = wxGraphicsContext::Create(*dc);
13104 ST(0) = sv_newmortal();
13105 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
13106 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsContext", RETVAL, ST(0) );
13113 XS(XS_Wx__GraphicsContext_CreatePen); /* prototype to pass -Wmissing-prototypes */
13114 XS(XS_Wx__GraphicsContext_CreatePen)
13122 croak_xs_usage(cv, "THIS, pen");
13124 wxPen* pen = (wxPen *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Pen" );
13125 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13126 wxGraphicsPen * RETVAL;
13127 RETVAL = new wxGraphicsPen( THIS->CreatePen(*pen) );
13128 ST(0) = sv_newmortal();
13129 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
13130 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsPen", RETVAL, ST(0) );
13137 XS(XS_Wx__GraphicsContext_CreateBrush); /* prototype to pass -Wmissing-prototypes */
13138 XS(XS_Wx__GraphicsContext_CreateBrush)
13146 croak_xs_usage(cv, "THIS, brush");
13148 wxBrush* brush = (wxBrush *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Brush" );
13149 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13150 wxGraphicsBrush * RETVAL;
13151 RETVAL = new wxGraphicsBrush( THIS->CreateBrush(*brush) );
13152 ST(0) = sv_newmortal();
13153 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
13154 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsBrush", RETVAL, ST(0) );
13161 XS(XS_Wx__GraphicsContext_CreateRadialGradientBrush); /* prototype to pass -Wmissing-prototypes */
13162 XS(XS_Wx__GraphicsContext_CreateRadialGradientBrush)
13170 croak_xs_usage(cv, "THIS, xo, yo, xc, yc, radius, oColor, cColor");
13172 wxDouble xo = (double)SvNV(ST(1));
13173 wxDouble yo = (double)SvNV(ST(2));
13174 wxDouble xc = (double)SvNV(ST(3));
13175 wxDouble yc = (double)SvNV(ST(4));
13176 wxDouble radius = (double)SvNV(ST(5));
13177 wxColour* oColor = (wxColour *) wxPli_sv_2_object( aTHX_ ST(6), "Wx::Colour" );
13178 wxColour* cColor = (wxColour *) wxPli_sv_2_object( aTHX_ ST(7), "Wx::Colour" );
13179 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13180 wxGraphicsBrush * RETVAL;
13181 RETVAL = new wxGraphicsBrush( THIS->CreateRadialGradientBrush(xo,yo,xc,yc,radius,*oColor,*cColor) );
13182 ST(0) = sv_newmortal();
13183 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
13184 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsBrush", RETVAL, ST(0) );
13191 XS(XS_Wx__GraphicsContext_CreateLinearGradientBrush); /* prototype to pass -Wmissing-prototypes */
13192 XS(XS_Wx__GraphicsContext_CreateLinearGradientBrush)
13200 croak_xs_usage(cv, "THIS, x1, y1, x2, y2, c1, c2");
13202 wxDouble x1 = (double)SvNV(ST(1));
13203 wxDouble y1 = (double)SvNV(ST(2));
13204 wxDouble x2 = (double)SvNV(ST(3));
13205 wxDouble y2 = (double)SvNV(ST(4));
13206 wxColour* c1 = (wxColour *) wxPli_sv_2_object( aTHX_ ST(5), "Wx::Colour" );
13207 wxColour* c2 = (wxColour *) wxPli_sv_2_object( aTHX_ ST(6), "Wx::Colour" );
13208 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13209 wxGraphicsBrush * RETVAL;
13210 RETVAL = new wxGraphicsBrush( THIS->CreateLinearGradientBrush(x1,y1,x2,y2,*c1,*c2) );
13211 ST(0) = sv_newmortal();
13212 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
13213 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsBrush", RETVAL, ST(0) );
13220 XS(XS_Wx__GraphicsContext_CreateFont); /* prototype to pass -Wmissing-prototypes */
13221 XS(XS_Wx__GraphicsContext_CreateFont)
13228 if (items < 2 || items > 3)
13229 croak_xs_usage(cv, "THIS, font, col = (wxColour*)wxBLACK");
13231 wxFont* font = (wxFont *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Font" );
13233 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13234 wxGraphicsFont * RETVAL;
13237 col = (wxColour*)wxBLACK;
13239 col = (wxColour *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Colour" );
13241 RETVAL = new wxGraphicsFont( THIS->CreateFont(*font, *col) );
13242 ST(0) = sv_newmortal();
13243 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
13244 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsFont", RETVAL, ST(0) );
13251 XS(XS_Wx__GraphicsContext_CreateMatrix); /* prototype to pass -Wmissing-prototypes */
13252 XS(XS_Wx__GraphicsContext_CreateMatrix)
13259 if (items < 1 || items > 7)
13260 croak_xs_usage(cv, "THIS, a = 1.0, b = 0.0, c = 0.0, d = 1.0, tx = 0.0, ty = 0.0");
13268 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13269 wxGraphicsMatrix * RETVAL;
13274 a = (double)SvNV(ST(1));
13280 b = (double)SvNV(ST(2));
13286 c = (double)SvNV(ST(3));
13292 d = (double)SvNV(ST(4));
13298 tx = (double)SvNV(ST(5));
13304 ty = (double)SvNV(ST(6));
13306 RETVAL = new wxGraphicsMatrix( THIS->CreateMatrix(a,b,c,d,tx,ty) );
13307 ST(0) = sv_newmortal();
13308 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
13309 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsMatrix", RETVAL, ST(0) );
13316 XS(XS_Wx__GraphicsContext_CreatePath); /* prototype to pass -Wmissing-prototypes */
13317 XS(XS_Wx__GraphicsContext_CreatePath)
13325 croak_xs_usage(cv, "THIS");
13327 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13328 wxGraphicsPath * RETVAL;
13329 RETVAL = new wxGraphicsPath( THIS->CreatePath() );
13330 ST(0) = sv_newmortal();
13331 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
13332 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsPath", RETVAL, ST(0) );
13339 XS(XS_Wx__GraphicsContext_Clip); /* prototype to pass -Wmissing-prototypes */
13340 XS(XS_Wx__GraphicsContext_Clip)
13347 PERL_UNUSED_VAR(cv); /* -W */
13348 PERL_UNUSED_VAR(ax); /* -Wall */
13352 MATCH_REDISP(wxPliOvl_n_n_n_n, ClipXYWH)
13353 MATCH_REDISP(wxPliOvl_wrgn, ClipRegion)
13354 END_OVERLOAD( "Wx::GraphicsContext::Clip" )
13361 XS(XS_Wx__GraphicsContext_ClipXYWH); /* prototype to pass -Wmissing-prototypes */
13362 XS(XS_Wx__GraphicsContext_ClipXYWH)
13370 croak_xs_usage(cv, "THIS, x, y, w, h");
13372 wxDouble x = (double)SvNV(ST(1));
13373 wxDouble y = (double)SvNV(ST(2));
13374 wxDouble w = (double)SvNV(ST(3));
13375 wxDouble h = (double)SvNV(ST(4));
13376 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13377 THIS->Clip (x, y, w, h);
13383 XS(XS_Wx__GraphicsContext_ClipRegion); /* prototype to pass -Wmissing-prototypes */
13384 XS(XS_Wx__GraphicsContext_ClipRegion)
13392 croak_xs_usage(cv, "THIS, region");
13394 wxRegion* region = (wxRegion *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Region" );
13395 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13396 THIS->Clip (*region);
13402 XS(XS_Wx__GraphicsContext_ResetClip); /* prototype to pass -Wmissing-prototypes */
13403 XS(XS_Wx__GraphicsContext_ResetClip)
13411 croak_xs_usage(cv, "THIS");
13413 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13421 XS(XS_Wx__GraphicsContext_DrawBitmap); /* prototype to pass -Wmissing-prototypes */
13422 XS(XS_Wx__GraphicsContext_DrawBitmap)
13430 croak_xs_usage(cv, "THIS, bitmap, x, y, w, h");
13432 wxBitmap* bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
13433 wxDouble x = (double)SvNV(ST(2));
13434 wxDouble y = (double)SvNV(ST(3));
13435 wxDouble w = (double)SvNV(ST(4));
13436 wxDouble h = (double)SvNV(ST(5));
13437 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13438 THIS->DrawBitmap( *bitmap, x, y, w, h );
13444 XS(XS_Wx__GraphicsContext_DrawEllipse); /* prototype to pass -Wmissing-prototypes */
13445 XS(XS_Wx__GraphicsContext_DrawEllipse)
13453 croak_xs_usage(cv, "THIS, x, y, w, h");
13455 wxDouble x = (double)SvNV(ST(1));
13456 wxDouble y = (double)SvNV(ST(2));
13457 wxDouble w = (double)SvNV(ST(3));
13458 wxDouble h = (double)SvNV(ST(4));
13459 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13461 THIS->DrawEllipse(x, y, w, h);
13467 XS(XS_Wx__GraphicsContext_DrawIcon); /* prototype to pass -Wmissing-prototypes */
13468 XS(XS_Wx__GraphicsContext_DrawIcon)
13476 croak_xs_usage(cv, "THIS, icon, x, y, w, h");
13478 wxIcon* icon = (wxIcon *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Icon" );
13479 wxDouble x = (double)SvNV(ST(2));
13480 wxDouble y = (double)SvNV(ST(3));
13481 wxDouble w = (double)SvNV(ST(4));
13482 wxDouble h = (double)SvNV(ST(5));
13483 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13484 THIS->DrawIcon( *icon, x, y, w, h );
13490 XS(XS_Wx__GraphicsContext_DrawLines); /* prototype to pass -Wmissing-prototypes */
13491 XS(XS_Wx__GraphicsContext_DrawLines)
13498 if (items < 2 || items > 3)
13499 croak_xs_usage(cv, "THIS, points, fillStyle = wxODDEVEN_RULE");
13501 SV* points = ST(1);
13502 wxPolygonFillMode fillStyle;
13503 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13506 fillStyle = wxODDEVEN_RULE;
13508 fillStyle = (wxPolygonFillMode)SvIV(ST(2));
13510 wxPliArrayGuard<wxPoint2DDouble> newPoints;
13511 int n = wxPli_av_2_point2ddoublearray(aTHX_ points, newPoints.lvalue());
13512 THIS->DrawLines(n,newPoints);
13518 XS(XS_Wx__GraphicsContext_DrawPath); /* prototype to pass -Wmissing-prototypes */
13519 XS(XS_Wx__GraphicsContext_DrawPath)
13526 if (items < 2 || items > 3)
13527 croak_xs_usage(cv, "THIS, path, fillStyle = wxODDEVEN_RULE");
13529 wxGraphicsPath * path = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GraphicsPath" );
13530 wxPolygonFillMode fillStyle;
13531 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13534 fillStyle = wxODDEVEN_RULE;
13536 fillStyle = (wxPolygonFillMode)SvIV(ST(2));
13538 THIS->DrawPath( *path, fillStyle );
13544 XS(XS_Wx__GraphicsContext_DrawRectangle); /* prototype to pass -Wmissing-prototypes */
13545 XS(XS_Wx__GraphicsContext_DrawRectangle)
13553 croak_xs_usage(cv, "THIS, x, y, w, h");
13555 wxDouble x = (double)SvNV(ST(1));
13556 wxDouble y = (double)SvNV(ST(2));
13557 wxDouble w = (double)SvNV(ST(3));
13558 wxDouble h = (double)SvNV(ST(4));
13559 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13561 THIS->DrawRectangle(x, y, w, h);
13567 XS(XS_Wx__GraphicsContext_DrawRoundedRectangle); /* prototype to pass -Wmissing-prototypes */
13568 XS(XS_Wx__GraphicsContext_DrawRoundedRectangle)
13576 croak_xs_usage(cv, "THIS, x, y, w, h, radius");
13578 wxDouble x = (double)SvNV(ST(1));
13579 wxDouble y = (double)SvNV(ST(2));
13580 wxDouble w = (double)SvNV(ST(3));
13581 wxDouble h = (double)SvNV(ST(4));
13582 wxDouble radius = (double)SvNV(ST(5));
13583 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13585 THIS->DrawRoundedRectangle(x, y, w, h, radius);
13591 XS(XS_Wx__GraphicsContext_DrawText); /* prototype to pass -Wmissing-prototypes */
13592 XS(XS_Wx__GraphicsContext_DrawText)
13600 croak_xs_usage(cv, "THIS, ...");
13601 PERL_UNUSED_VAR(ax); /* -Wall */
13604 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13606 MATCH_REDISP(wxPliOvl_s_n_n_n, DrawTextAngle)
13607 MATCH_REDISP(wxPliOvl_s_n_n, DrawTextNoAngle)
13608 END_OVERLOAD( "Wx::GraphicsContext::DrawText" )
13615 XS(XS_Wx__GraphicsContext_DrawTextAngle); /* prototype to pass -Wmissing-prototypes */
13616 XS(XS_Wx__GraphicsContext_DrawTextAngle)
13624 croak_xs_usage(cv, "THIS, string, x, y, angle");
13627 wxDouble x = (double)SvNV(ST(2));
13628 wxDouble y = (double)SvNV(ST(3));
13629 wxDouble angle = (double)SvNV(ST(4));
13630 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13632 WXSTRING_INPUT( string, wxString, ST(1) );
13633 THIS->DrawText(string,x,y,angle);
13639 XS(XS_Wx__GraphicsContext_DrawTextNoAngle); /* prototype to pass -Wmissing-prototypes */
13640 XS(XS_Wx__GraphicsContext_DrawTextNoAngle)
13648 croak_xs_usage(cv, "THIS, string, x, y");
13651 wxDouble x = (double)SvNV(ST(2));
13652 wxDouble y = (double)SvNV(ST(3));
13653 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13655 WXSTRING_INPUT( string, wxString, ST(1) );
13656 THIS->DrawText(string,x,y);
13662 XS(XS_Wx__GraphicsContext_FillPath); /* prototype to pass -Wmissing-prototypes */
13663 XS(XS_Wx__GraphicsContext_FillPath)
13670 if (items < 2 || items > 3)
13671 croak_xs_usage(cv, "THIS, path, fillStyle = wxODDEVEN_RULE");
13673 wxGraphicsPath * path = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GraphicsPath" );
13674 wxPolygonFillMode fillStyle;
13675 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13678 fillStyle = wxODDEVEN_RULE;
13680 fillStyle = (wxPolygonFillMode)SvIV(ST(2));
13682 THIS->FillPath ( *path, fillStyle );
13688 XS(XS_Wx__GraphicsContext_StrokePath); /* prototype to pass -Wmissing-prototypes */
13689 XS(XS_Wx__GraphicsContext_StrokePath)
13697 croak_xs_usage(cv, "THIS, path");
13699 wxGraphicsPath * path = (wxGraphicsPath *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GraphicsPath" );
13700 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13701 THIS->StrokePath ( *path );
13707 XS(XS_Wx__GraphicsContext_GetTextExtent); /* prototype to pass -Wmissing-prototypes */
13708 XS(XS_Wx__GraphicsContext_GetTextExtent)
13716 croak_xs_usage(cv, "THIS, string");
13717 PERL_UNUSED_VAR(ax); /* -Wall */
13721 wxDouble x, y, descent, externalLeading;
13722 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13724 WXSTRING_INPUT( string, wxString, ST(1) );
13725 THIS->GetTextExtent( string, &x, &y, &descent, &externalLeading);
13727 PUSHs( sv_2mortal( newSVnv( x ) ) );
13728 PUSHs( sv_2mortal( newSVnv( y ) ) );
13729 PUSHs( sv_2mortal( newSVnv( descent ) ) );
13730 PUSHs( sv_2mortal( newSVnv( externalLeading ) ) );
13737 XS(XS_Wx__GraphicsContext_GetPartialTextExtents); /* prototype to pass -Wmissing-prototypes */
13738 XS(XS_Wx__GraphicsContext_GetPartialTextExtents)
13746 croak_xs_usage(cv, "THIS, string");
13747 PERL_UNUSED_VAR(ax); /* -Wall */
13751 wxArrayDouble widths;
13752 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13754 WXSTRING_INPUT( string, wxString, ST(1) );
13755 THIS->GetPartialTextExtents( string, widths );
13757 wxPli_doublearray_push( aTHX_ widths );
13765 XS(XS_Wx__GraphicsContext_Rotate); /* prototype to pass -Wmissing-prototypes */
13766 XS(XS_Wx__GraphicsContext_Rotate)
13774 croak_xs_usage(cv, "THIS, angle");
13776 wxDouble angle = (double)SvNV(ST(1));
13777 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13779 THIS->Rotate(angle);
13785 XS(XS_Wx__GraphicsContext_Scale); /* prototype to pass -Wmissing-prototypes */
13786 XS(XS_Wx__GraphicsContext_Scale)
13794 croak_xs_usage(cv, "THIS, x, y");
13796 wxDouble x = (double)SvNV(ST(1));
13797 wxDouble y = (double)SvNV(ST(2));
13798 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13806 XS(XS_Wx__GraphicsContext_Translate); /* prototype to pass -Wmissing-prototypes */
13807 XS(XS_Wx__GraphicsContext_Translate)
13815 croak_xs_usage(cv, "THIS, x, y");
13817 wxDouble x = (double)SvNV(ST(1));
13818 wxDouble y = (double)SvNV(ST(2));
13819 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13821 THIS->Translate(x, y);
13827 XS(XS_Wx__GraphicsContext_GetTransform); /* prototype to pass -Wmissing-prototypes */
13828 XS(XS_Wx__GraphicsContext_GetTransform)
13836 croak_xs_usage(cv, "THIS");
13838 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13839 wxGraphicsMatrix * RETVAL;
13840 RETVAL = new wxGraphicsMatrix( THIS->GetTransform() );
13841 ST(0) = sv_newmortal();
13842 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
13843 wxPli_thread_sv_register( aTHX_ "Wx::GraphicsMatrix", RETVAL, ST(0) );
13850 XS(XS_Wx__GraphicsContext_SetTransform); /* prototype to pass -Wmissing-prototypes */
13851 XS(XS_Wx__GraphicsContext_SetTransform)
13859 croak_xs_usage(cv, "THIS, matrix");
13861 wxGraphicsMatrix* matrix = (wxGraphicsMatrix *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GraphicsMatrix" );
13862 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13863 THIS->SetTransform(*matrix);
13869 XS(XS_Wx__GraphicsContext_ConcatTransform); /* prototype to pass -Wmissing-prototypes */
13870 XS(XS_Wx__GraphicsContext_ConcatTransform)
13878 croak_xs_usage(cv, "THIS, matrix");
13880 wxGraphicsMatrix* matrix = (wxGraphicsMatrix *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GraphicsMatrix" );
13881 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13882 THIS->ConcatTransform(*matrix);
13888 XS(XS_Wx__GraphicsContext_SetBrush); /* prototype to pass -Wmissing-prototypes */
13889 XS(XS_Wx__GraphicsContext_SetBrush)
13896 PERL_UNUSED_VAR(cv); /* -W */
13897 PERL_UNUSED_VAR(ax); /* -Wall */
13901 MATCH_REDISP(wxPliOvl_wbru, SetBrushBrush)
13902 MATCH_REDISP(wxPliOvl_wgbr, SetBrushGraphics)
13903 END_OVERLOAD( "Wx::GraphicsContext::SetBrush" )
13910 XS(XS_Wx__GraphicsContext_SetBrushBrush); /* prototype to pass -Wmissing-prototypes */
13911 XS(XS_Wx__GraphicsContext_SetBrushBrush)
13919 croak_xs_usage(cv, "THIS, brush");
13921 wxBrush* brush = (wxBrush *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Brush" );
13922 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13923 THIS->SetBrush( *brush );
13929 XS(XS_Wx__GraphicsContext_SetBrushGraphics); /* prototype to pass -Wmissing-prototypes */
13930 XS(XS_Wx__GraphicsContext_SetBrushGraphics)
13938 croak_xs_usage(cv, "THIS, brush");
13940 wxGraphicsBrush* brush = (wxGraphicsBrush *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GraphicsBrush" );
13941 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13942 THIS->SetBrush( *brush );
13948 XS(XS_Wx__GraphicsContext_SetFont); /* prototype to pass -Wmissing-prototypes */
13949 XS(XS_Wx__GraphicsContext_SetFont)
13956 PERL_UNUSED_VAR(cv); /* -W */
13957 PERL_UNUSED_VAR(ax); /* -Wall */
13961 MATCH_REDISP(wxPliOvl_wfon_wcol, SetFontFont)
13962 MATCH_REDISP(wxPliOvl_wgfo, SetFontGraphics)
13963 END_OVERLOAD( "Wx::GraphicsContext::SetFont" )
13970 XS(XS_Wx__GraphicsContext_SetFontFont); /* prototype to pass -Wmissing-prototypes */
13971 XS(XS_Wx__GraphicsContext_SetFontFont)
13979 croak_xs_usage(cv, "THIS, font, colour");
13981 wxFont* font = (wxFont *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Font" );
13982 wxColour* colour = (wxColour *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Colour" );
13983 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
13984 THIS->SetFont(*font, *colour);
13990 XS(XS_Wx__GraphicsContext_SetFontGraphics); /* prototype to pass -Wmissing-prototypes */
13991 XS(XS_Wx__GraphicsContext_SetFontGraphics)
13999 croak_xs_usage(cv, "THIS, font");
14001 wxGraphicsFont* font = (wxGraphicsFont *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GraphicsFont" );
14002 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
14003 THIS->SetFont(*font);
14009 XS(XS_Wx__GraphicsContext_SetPen); /* prototype to pass -Wmissing-prototypes */
14010 XS(XS_Wx__GraphicsContext_SetPen)
14017 PERL_UNUSED_VAR(cv); /* -W */
14018 PERL_UNUSED_VAR(ax); /* -Wall */
14022 MATCH_REDISP(wxPliOvl_wpen, SetPenPen)
14023 MATCH_REDISP(wxPliOvl_wgpe, SetPenGraphics)
14024 END_OVERLOAD( "Wx::GraphicsContext::SetPen" )
14031 XS(XS_Wx__GraphicsContext_SetPenPen); /* prototype to pass -Wmissing-prototypes */
14032 XS(XS_Wx__GraphicsContext_SetPenPen)
14040 croak_xs_usage(cv, "THIS, pen");
14042 wxPen* pen = (wxPen *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Pen" );
14043 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
14044 THIS->SetPen( *pen );
14050 XS(XS_Wx__GraphicsContext_SetPenGraphics); /* prototype to pass -Wmissing-prototypes */
14051 XS(XS_Wx__GraphicsContext_SetPenGraphics)
14059 croak_xs_usage(cv, "THIS, pen");
14061 wxGraphicsPen* pen = (wxGraphicsPen *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GraphicsPen" );
14062 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
14063 THIS->SetPen( *pen );
14069 XS(XS_Wx__GraphicsContext_StrokeLine); /* prototype to pass -Wmissing-prototypes */
14070 XS(XS_Wx__GraphicsContext_StrokeLine)
14078 croak_xs_usage(cv, "THIS, x1, y1, x2, y2");
14080 wxDouble x1 = (double)SvNV(ST(1));
14081 wxDouble y1 = (double)SvNV(ST(2));
14082 wxDouble x2 = (double)SvNV(ST(3));
14083 wxDouble y2 = (double)SvNV(ST(4));
14084 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
14086 THIS->StrokeLine(x1, y1, x2, y2);
14092 XS(XS_Wx__GraphicsContext_StrokeLines); /* prototype to pass -Wmissing-prototypes */
14093 XS(XS_Wx__GraphicsContext_StrokeLines)
14101 croak_xs_usage(cv, "THIS, ...");
14102 PERL_UNUSED_VAR(ax); /* -Wall */
14105 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
14107 MATCH_REDISP(wxPliOvl_wpoi_wpoi, StrokeLinesTwo)
14108 MATCH_REDISP(wxPliOvl_wpoi, StrokeLinesOne)
14109 END_OVERLOAD( "Wx::GraphicsContext::StrokeLines" )
14116 XS(XS_Wx__GraphicsContext_StrokeLinesOne); /* prototype to pass -Wmissing-prototypes */
14117 XS(XS_Wx__GraphicsContext_StrokeLinesOne)
14125 croak_xs_usage(cv, "THIS, points");
14127 SV* points = ST(1);
14128 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
14129 wxPliArrayGuard<wxPoint2DDouble> points2d;
14130 int n = wxPli_av_2_point2ddoublearray(aTHX_ points, points2d.lvalue());
14131 THIS->StrokeLines(n,points2d);
14137 XS(XS_Wx__GraphicsContext_StrokeLinesTwo); /* prototype to pass -Wmissing-prototypes */
14138 XS(XS_Wx__GraphicsContext_StrokeLinesTwo)
14146 croak_xs_usage(cv, "THIS, beginPoints, endPoints");
14148 SV* beginPoints = ST(1);
14149 SV* endPoints = ST(2);
14150 wxGraphicsContext * THIS = (wxGraphicsContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GraphicsContext" );
14151 wxPliArrayGuard<wxPoint2DDouble> beginPoints2d, endPoints2d;
14152 int n1 = wxPli_av_2_point2ddoublearray(aTHX_ beginPoints, beginPoints2d.lvalue());
14153 int n2 = wxPli_av_2_point2ddoublearray(aTHX_ endPoints, endPoints2d.lvalue());
14154 THIS->StrokeLines(wxMin(n1, n2), beginPoints2d, endPoints2d);
14161 /* INCLUDE: Returning to 'GDI.xs' from 'XS/GraphicsContext.xs' */
14164 /* INCLUDE: Including 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/SVGFileDC.xsp |' from 'GDI.xs' */
14166 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
14167 #include <wx/dcsvg.h>
14168 #define XSubPPtmpAADN 1
14171 XS(XS_Wx__SVGFileDC_new); /* prototype to pass -Wmissing-prototypes */
14172 XS(XS_Wx__SVGFileDC_new)
14179 if (items < 2 || items > 5)
14180 croak_xs_usage(cv, "CLASS, filename, width = 320, height = 240, dpi = 72.0");
14186 char * CLASS = (char *)SvPV_nolen(ST(0));
14187 wxSVGFileDC * RETVAL;
14189 WXSTRING_INPUT( filename, wxString, ST(1) );
14194 width = (int)SvIV(ST(2));
14200 height = (int)SvIV(ST(3));
14206 dpi = (double)SvNV(ST(4));
14209 RETVAL = new wxSVGFileDC(filename, width, height, dpi);
14210 ST(0) = sv_newmortal();
14211 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
14212 wxPli_thread_sv_register( aTHX_ "Wx::SVGFileDC", RETVAL, ST(0) );
14220 /* INCLUDE: Returning to 'GDI.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/SVGFileDC.xsp |' */
14223 XS(XS_Wx_GetClientDisplayRect); /* prototype to pass -Wmissing-prototypes */
14224 XS(XS_Wx_GetClientDisplayRect)
14232 croak_xs_usage(cv, "");
14235 RETVAL = new wxRect( wxGetClientDisplayRect() );
14236 ST(0) = sv_newmortal();
14237 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
14238 wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
14245 XS(XS_Wx_ColourDisplay); /* prototype to pass -Wmissing-prototypes */
14246 XS(XS_Wx_ColourDisplay)
14254 croak_xs_usage(cv, "");
14257 RETVAL = wxColourDisplay();
14258 ST(0) = boolSV(RETVAL);
14265 XS(XS_Wx_DisplayDepth); /* prototype to pass -Wmissing-prototypes */
14266 XS(XS_Wx_DisplayDepth)
14274 croak_xs_usage(cv, "");
14278 RETVAL = wxDisplayDepth();
14279 XSprePUSH; PUSHi((IV)RETVAL);
14285 XS(XS_Wx_GetDisplaySizeMM); /* prototype to pass -Wmissing-prototypes */
14286 XS(XS_Wx_GetDisplaySizeMM)
14294 croak_xs_usage(cv, "");
14297 RETVAL = new wxSize( wxGetDisplaySizeMM() );
14298 ST(0) = sv_newmortal();
14299 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Size" );
14300 wxPli_thread_sv_register( aTHX_ "Wx::Size", RETVAL, ST(0) );
14307 XS(XS_Wx_GetDisplaySize); /* prototype to pass -Wmissing-prototypes */
14308 XS(XS_Wx_GetDisplaySize)
14316 croak_xs_usage(cv, "");
14319 RETVAL = new wxSize( wxGetDisplaySize() );
14320 ST(0) = sv_newmortal();
14321 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Size" );
14322 wxPli_thread_sv_register( aTHX_ "Wx::Size", RETVAL, ST(0) );
14331 XS(boot_Wx_GDI); /* prototype to pass -Wmissing-prototypes */
14339 #if (PERL_REVISION == 5 && PERL_VERSION < 9)
14340 char* file = __FILE__;
14342 const char* file = __FILE__;
14345 PERL_UNUSED_VAR(cv); /* -W */
14346 PERL_UNUSED_VAR(items); /* -W */
14347 XS_VERSION_BOOTCHECK ;
14349 newXS("Wx::Palette::new", XS_Wx__Palette_new, file);
14350 newXS("Wx::Palette::CLONE", XS_Wx__Palette_CLONE, file);
14351 newXS("Wx::Palette::DESTROY", XS_Wx__Palette_DESTROY, file);
14353 newXS("Wx::Palette::GetColoursCount", XS_Wx__Palette_GetColoursCount, file);
14355 newXS("Wx::Palette::GetPixel", XS_Wx__Palette_GetPixel, file);
14356 newXS("Wx::Palette::GetRGB", XS_Wx__Palette_GetRGB, file);
14357 newXS("Wx::Palette::Ok", XS_Wx__Palette_Ok, file);
14359 newXS("Wx::Palette::IsOk", XS_Wx__Palette_IsOk, file);
14361 newXS("Wx::Image::new", XS_Wx__Image_new, file);
14362 newXS("Wx::Image::newNull", XS_Wx__Image_newNull, file);
14363 newXS("Wx::Image::newWH", XS_Wx__Image_newWH, file);
14364 newXS("Wx::Image::newData", XS_Wx__Image_newData, file);
14366 newXS("Wx::Image::newDataAlpha", XS_Wx__Image_newDataAlpha, file);
14368 newXS("Wx::Image::newNameType", XS_Wx__Image_newNameType, file);
14369 newXS("Wx::Image::newNameMIME", XS_Wx__Image_newNameMIME, file);
14370 newXS("Wx::Image::newStreamType", XS_Wx__Image_newStreamType, file);
14371 newXS("Wx::Image::newStreamMIME", XS_Wx__Image_newStreamMIME, file);
14372 newXS("Wx::Image::newBitmap", XS_Wx__Image_newBitmap, file);
14373 newXS("Wx::Image::newIcon", XS_Wx__Image_newIcon, file);
14374 newXS("Wx::Image::CLONE", XS_Wx__Image_CLONE, file);
14375 newXS("Wx::Image::DESTROY", XS_Wx__Image_DESTROY, file);
14376 newXS("Wx::Image::AddHandler", XS_Wx__Image_AddHandler, file);
14377 newXS("Wx::Image::ConvertToMono", XS_Wx__Image_ConvertToMono, file);
14379 newXS("Wx::Image::ConvertAlphaToMask", XS_Wx__Image_ConvertAlphaToMask, file);
14382 newXS("Wx::Image::ConvertColourToAlpha", XS_Wx__Image_ConvertColourToAlpha, file);
14385 newXS("Wx::Image::ConvertToGreyscale", XS_Wx__Image_ConvertToGreyscale, file);
14387 newXS("Wx::Image::Copy", XS_Wx__Image_Copy, file);
14388 newXS("Wx::Image::Create", XS_Wx__Image_Create, file);
14389 newXS("Wx::Image::Destroy", XS_Wx__Image_Destroy, file);
14390 newXS("Wx::Image::FindHandlerName", XS_Wx__Image_FindHandlerName, file);
14391 newXS("Wx::Image::FindHandlerExtType", XS_Wx__Image_FindHandlerExtType, file);
14392 newXS("Wx::Image::FindHandlerType", XS_Wx__Image_FindHandlerType, file);
14393 newXS("Wx::Image::FindHandlerMime", XS_Wx__Image_FindHandlerMime, file);
14395 newXS("Wx::Image::GetAlpha", XS_Wx__Image_GetAlpha, file);
14396 newXS("Wx::Image::GetAlphaXY", XS_Wx__Image_GetAlphaXY, file);
14397 newXS("Wx::Image::GetAlphaData", XS_Wx__Image_GetAlphaData, file);
14399 newXS("Wx::Image::GetData", XS_Wx__Image_GetData, file);
14400 newXS("Wx::Image::GetBlue", XS_Wx__Image_GetBlue, file);
14401 newXS("Wx::Image::GetGreen", XS_Wx__Image_GetGreen, file);
14402 newXS("Wx::Image::GetRed", XS_Wx__Image_GetRed, file);
14403 newXS("Wx::Image::GetHeight", XS_Wx__Image_GetHeight, file);
14404 newXS("Wx::Image::GetMaskBlue", XS_Wx__Image_GetMaskBlue, file);
14405 newXS("Wx::Image::GetMaskGreen", XS_Wx__Image_GetMaskGreen, file);
14406 newXS("Wx::Image::GetMaskRed", XS_Wx__Image_GetMaskRed, file);
14407 newXS("Wx::Image::GetOption", XS_Wx__Image_GetOption, file);
14408 newXS("Wx::Image::GetOptionInt", XS_Wx__Image_GetOptionInt, file);
14409 newXS("Wx::Image::GetPalette", XS_Wx__Image_GetPalette, file);
14410 newXS("Wx::Image::GetSubImage", XS_Wx__Image_GetSubImage, file);
14411 newXS("Wx::Image::GetWidth", XS_Wx__Image_GetWidth, file);
14413 newXS("Wx::Image::HasAlpha", XS_Wx__Image_HasAlpha, file);
14416 newXS("Wx::Image::InitAlpha", XS_Wx__Image_InitAlpha, file);
14419 newXS("Wx::Image::IsTransparent", XS_Wx__Image_IsTransparent, file);
14421 newXS("Wx::Image::HasMask", XS_Wx__Image_HasMask, file);
14422 newXS("Wx::Image::HasOption", XS_Wx__Image_HasOption, file);
14423 newXS("Wx::Image::HasPalette", XS_Wx__Image_HasPalette, file);
14424 newXS("Wx::Image::InsertHandler", XS_Wx__Image_InsertHandler, file);
14425 newXS("Wx::Image::LoadFile", XS_Wx__Image_LoadFile, file);
14426 newXS("Wx::Image::LoadFileType", XS_Wx__Image_LoadFileType, file);
14427 newXS("Wx::Image::LoadFileMIME", XS_Wx__Image_LoadFileMIME, file);
14428 newXS("Wx::Image::LoadStreamType", XS_Wx__Image_LoadStreamType, file);
14429 newXS("Wx::Image::LoadStreamMIME", XS_Wx__Image_LoadStreamMIME, file);
14430 newXS("Wx::Image::Ok", XS_Wx__Image_Ok, file);
14432 newXS("Wx::Image::IsOk", XS_Wx__Image_IsOk, file);
14434 newXS("Wx::Image::SaveFile", XS_Wx__Image_SaveFile, file);
14435 newXS("Wx::Image::SaveFileOnly", XS_Wx__Image_SaveFileOnly, file);
14436 newXS("Wx::Image::SaveFileType", XS_Wx__Image_SaveFileType, file);
14437 newXS("Wx::Image::SaveFileMIME", XS_Wx__Image_SaveFileMIME, file);
14438 newXS("Wx::Image::SaveStreamType", XS_Wx__Image_SaveStreamType, file);
14439 newXS("Wx::Image::SaveStreamMIME", XS_Wx__Image_SaveStreamMIME, file);
14440 newXS("Wx::Image::Mirror", XS_Wx__Image_Mirror, file);
14441 newXS("Wx::Image::Replace", XS_Wx__Image_Replace, file);
14443 newXS("Wx::Image::Rescale", XS_Wx__Image_Rescale, file);
14446 newXS("Wx::Image::Rescale", XS_Wx__Image_Rescale, file);
14448 newXS("Wx::Image::Rotate", XS_Wx__Image_Rotate, file);
14450 newXS("Wx::Image::RotateHue", XS_Wx__Image_RotateHue, file);
14452 newXS("Wx::Image::Rotate90", XS_Wx__Image_Rotate90, file);
14454 newXS("Wx::Image::ShrinkBy", XS_Wx__Image_ShrinkBy, file);
14457 newXS("Wx::Image::Scale", XS_Wx__Image_Scale, file);
14460 newXS("Wx::Image::Scale", XS_Wx__Image_Scale, file);
14463 newXS("Wx::Image::SetAlpha", XS_Wx__Image_SetAlpha, file);
14464 newXS("Wx::Image::SetAlphaXY", XS_Wx__Image_SetAlphaXY, file);
14465 newXS("Wx::Image::SetAlphaData", XS_Wx__Image_SetAlphaData, file);
14467 newXS("Wx::Image::SetData", XS_Wx__Image_SetData, file);
14468 newXS("Wx::Image::SetMask", XS_Wx__Image_SetMask, file);
14469 newXS("Wx::Image::SetMaskColour", XS_Wx__Image_SetMaskColour, file);
14470 newXS("Wx::Image::SetOption", XS_Wx__Image_SetOption, file);
14471 newXS("Wx::Image::SetOptionInt", XS_Wx__Image_SetOptionInt, file);
14472 newXS("Wx::Image::SetPalette", XS_Wx__Image_SetPalette, file);
14474 newXS("Wx::Image::SetRGB", XS_Wx__Image_SetRGB, file);
14475 newXS("Wx::Image::SetRGBpixel", XS_Wx__Image_SetRGBpixel, file);
14476 newXS("Wx::Image::SetRGBrect", XS_Wx__Image_SetRGBrect, file);
14479 newXS("Wx::Image::SetRGB", XS_Wx__Image_SetRGB, file);
14482 newXS("Wx::Image::Blur", XS_Wx__Image_Blur, file);
14483 newXS("Wx::Image::BlurHorizontal", XS_Wx__Image_BlurHorizontal, file);
14484 newXS("Wx::Image::BlurVertical", XS_Wx__Image_BlurVertical, file);
14485 newXS("Wx::Image::GetOrFindMaskColour", XS_Wx__Image_GetOrFindMaskColour, file);
14487 newXS("Wx::ImageHandler::Destroy", XS_Wx__ImageHandler_Destroy, file);
14488 newXS("Wx::ImageHandler::GetImageCount", XS_Wx__ImageHandler_GetImageCount, file);
14489 newXS("Wx::ImageHandler::GetName", XS_Wx__ImageHandler_GetName, file);
14490 newXS("Wx::ImageHandler::GetExtension", XS_Wx__ImageHandler_GetExtension, file);
14492 newXS("Wx::ImageHandler::GetType", XS_Wx__ImageHandler_GetType, file);
14495 newXS("Wx::ImageHandler::GetType", XS_Wx__ImageHandler_GetType, file);
14497 newXS("Wx::ImageHandler::GetMimeType", XS_Wx__ImageHandler_GetMimeType, file);
14498 newXS("Wx::ImageHandler::LoadFile", XS_Wx__ImageHandler_LoadFile, file);
14499 newXS("Wx::ImageHandler::SaveFile", XS_Wx__ImageHandler_SaveFile, file);
14500 newXS("Wx::ImageHandler::SetName", XS_Wx__ImageHandler_SetName, file);
14501 newXS("Wx::ImageHandler::SetExtension", XS_Wx__ImageHandler_SetExtension, file);
14502 newXS("Wx::ImageHandler::SetMimeType", XS_Wx__ImageHandler_SetMimeType, file);
14503 newXS("Wx::ImageHandler::SetType", XS_Wx__ImageHandler_SetType, file);
14504 newXS("Wx::GIFHandler::new", XS_Wx__GIFHandler_new, file);
14505 newXS("Wx::BMPHandler::new", XS_Wx__BMPHandler_new, file);
14506 newXS("Wx::PNMHandler::new", XS_Wx__PNMHandler_new, file);
14507 newXS("Wx::PCXHandler::new", XS_Wx__PCXHandler_new, file);
14508 newXS("Wx::PNGHandler::new", XS_Wx__PNGHandler_new, file);
14509 newXS("Wx::JPEGHandler::new", XS_Wx__JPEGHandler_new, file);
14511 newXS("Wx::TIFFHandler::new", XS_Wx__TIFFHandler_new, file);
14513 newXS("Wx::XPMHandler::new", XS_Wx__XPMHandler_new, file);
14515 newXS("Wx::IFFHandler::new", XS_Wx__IFFHandler_new, file);
14518 newXS("Wx::ICOHandler::new", XS_Wx__ICOHandler_new, file);
14519 newXS("Wx::CURHandler::new", XS_Wx__CURHandler_new, file);
14520 newXS("Wx::ANIHandler::new", XS_Wx__ANIHandler_new, file);
14523 newXS("Wx::TGAHandler::new", XS_Wx__TGAHandler_new, file);
14525 newXS("Wx::InitAllImageHandlers", XS_Wx_InitAllImageHandlers, file);
14526 newXS("Wx::Brush::new", XS_Wx__Brush_new, file);
14527 newXS("Wx::Brush::newColour", XS_Wx__Brush_newColour, file);
14528 newXS("Wx::Brush::newName", XS_Wx__Brush_newName, file);
14529 newXS("Wx::Brush::newBitmap", XS_Wx__Brush_newBitmap, file);
14530 newXS("Wx::Brush::CLONE", XS_Wx__Brush_CLONE, file);
14531 newXS("Wx::Brush::DESTROY", XS_Wx__Brush_DESTROY, file);
14532 newXS("Wx::Brush::GetColour", XS_Wx__Brush_GetColour, file);
14533 newXS("Wx::Brush::GetStipple", XS_Wx__Brush_GetStipple, file);
14534 newXS("Wx::Brush::GetStyle", XS_Wx__Brush_GetStyle, file);
14535 newXS("Wx::Brush::Ok", XS_Wx__Brush_Ok, file);
14537 newXS("Wx::Brush::IsOk", XS_Wx__Brush_IsOk, file);
14540 newXS("Wx::Brush::IsHatch", XS_Wx__Brush_IsHatch, file);
14542 newXS("Wx::Brush::SetColour", XS_Wx__Brush_SetColour, file);
14543 newXS("Wx::Brush::SetColourColour", XS_Wx__Brush_SetColourColour, file);
14544 newXS("Wx::Brush::SetColourName", XS_Wx__Brush_SetColourName, file);
14545 newXS("Wx::Brush::SetColourRGB", XS_Wx__Brush_SetColourRGB, file);
14546 newXS("Wx::Brush::SetStipple", XS_Wx__Brush_SetStipple, file);
14547 newXS("Wx::Brush::SetStyle", XS_Wx__Brush_SetStyle, file);
14548 newXS("Wx::Pen::new", XS_Wx__Pen_new, file);
14549 newXS("Wx::Pen::newColour", XS_Wx__Pen_newColour, file);
14550 newXS("Wx::Pen::newString", XS_Wx__Pen_newString, file);
14552 newXS("Wx::Pen::newBitmap", XS_Wx__Pen_newBitmap, file);
14554 newXS("Wx::Pen::CLONE", XS_Wx__Pen_CLONE, file);
14555 newXS("Wx::Pen::DESTROY", XS_Wx__Pen_DESTROY, file);
14556 newXS("Wx::Pen::GetCap", XS_Wx__Pen_GetCap, file);
14557 newXS("Wx::Pen::GetColour", XS_Wx__Pen_GetColour, file);
14558 newXS("Wx::Pen::GetDashes", XS_Wx__Pen_GetDashes, file);
14559 newXS("Wx::Pen::GetJoin", XS_Wx__Pen_GetJoin, file);
14561 newXS("Wx::Pen::GetStipple", XS_Wx__Pen_GetStipple, file);
14563 newXS("Wx::Pen::GetStyle", XS_Wx__Pen_GetStyle, file);
14564 newXS("Wx::Pen::GetWidth", XS_Wx__Pen_GetWidth, file);
14565 newXS("Wx::Pen::Ok", XS_Wx__Pen_Ok, file);
14567 newXS("Wx::Pen::IsOk", XS_Wx__Pen_IsOk, file);
14569 newXS("Wx::Pen::SetCap", XS_Wx__Pen_SetCap, file);
14570 newXS("Wx::Pen::SetColour", XS_Wx__Pen_SetColour, file);
14571 newXS("Wx::Pen::SetColourColour", XS_Wx__Pen_SetColourColour, file);
14572 newXS("Wx::Pen::SetColourName", XS_Wx__Pen_SetColourName, file);
14573 newXS("Wx::Pen::SetColourRGB", XS_Wx__Pen_SetColourRGB, file);
14574 newXS("Wx::Pen::SetDashes", XS_Wx__Pen_SetDashes, file);
14575 newXS("Wx::Pen::SetJoin", XS_Wx__Pen_SetJoin, file);
14577 newXS("Wx::Pen::SetStipple", XS_Wx__Pen_SetStipple, file);
14579 newXS("Wx::Pen::SetStyle", XS_Wx__Pen_SetStyle, file);
14580 newXS("Wx::Pen::SetWidth", XS_Wx__Pen_SetWidth, file);
14581 newXS("Wx::DC::CLONE", XS_Wx__DC_CLONE, file);
14582 newXS("Wx::DC::DESTROY", XS_Wx__DC_DESTROY, file);
14584 newXS("Wx::DC::BeginDrawing", XS_Wx__DC_BeginDrawing, file);
14586 newXS("Wx::DC::Blit", XS_Wx__DC_Blit, file);
14588 newXS("Wx::DC::StretchBlit", XS_Wx__DC_StretchBlit, file);
14590 newXS("Wx::DC::CalcBoundingBox", XS_Wx__DC_CalcBoundingBox, file);
14591 newXS("Wx::DC::Clear", XS_Wx__DC_Clear, file);
14592 newXS("Wx::DC::CrossHair", XS_Wx__DC_CrossHair, file);
14593 newXS("Wx::DC::DestroyClippingRegion", XS_Wx__DC_DestroyClippingRegion, file);
14594 newXS("Wx::DC::DeviceToLogicalX", XS_Wx__DC_DeviceToLogicalX, file);
14595 newXS("Wx::DC::DeviceToLogicalXRel", XS_Wx__DC_DeviceToLogicalXRel, file);
14596 newXS("Wx::DC::DeviceToLogicalY", XS_Wx__DC_DeviceToLogicalY, file);
14597 newXS("Wx::DC::DeviceToLogicalYRel", XS_Wx__DC_DeviceToLogicalYRel, file);
14598 newXS("Wx::DC::DrawArc", XS_Wx__DC_DrawArc, file);
14599 newXS("Wx::DC::DrawBitmap", XS_Wx__DC_DrawBitmap, file);
14600 newXS("Wx::DC::DrawCheckMark", XS_Wx__DC_DrawCheckMark, file);
14601 newXS("Wx::DC::DrawCheckMarkXYWH", XS_Wx__DC_DrawCheckMarkXYWH, file);
14602 newXS("Wx::DC::DrawCheckMarkRect", XS_Wx__DC_DrawCheckMarkRect, file);
14603 newXS("Wx::DC::DrawCircle", XS_Wx__DC_DrawCircle, file);
14604 newXS("Wx::DC::DrawEllipse", XS_Wx__DC_DrawEllipse, file);
14605 newXS("Wx::DC::DrawEllipticArc", XS_Wx__DC_DrawEllipticArc, file);
14606 newXS("Wx::DC::DrawIcon", XS_Wx__DC_DrawIcon, file);
14607 newXS("Wx::DC::DrawLine", XS_Wx__DC_DrawLine, file);
14608 newXS("Wx::DC::DrawLines", XS_Wx__DC_DrawLines, file);
14609 newXS("Wx::DC::DrawPoint", XS_Wx__DC_DrawPoint, file);
14610 newXS("Wx::DC::DrawPolygon", XS_Wx__DC_DrawPolygon, file);
14611 newXS("Wx::DC::DrawRectangle", XS_Wx__DC_DrawRectangle, file);
14612 newXS("Wx::DC::DrawRotatedText", XS_Wx__DC_DrawRotatedText, file);
14613 newXS("Wx::DC::DrawRoundedRectangle", XS_Wx__DC_DrawRoundedRectangle, file);
14614 newXS("Wx::DC::DrawSpline", XS_Wx__DC_DrawSpline, file);
14615 newXS("Wx::DC::DrawText", XS_Wx__DC_DrawText, file);
14616 newXS("Wx::DC::EndDoc", XS_Wx__DC_EndDoc, file);
14618 newXS("Wx::DC::EndDrawing", XS_Wx__DC_EndDrawing, file);
14620 newXS("Wx::DC::EndPage", XS_Wx__DC_EndPage, file);
14621 newXS("Wx::DC::FloodFill", XS_Wx__DC_FloodFill, file);
14623 newXS("Wx::DC::GetAsBitmap", XS_Wx__DC_GetAsBitmap, file);
14625 newXS("Wx::DC::GetBackground", XS_Wx__DC_GetBackground, file);
14626 newXS("Wx::DC::GetBackgroundMode", XS_Wx__DC_GetBackgroundMode, file);
14627 newXS("Wx::DC::GetBrush", XS_Wx__DC_GetBrush, file);
14628 newXS("Wx::DC::GetCharHeight", XS_Wx__DC_GetCharHeight, file);
14629 newXS("Wx::DC::GetCharWidth", XS_Wx__DC_GetCharWidth, file);
14630 newXS("Wx::DC::GetClippingBox", XS_Wx__DC_GetClippingBox, file);
14631 newXS("Wx::DC::GetFont", XS_Wx__DC_GetFont, file);
14632 newXS("Wx::DC::GetLogicalFunction", XS_Wx__DC_GetLogicalFunction, file);
14633 newXS("Wx::DC::GetMapMode", XS_Wx__DC_GetMapMode, file);
14635 newXS("Wx::DC::GetOptimization", XS_Wx__DC_GetOptimization, file);
14637 newXS("Wx::DC::GetPen", XS_Wx__DC_GetPen, file);
14638 newXS("Wx::DC::GetPixel", XS_Wx__DC_GetPixel, file);
14639 newXS("Wx::DC::GetSize", XS_Wx__DC_GetSize, file);
14640 newXS("Wx::DC::GetSizeWH", XS_Wx__DC_GetSizeWH, file);
14641 newXS("Wx::DC::GetSizeMM", XS_Wx__DC_GetSizeMM, file);
14642 newXS("Wx::DC::GetSizeMMWH", XS_Wx__DC_GetSizeMMWH, file);
14643 newXS("Wx::DC::GetPPI", XS_Wx__DC_GetPPI, file);
14644 newXS("Wx::DC::GetTextBackground", XS_Wx__DC_GetTextBackground, file);
14645 newXS("Wx::DC::GetTextExtent", XS_Wx__DC_GetTextExtent, file);
14646 newXS("Wx::DC::GetPartialTextExtents", XS_Wx__DC_GetPartialTextExtents, file);
14647 newXS("Wx::DC::GetMultiLineTextExtent", XS_Wx__DC_GetMultiLineTextExtent, file);
14648 newXS("Wx::DC::GetTextForeground", XS_Wx__DC_GetTextForeground, file);
14649 newXS("Wx::DC::GetUserScale", XS_Wx__DC_GetUserScale, file);
14651 newXS("Wx::DC::GradientFillLinear", XS_Wx__DC_GradientFillLinear, file);
14653 newXS("Wx::DC::LogicalToDeviceX", XS_Wx__DC_LogicalToDeviceX, file);
14654 newXS("Wx::DC::LogicalToDeviceXRel", XS_Wx__DC_LogicalToDeviceXRel, file);
14655 newXS("Wx::DC::LogicalToDeviceY", XS_Wx__DC_LogicalToDeviceY, file);
14656 newXS("Wx::DC::LogicalToDeviceYRel", XS_Wx__DC_LogicalToDeviceYRel, file);
14657 newXS("Wx::DC::MaxX", XS_Wx__DC_MaxX, file);
14658 newXS("Wx::DC::MaxY", XS_Wx__DC_MaxY, file);
14659 newXS("Wx::DC::MinX", XS_Wx__DC_MinX, file);
14660 newXS("Wx::DC::MinY", XS_Wx__DC_MinY, file);
14662 newXS("Wx::DC::IsOk", XS_Wx__DC_IsOk, file);
14663 newXS("Wx::DC::Ok", XS_Wx__DC_Ok, file);
14666 newXS("Wx::DC::Ok", XS_Wx__DC_Ok, file);
14668 newXS("Wx::DC::ResetBoundingBox", XS_Wx__DC_ResetBoundingBox, file);
14669 newXS("Wx::DC::SetAxisOrientation", XS_Wx__DC_SetAxisOrientation, file);
14670 newXS("Wx::DC::GetDepth", XS_Wx__DC_GetDepth, file);
14671 newXS("Wx::DC::GetDeviceOrigin", XS_Wx__DC_GetDeviceOrigin, file);
14672 newXS("Wx::DC::SetDeviceOrigin", XS_Wx__DC_SetDeviceOrigin, file);
14673 newXS("Wx::DC::SetBackground", XS_Wx__DC_SetBackground, file);
14674 newXS("Wx::DC::SetBackgroundMode", XS_Wx__DC_SetBackgroundMode, file);
14675 newXS("Wx::DC::SetBrush", XS_Wx__DC_SetBrush, file);
14676 newXS("Wx::DC::SetClippingRegion", XS_Wx__DC_SetClippingRegion, file);
14677 newXS("Wx::DC::SetClippingRegionXYWH", XS_Wx__DC_SetClippingRegionXYWH, file);
14678 newXS("Wx::DC::SetClippingRegionRegion", XS_Wx__DC_SetClippingRegionRegion, file);
14679 newXS("Wx::DC::SetFont", XS_Wx__DC_SetFont, file);
14680 newXS("Wx::DC::SetLogicalFunction", XS_Wx__DC_SetLogicalFunction, file);
14681 newXS("Wx::DC::SetMapMode", XS_Wx__DC_SetMapMode, file);
14683 newXS("Wx::DC::SetOptimization", XS_Wx__DC_SetOptimization, file);
14685 newXS("Wx::DC::SetPalette", XS_Wx__DC_SetPalette, file);
14686 newXS("Wx::DC::SetPen", XS_Wx__DC_SetPen, file);
14687 newXS("Wx::DC::SetTextBackground", XS_Wx__DC_SetTextBackground, file);
14688 newXS("Wx::DC::SetTextForeground", XS_Wx__DC_SetTextForeground, file);
14689 newXS("Wx::DC::SetUserScale", XS_Wx__DC_SetUserScale, file);
14690 newXS("Wx::DC::StartDoc", XS_Wx__DC_StartDoc, file);
14691 newXS("Wx::DC::StartPage", XS_Wx__DC_StartPage, file);
14692 newXS("Wx::DC::GetLogicalScale", XS_Wx__DC_GetLogicalScale, file);
14693 newXS("Wx::DC::SetLogicalScale", XS_Wx__DC_SetLogicalScale, file);
14695 newXS("Wx::DC::GetLayoutDirection", XS_Wx__DC_GetLayoutDirection, file);
14696 newXS("Wx::DC::SetLayoutDirection", XS_Wx__DC_SetLayoutDirection, file);
14698 newXS("Wx::ScreenDC::new", XS_Wx__ScreenDC_new, file);
14699 newXS("Wx::ScreenDC::EndDrawingOnTop", XS_Wx__ScreenDC_EndDrawingOnTop, file);
14700 newXS("Wx::ScreenDC::StartDrawingOnTop", XS_Wx__ScreenDC_StartDrawingOnTop, file);
14701 newXS("Wx::ScreenDC::StartDrawingOnTopWindow", XS_Wx__ScreenDC_StartDrawingOnTopWindow, file);
14702 newXS("Wx::ScreenDC::StartDrawingOnTopRect", XS_Wx__ScreenDC_StartDrawingOnTopRect, file);
14703 newXS("Wx::WindowDC::new", XS_Wx__WindowDC_new, file);
14704 newXS("Wx::PaintDC::new", XS_Wx__PaintDC_new, file);
14705 newXS("Wx::MemoryDC::new", XS_Wx__MemoryDC_new, file);
14706 newXS("Wx::MemoryDC::SelectObject", XS_Wx__MemoryDC_SelectObject, file);
14708 newXS("Wx::MemoryDC::SelectObjectAsSource", XS_Wx__MemoryDC_SelectObjectAsSource, file);
14710 newXS("Wx::ClientDC::new", XS_Wx__ClientDC_new, file);
14711 newXS("Wx::BufferedDC::newDefault", XS_Wx__BufferedDC_newDefault, file);
14713 newXS("Wx::BufferedDC::newBitmap", XS_Wx__BufferedDC_newBitmap, file);
14714 newXS("Wx::BufferedDC::newSize", XS_Wx__BufferedDC_newSize, file);
14715 newXS("Wx::BufferedDC::InitBitmap", XS_Wx__BufferedDC_InitBitmap, file);
14716 newXS("Wx::BufferedDC::InitSize", XS_Wx__BufferedDC_InitSize, file);
14719 newXS("Wx::BufferedDC::newBitmap", XS_Wx__BufferedDC_newBitmap, file);
14720 newXS("Wx::BufferedDC::newSize", XS_Wx__BufferedDC_newSize, file);
14721 newXS("Wx::BufferedDC::InitBitmap", XS_Wx__BufferedDC_InitBitmap, file);
14722 newXS("Wx::BufferedDC::InitSize", XS_Wx__BufferedDC_InitSize, file);
14724 newXS("Wx::BufferedDC::new", XS_Wx__BufferedDC_new, file);
14725 newXS("Wx::BufferedDC::Init", XS_Wx__BufferedDC_Init, file);
14726 newXS("Wx::BufferedDC::UnMask", XS_Wx__BufferedDC_UnMask, file);
14728 newXS("Wx::BufferedDC::SetStyle", XS_Wx__BufferedDC_SetStyle, file);
14729 newXS("Wx::BufferedDC::GetStyle", XS_Wx__BufferedDC_GetStyle, file);
14732 newXS("Wx::BufferedPaintDC::newBitmap", XS_Wx__BufferedPaintDC_newBitmap, file);
14733 newXS("Wx::BufferedPaintDC::newWindow", XS_Wx__BufferedPaintDC_newWindow, file);
14736 newXS("Wx::BufferedPaintDC::newBitmap", XS_Wx__BufferedPaintDC_newBitmap, file);
14737 newXS("Wx::BufferedPaintDC::newWindow", XS_Wx__BufferedPaintDC_newWindow, file);
14739 newXS("Wx::BufferedPaintDC::new", XS_Wx__BufferedPaintDC_new, file);
14741 newXS("Wx::AutoBufferedPaintDC::new", XS_Wx__AutoBufferedPaintDC_new, file);
14742 newXS("Wx::AutoBufferedPaintDCFactory", XS_Wx_AutoBufferedPaintDCFactory, file);
14743 newXS("Wx::MirrorDC::new", XS_Wx__MirrorDC_new, file);
14744 newXS("Wx::DCClipper::new", XS_Wx__DCClipper_new, file);
14745 newXS("Wx::DCClipper::newRegion", XS_Wx__DCClipper_newRegion, file);
14746 newXS("Wx::DCClipper::newRect", XS_Wx__DCClipper_newRect, file);
14747 newXS("Wx::DCClipper::newXYWH", XS_Wx__DCClipper_newXYWH, file);
14748 newXS("Wx::DCClipper::CLONE", XS_Wx__DCClipper_CLONE, file);
14749 newXS("Wx::DCClipper::DESTROY", XS_Wx__DCClipper_DESTROY, file);
14751 newXS("Wx::Cursor::new", XS_Wx__Cursor_new, file);
14753 newXS("Wx::Cursor::newFile", XS_Wx__Cursor_newFile, file);
14755 newXS("Wx::Cursor::newId", XS_Wx__Cursor_newId, file);
14757 newXS("Wx::Cursor::newImage", XS_Wx__Cursor_newImage, file);
14760 newXS("Wx::Cursor::newData", XS_Wx__Cursor_newData, file);
14762 newXS("Wx::Cursor::CLONE", XS_Wx__Cursor_CLONE, file);
14763 newXS("Wx::Cursor::DESTROY", XS_Wx__Cursor_DESTROY, file);
14764 newXS("Wx::Cursor::Ok", XS_Wx__Cursor_Ok, file);
14766 newXS("Wx::Cursor::IsOk", XS_Wx__Cursor_IsOk, file);
14768 newXS("Wx::GetWxPerlIcon", XS_Wx_GetWxPerlIcon, file);
14769 newXS("Wx::Icon::new", XS_Wx__Icon_new, file);
14770 newXS("Wx::Icon::newNull", XS_Wx__Icon_newNull, file);
14771 newXS("Wx::Icon::newFile", XS_Wx__Icon_newFile, file);
14772 newXS("Wx::Icon::newFromXPM", XS_Wx__Icon_newFromXPM, file);
14774 newXS("Wx::Icon::newLocation", XS_Wx__Icon_newLocation, file);
14776 newXS("Wx::Icon::CLONE", XS_Wx__Icon_CLONE, file);
14777 newXS("Wx::Icon::DESTROY", XS_Wx__Icon_DESTROY, file);
14778 newXS("Wx::Icon::LoadFile", XS_Wx__Icon_LoadFile, file);
14779 newXS("Wx::Icon::Ok", XS_Wx__Icon_Ok, file);
14781 newXS("Wx::Icon::IsOk", XS_Wx__Icon_IsOk, file);
14783 newXS("Wx::Icon::CopyFromBitmap", XS_Wx__Icon_CopyFromBitmap, file);
14785 newXS("Wx::Icon::GetDepth", XS_Wx__Icon_GetDepth, file);
14786 newXS("Wx::Icon::GetHeight", XS_Wx__Icon_GetHeight, file);
14787 newXS("Wx::Icon::GetWidth", XS_Wx__Icon_GetWidth, file);
14788 newXS("Wx::Icon::SetDepth", XS_Wx__Icon_SetDepth, file);
14789 newXS("Wx::Icon::SetHeight", XS_Wx__Icon_SetHeight, file);
14790 newXS("Wx::Icon::SetWidth", XS_Wx__Icon_SetWidth, file);
14792 newXS("Wx::Mask::new", XS_Wx__Mask_new, file);
14793 newXS("Wx::Mask::newBitmap", XS_Wx__Mask_newBitmap, file);
14794 newXS("Wx::Mask::newBitmapColour", XS_Wx__Mask_newBitmapColour, file);
14795 newXS("Wx::Mask::newBitmapIndex", XS_Wx__Mask_newBitmapIndex, file);
14796 newXS("Wx::Mask::Destroy", XS_Wx__Mask_Destroy, file);
14798 newXS("Wx::Bitmap::bmp_spaceship", XS_Wx__Bitmap_bmp_spaceship, file);
14800 newXS("Wx::Bitmap::new", XS_Wx__Bitmap_new, file);
14801 newXS("Wx::Bitmap::newEmpty", XS_Wx__Bitmap_newEmpty, file);
14802 newXS("Wx::Bitmap::newFile", XS_Wx__Bitmap_newFile, file);
14803 newXS("Wx::Bitmap::newIcon", XS_Wx__Bitmap_newIcon, file);
14804 newXS("Wx::Bitmap::newFromBits", XS_Wx__Bitmap_newFromBits, file);
14805 newXS("Wx::Bitmap::newFromXPM", XS_Wx__Bitmap_newFromXPM, file);
14806 newXS("Wx::Bitmap::newImage", XS_Wx__Bitmap_newImage, file);
14807 newXS("Wx::Bitmap::CLONE", XS_Wx__Bitmap_CLONE, file);
14808 newXS("Wx::Bitmap::DESTROY", XS_Wx__Bitmap_DESTROY, file);
14809 newXS("Wx::Bitmap::ConvertToImage", XS_Wx__Bitmap_ConvertToImage, file);
14810 newXS("Wx::Bitmap::CopyFromIcon", XS_Wx__Bitmap_CopyFromIcon, file);
14812 newXS("Wx::Bitmap::AddHandler", XS_Wx__Bitmap_AddHandler, file);
14815 newXS("Wx::Bitmap::FindHandlerName", XS_Wx__Bitmap_FindHandlerName, file);
14816 newXS("Wx::Bitmap::FindHandlerExtType", XS_Wx__Bitmap_FindHandlerExtType, file);
14817 newXS("Wx::Bitmap::FindHandlerType", XS_Wx__Bitmap_FindHandlerType, file);
14819 newXS("Wx::Bitmap::GetDepth", XS_Wx__Bitmap_GetDepth, file);
14821 newXS("Wx::Bitmap::GetHandlers", XS_Wx__Bitmap_GetHandlers, file);
14823 newXS("Wx::Bitmap::GetHeight", XS_Wx__Bitmap_GetHeight, file);
14824 newXS("Wx::Bitmap::GetPalette", XS_Wx__Bitmap_GetPalette, file);
14825 newXS("Wx::Bitmap::GetMask", XS_Wx__Bitmap_GetMask, file);
14826 newXS("Wx::Bitmap::GetWidth", XS_Wx__Bitmap_GetWidth, file);
14827 newXS("Wx::Bitmap::GetSubBitmap", XS_Wx__Bitmap_GetSubBitmap, file);
14829 newXS("Wx::Bitmap::InitStandardHandlers", XS_Wx__Bitmap_InitStandardHandlers, file);
14830 newXS("Wx::Bitmap::InsertHandler", XS_Wx__Bitmap_InsertHandler, file);
14833 newXS("Wx::Bitmap::LoadFile", XS_Wx__Bitmap_LoadFile, file);
14836 newXS("Wx::Bitmap::LoadFile", XS_Wx__Bitmap_LoadFile, file);
14838 newXS("Wx::Bitmap::Ok", XS_Wx__Bitmap_Ok, file);
14840 newXS("Wx::Bitmap::IsOk", XS_Wx__Bitmap_IsOk, file);
14843 newXS("Wx::Bitmap::RemoveHandler", XS_Wx__Bitmap_RemoveHandler, file);
14845 newXS("Wx::Bitmap::SaveFile", XS_Wx__Bitmap_SaveFile, file);
14846 newXS("Wx::Bitmap::SetDepth", XS_Wx__Bitmap_SetDepth, file);
14847 newXS("Wx::Bitmap::SetHeight", XS_Wx__Bitmap_SetHeight, file);
14848 newXS("Wx::Bitmap::SetMask", XS_Wx__Bitmap_SetMask, file);
14850 newXS("Wx::Bitmap::SetPalette", XS_Wx__Bitmap_SetPalette, file);
14852 newXS("Wx::Bitmap::SetWidth", XS_Wx__Bitmap_SetWidth, file);
14853 newXS("Wx::ImageList::new", XS_Wx__ImageList_new, file);
14854 newXS("Wx::ImageList::AddBitmap", XS_Wx__ImageList_AddBitmap, file);
14855 newXS("Wx::ImageList::AddWithColourMask", XS_Wx__ImageList_AddWithColourMask, file);
14856 newXS("Wx::ImageList::AddIcon", XS_Wx__ImageList_AddIcon, file);
14857 newXS("Wx::ImageList::Draw", XS_Wx__ImageList_Draw, file);
14858 newXS("Wx::ImageList::GetImageCount", XS_Wx__ImageList_GetImageCount, file);
14859 newXS("Wx::ImageList::Remove", XS_Wx__ImageList_Remove, file);
14860 newXS("Wx::ImageList::RemoveAll", XS_Wx__ImageList_RemoveAll, file);
14862 newXS("Wx::ImageList::ReplaceBitmap", XS_Wx__ImageList_ReplaceBitmap, file);
14865 newXS("Wx::ImageList::ReplaceBitmap", XS_Wx__ImageList_ReplaceBitmap, file);
14867 newXS("Wx::ImageList::ReplaceIcon", XS_Wx__ImageList_ReplaceIcon, file);
14869 newXS("Wx::ImageList::GetBitmap", XS_Wx__ImageList_GetBitmap, file);
14870 newXS("Wx::ImageList::GetIcon", XS_Wx__ImageList_GetIcon, file);
14872 newXS("Wx::ImageList::CLONE", XS_Wx__ImageList_CLONE, file);
14873 newXS("Wx::ImageList::DESTROY", XS_Wx__ImageList_DESTROY, file);
14874 newXS("Wx::ImageList::Add", XS_Wx__ImageList_Add, file);
14875 newXS("Wx::ImageList::GetSize", XS_Wx__ImageList_GetSize, file);
14876 newXS("Wx::ImageList::Replace", XS_Wx__ImageList_Replace, file);
14877 newXS("Wx::NativeFontInfo::new", XS_Wx__NativeFontInfo_new, file);
14878 newXS("Wx::NativeFontInfo::CLONE", XS_Wx__NativeFontInfo_CLONE, file);
14879 newXS("Wx::NativeFontInfo::DESTROY", XS_Wx__NativeFontInfo_DESTROY, file);
14880 newXS("Wx::NativeFontInfo::FromString", XS_Wx__NativeFontInfo_FromString, file);
14881 newXS("Wx::NativeFontInfo::ToString", XS_Wx__NativeFontInfo_ToString, file);
14882 newXS("Wx::NativeFontInfo::FromUserString", XS_Wx__NativeFontInfo_FromUserString, file);
14883 newXS("Wx::NativeFontInfo::ToUserString", XS_Wx__NativeFontInfo_ToUserString, file);
14884 newXS("Wx::Font::new", XS_Wx__Font_new, file);
14885 newXS("Wx::Font::newNativeInfo", XS_Wx__Font_newNativeInfo, file);
14886 newXS("Wx::Font::newFont", XS_Wx__Font_newFont, file);
14887 newXS("Wx::Font::newLong", XS_Wx__Font_newLong, file);
14889 newXS("Wx::Font::newSize", XS_Wx__Font_newSize, file);
14891 newXS("Wx::Font::New", XS_Wx__Font_New, file);
14892 newXS("Wx::Font::NewPoint", XS_Wx__Font_NewPoint, file);
14893 newXS("Wx::Font::NewPointFlags", XS_Wx__Font_NewPointFlags, file);
14895 newXS("Wx::Font::NewSize", XS_Wx__Font_NewSize, file);
14896 newXS("Wx::Font::NewSizeFlags", XS_Wx__Font_NewSizeFlags, file);
14898 newXS("Wx::Font::CLONE", XS_Wx__Font_CLONE, file);
14899 newXS("Wx::Font::DESTROY", XS_Wx__Font_DESTROY, file);
14900 newXS("Wx::Font::font_spaceship", XS_Wx__Font_font_spaceship, file);
14901 newXS("Wx::Font::GetDefaultEncoding", XS_Wx__Font_GetDefaultEncoding, file);
14902 newXS("Wx::Font::GetFaceName", XS_Wx__Font_GetFaceName, file);
14903 newXS("Wx::Font::GetFamily", XS_Wx__Font_GetFamily, file);
14905 newXS("Wx::Font::GetNativeFontInfo", XS_Wx__Font_GetNativeFontInfo, file);
14908 newXS("Wx::Font::GetNativeFontInfo", XS_Wx__Font_GetNativeFontInfo, file);
14910 newXS("Wx::Font::SetNativeFontInfoUserDesc", XS_Wx__Font_SetNativeFontInfoUserDesc, file);
14911 newXS("Wx::Font::GetFamilyString", XS_Wx__Font_GetFamilyString, file);
14912 newXS("Wx::Font::GetStyleString", XS_Wx__Font_GetStyleString, file);
14913 newXS("Wx::Font::GetWeightString", XS_Wx__Font_GetWeightString, file);
14914 newXS("Wx::Font::GetNativeFontInfoDesc", XS_Wx__Font_GetNativeFontInfoDesc, file);
14915 newXS("Wx::Font::GetNativeFontInfoUserDesc", XS_Wx__Font_GetNativeFontInfoUserDesc, file);
14917 newXS("Wx::Font::GetPixelSize", XS_Wx__Font_GetPixelSize, file);
14919 newXS("Wx::Font::GetEncoding", XS_Wx__Font_GetEncoding, file);
14920 newXS("Wx::Font::GetPointSize", XS_Wx__Font_GetPointSize, file);
14921 newXS("Wx::Font::GetStyle", XS_Wx__Font_GetStyle, file);
14922 newXS("Wx::Font::GetUnderlined", XS_Wx__Font_GetUnderlined, file);
14923 newXS("Wx::Font::GetWeight", XS_Wx__Font_GetWeight, file);
14924 newXS("Wx::Font::IsFixedWidth", XS_Wx__Font_IsFixedWidth, file);
14925 newXS("Wx::Font::Ok", XS_Wx__Font_Ok, file);
14927 newXS("Wx::Font::IsOk", XS_Wx__Font_IsOk, file);
14929 newXS("Wx::Font::SetDefaultEncoding", XS_Wx__Font_SetDefaultEncoding, file);
14931 newXS("Wx::Font::SetFaceName", XS_Wx__Font_SetFaceName, file);
14934 newXS("Wx::Font::SetFaceName", XS_Wx__Font_SetFaceName, file);
14936 newXS("Wx::Font::SetEncoding", XS_Wx__Font_SetEncoding, file);
14937 newXS("Wx::Font::SetFamily", XS_Wx__Font_SetFamily, file);
14938 newXS("Wx::Font::SetNativeFontInfo", XS_Wx__Font_SetNativeFontInfo, file);
14940 newXS("Wx::Font::SetPixelSize", XS_Wx__Font_SetPixelSize, file);
14941 newXS("Wx::Font::IsUsingSizeInPixels", XS_Wx__Font_IsUsingSizeInPixels, file);
14943 newXS("Wx::Font::SetPointSize", XS_Wx__Font_SetPointSize, file);
14944 newXS("Wx::Font::SetStyle", XS_Wx__Font_SetStyle, file);
14945 newXS("Wx::Font::SetUnderlined", XS_Wx__Font_SetUnderlined, file);
14946 newXS("Wx::Font::SetWeight", XS_Wx__Font_SetWeight, file);
14947 newXS("Wx::ColourDatabase::AddColour", XS_Wx__ColourDatabase_AddColour, file);
14948 newXS("Wx::ColourDatabase::Find", XS_Wx__ColourDatabase_Find, file);
14949 newXS("Wx::ColourDatabase::FindName", XS_Wx__ColourDatabase_FindName, file);
14950 newXS("Wx::Colour::new", XS_Wx__Colour_new, file);
14952 newXS("Wx::Colour::newRGBA", XS_Wx__Colour_newRGBA, file);
14954 newXS("Wx::Colour::newRGB", XS_Wx__Colour_newRGB, file);
14955 newXS("Wx::Colour::newName", XS_Wx__Colour_newName, file);
14956 newXS("Wx::Colour::CLONE", XS_Wx__Colour_CLONE, file);
14957 newXS("Wx::Colour::DESTROY", XS_Wx__Colour_DESTROY, file);
14958 newXS("Wx::Colour::Blue", XS_Wx__Colour_Blue, file);
14959 newXS("Wx::Colour::Green", XS_Wx__Colour_Green, file);
14960 newXS("Wx::Colour::Ok", XS_Wx__Colour_Ok, file);
14962 newXS("Wx::Colour::IsOk", XS_Wx__Colour_IsOk, file);
14964 newXS("Wx::Colour::Red", XS_Wx__Colour_Red, file);
14966 newXS("Wx::Colour::Alpha", XS_Wx__Colour_Alpha, file);
14967 newXS("Wx::Colour::Set", XS_Wx__Colour_Set, file);
14970 newXS("Wx::Colour::Set", XS_Wx__Colour_Set, file);
14973 newXS("Wx::Colour::GetAsString", XS_Wx__Colour_GetAsString, file);
14976 newXS("Wx::Colour::GetPixel", XS_Wx__Colour_GetPixel, file);
14979 newXS("Wx::Animation::new", XS_Wx__Animation_new, file);
14980 newXS("Wx::Animation::CLONE", XS_Wx__Animation_CLONE, file);
14981 newXS("Wx::Animation::DESTROY", XS_Wx__Animation_DESTROY, file);
14982 newXS("Wx::Animation::IsOk", XS_Wx__Animation_IsOk, file);
14983 newXS("Wx::Animation::GetDelay", XS_Wx__Animation_GetDelay, file);
14984 newXS("Wx::Animation::GetFrameCount", XS_Wx__Animation_GetFrameCount, file);
14985 newXS("Wx::Animation::GetFrame", XS_Wx__Animation_GetFrame, file);
14986 newXS("Wx::Animation::GetSize", XS_Wx__Animation_GetSize, file);
14987 newXS("Wx::Animation::LoadFile", XS_Wx__Animation_LoadFile, file);
14988 newXS("Wx::Animation::Load", XS_Wx__Animation_Load, file);
14991 newXS("Wx::GraphicsRenderer::GetDefaultRenderer", XS_Wx__GraphicsRenderer_GetDefaultRenderer, file);
14992 newXS("Wx::GraphicsRenderer::CreateContext", XS_Wx__GraphicsRenderer_CreateContext, file);
14993 newXS("Wx::GraphicsRenderer::CreateFromDC", XS_Wx__GraphicsRenderer_CreateFromDC, file);
14994 newXS("Wx::GraphicsRenderer::CreateFromWindow", XS_Wx__GraphicsRenderer_CreateFromWindow, file);
14995 newXS("Wx::GraphicsRenderer::CreateMeasuringContext", XS_Wx__GraphicsRenderer_CreateMeasuringContext, file);
14996 newXS("Wx::GraphicsRenderer::CreatePath", XS_Wx__GraphicsRenderer_CreatePath, file);
14997 newXS("Wx::GraphicsRenderer::CreateMatrix", XS_Wx__GraphicsRenderer_CreateMatrix, file);
14998 newXS("Wx::GraphicsRenderer::CreatePen", XS_Wx__GraphicsRenderer_CreatePen, file);
14999 newXS("Wx::GraphicsRenderer::CreateBrush", XS_Wx__GraphicsRenderer_CreateBrush, file);
15000 newXS("Wx::GraphicsRenderer::CreateLinearGradientBrush", XS_Wx__GraphicsRenderer_CreateLinearGradientBrush, file);
15001 newXS("Wx::GraphicsRenderer::CreateRadialGradientBrush", XS_Wx__GraphicsRenderer_CreateRadialGradientBrush, file);
15002 newXS("Wx::GraphicsRenderer::CreateFont", XS_Wx__GraphicsRenderer_CreateFont, file);
15005 newXS("Wx::GraphicsObject::CLONE", XS_Wx__GraphicsObject_CLONE, file);
15006 newXS("Wx::GraphicsObject::DESTROY", XS_Wx__GraphicsObject_DESTROY, file);
15007 newXS("Wx::GraphicsObject::GetRenderer", XS_Wx__GraphicsObject_GetRenderer, file);
15008 newXS("Wx::GraphicsObject::IsNull", XS_Wx__GraphicsObject_IsNull, file);
15011 newXS("Wx::GraphicsMatrix::Concat", XS_Wx__GraphicsMatrix_Concat, file);
15012 newXS("Wx::GraphicsMatrix::Get", XS_Wx__GraphicsMatrix_Get, file);
15013 newXS("Wx::GraphicsMatrix::Invert", XS_Wx__GraphicsMatrix_Invert, file);
15014 newXS("Wx::GraphicsMatrix::IsEqual", XS_Wx__GraphicsMatrix_IsEqual, file);
15015 newXS("Wx::GraphicsMatrix::IsIdentity", XS_Wx__GraphicsMatrix_IsIdentity, file);
15016 newXS("Wx::GraphicsMatrix::Rotate", XS_Wx__GraphicsMatrix_Rotate, file);
15017 newXS("Wx::GraphicsMatrix::Scale", XS_Wx__GraphicsMatrix_Scale, file);
15018 newXS("Wx::GraphicsMatrix::Translate", XS_Wx__GraphicsMatrix_Translate, file);
15019 newXS("Wx::GraphicsMatrix::Set", XS_Wx__GraphicsMatrix_Set, file);
15020 newXS("Wx::GraphicsMatrix::TransformPoint", XS_Wx__GraphicsMatrix_TransformPoint, file);
15021 newXS("Wx::GraphicsMatrix::TransformDistance", XS_Wx__GraphicsMatrix_TransformDistance, file);
15024 newXS("Wx::GraphicsPath::MoveToPoint", XS_Wx__GraphicsPath_MoveToPoint, file);
15025 newXS("Wx::GraphicsPath::AddArc", XS_Wx__GraphicsPath_AddArc, file);
15026 newXS("Wx::GraphicsPath::AddArcToPoint", XS_Wx__GraphicsPath_AddArcToPoint, file);
15027 newXS("Wx::GraphicsPath::AddCircle", XS_Wx__GraphicsPath_AddCircle, file);
15028 newXS("Wx::GraphicsPath::AddCurveToPoint", XS_Wx__GraphicsPath_AddCurveToPoint, file);
15029 newXS("Wx::GraphicsPath::AddEllipse", XS_Wx__GraphicsPath_AddEllipse, file);
15030 newXS("Wx::GraphicsPath::AddLineToPoint", XS_Wx__GraphicsPath_AddLineToPoint, file);
15031 newXS("Wx::GraphicsPath::AddPath", XS_Wx__GraphicsPath_AddPath, file);
15032 newXS("Wx::GraphicsPath::AddQuadCurveToPoint", XS_Wx__GraphicsPath_AddQuadCurveToPoint, file);
15033 newXS("Wx::GraphicsPath::AddRectangle", XS_Wx__GraphicsPath_AddRectangle, file);
15034 newXS("Wx::GraphicsPath::AddRoundedRectangle", XS_Wx__GraphicsPath_AddRoundedRectangle, file);
15035 newXS("Wx::GraphicsPath::CloseSubpath", XS_Wx__GraphicsPath_CloseSubpath, file);
15036 newXS("Wx::GraphicsPath::Contains", XS_Wx__GraphicsPath_Contains, file);
15037 newXS("Wx::GraphicsPath::GetBox", XS_Wx__GraphicsPath_GetBox, file);
15038 newXS("Wx::GraphicsPath::GetCurrentPoint", XS_Wx__GraphicsPath_GetCurrentPoint, file);
15039 newXS("Wx::GraphicsPath::Transform", XS_Wx__GraphicsPath_Transform, file);
15042 newXS("Wx::GraphicsContext::Create", XS_Wx__GraphicsContext_Create, file);
15043 newXS("Wx::GraphicsContext::createFromWindow", XS_Wx__GraphicsContext_createFromWindow, file);
15044 newXS("Wx::GraphicsContext::createFromDC", XS_Wx__GraphicsContext_createFromDC, file);
15045 newXS("Wx::GraphicsContext::CreatePen", XS_Wx__GraphicsContext_CreatePen, file);
15046 newXS("Wx::GraphicsContext::CreateBrush", XS_Wx__GraphicsContext_CreateBrush, file);
15047 newXS("Wx::GraphicsContext::CreateRadialGradientBrush", XS_Wx__GraphicsContext_CreateRadialGradientBrush, file);
15048 newXS("Wx::GraphicsContext::CreateLinearGradientBrush", XS_Wx__GraphicsContext_CreateLinearGradientBrush, file);
15049 newXS("Wx::GraphicsContext::CreateFont", XS_Wx__GraphicsContext_CreateFont, file);
15050 newXS("Wx::GraphicsContext::CreateMatrix", XS_Wx__GraphicsContext_CreateMatrix, file);
15051 newXS("Wx::GraphicsContext::CreatePath", XS_Wx__GraphicsContext_CreatePath, file);
15052 newXS("Wx::GraphicsContext::Clip", XS_Wx__GraphicsContext_Clip, file);
15053 newXS("Wx::GraphicsContext::ClipXYWH", XS_Wx__GraphicsContext_ClipXYWH, file);
15054 newXS("Wx::GraphicsContext::ClipRegion", XS_Wx__GraphicsContext_ClipRegion, file);
15055 newXS("Wx::GraphicsContext::ResetClip", XS_Wx__GraphicsContext_ResetClip, file);
15056 newXS("Wx::GraphicsContext::DrawBitmap", XS_Wx__GraphicsContext_DrawBitmap, file);
15057 newXS("Wx::GraphicsContext::DrawEllipse", XS_Wx__GraphicsContext_DrawEllipse, file);
15058 newXS("Wx::GraphicsContext::DrawIcon", XS_Wx__GraphicsContext_DrawIcon, file);
15059 newXS("Wx::GraphicsContext::DrawLines", XS_Wx__GraphicsContext_DrawLines, file);
15060 newXS("Wx::GraphicsContext::DrawPath", XS_Wx__GraphicsContext_DrawPath, file);
15061 newXS("Wx::GraphicsContext::DrawRectangle", XS_Wx__GraphicsContext_DrawRectangle, file);
15062 newXS("Wx::GraphicsContext::DrawRoundedRectangle", XS_Wx__GraphicsContext_DrawRoundedRectangle, file);
15063 newXS("Wx::GraphicsContext::DrawText", XS_Wx__GraphicsContext_DrawText, file);
15064 newXS("Wx::GraphicsContext::DrawTextAngle", XS_Wx__GraphicsContext_DrawTextAngle, file);
15065 newXS("Wx::GraphicsContext::DrawTextNoAngle", XS_Wx__GraphicsContext_DrawTextNoAngle, file);
15066 newXS("Wx::GraphicsContext::FillPath", XS_Wx__GraphicsContext_FillPath, file);
15067 newXS("Wx::GraphicsContext::StrokePath", XS_Wx__GraphicsContext_StrokePath, file);
15068 newXS("Wx::GraphicsContext::GetTextExtent", XS_Wx__GraphicsContext_GetTextExtent, file);
15069 newXS("Wx::GraphicsContext::GetPartialTextExtents", XS_Wx__GraphicsContext_GetPartialTextExtents, file);
15070 newXS("Wx::GraphicsContext::Rotate", XS_Wx__GraphicsContext_Rotate, file);
15071 newXS("Wx::GraphicsContext::Scale", XS_Wx__GraphicsContext_Scale, file);
15072 newXS("Wx::GraphicsContext::Translate", XS_Wx__GraphicsContext_Translate, file);
15073 newXS("Wx::GraphicsContext::GetTransform", XS_Wx__GraphicsContext_GetTransform, file);
15074 newXS("Wx::GraphicsContext::SetTransform", XS_Wx__GraphicsContext_SetTransform, file);
15075 newXS("Wx::GraphicsContext::ConcatTransform", XS_Wx__GraphicsContext_ConcatTransform, file);
15076 newXS("Wx::GraphicsContext::SetBrush", XS_Wx__GraphicsContext_SetBrush, file);
15077 newXS("Wx::GraphicsContext::SetBrushBrush", XS_Wx__GraphicsContext_SetBrushBrush, file);
15078 newXS("Wx::GraphicsContext::SetBrushGraphics", XS_Wx__GraphicsContext_SetBrushGraphics, file);
15079 newXS("Wx::GraphicsContext::SetFont", XS_Wx__GraphicsContext_SetFont, file);
15080 newXS("Wx::GraphicsContext::SetFontFont", XS_Wx__GraphicsContext_SetFontFont, file);
15081 newXS("Wx::GraphicsContext::SetFontGraphics", XS_Wx__GraphicsContext_SetFontGraphics, file);
15082 newXS("Wx::GraphicsContext::SetPen", XS_Wx__GraphicsContext_SetPen, file);
15083 newXS("Wx::GraphicsContext::SetPenPen", XS_Wx__GraphicsContext_SetPenPen, file);
15084 newXS("Wx::GraphicsContext::SetPenGraphics", XS_Wx__GraphicsContext_SetPenGraphics, file);
15085 newXS("Wx::GraphicsContext::StrokeLine", XS_Wx__GraphicsContext_StrokeLine, file);
15086 newXS("Wx::GraphicsContext::StrokeLines", XS_Wx__GraphicsContext_StrokeLines, file);
15087 newXS("Wx::GraphicsContext::StrokeLinesOne", XS_Wx__GraphicsContext_StrokeLinesOne, file);
15088 newXS("Wx::GraphicsContext::StrokeLinesTwo", XS_Wx__GraphicsContext_StrokeLinesTwo, file);
15091 newXS("Wx::SVGFileDC::new", XS_Wx__SVGFileDC_new, file);
15093 newXS("Wx::GetClientDisplayRect", XS_Wx_GetClientDisplayRect, file);
15094 newXS("Wx::ColourDisplay", XS_Wx_ColourDisplay, file);
15095 newXS("Wx::DisplayDepth", XS_Wx_DisplayDepth, file);
15096 newXS("Wx::GetDisplaySizeMM", XS_Wx_GetDisplaySizeMM, file);
15097 newXS("Wx::GetDisplaySize", XS_Wx_GetDisplaySize, file);
15099 /* Initialisation Section */
15286 /* End of Initialisation Section */
15288 #if (PERL_REVISION == 5 && PERL_VERSION >= 9)
15289 if (PL_unitcheckav)
15290 call_list(PL_scopestack_ix, PL_unitcheckav);