1 #############################################################################
3 ## Purpose: XS for Wx::Frame
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: Frame.xs 2291 2007-11-25 00:09:04Z mbarbon $
8 ## Copyright: (c) 2000-2004, 2006-2007 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 #############################################################################
16 #if wxPERL_USE_MINIFRAME
17 #include <wx/minifram.h>
19 #include "cpp/frame.h"
21 MODULE=Wx PACKAGE=Wx::Frame
27 MATCH_VOIDM_REDISP( newDefault )
28 MATCH_ANY_REDISP( newFull )
29 END_OVERLOAD( "Wx::Frame::new" )
35 RETVAL = new wxPliFrame( CLASS );
39 newFull( CLASS, parent, id, title, pos = wxDefaultPosition, size = wxDefaultSize, style = wxDEFAULT_FRAME_STYLE, name = wxFrameNameStr )
49 RETVAL = new wxPliFrame( CLASS , parent, id, title, pos,
54 wxFrame::Create( parent, id, title, pos = wxDefaultPosition, size = wxDefaultSize, style = wxDEFAULT_FRAME_STYLE, name = wxFrameNameStr )
66 wxFrame::Command( id )
72 wxFrame::CreateStatusBar( number = 1, style = 0, id = wxID_ANY, name = wxEmptyString )
79 wxFrame::CreateToolBar( style = wxNO_BORDER | wxTB_HORIZONTAL, id = wxID_ANY, name = wxToolBarNameStr )
85 wxFrame::GetClientAreaOrigin()
87 RETVAL = new wxPoint( THIS->GetClientAreaOrigin() );
95 wxFrame::GetStatusBar()
98 wxFrame::GetStatusBarPane()
104 wxFrame::GetToolBar()
106 #if defined( __WXMAC__ ) && WXPERL_W_VERSION_GE( 2, 5, 2 ) \
107 && WXPERL_W_VERSION_LT( 2, 7, 0 )
110 wxFrame::MacSetMetalAppearance( ismetal )
116 wxFrame::OnCreateStatusBar( number, style, id, name )
122 RETVAL = THIS->wxFrame::OnCreateStatusBar( number, style, id, name );
126 wxFrame::SetIcon( icon )
129 THIS->SetIcon( *icon );
132 wxFrame::SetIcons( icons )
137 wxFrame::SetMenuBar( menubar )
141 wxFrame::SetStatusBar( statusBar )
142 wxStatusBar* statusBar
145 wxFrame::SetTitle( title )
149 wxFrame::SetToolBar( toolbar )
153 wxFrame::SetStatusText( text, number = 0 )
158 wxFrame::SetStatusBarPane( n )
162 wxFrame::SetStatusWidths( ... )
167 w = new int[items - 1];
168 for( i = 0; i < items - 1; ++i )
170 w[i] = SvIV( ST( i + 1 ) );
172 THIS->SetStatusWidths( items - 1, w );
175 MODULE=Wx PACKAGE=Wx::MiniFrame
177 #if wxPERL_USE_MINIFRAME
180 wxMiniFrame::new( parent, id, title, pos = wxDefaultPosition, size = wxDefaultSize, style = wxDEFAULT_FRAME_STYLE, name = wxFrameNameStr )
189 RETVAL = new wxMiniFrame( parent, id, title, pos, size,
191 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );