Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / XS / TextEntryDialog.xs
1 #############################################################################
2 ## Name:        XS/TextEntryDialog.xs
3 ## Purpose:     XS for Wx::TextEntryDialog
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     27/11/2000
7 ## RCS-ID:      $Id: TextEntryDialog.xs 2180 2007-08-18 20:31:57Z mbarbon $
8 ## Copyright:   (c) 2000-2001, 2004, 2007 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/textdlg.h>
14
15 MODULE=Wx PACKAGE=Wx::TextEntryDialog
16
17 wxTextEntryDialog*
18 wxTextEntryDialog::new( parent, message, caption = wxGetTextFromUserPromptStr, defaultValue = wxEmptyString, style = wxTextEntryDialogStyle, pos = wxDefaultPosition )
19     wxWindow* parent
20     wxString message
21     wxString caption
22     wxString defaultValue
23     long style
24     wxPoint pos
25
26 wxString
27 wxTextEntryDialog::GetValue()
28
29 void
30 wxTextEntryDialog::SetValue( string )
31     wxString string
32
33 int
34 wxTextEntryDialog::ShowModal()
35
36 MODULE=Wx PACKAGE=Wx::PasswordEntryDialog
37
38 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
39
40 wxPasswordEntryDialog*
41 wxPasswordEntryDialog::new( parent, message, caption = wxGetPasswordFromUserPromptStr, defaultValue = wxEmptyString, style = wxTextEntryDialogStyle, pos = wxDefaultPosition )
42     wxWindow* parent
43     wxString message
44     wxString caption
45     wxString defaultValue
46     long style
47     wxPoint pos
48
49 #endif
50
51 MODULE=Wx PACKAGE=Wx::NumberEntryDialog
52
53 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
54
55 #include <wx/numdlg.h>
56
57 wxNumberEntryDialog*
58 wxNumberEntryDialog::new( parent, message, prompt, caption, value, min, max, pos )
59     wxWindow* parent
60     wxString message
61     wxString prompt
62     wxString caption
63     long value
64     long min
65     long max
66     wxPoint pos
67
68 long
69 wxNumberEntryDialog::GetValue()
70
71 #endif
72
73 MODULE=Wx PACKAGE=Wx PREFIX=wx
74
75 long
76 wxGetNumberFromUser( message, prompt, caption, value, min = 0, max = 100, parent = 0, pos = wxDefaultPosition )
77     wxString message
78     wxString prompt
79     wxString caption
80     long value
81     long min
82     long max
83     wxWindow* parent
84     wxPoint pos
85   CODE:
86     RETVAL = wxGetNumberFromUser( message, prompt, caption, value, min, max, parent, pos );
87   OUTPUT:
88     RETVAL
89
90 wxString
91 wxGetPasswordFromUser( message, caption = wxGetTextFromUserPromptStr, default_value = wxEmptyString, parent = 0 )
92   wxString message
93   wxString caption
94   wxString default_value
95   wxWindow* parent
96
97 wxString
98 wxGetTextFromUser( message, caption = wxGetTextFromUserPromptStr, default_value = wxEmptyString, parent = 0, x = -1, y = -1, centre = true )
99   wxString message
100   wxString caption
101   wxString default_value
102   wxWindow* parent
103   int x
104   int y
105   bool centre
106
107
108
109