Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / cpp / controls.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name:        cpp/controls.h
3 // Purpose:     c++ wrappers for wxControl-derived classes
4 // Author:      Mattia Barbon
5 // Modified by:
6 // Created:     29/10/2000
7 // RCS-ID:      $Id: controls.h 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 /////////////////////////////////////////////////////////////////////////////
12
13 #ifndef _WXPERL_CONTROLS_H
14 #define _WXPERL_CONTROLS_H
15
16 class wxPliListCtrl:public wxListCtrl
17 {
18     WXPLI_DECLARE_DYNAMIC_CLASS( wxPliListCtrl );
19     WXPLI_DECLARE_V_CBACK();
20 public:
21     WXPLI_DEFAULT_CONSTRUCTOR( wxPliListCtrl, "Wx::ListCtrl", true );
22     WXPLI_CONSTRUCTOR_7( wxPliListCtrl, "Wx::ListCtrl", true,
23                          wxWindow*, wxWindowID, const wxPoint&,
24                          const wxSize&, long, const wxValidator&,
25                          const wxString& );
26
27     wxString OnGetItemText( long item, long column ) const;
28     int OnGetItemImage( long item ) const;
29     wxListItemAttr* OnGetItemAttr( long item ) const;
30 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
31     DEC_V_CBACK_INT__LONG_LONG_const( OnGetItemColumnImage );
32 #endif
33 };
34
35 class wxPliTreeCtrl:public wxTreeCtrl
36 {
37     WXPLI_DECLARE_DYNAMIC_CLASS( wxPliTreeCtrl );
38     WXPLI_DECLARE_V_CBACK();
39 public:
40     WXPLI_DEFAULT_CONSTRUCTOR( wxPliTreeCtrl, "Wx::TreeCtrl", true );
41     WXPLI_CONSTRUCTOR_7( wxPliTreeCtrl, "Wx::TreeCtrl", true,
42                          wxWindow*, wxWindowID, const wxPoint&,
43                          const wxSize&, long, const wxValidator&,
44                          const wxString& );
45
46     int OnCompareItems( const wxTreeItemId& item1,
47                         const wxTreeItemId& item2 );
48 };
49
50 #endif // _WXPERL_CONTROLS_H
51
52 // Local variables: //
53 // mode: c++ //
54 // End: //