]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_pywindows.i
wxCheckListBox doesn't require wxUSE_OWNER_DRAWN when using WXUNIVERSAL
[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
d14a1e28
RD
106 PYPRIVATE;
107};
108
109IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow);
110
111IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow);
112IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize);
113IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize);
114IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize);
115
116IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize);
117IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize);
118IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition);
119
120IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize);
121IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize);
122
123IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog);
124IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow);
125IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow);
126IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate);
127
128IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus);
129IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard);
130IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize);
131
132IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild);
133IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild);
134
1a10485f 135IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, ShouldInheritColours);
1a10485f 136IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes);
b035e80b
RD
137
138IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, HasTransparentBackground);
d14a1e28
RD
139%}
140
141// And now the one for SWIG to see
ab1f7d2a 142MustHaveApp(wxPyWindow);
d14a1e28
RD
143class wxPyWindow : public wxWindow
144{
145public:
2b9048c5 146 %pythonAppend wxPyWindow "self._setOORInfo(self); self._setCallbackInfo(self, PyWindow)"
d43da706 147 %pythonAppend wxPyWindow() ""
d14a1e28 148
d5573410 149 wxPyWindow(wxWindow* parent, const wxWindowID id=-1,
d14a1e28
RD
150 const wxPoint& pos = wxDefaultPosition,
151 const wxSize& size = wxDefaultSize,
152 long style = 0,
153 const wxString& name = wxPyPanelNameStr);
154
1b8c7ba6 155 %RenameCtor(PrePyWindow, wxPyWindow());
d43da706 156
d14a1e28
RD
157 void _setCallbackInfo(PyObject* self, PyObject* _class);
158
1a10485f 159 void SetBestSize(const wxSize& size);
0ef14ca5
RD
160 bool DoEraseBackground(wxDC* dc);
161
d14a1e28
RD
162 void base_DoMoveWindow(int x, int y, int width, int height);
163 void base_DoSetSize(int x, int y, int width, int height,
164 int sizeFlags = wxSIZE_AUTO);
165 void base_DoSetClientSize(int width, int height);
166 void base_DoSetVirtualSize( int x, int y );
167
322913ce
RD
168 DocDeclA(
169 void, base_DoGetSize( int *OUTPUT, int *OUTPUT ) const,
170 "base_DoGetSize() -> (width, height)");
171 DocDeclA(
172 void, base_DoGetClientSize( int *OUTPUT, int *OUTPUT ) const,
173 "base_DoGetClientSize() -> (width, height)");
174 DocDeclA(
175 void, base_DoGetPosition( int *OUTPUT, int *OUTPUT ) const,
176 "base_DoGetPosition() -> (x,y)");
d14a1e28
RD
177
178 wxSize base_DoGetVirtualSize() const;
179 wxSize base_DoGetBestSize() const;
180
181 void base_InitDialog();
182 bool base_TransferDataToWindow();
183 bool base_TransferDataFromWindow();
184 bool base_Validate();
185
186 bool base_AcceptsFocus() const;
187 bool base_AcceptsFocusFromKeyboard() const;
188 wxSize base_GetMaxSize() const;
189
190 void base_AddChild(wxWindow* child);
191 void base_RemoveChild(wxWindow* child);
d43da706 192
1a10485f 193 bool base_ShouldInheritColours() const;
1a10485f 194 wxVisualAttributes base_GetDefaultAttributes();
d14a1e28
RD
195};
196
197//---------------------------------------------------------------------------
198// Do the same thing for wxControl
199
200// ** See _pycontrol.i, it was moved there because of dependency on wxControl
201
202
203//---------------------------------------------------------------------------
204// and for wxPanel
205
206%{ // C++ version of Python aware wxPanel
207class wxPyPanel : public wxPanel
208{
209 DECLARE_DYNAMIC_CLASS(wxPyPanel)
210public:
211 wxPyPanel() : wxPanel() {}
212 wxPyPanel(wxWindow* parent, const wxWindowID id,
213 const wxPoint& pos = wxDefaultPosition,
214 const wxSize& size = wxDefaultSize,
215 long style = 0,
216 const wxString& name = wxPyPanelNameStr)
217 : wxPanel(parent, id, pos, size, style, name) {}
218
1a10485f 219 void SetBestSize(const wxSize& size) { wxPanel::SetBestSize(size); }
0ef14ca5
RD
220 bool DoEraseBackground(wxDC* dc) {
221#ifdef __WXMSW__
222 return wxWindow::DoEraseBackground(dc->GetHDC());
223#else
224 dc->SetBackground(wxBrush(GetBackgroundColour()));
225 dc->Clear();
226 return true;
227#endif
228 }
1a10485f 229
d14a1e28
RD
230
231 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
232 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
233 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
234 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
235
236 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
237 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
238 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
239
240 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
241 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
242
243 DEC_PYCALLBACK__(InitDialog);
244 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
245 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
246 DEC_PYCALLBACK_BOOL_(Validate);
247
248 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
249 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
250 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
251
252 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
253 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
254
1a10485f 255 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
1a10485f 256 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
4d2962b1 257
b035e80b
RD
258 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
259
d14a1e28
RD
260 PYPRIVATE;
261};
262
263IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel);
264
265IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow);
266IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize);
267IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize);
268IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize);
269
270IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize);
271IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize);
272IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition);
273
274IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize);
275IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize);
276
277IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog);
278IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow);
279IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow);
280IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate);
281
282IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus);
283IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard);
284IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize);
285
286IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild);
287IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild);
288
1a10485f 289IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, ShouldInheritColours);
1a10485f
RD
290IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes);
291
b035e80b
RD
292IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, HasTransparentBackground);
293%}
d14a1e28
RD
294
295// And now the one for SWIG to see
ab1f7d2a 296MustHaveApp(wxPyPanel);
d14a1e28
RD
297class wxPyPanel : public wxPanel
298{
299public:
2b9048c5 300 %pythonAppend wxPyPanel "self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)"
d43da706 301 %pythonAppend wxPyPanel() ""
d14a1e28 302
d5573410 303 wxPyPanel(wxWindow* parent, const wxWindowID id=-1,
d14a1e28
RD
304 const wxPoint& pos = wxDefaultPosition,
305 const wxSize& size = wxDefaultSize,
306 long style = 0,
307 const wxString& name = wxPyPanelNameStr);
308
1b8c7ba6 309 %RenameCtor(PrePyPanel, wxPyPanel());
d43da706
RD
310
311 void _setCallbackInfo(PyObject* self, PyObject* _class);
312
1a10485f 313 void SetBestSize(const wxSize& size);
0ef14ca5
RD
314 bool DoEraseBackground(wxDC* dc);
315
d43da706
RD
316 void base_DoMoveWindow(int x, int y, int width, int height);
317 void base_DoSetSize(int x, int y, int width, int height,
318 int sizeFlags = wxSIZE_AUTO);
319 void base_DoSetClientSize(int width, int height);
320 void base_DoSetVirtualSize( int x, int y );
321
322 DocDeclA(
323 void, base_DoGetSize( int *OUTPUT, int *OUTPUT ) const,
324 "base_DoGetSize() -> (width, height)");
325 DocDeclA(
326 void, base_DoGetClientSize( int *OUTPUT, int *OUTPUT ) const,
327 "base_DoGetClientSize() -> (width, height)");
328 DocDeclA(
329 void, base_DoGetPosition( int *OUTPUT, int *OUTPUT ) const,
330 "base_DoGetPosition() -> (x,y)");
331
332 wxSize base_DoGetVirtualSize() const;
333 wxSize base_DoGetBestSize() const;
334
335 void base_InitDialog();
336 bool base_TransferDataToWindow();
337 bool base_TransferDataFromWindow();
338 bool base_Validate();
339
340 bool base_AcceptsFocus() const;
341 bool base_AcceptsFocusFromKeyboard() const;
342 wxSize base_GetMaxSize() const;
343
344 void base_AddChild(wxWindow* child);
345 void base_RemoveChild(wxWindow* child);
346
1a10485f 347 bool base_ShouldInheritColours() const ;
1a10485f 348 wxVisualAttributes base_GetDefaultAttributes();
d43da706
RD
349};
350
351//---------------------------------------------------------------------------
352// and for wxScrolledWindow
353
354%{ // C++ version of Python aware wxScrolledWindow
355class wxPyScrolledWindow : public wxScrolledWindow
356{
357 DECLARE_DYNAMIC_CLASS(wxPyScrolledWindow)
358public:
359 wxPyScrolledWindow() : wxScrolledWindow() {}
360 wxPyScrolledWindow(wxWindow* parent, const wxWindowID id,
361 const wxPoint& pos = wxDefaultPosition,
362 const wxSize& size = wxDefaultSize,
363 long style = 0,
364 const wxString& name = wxPyPanelNameStr)
365 : wxScrolledWindow(parent, id, pos, size, style, name) {}
366
1a10485f 367 void SetBestSize(const wxSize& size) { wxScrolledWindow::SetBestSize(size); }
0ef14ca5
RD
368 bool DoEraseBackground(wxDC* dc) {
369#ifdef __WXMSW__
370 return wxWindow::DoEraseBackground(dc->GetHDC());
371#else
372 dc->SetBackground(wxBrush(GetBackgroundColour()));
373 dc->Clear();
374 return true;
375#endif
376 }
d43da706
RD
377
378 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
379 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
380 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
381 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
382
383 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
384 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
385 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
386
387 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
388 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
389
390 DEC_PYCALLBACK__(InitDialog);
391 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
392 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
393 DEC_PYCALLBACK_BOOL_(Validate);
394
395 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
396 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
397 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
398
399 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
400 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
401
1a10485f 402 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
1a10485f 403 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
d43da706 404
b035e80b
RD
405 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
406
d43da706
RD
407 PYPRIVATE;
408};
409
410IMPLEMENT_DYNAMIC_CLASS(wxPyScrolledWindow, wxScrolledWindow);
411
412IMP_PYCALLBACK_VOID_INT4(wxPyScrolledWindow, wxScrolledWindow, DoMoveWindow);
413IMP_PYCALLBACK_VOID_INT5(wxPyScrolledWindow, wxScrolledWindow, DoSetSize);
414IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetClientSize);
415IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetVirtualSize);
416
417IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetSize);
418IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetClientSize);
419IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetPosition);
420
421IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetVirtualSize);
422IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetBestSize);
423
424IMP_PYCALLBACK__(wxPyScrolledWindow, wxScrolledWindow, InitDialog);
425IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataFromWindow);
426IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataToWindow);
427IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, Validate);
428
429IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocus);
430IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocusFromKeyboard);
431IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, GetMaxSize);
432
433IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, AddChild);
434IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, RemoveChild);
435
1a10485f 436IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours);
1a10485f
RD
437IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttributes);
438
b035e80b 439IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, HasTransparentBackground);
d43da706
RD
440%}
441
442// And now the one for SWIG to see
ab1f7d2a 443MustHaveApp(wxPyScrolledWindow);
d43da706
RD
444class wxPyScrolledWindow : public wxScrolledWindow
445{
446public:
447 %pythonAppend wxPyScrolledWindow "self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)"
448 %pythonAppend wxPyScrolledWindow() ""
449
d5573410 450 wxPyScrolledWindow(wxWindow* parent, const wxWindowID id=-1,
d43da706
RD
451 const wxPoint& pos = wxDefaultPosition,
452 const wxSize& size = wxDefaultSize,
453 long style = 0,
454 const wxString& name = wxPyPanelNameStr);
455
1b8c7ba6 456 %RenameCtor(PrePyScrolledWindow, wxPyScrolledWindow());
d43da706 457
d14a1e28 458 void _setCallbackInfo(PyObject* self, PyObject* _class);
d14a1e28 459
1a10485f 460 void SetBestSize(const wxSize& size);
0ef14ca5
RD
461 bool DoEraseBackground(wxDC* dc);
462
d14a1e28
RD
463 void base_DoMoveWindow(int x, int y, int width, int height);
464 void base_DoSetSize(int x, int y, int width, int height,
465 int sizeFlags = wxSIZE_AUTO);
466 void base_DoSetClientSize(int width, int height);
467 void base_DoSetVirtualSize( int x, int y );
468
322913ce
RD
469 DocDeclA(
470 void, base_DoGetSize( int *OUTPUT, int *OUTPUT ) const,
471 "base_DoGetSize() -> (width, height)");
472 DocDeclA(
473 void, base_DoGetClientSize( int *OUTPUT, int *OUTPUT ) const,
474 "base_DoGetClientSize() -> (width, height)");
475 DocDeclA(
476 void, base_DoGetPosition( int *OUTPUT, int *OUTPUT ) const,
477 "base_DoGetPosition() -> (x,y)");
d14a1e28
RD
478
479 wxSize base_DoGetVirtualSize() const;
480 wxSize base_DoGetBestSize() const;
481
482 void base_InitDialog();
483 bool base_TransferDataToWindow();
484 bool base_TransferDataFromWindow();
485 bool base_Validate();
486
487 bool base_AcceptsFocus() const;
488 bool base_AcceptsFocusFromKeyboard() const;
489 wxSize base_GetMaxSize() const;
490
491 void base_AddChild(wxWindow* child);
492 void base_RemoveChild(wxWindow* child);
d43da706 493
1a10485f 494 bool base_ShouldInheritColours() const;
1a10485f 495 wxVisualAttributes base_GetDefaultAttributes();
d14a1e28
RD
496};
497
498
499//---------------------------------------------------------------------------
500//---------------------------------------------------------------------------