1 #############################################################################
2 ## Name: XS/StatusBar.xs
3 ## Purpose: XS for Wx::StatusBar
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: StatusBar.xs 2057 2007-06-18 23:03:00Z mbarbon $
8 ## Copyright: (c) 2000-2003, 2005-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/statusbr.h>
15 MODULE=Wx PACKAGE=Wx::StatusBar
18 wxStatusBar::new( parent, id = wxID_ANY, style = 0, name = wxEmptyString )
24 RETVAL = new wxStatusBar( parent, id, style, name );
25 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
30 wxStatusBar::GetFieldRect( index )
36 found = THIS->GetFieldRect( index, rect );
40 RETVAL = new wxRect( rect );
45 wxStatusBar::GetFieldsCount()
48 wxStatusBar::GetStatusText( ir = 0 )
52 wxStatusBar::PushStatusText( string, n = 0 )
57 wxStatusBar::PopStatusText( n = 0 )
61 wxStatusBar::SetFieldsCount( number = 1 )
65 wxStatusBar::SetMinHeight( height )
69 wxStatusBar::SetStatusText( text, i = 0 )
74 wxStatusBar::SetStatusWidths( ... )
79 widths = new int[items-1];
80 for( i = 1; i < items; ++i )
82 widths[i-1] = SvIV( ST(i) );
84 THIS->SetStatusWidths( items-1, widths );
88 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
91 wxStatusBar::SetStatusStyles( ... )
96 styles = new int[items-1];
97 for( i = 1; i < items; ++i )
99 styles[i-1] = SvIV( ST(i) );
101 THIS->SetStatusStyles( items-1, styles );