Remove tests
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / XS / BitmapButton.xs
1 #############################################################################
2 ## Name:        XS/BitmapButton.xs
3 ## Purpose:     XS for Wx::BitmapButton
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     31/10/2000
7 ## RCS-ID:      $Id: BitmapButton.xs 2057 2007-06-18 23:03:00Z mbarbon $
8 ## Copyright:   (c) 2000-2003, 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 MODULE=Wx PACKAGE=Wx::BitmapButton
14
15 #include <wx/bmpbuttn.h>
16
17 void
18 new( ... )
19   PPCODE:
20     BEGIN_OVERLOAD()
21         MATCH_VOIDM_REDISP( newDefault )
22         MATCH_ANY_REDISP( newFull )
23     END_OVERLOAD( "Wx::BitmapButton::new" )
24
25 wxBitmapButton*
26 newDefault( CLASS )
27     PlClassName CLASS
28   CODE:
29     RETVAL = new wxBitmapButton();
30     wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
31   OUTPUT: RETVAL
32
33 wxBitmapButton*
34 newFull( CLASS, parent, id, bitmap, pos = wxDefaultPosition, size = wxDefaultSize, style = wxBU_AUTODRAW, validator = (wxValidator*)&wxDefaultValidator, name = wxButtonNameStr )
35     PlClassName CLASS
36     wxWindow* parent
37     wxWindowID id
38     wxBitmap* bitmap
39     wxPoint pos
40     wxSize size
41     long style
42     wxValidator* validator
43     wxString name
44   CODE:
45     RETVAL = new wxBitmapButton( parent, id, *bitmap, pos, size,
46         style, *validator, name );
47     wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
48   OUTPUT: RETVAL
49
50 bool
51 wxBitmapButton::Create( parent, id, bitmap, pos = wxDefaultPosition, size = wxDefaultSize, style = wxBU_AUTODRAW, validator = (wxValidator*)&wxDefaultValidator, name = wxButtonNameStr )
52     wxWindow* parent
53     wxWindowID id
54     wxBitmap* bitmap
55     wxPoint pos
56     wxSize size
57     long style
58     wxValidator* validator
59     wxString name
60   C_ARGS: parent, id, *bitmap, pos, size, style, *validator, name
61
62 wxBitmap*
63 wxBitmapButton::GetBitmapDisabled()
64   CODE:
65     RETVAL = new wxBitmap( THIS->GetBitmapDisabled() );
66   OUTPUT:
67     RETVAL
68
69 wxBitmap*
70 wxBitmapButton::GetBitmapFocus()
71   CODE:
72     RETVAL = new wxBitmap( THIS->GetBitmapFocus() );
73   OUTPUT:
74     RETVAL
75
76 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
77
78 wxBitmap*
79 wxBitmapButton::GetBitmapHover()
80   CODE:
81     RETVAL = new wxBitmap( THIS->GetBitmapHover() );
82   OUTPUT:
83     RETVAL
84
85 #endif
86
87 wxBitmap*
88 wxBitmapButton::GetBitmapLabel()
89   CODE:
90     RETVAL = new wxBitmap( THIS->GetBitmapLabel() );
91   OUTPUT:
92     RETVAL
93
94 wxBitmap*
95 wxBitmapButton::GetBitmapSelected()
96   CODE:
97     RETVAL = new wxBitmap( THIS->GetBitmapSelected() );
98   OUTPUT:
99     RETVAL
100
101 void
102 wxBitmapButton::SetBitmapDisabled( bitmap )
103     wxBitmap* bitmap
104   C_ARGS: *bitmap
105
106 void
107 wxBitmapButton::SetBitmapLabel( bitmap )
108     wxBitmap* bitmap
109   C_ARGS: *bitmap
110
111 void
112 wxBitmapButton::SetBitmapSelected( bitmap )
113     wxBitmap* bitmap
114   C_ARGS: *bitmap
115
116 void
117 wxBitmapButton::SetBitmapFocus( bitmap )
118     wxBitmap* bitmap
119   C_ARGS: *bitmap
120
121 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
122
123 void
124 wxBitmapButton::SetBitmapHover( bitmap )
125     wxBitmap* bitmap
126   C_ARGS: *bitmap
127
128 #endif
129