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 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
|
#############################################################################
## Name: XS/Notebook.xs
## Purpose: XS for Wx::Notebook
## Author: Mattia Barbon
## Modified by:
## Created: 29/10/2000
## RCS-ID: $Id: Notebook.xs 2057 2007-06-18 23:03:00Z mbarbon $
## Copyright: (c) 2000-2003, 2006 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/notebook.h>
#if WXPERL_W_VERSION_LT( 2, 6, 0 )
#define wxNotebookNameStr wxT("notebook")
#endif
MODULE=Wx_Evt PACKAGE=Wx::NotebookEvent
wxNotebookEvent*
wxNotebookEvent::new( eventType = wxEVT_NULL, id = 0, sel = -1, oldSel = -1 )
wxEventType eventType
int id
int sel
int oldSel
#if WXPERL_W_VERSION_LE( 2, 5, 1 )
int
wxNotebookEvent::GetOldSelection()
int
wxNotebookEvent::GetSelection()
void
wxNotebookEvent::SetOldSelection( sel )
int sel
void
wxNotebookEvent::SetSelection( oldSel )
int oldSel
#endif
MODULE=Wx PACKAGE=Wx::Notebook
void
new( ... )
PPCODE:
BEGIN_OVERLOAD()
MATCH_VOIDM_REDISP( newDefault )
MATCH_ANY_REDISP( newFull )
END_OVERLOAD( "Wx::Notebook::new" )
wxNotebook*
newDefault( CLASS )
PlClassName CLASS
CODE:
RETVAL = new wxNotebook();
wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
OUTPUT: RETVAL
wxNotebook*
newFull( CLASS, parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = 0, name = wxNotebookNameStr )
PlClassName CLASS
wxWindow* parent
wxWindowID id
wxPoint pos
wxSize size
long style
wxString name
CODE:
RETVAL = new wxNotebook( parent, id, pos, size, style, name );
wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
OUTPUT:
RETVAL
bool
wxNotebook::Create( parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = 0, name = wxNotebookNameStr )
wxWindow* parent
wxWindowID id
wxPoint pos
wxSize size
long style
wxString name
#if WXPERL_W_VERSION_LE( 2, 5, 1 )
bool
wxNotebook::AddPage( page, text, select = false, imageId = -1 )
wxWindow* page
wxString text
bool select
int imageId
void
wxNotebook::AdvanceSelection( forward = true )
bool forward
bool
wxNotebook::DeleteAllPages()
bool
wxNotebook::DeletePage( page )
int page
wxImageList*
wxNotebook::GetImageList()
OUTPUT:
RETVAL
CLEANUP:
wxPli_object_set_deleteable( aTHX_ ST(0), false );
wxWindow*
wxNotebook::GetPage( page )
int page
int
wxNotebook::GetPageCount()
int
wxNotebook::GetPageImage( page )
int page
wxString
wxNotebook::GetPageText( page )
int page
int
wxNotebook::GetSelection()
bool
wxNotebook::InsertPage( index, page, text, select = false, imageId = -1 )
int index
wxWindow* page
wxString text
bool select
int imageId
bool
wxNotebook::RemovePage( page )
int page
void
wxNotebook::SetImageList( imagelist )
wxImageList* imagelist
bool
wxNotebook::SetPageImage( page, image )
int page
int image
bool
wxNotebook::SetPageText( page, text )
int page
wxString text
int
wxNotebook::SetSelection( page )
int page
#endif
#if WXPERL_W_VERSION_GE( 2, 5, 2 ) && WXPERL_W_VERSION_LT( 2, 7, 0 )
void
wxNotebook::HitTest( point )
wxPoint point
PREINIT:
long flags;
int item;
PPCODE:
item = THIS->HitTest( point, &flags );
EXTEND( SP, 2 );
PUSHs( sv_2mortal( newSViv( item ) ) );
PUSHs( sv_2mortal( newSViv( flags ) ) );
#endif
int
wxNotebook::GetRowCount()
#if !defined( __WXMOTIF__ ) && !defined( __WXGTK__ ) || \
defined( __WXPERL_FORCE__ )
void
wxNotebook::SetPadding( padding )
wxSize padding
void
wxNotebook::SetPageSize( padding )
wxSize padding
#endif
|