1 #############################################################################
2 ## Name: XS/CheckListBox.xs
3 ## Purpose: XS for Wx::CheckListBox
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: CheckListBox.xs 2057 2007-06-18 23:03:00Z mbarbon $
8 ## Copyright: (c) 2000-2004, 2006 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 <wx/checklst.h>
15 MODULE=Wx PACKAGE=Wx::CheckListBox
21 MATCH_VOIDM_REDISP( newDefault )
22 MATCH_ANY_REDISP( newFull )
23 END_OVERLOAD( "Wx::CheckListBox::new" )
29 RETVAL = new wxCheckListBox();
30 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
34 newFull( CLASS, parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, choices = 0, style = 0, validator = (wxValidator*)&wxDefaultValidator, name = wxListBoxNameStr )
42 wxValidator* validator
49 n = wxPli_av_2_stringarray( aTHX_ choices, &chs );
56 RETVAL = new wxCheckListBox( parent, id, pos, size, n, chs,
57 style|wxLB_OWNERDRAW, *validator, name );
58 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
65 wxCheckListBox::Create( parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, choices = 0, style = 0, validator = (wxValidator*)&wxDefaultValidator, name = wxListBoxNameStr )
72 wxValidator* validator
79 n = wxPli_av_2_stringarray( aTHX_ choices, &chs );
86 RETVAL = THIS->Create( parent, id, pos, size, n, chs,
87 style|wxLB_OWNERDRAW, *validator, name );
93 wxCheckListBox::Check( item, check = false )
98 wxCheckListBox::IsChecked( item )