1 #############################################################################
2 ## Name: XS/StaticBitmap.xs
3 ## Purpose: XS for Wx::StaticBitmap
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: StaticBitmap.xs 2057 2007-06-18 23:03:00Z mbarbon $
8 ## Copyright: (c) 2000-2003 Mattia Barbon
9 ## Licence: This program is free software; you can redistribute it and/or
10 ## modify it under the same terms as Perl itself
11 #############################################################################
13 #include "cpp/overload.h"
14 #include <wx/statbmp.h>
16 MODULE=Wx PACKAGE=Wx::StaticBitmap
19 wxStaticBitmap::new( ... )
22 MATCH_REDISP( wxPliOvl_wwin_n_wico, newIcon )
23 MATCH_REDISP( wxPliOvl_wwin_n_wbmp, newBitmap )
24 END_OVERLOAD( Wx::StaticBitmap::new )
27 newBitmap( cls, parent, id, bitmap, pos = wxDefaultPosition, size = wxDefaultSize, style = 0, name = wxStaticBitmapNameStr )
37 const char* CLASS = wxPli_get_class( aTHX_ cls );
39 RETVAL = new wxStaticBitmap( parent, id, *bitmap, pos, size,
41 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
45 #if !defined(__WXUNIVERSAL__) || defined(__WXPERL_FORCE__)
48 newIcon( cls, parent, id, icon, pos = wxDefaultPosition, size = wxDefaultSize, style = 0, name = wxStaticBitmapNameStr )
58 const char* CLASS = wxPli_get_class( aTHX_ cls );
60 RETVAL = new wxStaticBitmap( parent, id, *icon, pos, size,
62 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
69 wxStaticBitmap::GetBitmap()
71 RETVAL = new wxBitmap( THIS->GetBitmap() );
76 wxStaticBitmap::SetBitmap( bitmap )
80 #if !defined(__WXUNIVERSAL__) || defined(__WXPERL_FORCE__)
83 wxStaticBitmap::GetIcon()
85 RETVAL = new wxIcon( THIS->GetIcon() );
90 wxStaticBitmap::SetIcon( icon )