Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / ext / dataview / DataView.xs
1 /////////////////////////////////////////////////////////////////////////////
2 // Name:        ext/dataview/DataView.xs
3 // Purpose:     XS for Wx::DataViewCtrl
4 // Author:      Mattia Barbon
5 // Modified by:
6 // Created:     05/11/2007
7 // RCS-ID:      $Id: DataView.xs 2700 2009-12-13 11:25:50Z 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 /////////////////////////////////////////////////////////////////////////////
12
13 #define PERL_NO_GET_CONTEXT
14
15 #include "cpp/wxapi.h"
16 #include "cpp/overload.h"
17
18 // re-include for client data
19 #include <wx/clntdata.h>
20 #include "cpp/helpers.h"
21
22 #define wxDefaultValidatorPtr (wxValidator*)&wxDefaultValidator
23
24 #undef THIS
25
26 #include "cpp/constants.h"
27 #include "cpp/overload.h"
28
29 #define wxNullIconPtr (wxIcon*) &wxNullIcon
30
31 // event macros
32 #define SEVT( NAME, ARGS )    wxPli_StdEvent( NAME, ARGS )
33 #define EVT( NAME, ARGS, ID ) wxPli_Event( NAME, ARGS, ID )
34
35 // !package: Wx::Event
36 // !tag:
37 // !parser: sub { $_[0] =~ m<^\s*S?EVT\(\s*(\w+)\s*\,> }
38
39 static wxPliEventDescription evts[] =
40 {
41     { 0, 0, 0 }
42 };
43
44 MODULE=Wx__DataView
45
46 BOOT:
47   INIT_PLI_HELPERS( wx_pli_helpers );
48
49 INCLUDE: perl -MExtUtils::XSpp::Cmd -e xspp -- -t ../../typemap.xsp -t typemap.xsp XS/DataViewCtrl.xsp |
50
51 INCLUDE: perl -MExtUtils::XSpp::Cmd -e xspp -- -t ../../typemap.xsp -t typemap.xsp XS/DataViewModel.xsp |
52
53 INCLUDE: perl -MExtUtils::XSpp::Cmd -e xspp -- -t ../../typemap.xsp -t typemap.xsp XS/DataViewIndexListModel.xsp |
54
55 INCLUDE: perl -MExtUtils::XSpp::Cmd -e xspp -- -t ../../typemap.xsp -t typemap.xsp XS/DataViewColumn.xsp |
56
57 INCLUDE: perl -MExtUtils::XSpp::Cmd -e xspp -- -t ../../typemap.xsp -t typemap.xsp XS/DataViewEvent.xsp |
58
59 INCLUDE: perl -MExtUtils::XSpp::Cmd -e xspp -- -t ../../typemap.xsp -t typemap.xsp XS/DataViewItem.xsp |
60
61 INCLUDE: perl -MExtUtils::XSpp::Cmd -e xspp -- -t ../../typemap.xsp -t typemap.xsp XS/DataViewModelNotifier.xsp |
62
63 INCLUDE: perl -MExtUtils::XSpp::Cmd -e xspp -- -t ../../typemap.xsp -t typemap.xsp XS/DataViewRenderer.xsp |
64
65 INCLUDE: perl -MExtUtils::XSpp::Cmd -e xspp -- -t ../../typemap.xsp -t typemap.xsp XS/DataViewTreeStore.xsp |
66
67 INCLUDE: perl -MExtUtils::XSpp::Cmd -e xspp -- -t ../../typemap.xsp -t typemap.xsp XS/DataViewTreeCtrl.xsp |
68
69 MODULE=Wx__DataView PACKAGE=Wx::DataView
70
71 void
72 SetEvents()
73   CODE:
74     wxPli_set_events( evts );
75
76 #include "cpp/ovl_const.cpp"
77
78 #  //FIXME//tricky
79 #if defined(__WXMSW__)
80 #undef XS
81 #define XS( name ) WXXS( name )
82 #endif
83
84 MODULE=Wx__DataView