1 #############################################################################
2 ## Name: XS/ScrollBar.xs
3 ## Purpose: XS for Wx::ScrollBar
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: ScrollBar.xs 2435 2008-08-05 18:05:54Z mbarbon $
8 ## Copyright: (c) 2000-2001, 2003-2004, 2006-2008 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/scrolbar.h>
15 MODULE=Wx PACKAGE=Wx::ScrollBar
21 MATCH_VOIDM_REDISP( newDefault )
22 MATCH_ANY_REDISP( newFull )
23 END_OVERLOAD( "Wx::ScrollBar::new" )
29 RETVAL = new wxScrollBar();
30 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
34 newFull( CLASS, parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = wxSB_HORIZONTAL, validator = (wxValidator*)&wxDefaultValidator, name = wxScrollBarNameStr )
41 wxValidator* validator
44 RETVAL = new wxScrollBar( parent, id, pos, size, style,
46 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
51 wxScrollBar::Create( parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = wxSB_HORIZONTAL, validator = (wxValidator*)&wxDefaultValidator, name = wxScrollBarNameStr )
57 wxValidator* validator
59 C_ARGS: parent, id, pos, size, style, *validator, name
62 wxScrollBar::GetRange()
65 wxScrollBar::GetPageSize()
68 wxScrollBar::GetThumbPosition()
71 wxScrollBar::GetThumbSize()
74 # wxScrollBar::GetThumbLength()
77 wxScrollBar::SetThumbPosition( viewStart )
80 #if !defined(__WXMAC__) && !defined(__WXMOTIF__)
83 wxScrollBar::SetPageSize( size )
89 wxScrollBar::SetScrollbar( position, thumbSize, range, pageSize, refresh = true )