1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
|
#############################################################################
## Name: ext/aui/XS/AuiNotebook.xsp
## Purpose: XS++ for Wx::AuiNotebook
## Author: Mattia Barbon
## Modified by:
## Created: 12/11/2006
## RCS-ID: $Id: AuiNotebook.xsp 2700 2009-12-13 11:25:50Z mbarbon $
## Copyright: (c) 2006-2007, 2009 Mattia Barbon
## Licence: This program is free software; you can redistribute it and/or
## modify it under the same terms as Perl itself
#############################################################################
#include <wx/aui/auibook.h>
%module{Wx};
%name{Wx::AuiNotebookEvent} class wxAuiNotebookEvent
{
wxAuiNotebookEvent( wxEventType command_type = wxEVT_NULL,
int win_id = 0 );
void SetSelection( int s );
int GetSelection() const;
void SetOldSelection( int s );
int GetOldSelection() const;
void SetDragSource( wxAuiNotebook* s );
wxAuiNotebook* GetDragSource() const;
};
%name{Wx::AuiNotebook} class wxAuiNotebook
{
%name{newDefault} wxAuiNotebook()
%code{% RETVAL = new wxAuiNotebook();
wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
%};
%name{newFull} wxAuiNotebook( wxWindow* parent,
wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxAUI_NB_DEFAULT_STYLE )
%code{% RETVAL = new wxAuiNotebook( parent, id,
pos, size, style );
wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
%};
%{
void
wxAuiNotebook::new( ... )
PPCODE:
BEGIN_OVERLOAD()
MATCH_VOIDM_REDISP( newDefault )
MATCH_ANY_REDISP( newFull )
END_OVERLOAD( "Wx::AuiNotebook::new" )
%}
bool Create( wxWindow* parent,
wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0 );
bool AddPage( wxWindow* page,
const wxString& caption,
bool select = false,
const wxBitmap& bitmap = wxNullBitmapPtr );
bool InsertPage( size_t page_idx,
wxWindow* page,
const wxString& caption,
bool select = false,
const wxBitmap& bitmap = wxNullBitmapPtr );
bool DeletePage( size_t page );
bool RemovePage( size_t page );
void SetWindowStyleFlag( long style );
bool SetPageText( size_t page, const wxString& text );
#if WXPERL_W_VERSION_GE( 2, 8, 0 )
wxString GetPageText( size_t page ) const;
bool SetPageBitmap( size_t page, const wxBitmap& bitmap );
const wxBitmap& GetPageBitmap( size_t index ) const;
#endif
size_t SetSelection( size_t new_page );
int GetSelection() const;
size_t GetPageCount() const;
wxWindow* GetPage( size_t page_idx ) const;
#if WXPERL_W_VERSION_GE( 2, 8, 0 )
int GetPageIndex( wxWindow* page_wnd ) const;
#endif
## void SetArtProvider( wxAuiTabArt* art );
## wxAuiTabArt* GetArtProvider() const;
#if WXPERL_W_VERSION_GE( 2, 8, 0 )
void Split( size_t page, int direction );
#endif
#if WXPERL_W_VERSION_GE( 2, 9, 0 ) || WXPERL_W_VERSION_GE( 2, 8, 1 )
const wxAuiManager* GetAuiManager()
%code{% RETVAL = &THIS->GetAuiManager(); %};
#endif
#if WXPERL_W_VERSION_GE( 2, 9, 0 ) || WXPERL_W_VERSION_GE( 2, 8, 5 )
void AdvanceSelection( bool advance = true );
int GetHeightForPageHeight( int pageHeight );
int GetTabCtrlHeight() const;
void SetNormalFont( const wxFont& font );
void SetSelectedFont( const wxFont& font );
void SetMeasuringFont( const wxFont& font );
void SetTabCtrlHeight( int height );
bool ShowWindowMenu();
#endif
void SetUniformBitmapSize( const wxSize& size );
};
|