1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface for wxPyWindow, and etc. These classes support
4 // overriding many of wxWindow's virtual methods in Python derived
9 // Created: 2-June-1998
11 // Copyright: (c) 2003 by Total Control Software
12 // Licence: wxWindows license
13 /////////////////////////////////////////////////////////////////////////////
18 //---------------------------------------------------------------------------
21 // TODO: Redo these with SWIG directors?
23 // TODO: Which (if any?) of these should be done also???
37 // GetClientAreaOrigin
40 // SetBackgroundColour
44 // SetForegroundColour
46 // SetVirtualSizeHints
50 //---------------------------------------------------------------------------
52 %{ // C++ version of Python aware wxWindow
53 class wxPyWindow : public wxWindow
55 DECLARE_DYNAMIC_CLASS(wxPyWindow)
57 wxPyWindow() : wxWindow() {}
58 wxPyWindow(wxWindow* parent, const wxWindowID id,
59 const wxPoint& pos = wxDefaultPosition,
60 const wxSize& size = wxDefaultSize,
62 const wxString& name = wxPyPanelNameStr)
63 : wxWindow(parent, id, pos, size, style, name) {}
66 bool DoEraseBackground(wxDC* dc) {
68 return wxWindow::DoEraseBackground(dc->GetHDC());
70 dc->SetBackground(wxBrush(GetBackgroundColour()));
76 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
77 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
78 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
79 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
81 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
82 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
83 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
85 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
86 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
88 DEC_PYCALLBACK__(InitDialog);
89 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
90 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
91 DEC_PYCALLBACK_BOOL_(Validate);
93 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
94 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
95 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
97 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
98 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
100 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
101 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
103 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
105 DEC_PYCALLBACK_VOID_(OnInternalIdle);
110 IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow);
112 IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow);
113 IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize);
114 IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize);
115 IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize);
117 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize);
118 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize);
119 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition);
121 IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize);
122 IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize);
124 IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog);
125 IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow);
126 IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow);
127 IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate);
129 IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus);
130 IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard);
131 IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize);
133 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild);
134 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild);
136 IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, ShouldInheritColours);
137 IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes);
139 IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, HasTransparentBackground);
141 IMP_PYCALLBACK_VOID_(wxPyWindow, wxWindow, OnInternalIdle);
144 // And now the one for SWIG to see
145 MustHaveApp(wxPyWindow);
146 class wxPyWindow : public wxWindow
149 %pythonAppend wxPyWindow "self._setOORInfo(self); self._setCallbackInfo(self, PyWindow)"
150 %pythonAppend wxPyWindow() ""
152 wxPyWindow(wxWindow* parent, const wxWindowID id=-1,
153 const wxPoint& pos = wxDefaultPosition,
154 const wxSize& size = wxDefaultSize,
156 const wxString& name = wxPyPanelNameStr);
158 %RenameCtor(PrePyWindow, wxPyWindow());
160 void _setCallbackInfo(PyObject* self, PyObject* _class);
162 bool DoEraseBackground(wxDC* dc);
164 void DoMoveWindow(int x, int y, int width, int height);
165 void DoSetSize(int x, int y, int width, int height,
166 int sizeFlags = wxSIZE_AUTO);
167 void DoSetClientSize(int width, int height);
168 void DoSetVirtualSize( int x, int y );
171 void, DoGetSize( int *OUTPUT, int *OUTPUT ) const,
172 "DoGetSize() -> (width, height)");
174 void, DoGetClientSize( int *OUTPUT, int *OUTPUT ) const,
175 "DoGetClientSize() -> (width, height)");
177 void, DoGetPosition( int *OUTPUT, int *OUTPUT ) const,
178 "DoGetPosition() -> (x,y)");
180 wxSize DoGetVirtualSize() const;
181 wxSize DoGetBestSize() const;
184 bool TransferDataToWindow();
185 bool TransferDataFromWindow();
188 bool AcceptsFocus() const;
189 bool AcceptsFocusFromKeyboard() const;
190 wxSize GetMaxSize() const;
192 void AddChild(wxWindow* child);
193 void RemoveChild(wxWindow* child);
195 bool ShouldInheritColours() const;
196 wxVisualAttributes GetDefaultAttributes();
198 void OnInternalIdle();
200 %MAKE_BASE_FUNC(PyWindow, DoMoveWindow);
201 %MAKE_BASE_FUNC(PyWindow, DoSetSize);
202 %MAKE_BASE_FUNC(PyWindow, DoSetClientSize);
203 %MAKE_BASE_FUNC(PyWindow, DoSetVirtualSize);
204 %MAKE_BASE_FUNC(PyWindow, DoGetSize);
205 %MAKE_BASE_FUNC(PyWindow, DoGetClientSize);
206 %MAKE_BASE_FUNC(PyWindow, DoGetPosition);
207 %MAKE_BASE_FUNC(PyWindow, DoGetVirtualSize);
208 %MAKE_BASE_FUNC(PyWindow, DoGetBestSize);
209 %MAKE_BASE_FUNC(PyWindow, InitDialog);
210 %MAKE_BASE_FUNC(PyWindow, TransferDataToWindow);
211 %MAKE_BASE_FUNC(PyWindow, TransferDataFromWindow);
212 %MAKE_BASE_FUNC(PyWindow, Validate);
213 %MAKE_BASE_FUNC(PyWindow, AcceptsFocus);
214 %MAKE_BASE_FUNC(PyWindow, AcceptsFocusFromKeyboard);
215 %MAKE_BASE_FUNC(PyWindow, GetMaxSize);
216 %MAKE_BASE_FUNC(PyWindow, AddChild);
217 %MAKE_BASE_FUNC(PyWindow, RemoveChild);
218 %MAKE_BASE_FUNC(PyWindow, ShouldInheritColours);
219 %MAKE_BASE_FUNC(PyWindow, GetDefaultAttributes);
220 %MAKE_BASE_FUNC(PyWindow, OnInternalIdle);
224 //---------------------------------------------------------------------------
225 // Do the same thing for wxControl
227 // ** See _pycontrol.i, it was moved there because of dependency on wxControl
230 //---------------------------------------------------------------------------
233 %{ // C++ version of Python aware wxPanel
234 class wxPyPanel : public wxPanel
236 DECLARE_DYNAMIC_CLASS(wxPyPanel)
238 wxPyPanel() : wxPanel() {}
239 wxPyPanel(wxWindow* parent, const wxWindowID id,
240 const wxPoint& pos = wxDefaultPosition,
241 const wxSize& size = wxDefaultSize,
243 const wxString& name = wxPyPanelNameStr)
244 : wxPanel(parent, id, pos, size, style, name) {}
246 bool DoEraseBackground(wxDC* dc) {
248 return wxWindow::DoEraseBackground(dc->GetHDC());
250 dc->SetBackground(wxBrush(GetBackgroundColour()));
257 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
258 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
259 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
260 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
262 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
263 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
264 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
266 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
267 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
269 DEC_PYCALLBACK__(InitDialog);
270 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
271 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
272 DEC_PYCALLBACK_BOOL_(Validate);
274 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
275 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
276 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
278 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
279 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
281 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
282 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
284 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
286 DEC_PYCALLBACK_VOID_(OnInternalIdle);
291 IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel);
293 IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow);
294 IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize);
295 IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize);
296 IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize);
298 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize);
299 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize);
300 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition);
302 IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize);
303 IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize);
305 IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog);
306 IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow);
307 IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow);
308 IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate);
310 IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus);
311 IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard);
312 IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize);
314 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild);
315 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild);
317 IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, ShouldInheritColours);
318 IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes);
320 IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, HasTransparentBackground);
322 IMP_PYCALLBACK_VOID_(wxPyPanel, wxPanel, OnInternalIdle);
325 // And now the one for SWIG to see
326 MustHaveApp(wxPyPanel);
327 class wxPyPanel : public wxPanel
330 %pythonAppend wxPyPanel "self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)"
331 %pythonAppend wxPyPanel() ""
333 wxPyPanel(wxWindow* parent, const wxWindowID id=-1,
334 const wxPoint& pos = wxDefaultPosition,
335 const wxSize& size = wxDefaultSize,
337 const wxString& name = wxPyPanelNameStr);
339 %RenameCtor(PrePyPanel, wxPyPanel());
341 void _setCallbackInfo(PyObject* self, PyObject* _class);
343 bool DoEraseBackground(wxDC* dc);
345 void DoMoveWindow(int x, int y, int width, int height);
346 void DoSetSize(int x, int y, int width, int height,
347 int sizeFlags = wxSIZE_AUTO);
348 void DoSetClientSize(int width, int height);
349 void DoSetVirtualSize( int x, int y );
352 void, DoGetSize( int *OUTPUT, int *OUTPUT ) const,
353 "DoGetSize() -> (width, height)");
355 void, DoGetClientSize( int *OUTPUT, int *OUTPUT ) const,
356 "DoGetClientSize() -> (width, height)");
358 void, DoGetPosition( int *OUTPUT, int *OUTPUT ) const,
359 "DoGetPosition() -> (x,y)");
361 wxSize DoGetVirtualSize() const;
362 wxSize DoGetBestSize() const;
365 bool TransferDataToWindow();
366 bool TransferDataFromWindow();
369 bool AcceptsFocus() const;
370 bool AcceptsFocusFromKeyboard() const;
371 wxSize GetMaxSize() const;
373 void AddChild(wxWindow* child);
374 void RemoveChild(wxWindow* child);
376 bool ShouldInheritColours() const ;
377 wxVisualAttributes GetDefaultAttributes();
379 void OnInternalIdle();
381 %MAKE_BASE_FUNC(PyPanel, DoMoveWindow);
382 %MAKE_BASE_FUNC(PyPanel, DoSetSize);
383 %MAKE_BASE_FUNC(PyPanel, DoSetClientSize);
384 %MAKE_BASE_FUNC(PyPanel, DoSetVirtualSize);
385 %MAKE_BASE_FUNC(PyPanel, DoGetSize);
386 %MAKE_BASE_FUNC(PyPanel, DoGetClientSize);
387 %MAKE_BASE_FUNC(PyPanel, DoGetPosition);
388 %MAKE_BASE_FUNC(PyPanel, DoGetVirtualSize);
389 %MAKE_BASE_FUNC(PyPanel, DoGetBestSize);
390 %MAKE_BASE_FUNC(PyPanel, InitDialog);
391 %MAKE_BASE_FUNC(PyPanel, TransferDataToWindow);
392 %MAKE_BASE_FUNC(PyPanel, TransferDataFromWindow);
393 %MAKE_BASE_FUNC(PyPanel, Validate);
394 %MAKE_BASE_FUNC(PyPanel, AcceptsFocus);
395 %MAKE_BASE_FUNC(PyPanel, AcceptsFocusFromKeyboard);
396 %MAKE_BASE_FUNC(PyPanel, GetMaxSize);
397 %MAKE_BASE_FUNC(PyPanel, AddChild);
398 %MAKE_BASE_FUNC(PyPanel, RemoveChild);
399 %MAKE_BASE_FUNC(PyPanel, ShouldInheritColours);
400 %MAKE_BASE_FUNC(PyPanel, GetDefaultAttributes);
401 %MAKE_BASE_FUNC(PyPanel, OnInternalIdle);
404 //---------------------------------------------------------------------------
405 // and for wxScrolledWindow
407 %{ // C++ version of Python aware wxScrolledWindow
408 class wxPyScrolledWindow : public wxScrolledWindow
410 DECLARE_DYNAMIC_CLASS(wxPyScrolledWindow)
412 wxPyScrolledWindow() : wxScrolledWindow() {}
413 wxPyScrolledWindow(wxWindow* parent, const wxWindowID id,
414 const wxPoint& pos = wxDefaultPosition,
415 const wxSize& size = wxDefaultSize,
417 const wxString& name = wxPyPanelNameStr)
418 : wxScrolledWindow(parent, id, pos, size, style, name) {}
420 bool DoEraseBackground(wxDC* dc) {
422 return wxWindow::DoEraseBackground(dc->GetHDC());
424 dc->SetBackground(wxBrush(GetBackgroundColour()));
430 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
431 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
432 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
433 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
435 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
436 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
437 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
439 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
440 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
442 DEC_PYCALLBACK__(InitDialog);
443 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
444 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
445 DEC_PYCALLBACK_BOOL_(Validate);
447 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
448 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
449 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
451 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
452 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
454 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
455 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
457 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
459 DEC_PYCALLBACK_VOID_(OnInternalIdle);
464 IMPLEMENT_DYNAMIC_CLASS(wxPyScrolledWindow, wxScrolledWindow);
466 IMP_PYCALLBACK_VOID_INT4(wxPyScrolledWindow, wxScrolledWindow, DoMoveWindow);
467 IMP_PYCALLBACK_VOID_INT5(wxPyScrolledWindow, wxScrolledWindow, DoSetSize);
468 IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetClientSize);
469 IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetVirtualSize);
471 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetSize);
472 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetClientSize);
473 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetPosition);
475 IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetVirtualSize);
476 IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetBestSize);
478 IMP_PYCALLBACK__(wxPyScrolledWindow, wxScrolledWindow, InitDialog);
479 IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataFromWindow);
480 IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataToWindow);
481 IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, Validate);
483 IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocus);
484 IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocusFromKeyboard);
485 IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, GetMaxSize);
487 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, AddChild);
488 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, RemoveChild);
490 IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours);
491 IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttributes);
493 IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, HasTransparentBackground);
495 IMP_PYCALLBACK_VOID_(wxPyScrolledWindow, wxScrolledWindow, OnInternalIdle);
498 // And now the one for SWIG to see
499 MustHaveApp(wxPyScrolledWindow);
500 class wxPyScrolledWindow : public wxScrolledWindow
503 %pythonAppend wxPyScrolledWindow "self._setOORInfo(self); self._setCallbackInfo(self, PyScrolledWindow)"
504 %pythonAppend wxPyScrolledWindow() ""
506 wxPyScrolledWindow(wxWindow* parent, const wxWindowID id=-1,
507 const wxPoint& pos = wxDefaultPosition,
508 const wxSize& size = wxDefaultSize,
510 const wxString& name = wxPyPanelNameStr);
512 %RenameCtor(PrePyScrolledWindow, wxPyScrolledWindow());
514 void _setCallbackInfo(PyObject* self, PyObject* _class);
516 bool DoEraseBackground(wxDC* dc);
518 void DoMoveWindow(int x, int y, int width, int height);
519 void DoSetSize(int x, int y, int width, int height,
520 int sizeFlags = wxSIZE_AUTO);
521 void DoSetClientSize(int width, int height);
522 void DoSetVirtualSize( int x, int y );
525 void, DoGetSize( int *OUTPUT, int *OUTPUT ) const,
526 "DoGetSize() -> (width, height)");
528 void, DoGetClientSize( int *OUTPUT, int *OUTPUT ) const,
529 "DoGetClientSize() -> (width, height)");
531 void, DoGetPosition( int *OUTPUT, int *OUTPUT ) const,
532 "DoGetPosition() -> (x,y)");
534 wxSize DoGetVirtualSize() const;
535 wxSize DoGetBestSize() const;
538 bool TransferDataToWindow();
539 bool TransferDataFromWindow();
542 bool AcceptsFocus() const;
543 bool AcceptsFocusFromKeyboard() const;
544 wxSize GetMaxSize() const;
546 void AddChild(wxWindow* child);
547 void RemoveChild(wxWindow* child);
549 bool ShouldInheritColours() const;
550 wxVisualAttributes GetDefaultAttributes();
552 void OnInternalIdle();
554 %MAKE_BASE_FUNC(PyScrolledWindow, DoMoveWindow);
555 %MAKE_BASE_FUNC(PyScrolledWindow, DoSetSize);
556 %MAKE_BASE_FUNC(PyScrolledWindow, DoSetClientSize);
557 %MAKE_BASE_FUNC(PyScrolledWindow, DoSetVirtualSize);
558 %MAKE_BASE_FUNC(PyScrolledWindow, DoGetSize);
559 %MAKE_BASE_FUNC(PyScrolledWindow, DoGetClientSize);
560 %MAKE_BASE_FUNC(PyScrolledWindow, DoGetPosition);
561 %MAKE_BASE_FUNC(PyScrolledWindow, DoGetVirtualSize);
562 %MAKE_BASE_FUNC(PyScrolledWindow, DoGetBestSize);
563 %MAKE_BASE_FUNC(PyScrolledWindow, InitDialog);
564 %MAKE_BASE_FUNC(PyScrolledWindow, TransferDataToWindow);
565 %MAKE_BASE_FUNC(PyScrolledWindow, TransferDataFromWindow);
566 %MAKE_BASE_FUNC(PyScrolledWindow, Validate);
567 %MAKE_BASE_FUNC(PyScrolledWindow, AcceptsFocus);
568 %MAKE_BASE_FUNC(PyScrolledWindow, AcceptsFocusFromKeyboard);
569 %MAKE_BASE_FUNC(PyScrolledWindow, GetMaxSize);
570 %MAKE_BASE_FUNC(PyScrolledWindow, AddChild);
571 %MAKE_BASE_FUNC(PyScrolledWindow, RemoveChild);
572 %MAKE_BASE_FUNC(PyScrolledWindow, ShouldInheritColours);
573 %MAKE_BASE_FUNC(PyScrolledWindow, GetDefaultAttributes);
574 %MAKE_BASE_FUNC(PyScrolledWindow, OnInternalIdle);
579 //---------------------------------------------------------------------------
580 //---------------------------------------------------------------------------