Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / XS / ScrollBar.xs
1 #############################################################################
2 ## Name:        XS/ScrollBar.xs
3 ## Purpose:     XS for Wx::ScrollBar
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     08/11/2000
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 #############################################################################
12
13 #include <wx/scrolbar.h>
14
15 MODULE=Wx PACKAGE=Wx::ScrollBar
16
17 void
18 new( ... )
19   PPCODE:
20     BEGIN_OVERLOAD()
21         MATCH_VOIDM_REDISP( newDefault )
22         MATCH_ANY_REDISP( newFull )
23     END_OVERLOAD( "Wx::ScrollBar::new" )
24
25 wxScrollBar*
26 newDefault( CLASS )
27     PlClassName CLASS
28   CODE:
29     RETVAL = new wxScrollBar();
30     wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
31   OUTPUT: RETVAL
32
33 wxScrollBar*
34 newFull( CLASS, parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = wxSB_HORIZONTAL, validator = (wxValidator*)&wxDefaultValidator, name = wxScrollBarNameStr )
35     PlClassName CLASS
36     wxWindow* parent
37     wxWindowID id
38     wxPoint pos
39     wxSize size
40     long style
41     wxValidator* validator
42     wxString name
43   CODE:
44     RETVAL = new wxScrollBar( parent, id, pos, size, style, 
45         *validator, name );
46     wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
47   OUTPUT:
48     RETVAL
49
50 bool
51 wxScrollBar::Create( parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = wxSB_HORIZONTAL, validator = (wxValidator*)&wxDefaultValidator, name = wxScrollBarNameStr )
52     wxWindow* parent
53     wxWindowID id
54     wxPoint pos
55     wxSize size
56     long style
57     wxValidator* validator
58     wxString name
59   C_ARGS: parent, id, pos, size, style, *validator, name
60
61 int
62 wxScrollBar::GetRange()
63
64 int
65 wxScrollBar::GetPageSize()
66
67 int
68 wxScrollBar::GetThumbPosition()
69
70 int
71 wxScrollBar::GetThumbSize()
72
73 # int
74 # wxScrollBar::GetThumbLength()
75
76 void
77 wxScrollBar::SetThumbPosition( viewStart )
78     int viewStart
79
80 #if !defined(__WXMAC__) && !defined(__WXMOTIF__)
81
82 void
83 wxScrollBar::SetPageSize( size )
84     int size
85
86 #endif
87
88 void
89 wxScrollBar::SetScrollbar( position, thumbSize, range, pageSize, refresh = true )
90     int position
91     int thumbSize
92     int range
93     int pageSize
94     bool refresh