1 #############################################################################
2 ## Name: ext/grid/XS/GridCellEditor.xs
3 ## Purpose: XS for Wx::GridCellEditor*
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: GridCellEditor.xs 2533 2009-03-08 19:03:35Z mbarbon $
8 ## Copyright: (c) 2001-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 #############################################################################
13 MODULE=Wx PACKAGE=Wx::GridCellEditor
16 wxGridCellEditor::CLONE()
18 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
22 wxGridCellEditor::DESTROY()
24 wxPli_thread_sv_unregister( aTHX_ wxPli_get_class( aTHX_ ST(0) ),
25 SvRV( ST(0) ), ST(0) );
30 wxGridCellEditor::IsCreated()
33 wxGridCellEditor::GetControl()
36 wxGridCellEditor::SetControl( control )
40 wxGridCellEditor::SetSize( rect )
43 THIS->SetSize( *rect );
46 wxGridCellEditor::Show( show, attr )
51 wxGridCellEditor::PaintBackground( rectCell, attr )
55 THIS->PaintBackground( *rectCell, attr );
58 wxGridCellEditor::BeginEdit( row, col, grid )
63 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
66 wxGridCellEditor::EndEdit( row, col, grid, oldval, newval )
72 C_ARGS: row, col, grid, oldval, &newval
75 wxGridCellEditor::ApplyEdit( row, col, grid )
83 wxGridCellEditor::EndEdit( row, col, grid )
91 wxGridCellEditor::Reset()
94 wxGridCellEditor::IsAcceptedKey( event )
97 RETVAL = THIS->IsAcceptedKey( *event );
102 wxGridCellEditor::StartingKey( event )
105 THIS->StartingKey( *event );
108 wxGridCellEditor::StartingClick()
111 wxGridCellEditor::HandleReturn( event )
114 THIS->HandleReturn( *event );
117 wxGridCellEditor::Destroy()
119 MODULE=Wx PACKAGE=Wx::GridCellTextEditor
121 wxGridCellTextEditor*
122 wxGridCellTextEditor::new()
125 wxGridCellTextEditor::SetParameters( params )
128 MODULE=Wx PACKAGE=Wx::GridCellAutoWrapStringEditor
130 wxGridCellAutoWrapStringEditor*
131 wxGridCellAutoWrapStringEditor::new()
133 MODULE=Wx PACKAGE=Wx::GridCellNumberEditor
135 wxGridCellNumberEditor*
136 wxGridCellNumberEditor::new( min = -1, max = -1 )
141 wxGridCellNumberEditor::SetParameters( params )
144 MODULE=Wx PACKAGE=Wx::GridCellFloatEditor
146 wxGridCellFloatEditor*
147 wxGridCellFloatEditor::new( width = -1, precision = -1 )
152 wxGridCellChoiceEditor::SetParameters( params )
155 MODULE=Wx PACKAGE=Wx::GridCellBoolEditor
157 wxGridCellBoolEditor*
158 wxGridCellBoolEditor::new()
160 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
166 RETVAL = wxGridCellBoolEditor::IsTrueValue( value );
170 UseStringValues( trueValue = wxT("1"), falseValue = wxT("") )
174 wxGridCellBoolEditor::UseStringValues( trueValue, falseValue );
178 MODULE=Wx PACKAGE=Wx::GridCellChoiceEditor
180 wxGridCellChoiceEditor*
181 wxGridCellChoiceEditor::new( choices, allowOthers = false )
188 n = wxPli_av_2_stringarray( aTHX_ choices, &chs );
189 RETVAL = new wxGridCellChoiceEditor( n, chs, allowOthers );
195 wxGridCellChoiceEditor::SetParameters( params )
198 MODULE=Wx PACKAGE=Wx::GridCellEnumEditor
200 wxGridCellEnumEditor*
201 wxGridCellEnumEditor::new( choices = wxEmptyString )
204 MODULE=Wx PACKAGE=Wx::PlGridCellEditor
206 #include "cpp/editor.h"
209 wxPlGridCellEditor::new()
211 wxPlGridCellEditor* r = new wxPlGridCellEditor( CLASS );
212 r->SetClientObject( new wxPliUserDataCD( r->m_callback.GetSelf() ) );
213 RETVAL = r->m_callback.GetSelf();
214 SvREFCNT_inc( RETVAL );