Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / ext / dataview / XS / DataViewItem.xsp
1 #############################################################################
2 ## Name:        ext/dataview/XS/DataViewItem.xsp
3 ## Purpose:     XS++ for Wx::DataViewItem
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     25/11/2007
7 ## RCS-ID:      $Id: DataViewItem.xsp 2297 2007-11-25 12:39:35Z mbarbon $
8 ## Copyright:   (c) 2007 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 #if wxUSE_DATAVIEWCTRL
14
15 #include <wx/dataview.h>
16
17 %module{Wx};
18
19 %typemap{IV}{simple};
20
21 %name{Wx::DataViewItem} class wxDataViewItem {
22 ##    wxDataViewItem( IV id )
23 ##        %code{% RETVAL = new wxDataViewItem( INT2PTR( void*, id ) ); %};
24
25 ## FIXME dtor?
26
27     IV GetID() const
28         %code{% RETVAL = PTR2IV( THIS->GetID() ); %};
29     bool IsOk() const;
30 };
31
32 %name{Wx::DataViewItemAttr} class wxDataViewItemAttr {
33     wxDataViewItemAttr();
34
35 ## FIXME dtor?
36
37     void SetColour( const wxColour& colour );
38     void SetBold( bool set );
39     void SetItalic( bool set );
40
41     bool HasColour() const;
42     const wxColour& GetColour() const;
43
44     bool GetBold() const;
45     bool GetItalic() const;
46 };
47
48 #endif