]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_pywindows.i
'[1219035] cleanup: miscellaneous' and minor source cleaning.
[wxWidgets.git] / wxPython / src / _pywindows.i
CommitLineData
d14a1e28
RD
1/////////////////////////////////////////////////////////////////////////////
2// Name: _pywindows.i
3// Purpose: SWIG interface for wxPyWindow, and etc. These classes support
4// overriding many of wxWindow's virtual methods in Python derived
5// classes.
6//
7// Author: Robin Dunn
8//
9// Created: 2-June-1998
10// RCS-ID: $Id$
11// Copyright: (c) 2003 by Total Control Software
12// Licence: wxWindows license
13/////////////////////////////////////////////////////////////////////////////
14
15// Not a %module
16
17
18//---------------------------------------------------------------------------
19%newgroup
20
21// TODO: Redo these with SWIG directors?
22
23// TODO: Which (if any?) of these should be done also???
24// Destroy
25// DoCaptureMouse
26// DoClientToScreen
27// DoHitTest
28// DoMoveWindow
29// DoPopupMenu
30// DoReleaseMouse
31// DoScreenToClient
32// DoSetToolTip
33// Enable
34// Fit
35// GetCharHeight
36// GetCharWidth
37// GetClientAreaOrigin
38// GetDefaultItem
39// IsTopLevel
40// SetBackgroundColour
41// SetDefaultItem
42// SetFocus
43// SetFocusFromKbd
44// SetForegroundColour
45// SetSizeHints
46// SetVirtualSizeHints
47// Show
48
49
d14a1e28
RD
50//---------------------------------------------------------------------------
51
d14a1e28
RD
52%{ // C++ version of Python aware wxWindow
53class wxPyWindow : public wxWindow
54{
55 DECLARE_DYNAMIC_CLASS(wxPyWindow)
56public:
57 wxPyWindow() : wxWindow() {}
58 wxPyWindow(wxWindow* parent, const wxWindowID id,
59 const wxPoint& pos = wxDefaultPosition,
60 const wxSize& size = wxDefaultSize,
61 long style = 0,
62 const wxString& name = wxPyPanelNameStr)
63 : wxWindow(parent, id, pos, size, style, name) {}
64
1a10485f 65 void SetBestSize(const wxSize& size) { wxWindow::SetBestSize(size); }
d14a1e28 66
0ef14ca5
RD
67 bool DoEraseBackground(wxDC* dc) {
68#ifdef __WXMSW__
69 return wxWindow::DoEraseBackground(dc->GetHDC());
70#else
71 dc->SetBackground(wxBrush(GetBackgroundColour()));
72 dc->Clear();
73 return true;
74#endif
75 }
76
d14a1e28
RD
77 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
78 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
79 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
80 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
81
82 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
83 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
84 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
85
86 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
87 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
88
89 DEC_PYCALLBACK__(InitDialog);
90 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
91 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
92 DEC_PYCALLBACK_BOOL_(Validate);
93
94 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
95 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
96 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
97
98 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
99 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
100
1a10485f 101 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
1a10485f 102 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
4d2962b1 103
b035e80b
RD
104 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
105
37617433
RD
106 DEC_PYCALLBACK_VOID_(OnInternalIdle);
107
d14a1e28
RD
108 PYPRIVATE;
109};
110
111IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow);
112
113IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow);
114IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize);
115IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize);
116IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize);
117
118IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize);
119IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize);
120IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition);
121
122IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize);
123IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize);
124
125IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog);
126IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow);
127IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow);
128IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate);
129
130IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus);
131IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard);
132IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize);
133
134IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild);
135IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild);
136
1a10485f 137IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, ShouldInheritColours);
1a10485f 138IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes);
b035e80b
RD
139
140IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, HasTransparentBackground);
37617433
RD
141
142IMP_PYCALLBACK_VOID_(wxPyWindow, wxWindow, OnInternalIdle);
d14a1e28
RD
143%}
144
145// And now the one for SWIG to see
ab1f7d2a 146MustHaveApp(wxPyWindow);
d14a1e28
RD
147class wxPyWindow : public wxWindow
148{
149public:
2b9048c5 150 %pythonAppend wxPyWindow "self._setOORInfo(self); self._setCallbackInfo(self, PyWindow)"
d43da706 151 %pythonAppend wxPyWindow() ""
d14a1e28 152
d5573410 153 wxPyWindow(wxWindow* parent, const wxWindowID id=-1,
d14a1e28
RD
154 const wxPoint& pos = wxDefaultPosition,
155 const wxSize& size = wxDefaultSize,
156 long style = 0,
157 const wxString& name = wxPyPanelNameStr);
158
1b8c7ba6 159 %RenameCtor(PrePyWindow, wxPyWindow());
d43da706 160
d14a1e28
RD
161 void _setCallbackInfo(PyObject* self, PyObject* _class);
162
1a10485f 163 void SetBestSize(const wxSize& size);
0ef14ca5
RD
164 bool DoEraseBackground(wxDC* dc);
165
d14a1e28
RD
166 void base_DoMoveWindow(int x, int y, int width, int height);
167 void base_DoSetSize(int x, int y, int width, int height,
168 int sizeFlags = wxSIZE_AUTO);
169 void base_DoSetClientSize(int width, int height);
170 void base_DoSetVirtualSize( int x, int y );
171
322913ce
RD
172 DocDeclA(
173 void, base_DoGetSize( int *OUTPUT, int *OUTPUT ) const,
174 "base_DoGetSize() -> (width, height)");
175 DocDeclA(
176 void, base_DoGetClientSize( int *OUTPUT, int *OUTPUT ) const,
177 "base_DoGetClientSize() -> (width, height)");
178 DocDeclA(
179 void, base_DoGetPosition( int *OUTPUT, int *OUTPUT ) const,
180 "base_DoGetPosition() -> (x,y)");
d14a1e28
RD
181
182 wxSize base_DoGetVirtualSize() const;
183 wxSize base_DoGetBestSize() const;
184
185 void base_InitDialog();
186 bool base_TransferDataToWindow();
187 bool base_TransferDataFromWindow();
188 bool base_Validate();
189
190 bool base_AcceptsFocus() const;
191 bool base_AcceptsFocusFromKeyboard() const;
192 wxSize base_GetMaxSize() const;
193
194 void base_AddChild(wxWindow* child);
195 void base_RemoveChild(wxWindow* child);
d43da706 196
1a10485f 197 bool base_ShouldInheritColours() const;
1a10485f 198 wxVisualAttributes base_GetDefaultAttributes();
37617433
RD
199
200 void base_OnInternalIdle();
201
d14a1e28
RD
202};
203
204//---------------------------------------------------------------------------
205// Do the same thing for wxControl
206
207// ** See _pycontrol.i, it was moved there because of dependency on wxControl
208
209
210//---------------------------------------------------------------------------
211// and for wxPanel
212
213%{ // C++ version of Python aware wxPanel
214class wxPyPanel : public wxPanel
215{
216 DECLARE_DYNAMIC_CLASS(wxPyPanel)
217public:
218 wxPyPanel() : wxPanel() {}
219 wxPyPanel(wxWindow* parent, const wxWindowID id,
220 const wxPoint& pos = wxDefaultPosition,
221 const wxSize& size = wxDefaultSize,
222 long style = 0,
223 const wxString& name = wxPyPanelNameStr)
224 : wxPanel(parent, id, pos, size, style, name) {}
225
1a10485f 226 void SetBestSize(const wxSize& size) { wxPanel::SetBestSize(size); }
0ef14ca5
RD
227 bool DoEraseBackground(wxDC* dc) {
228#ifdef __WXMSW__
229 return wxWindow::DoEraseBackground(dc->GetHDC());
230#else
231 dc->SetBackground(wxBrush(GetBackgroundColour()));
232 dc->Clear();
233 return true;
234#endif
235 }
1a10485f 236
d14a1e28
RD
237
238 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
239 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
240 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
241 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
242
243 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
244 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
245 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
246
247 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
248 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
249
250 DEC_PYCALLBACK__(InitDialog);
251 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
252 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
253 DEC_PYCALLBACK_BOOL_(Validate);
254
255 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
256 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
257 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
258
259 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
260 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
261
1a10485f 262 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
1a10485f 263 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
4d2962b1 264
b035e80b
RD
265 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
266
37617433
RD
267 DEC_PYCALLBACK_VOID_(OnInternalIdle);
268
d14a1e28
RD
269 PYPRIVATE;
270};
271
272IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel);
273
274IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow);
275IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize);
276IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize);
277IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize);
278
279IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize);
280IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize);
281IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition);
282
283IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize);
284IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize);
285
286IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog);
287IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow);
288IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow);
289IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate);
290
291IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus);
292IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard);
293IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize);
294
295IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild);
296IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild);
297
1a10485f 298IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, ShouldInheritColours);
1a10485f
RD
299IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes);
300
b035e80b 301IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, HasTransparentBackground);
37617433
RD
302
303IMP_PYCALLBACK_VOID_(wxPyPanel, wxPanel, OnInternalIdle);
b035e80b 304%}
d14a1e28
RD
305
306// And now the one for SWIG to see
ab1f7d2a 307MustHaveApp(wxPyPanel);
d14a1e28
RD
308class wxPyPanel : public wxPanel
309{
310public:
2b9048c5 311 %pythonAppend wxPyPanel "self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)"
d43da706 312 %pythonAppend wxPyPanel() ""
d14a1e28 313
d5573410 314 wxPyPanel(wxWindow* parent, const wxWindowID id=-1,
d14a1e28
RD
315 const wxPoint& pos = wxDefaultPosition,
316 const wxSize& size = wxDefaultSize,
317 long style = 0,
318 const wxString& name = wxPyPanelNameStr);
319
1b8c7ba6 320 %RenameCtor(PrePyPanel, wxPyPanel());
d43da706
RD
321
322 void _setCallbackInfo(PyObject* self, PyObject* _class);
323
1a10485f 324 void SetBestSize(const wxSize& size);
0ef14ca5
RD
325 bool DoEraseBackground(wxDC* dc);
326
d43da706
RD
327 void base_DoMoveWindow(int x, int y, int width, int height);
328 void base_DoSetSize(int x, int y, int width, int height,
329 int sizeFlags = wxSIZE_AUTO);
330 void base_DoSetClientSize(int width, int height);
331 void base_DoSetVirtualSize( int x, int y );
332
333 DocDeclA(
334 void, base_DoGetSize( int *OUTPUT, int *OUTPUT ) const,
335 "base_DoGetSize() -> (width, height)");
336 DocDeclA(
337 void, base_DoGetClientSize( int *OUTPUT, int *OUTPUT ) const,
338 "base_DoGetClientSize() -> (width, height)");
339 DocDeclA(
340 void, base_DoGetPosition( int *OUTPUT, int *OUTPUT ) const,
341 "base_DoGetPosition() -> (x,y)");
342
343 wxSize base_DoGetVirtualSize() const;
344 wxSize base_DoGetBestSize() const;
345
346 void base_InitDialog();
347 bool base_TransferDataToWindow();
348 bool base_TransferDataFromWindow();
349 bool base_Validate();
350
351 bool base_AcceptsFocus() const;
352 bool base_AcceptsFocusFromKeyboard() const;
353 wxSize base_GetMaxSize() const;
354
355 void base_AddChild(wxWindow* child);
356 void base_RemoveChild(wxWindow* child);
357
1a10485f 358 bool base_ShouldInheritColours() const ;
1a10485f 359 wxVisualAttributes base_GetDefaultAttributes();
37617433
RD
360
361 void base_OnInternalIdle();
362
d43da706
RD
363};
364
365//---------------------------------------------------------------------------
366// and for wxScrolledWindow
367
368%{ // C++ version of Python aware wxScrolledWindow
369class wxPyScrolledWindow : public wxScrolledWindow
370{
371 DECLARE_DYNAMIC_CLASS(wxPyScrolledWindow)
372public:
373 wxPyScrolledWindow() : wxScrolledWindow() {}
374 wxPyScrolledWindow(wxWindow* parent, const wxWindowID id,
375 const wxPoint& pos = wxDefaultPosition,
376 const wxSize& size = wxDefaultSize,
377 long style = 0,
378 const wxString& name = wxPyPanelNameStr)
379 : wxScrolledWindow(parent, id, pos, size, style, name) {}
380
1a10485f 381 void SetBestSize(const wxSize& size) { wxScrolledWindow::SetBestSize(size); }
0ef14ca5
RD
382 bool DoEraseBackground(wxDC* dc) {
383#ifdef __WXMSW__
384 return wxWindow::DoEraseBackground(dc->GetHDC());
385#else
386 dc->SetBackground(wxBrush(GetBackgroundColour()));
387 dc->Clear();
388 return true;
389#endif
390 }
d43da706
RD
391
392 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
393 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
394 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
395 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
396
397 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
398 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
399 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
400
401 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
402 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
403
404 DEC_PYCALLBACK__(InitDialog);
405 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
406 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
407 DEC_PYCALLBACK_BOOL_(Validate);
408
409 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
410 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
411 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
412
413 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
414 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
415
1a10485f 416 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
1a10485f 417 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
d43da706 418
b035e80b
RD
419 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
420
37617433
RD
421 DEC_PYCALLBACK_VOID_(OnInternalIdle);
422
d43da706
RD
423 PYPRIVATE;
424};
425
426IMPLEMENT_DYNAMIC_CLASS(wxPyScrolledWindow, wxScrolledWindow);
427
428IMP_PYCALLBACK_VOID_INT4(wxPyScrolledWindow, wxScrolledWindow, DoMoveWindow);
429IMP_PYCALLBACK_VOID_INT5(wxPyScrolledWindow, wxScrolledWindow, DoSetSize);
430IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetClientSize);
431IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetVirtualSize);
432
433IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetSize);
434IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetClientSize);
435IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetPosition);
436
437IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetVirtualSize);
438IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetBestSize);
439
440IMP_PYCALLBACK__(wxPyScrolledWindow, wxScrolledWindow, InitDialog);
441IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataFromWindow);
442IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataToWindow);
443IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, Validate);
444
445IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocus);
446IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocusFromKeyboard);
447IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, GetMaxSize);
448
449IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, AddChild);
450IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, RemoveChild);
451
1a10485f 452IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours);
1a10485f
RD
453IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttributes);
454
b035e80b 455IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, HasTransparentBackground);
37617433
RD
456
457IMP_PYCALLBACK_VOID_(wxPyScrolledWindow, wxScrolledWindow, OnInternalIdle);
d43da706
RD
458%}
459
460// And now the one for SWIG to see
ab1f7d2a 461MustHaveApp(wxPyScrolledWindow);
d43da706
RD
462class wxPyScrolledWindow : public wxScrolledWindow
463{
464public:
cccb455e 465 %pythonAppend wxPyScrolledWindow "self._setOORInfo(self); self._setCallbackInfo(self, PyScrolledWindow)"
d43da706
RD
466 %pythonAppend wxPyScrolledWindow() ""
467
d5573410 468 wxPyScrolledWindow(wxWindow* parent, const wxWindowID id=-1,
d43da706
RD
469 const wxPoint& pos = wxDefaultPosition,
470 const wxSize& size = wxDefaultSize,
471 long style = 0,
472 const wxString& name = wxPyPanelNameStr);
473
1b8c7ba6 474 %RenameCtor(PrePyScrolledWindow, wxPyScrolledWindow());
d43da706 475
d14a1e28 476 void _setCallbackInfo(PyObject* self, PyObject* _class);
d14a1e28 477
1a10485f 478 void SetBestSize(const wxSize& size);
0ef14ca5
RD
479 bool DoEraseBackground(wxDC* dc);
480
d14a1e28
RD
481 void base_DoMoveWindow(int x, int y, int width, int height);
482 void base_DoSetSize(int x, int y, int width, int height,
483 int sizeFlags = wxSIZE_AUTO);
484 void base_DoSetClientSize(int width, int height);
485 void base_DoSetVirtualSize( int x, int y );
486
322913ce
RD
487 DocDeclA(
488 void, base_DoGetSize( int *OUTPUT, int *OUTPUT ) const,
489 "base_DoGetSize() -> (width, height)");
490 DocDeclA(
491 void, base_DoGetClientSize( int *OUTPUT, int *OUTPUT ) const,
492 "base_DoGetClientSize() -> (width, height)");
493 DocDeclA(
494 void, base_DoGetPosition( int *OUTPUT, int *OUTPUT ) const,
495 "base_DoGetPosition() -> (x,y)");
d14a1e28
RD
496
497 wxSize base_DoGetVirtualSize() const;
498 wxSize base_DoGetBestSize() const;
499
500 void base_InitDialog();
501 bool base_TransferDataToWindow();
502 bool base_TransferDataFromWindow();
503 bool base_Validate();
504
505 bool base_AcceptsFocus() const;
506 bool base_AcceptsFocusFromKeyboard() const;
507 wxSize base_GetMaxSize() const;
508
509 void base_AddChild(wxWindow* child);
510 void base_RemoveChild(wxWindow* child);
d43da706 511
1a10485f 512 bool base_ShouldInheritColours() const;
1a10485f 513 wxVisualAttributes base_GetDefaultAttributes();
37617433
RD
514
515 void base_OnInternalIdle();
516
d14a1e28
RD
517};
518
519
520//---------------------------------------------------------------------------
521//---------------------------------------------------------------------------