1 #############################################################################
2 ## Name: ext/aui/XS/AuiNotebook.xsp
3 ## Purpose: XS++ for Wx::AuiNotebook
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: AuiNotebook.xsp 2700 2009-12-13 11:25:50Z mbarbon $
8 ## Copyright: (c) 2006-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 #include <wx/aui/auibook.h>
17 %name{Wx::AuiNotebookEvent} class wxAuiNotebookEvent
19 wxAuiNotebookEvent( wxEventType command_type = wxEVT_NULL,
22 void SetSelection( int s );
23 int GetSelection() const;
25 void SetOldSelection( int s );
26 int GetOldSelection() const;
28 void SetDragSource( wxAuiNotebook* s );
29 wxAuiNotebook* GetDragSource() const;
32 %name{Wx::AuiNotebook} class wxAuiNotebook
34 %name{newDefault} wxAuiNotebook()
35 %code{% RETVAL = new wxAuiNotebook();
36 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
39 %name{newFull} wxAuiNotebook( wxWindow* parent,
40 wxWindowID id = wxID_ANY,
41 const wxPoint& pos = wxDefaultPosition,
42 const wxSize& size = wxDefaultSize,
43 long style = wxAUI_NB_DEFAULT_STYLE )
44 %code{% RETVAL = new wxAuiNotebook( parent, id,
46 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
51 wxAuiNotebook::new( ... )
54 MATCH_VOIDM_REDISP( newDefault )
55 MATCH_ANY_REDISP( newFull )
56 END_OVERLOAD( "Wx::AuiNotebook::new" )
59 bool Create( wxWindow* parent,
60 wxWindowID id = wxID_ANY,
61 const wxPoint& pos = wxDefaultPosition,
62 const wxSize& size = wxDefaultSize,
65 bool AddPage( wxWindow* page,
66 const wxString& caption,
68 const wxBitmap& bitmap = wxNullBitmapPtr );
70 bool InsertPage( size_t page_idx,
72 const wxString& caption,
74 const wxBitmap& bitmap = wxNullBitmapPtr );
76 bool DeletePage( size_t page );
77 bool RemovePage( size_t page );
79 void SetWindowStyleFlag( long style );
81 bool SetPageText( size_t page, const wxString& text );
82 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
83 wxString GetPageText( size_t page ) const;
84 bool SetPageBitmap( size_t page, const wxBitmap& bitmap );
85 const wxBitmap& GetPageBitmap( size_t index ) const;
87 size_t SetSelection( size_t new_page );
88 int GetSelection() const;
89 size_t GetPageCount() const;
90 wxWindow* GetPage( size_t page_idx ) const;
92 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
93 int GetPageIndex( wxWindow* page_wnd ) const;
96 ## void SetArtProvider( wxAuiTabArt* art );
97 ## wxAuiTabArt* GetArtProvider() const;
99 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
100 void Split( size_t page, int direction );
103 #if WXPERL_W_VERSION_GE( 2, 9, 0 ) || WXPERL_W_VERSION_GE( 2, 8, 1 )
104 const wxAuiManager* GetAuiManager()
105 %code{% RETVAL = &THIS->GetAuiManager(); %};
108 #if WXPERL_W_VERSION_GE( 2, 9, 0 ) || WXPERL_W_VERSION_GE( 2, 8, 5 )
109 void AdvanceSelection( bool advance = true );
110 int GetHeightForPageHeight( int pageHeight );
111 int GetTabCtrlHeight() const;
113 void SetNormalFont( const wxFont& font );
114 void SetSelectedFont( const wxFont& font );
115 void SetMeasuringFont( const wxFont& font );
117 void SetTabCtrlHeight( int height );
119 bool ShowWindowMenu();
122 void SetUniformBitmapSize( const wxSize& size );