1 #############################################################################
2 ## Name: XS/NotificationMessage.xsp
3 ## Purpose: XS++ for Wx::NotificationMessage
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: NotificationMessage.xsp 2563 2009-05-17 09:58:35Z mbarbon $
8 ## Copyright: (c) 2007, 2009 Mattia Barbon
9 ## Licence: This program is free software; you can redistribute it and/or
10 ## modify it under the same terms as Perl itself
11 #############################################################################
15 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
17 #include <wx/notifmsg.h>
19 %typemap{wxNotificationMessage*}{simple};
21 %name{Wx::NotificationMessage} class wxNotificationMessage
28 MATCH_VOIDM_REDISP( newDefault )
29 MATCH_ANY_REDISP( newFull )
30 END_OVERLOAD( "Wx::NotificationMessage::new" )
33 wxNotificationMessage();
37 wxNotificationMessage( const wxString& title,
38 const wxString& message = wxEmptyString,
39 wxWindow *parent = NULL,
40 int flags = wxICON_INFORMATION )
41 %code{% RETVAL = new wxNotificationMessage( title, message, parent );
45 wxNotificationMessage( const wxString& title,
46 const wxString& message = wxEmptyString,
47 wxWindow *parent = NULL,
48 int flags = wxICON_INFORMATION );
53 wxNotificationMessage::CLONE()
55 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
58 ~wxNotificationMessage()
59 %code{% wxPli_thread_sv_unregister( aTHX_ "Wx::NotificationMessage", THIS, ST(0) );
63 bool Show( int timeout = -1 );
66 void SetFlags( int flags );
67 void SetTitle( const wxString& title );
68 void SetMessage( const wxString& message );
69 void SetParent( wxWindow *parent );
75 UseTaskBarIcon( icon )
78 RETVAL = wxNotificationMessage::UseTaskBarIcon( icon );
82 AlwaysUseGeneric( alwaysUseGeneric )
85 wxNotificationMessage::AlwaysUseGeneric( alwaysUseGeneric );