1 #############################################################################
2 ## Name: ext/grid/XS/GridCellAttr.xs
3 ## Purpose: XS for Wx::GridCellAttr
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: GridCellAttr.xs 2402 2008-05-19 21:43:32Z mbarbon $
8 ## Copyright: (c) 2001-2002, 2004, 2006-2008 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::GridCellAttr
19 wxGridCellAttr::CLONE()
21 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
25 wxGridCellAttr::DESTROY()
27 wxPli_thread_sv_unregister( aTHX_ wxPli_get_class( aTHX_ ST(0) ),
28 SvRV( ST(0) ), ST(0) );
33 wxGridCellAttr::IncRef()
36 wxGridCellAttr::DecRef()
39 wxGridCellAttr::SetTextColour( colour )
43 wxGridCellAttr::SetBackgroundColour( colour )
47 wxGridCellAttr::SetFont( font )
50 THIS->SetFont( *font );
53 wxGridCellAttr::SetAlignment( hAlign, vAlign )
58 wxGridCellAttr::SetReadOnly( isReadOnly = true )
62 wxGridCellAttr::HasTextColour()
65 wxGridCellAttr::HasBackgroundColour()
68 wxGridCellAttr::HasFont()
71 wxGridCellAttr::HasAlignment()
74 wxGridCellAttr::HasRenderer()
77 wxGridCellAttr::HasEditor()
80 wxGridCellAttr::GetTextColour()
82 RETVAL = new wxColour( THIS->GetTextColour() );
87 wxGridCellAttr::GetBackgroundColour()
89 RETVAL = new wxColour( THIS->GetBackgroundColour() );
94 wxGridCellAttr::GetEditor( grid, row, col )
99 RETVAL = THIS->GetEditor( grid, row, col );
104 wxGridCellAttr::GetRenderer( grid, row, col )
109 RETVAL = THIS->GetRenderer( grid, row, col );
114 wxGridCellAttr::GetFont()
116 RETVAL = new wxFont( THIS->GetFont() );
121 wxGridCellAttr::GetAlignment()
125 THIS->GetAlignment( &x, &y );
127 PUSHs( sv_2mortal( newSViv( x ) ) );
128 PUSHs( sv_2mortal( newSViv( y ) ) );
131 wxGridCellAttr::IsReadOnly()
134 wxGridCellAttr::SetDefAttr( defAttr )
135 wxGridCellAttr* defAttr
138 wxGridCellAttr::SetEditor( editor )
139 wxGridCellEditor* editor
142 THIS->SetEditor( editor );
145 wxGridCellAttr::SetRenderer( renderer )
146 wxGridCellRenderer* renderer
149 THIS->SetRenderer( renderer );
152 wxGridCellAttr::GetOverflow()
155 wxGridCellAttr::SetOverflow( allow = true )