]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/windows.py
Now compiles with /GX- on MSW.
[wxWidgets.git] / utils / wxPython / src / gtk / windows.py
1 # This file was created automatically by SWIG.
2 import windowsc
3
4 from misc import *
5
6 from gdi import *
7 import wx
8
9 def wxDLG_PNT(win, point):
10 return win.ConvertDialogPointToPixels(point)
11
12 def wxDLG_SZE(win, size):
13 return win.ConvertDialogPointToPixels(size)
14
15 class wxEvtHandlerPtr :
16 def __init__(self,this):
17 self.this = this
18 self.thisown = 0
19 def Connect(self,arg0,arg1,arg2,arg3):
20 val = windowsc.wxEvtHandler_Connect(self.this,arg0,arg1,arg2,arg3)
21 return val
22 def __repr__(self):
23 return "<C wxEvtHandler instance>"
24 class wxEvtHandler(wxEvtHandlerPtr):
25 def __init__(self,this):
26 self.this = this
27
28
29
30
31 class wxWindowPtr(wxEvtHandlerPtr):
32 def __init__(self,this):
33 self.this = this
34 self.thisown = 0
35 def CaptureMouse(self):
36 val = windowsc.wxWindow_CaptureMouse(self.this)
37 return val
38 def Center(self,*args):
39 val = apply(windowsc.wxWindow_Center,(self.this,)+args)
40 return val
41 def Centre(self,*args):
42 val = apply(windowsc.wxWindow_Centre,(self.this,)+args)
43 return val
44 def ClientToScreen(self,arg0,arg1):
45 val = windowsc.wxWindow_ClientToScreen(self.this,arg0,arg1)
46 return val
47 def Close(self,*args):
48 val = apply(windowsc.wxWindow_Close,(self.this,)+args)
49 return val
50 def Destroy(self):
51 val = windowsc.wxWindow_Destroy(self.this)
52 return val
53 def DestroyChildren(self):
54 val = windowsc.wxWindow_DestroyChildren(self.this)
55 return val
56 def Enable(self,arg0):
57 val = windowsc.wxWindow_Enable(self.this,arg0)
58 return val
59 def FindWindowByID(self,arg0):
60 val = windowsc.wxWindow_FindWindowByID(self.this,arg0)
61 val = wxWindowPtr(val)
62 return val
63 def FindWindowByName(self,arg0):
64 val = windowsc.wxWindow_FindWindowByName(self.this,arg0)
65 val = wxWindowPtr(val)
66 return val
67 def Fit(self):
68 val = windowsc.wxWindow_Fit(self.this)
69 return val
70 def GetBackgroundColour(self):
71 val = windowsc.wxWindow_GetBackgroundColour(self.this)
72 val = wxColourPtr(val)
73 val.thisown = 1
74 return val
75 def GetCharHeight(self):
76 val = windowsc.wxWindow_GetCharHeight(self.this)
77 return val
78 def GetCharWidth(self):
79 val = windowsc.wxWindow_GetCharWidth(self.this)
80 return val
81 def GetClientSizeTuple(self):
82 val = windowsc.wxWindow_GetClientSizeTuple(self.this)
83 return val
84 def GetClientSize(self):
85 val = windowsc.wxWindow_GetClientSize(self.this)
86 val = wxSizePtr(val)
87 val.thisown = 1
88 return val
89 def GetConstraints(self):
90 val = windowsc.wxWindow_GetConstraints(self.this)
91 val = wxLayoutConstraintsPtr(val)
92 return val
93 def GetFont(self):
94 val = windowsc.wxWindow_GetFont(self.this)
95 val = wxFontPtr(val)
96 return val
97 def GetForegroundColour(self):
98 val = windowsc.wxWindow_GetForegroundColour(self.this)
99 val = wxColourPtr(val)
100 val.thisown = 1
101 return val
102 def GetGrandParent(self):
103 val = windowsc.wxWindow_GetGrandParent(self.this)
104 val = wxWindowPtr(val)
105 return val
106 def GetId(self):
107 val = windowsc.wxWindow_GetId(self.this)
108 return val
109 def GetLabel(self):
110 val = windowsc.wxWindow_GetLabel(self.this)
111 return val
112 def GetName(self):
113 val = windowsc.wxWindow_GetName(self.this)
114 return val
115 def GetParent(self):
116 val = windowsc.wxWindow_GetParent(self.this)
117 val = wxWindowPtr(val)
118 return val
119 def GetPositionTuple(self):
120 val = windowsc.wxWindow_GetPositionTuple(self.this)
121 return val
122 def GetPosition(self):
123 val = windowsc.wxWindow_GetPosition(self.this)
124 val = wxPointPtr(val)
125 val.thisown = 1
126 return val
127 def GetRect(self):
128 val = windowsc.wxWindow_GetRect(self.this)
129 val = wxRectPtr(val)
130 val.thisown = 1
131 return val
132 def GetReturnCode(self):
133 val = windowsc.wxWindow_GetReturnCode(self.this)
134 return val
135 def GetScrollThumb(self,arg0):
136 val = windowsc.wxWindow_GetScrollThumb(self.this,arg0)
137 return val
138 def GetScrollPos(self,arg0):
139 val = windowsc.wxWindow_GetScrollPos(self.this,arg0)
140 return val
141 def GetScrollRange(self,arg0):
142 val = windowsc.wxWindow_GetScrollRange(self.this,arg0)
143 return val
144 def GetSizeTuple(self):
145 val = windowsc.wxWindow_GetSizeTuple(self.this)
146 return val
147 def GetSize(self):
148 val = windowsc.wxWindow_GetSize(self.this)
149 val = wxSizePtr(val)
150 val.thisown = 1
151 return val
152 def GetTextExtent(self,arg0):
153 val = windowsc.wxWindow_GetTextExtent(self.this,arg0)
154 return val
155 def GetTitle(self):
156 val = windowsc.wxWindow_GetTitle(self.this)
157 return val
158 def GetWindowStyleFlag(self):
159 val = windowsc.wxWindow_GetWindowStyleFlag(self.this)
160 return val
161 def InitDialog(self):
162 val = windowsc.wxWindow_InitDialog(self.this)
163 return val
164 def IsEnabled(self):
165 val = windowsc.wxWindow_IsEnabled(self.this)
166 return val
167 def IsRetained(self):
168 val = windowsc.wxWindow_IsRetained(self.this)
169 return val
170 def IsShown(self):
171 val = windowsc.wxWindow_IsShown(self.this)
172 return val
173 def Layout(self):
174 val = windowsc.wxWindow_Layout(self.this)
175 return val
176 def LoadFromResource(self,arg0,arg1,*args):
177 val = apply(windowsc.wxWindow_LoadFromResource,(self.this,arg0.this,arg1,)+args)
178 return val
179 def Lower(self):
180 val = windowsc.wxWindow_Lower(self.this)
181 return val
182 def MakeModal(self,arg0):
183 val = windowsc.wxWindow_MakeModal(self.this,arg0)
184 return val
185 def Move(self,arg0,arg1):
186 val = windowsc.wxWindow_Move(self.this,arg0,arg1)
187 return val
188 def PopupMenu(self,arg0,arg1,arg2):
189 val = windowsc.wxWindow_PopupMenu(self.this,arg0.this,arg1,arg2)
190 return val
191 def Raise(self):
192 val = windowsc.wxWindow_Raise(self.this)
193 return val
194 def Refresh(self,*args):
195 argl = map(None,args)
196 try: argl[1] = argl[1].this
197 except: pass
198 args = tuple(argl)
199 val = apply(windowsc.wxWindow_Refresh,(self.this,)+args)
200 return val
201 def ReleaseMouse(self):
202 val = windowsc.wxWindow_ReleaseMouse(self.this)
203 return val
204 def ScreenToClient(self,arg0,arg1):
205 val = windowsc.wxWindow_ScreenToClient(self.this,arg0,arg1)
206 return val
207 def ScrollWindow(self,arg0,arg1,*args):
208 argl = map(None,args)
209 try: argl[0] = argl[0].this
210 except: pass
211 args = tuple(argl)
212 val = apply(windowsc.wxWindow_ScrollWindow,(self.this,arg0,arg1,)+args)
213 return val
214 def SetAcceleratorTable(self,arg0):
215 val = windowsc.wxWindow_SetAcceleratorTable(self.this,arg0.this)
216 return val
217 def SetAutoLayout(self,arg0):
218 val = windowsc.wxWindow_SetAutoLayout(self.this,arg0)
219 return val
220 def SetBackgroundColour(self,arg0):
221 val = windowsc.wxWindow_SetBackgroundColour(self.this,arg0.this)
222 return val
223 def SetConstraints(self,arg0):
224 val = windowsc.wxWindow_SetConstraints(self.this,arg0.this)
225 return val
226 def SetDoubleClick(self,arg0):
227 val = windowsc.wxWindow_SetDoubleClick(self.this,arg0)
228 return val
229 def SetFocus(self):
230 val = windowsc.wxWindow_SetFocus(self.this)
231 return val
232 def SetFont(self,arg0):
233 val = windowsc.wxWindow_SetFont(self.this,arg0.this)
234 return val
235 def SetForegroundColour(self,arg0):
236 val = windowsc.wxWindow_SetForegroundColour(self.this,arg0.this)
237 return val
238 def SetId(self,arg0):
239 val = windowsc.wxWindow_SetId(self.this,arg0)
240 return val
241 def SetName(self,arg0):
242 val = windowsc.wxWindow_SetName(self.this,arg0)
243 return val
244 def SetReturnCode(self,arg0):
245 val = windowsc.wxWindow_SetReturnCode(self.this,arg0)
246 return val
247 def SetScrollbar(self,arg0,arg1,arg2,arg3,*args):
248 val = apply(windowsc.wxWindow_SetScrollbar,(self.this,arg0,arg1,arg2,arg3,)+args)
249 return val
250 def SetScrollPos(self,arg0,arg1,*args):
251 val = apply(windowsc.wxWindow_SetScrollPos,(self.this,arg0,arg1,)+args)
252 return val
253 def SetDimensions(self,arg0,arg1,arg2,arg3,*args):
254 val = apply(windowsc.wxWindow_SetDimensions,(self.this,arg0,arg1,arg2,arg3,)+args)
255 return val
256 def SetSize(self,arg0):
257 val = windowsc.wxWindow_SetSize(self.this,arg0.this)
258 return val
259 def SetPosition(self,arg0):
260 val = windowsc.wxWindow_SetPosition(self.this,arg0.this)
261 return val
262 def SetSizeHints(self,*args):
263 val = apply(windowsc.wxWindow_SetSizeHints,(self.this,)+args)
264 return val
265 def SetClientSize(self,arg0,arg1):
266 val = windowsc.wxWindow_SetClientSize(self.this,arg0,arg1)
267 return val
268 def SetCursor(self,arg0):
269 val = windowsc.wxWindow_SetCursor(self.this,arg0.this)
270 return val
271 def SetTitle(self,arg0):
272 val = windowsc.wxWindow_SetTitle(self.this,arg0)
273 return val
274 def Show(self,arg0):
275 val = windowsc.wxWindow_Show(self.this,arg0)
276 return val
277 def TransferDataFromWindow(self):
278 val = windowsc.wxWindow_TransferDataFromWindow(self.this)
279 return val
280 def TransferDataToWindow(self):
281 val = windowsc.wxWindow_TransferDataToWindow(self.this)
282 return val
283 def Validate(self):
284 val = windowsc.wxWindow_Validate(self.this)
285 return val
286 def WarpPointer(self,arg0,arg1):
287 val = windowsc.wxWindow_WarpPointer(self.this,arg0,arg1)
288 return val
289 def ConvertDialogPointToPixels(self,arg0):
290 val = windowsc.wxWindow_ConvertDialogPointToPixels(self.this,arg0.this)
291 val = wxPointPtr(val)
292 val.thisown = 1
293 return val
294 def ConvertDialogSizeToPixels(self,arg0):
295 val = windowsc.wxWindow_ConvertDialogSizeToPixels(self.this,arg0.this)
296 val = wxSizePtr(val)
297 val.thisown = 1
298 return val
299 def ConvertPixelPointToDialog(self,arg0):
300 val = windowsc.wxWindow_ConvertPixelPointToDialog(self.this,arg0.this)
301 val = wxPointPtr(val)
302 val.thisown = 1
303 return val
304 def ConvertPixelSizeToDialog(self,arg0):
305 val = windowsc.wxWindow_ConvertPixelSizeToDialog(self.this,arg0.this)
306 val = wxSizePtr(val)
307 val.thisown = 1
308 return val
309 def __repr__(self):
310 return "<C wxWindow instance>"
311 class wxWindow(wxWindowPtr):
312 def __init__(self,arg0,arg1,*args) :
313 argl = map(None,args)
314 try: argl[0] = argl[0].this
315 except: pass
316 try: argl[1] = argl[1].this
317 except: pass
318 args = tuple(argl)
319 self.this = apply(windowsc.new_wxWindow,(arg0.this,arg1,)+args)
320 self.thisown = 1
321 wx._StdWindowCallbacks(self)
322
323
324
325
326 class wxPanelPtr(wxWindowPtr):
327 def __init__(self,this):
328 self.this = this
329 self.thisown = 0
330 def InitDialog(self):
331 val = windowsc.wxPanel_InitDialog(self.this)
332 return val
333 def __repr__(self):
334 return "<C wxPanel instance>"
335 class wxPanel(wxPanelPtr):
336 def __init__(self,arg0,arg1,*args) :
337 argl = map(None,args)
338 try: argl[0] = argl[0].this
339 except: pass
340 try: argl[1] = argl[1].this
341 except: pass
342 args = tuple(argl)
343 self.this = apply(windowsc.new_wxPanel,(arg0.this,arg1,)+args)
344 self.thisown = 1
345 wx._StdWindowCallbacks(self)
346
347
348
349
350 class wxDialogPtr(wxPanelPtr):
351 def __init__(self,this):
352 self.this = this
353 self.thisown = 0
354 def Centre(self,*args):
355 val = apply(windowsc.wxDialog_Centre,(self.this,)+args)
356 return val
357 def EndModal(self,arg0):
358 val = windowsc.wxDialog_EndModal(self.this,arg0)
359 return val
360 def GetTitle(self):
361 val = windowsc.wxDialog_GetTitle(self.this)
362 return val
363 def Iconize(self,arg0):
364 val = windowsc.wxDialog_Iconize(self.this,arg0)
365 return val
366 def IsIconized(self):
367 val = windowsc.wxDialog_IsIconized(self.this)
368 return val
369 def SetModal(self,arg0):
370 val = windowsc.wxDialog_SetModal(self.this,arg0)
371 return val
372 def IsModal(self):
373 val = windowsc.wxDialog_IsModal(self.this)
374 return val
375 def SetTitle(self,arg0):
376 val = windowsc.wxDialog_SetTitle(self.this,arg0)
377 return val
378 def Show(self,arg0):
379 val = windowsc.wxDialog_Show(self.this,arg0)
380 return val
381 def ShowModal(self):
382 val = windowsc.wxDialog_ShowModal(self.this)
383 return val
384 def __repr__(self):
385 return "<C wxDialog instance>"
386 class wxDialog(wxDialogPtr):
387 def __init__(self,arg0,arg1,arg2,*args) :
388 argl = map(None,args)
389 try: argl[0] = argl[0].this
390 except: pass
391 try: argl[1] = argl[1].this
392 except: pass
393 args = tuple(argl)
394 self.this = apply(windowsc.new_wxDialog,(arg0.this,arg1,arg2,)+args)
395 self.thisown = 1
396 wx._StdDialogCallbacks(self)
397
398
399
400
401 class wxScrolledWindowPtr(wxWindowPtr):
402 def __init__(self,this):
403 self.this = this
404 self.thisown = 0
405 def EnableScrolling(self,arg0,arg1):
406 val = windowsc.wxScrolledWindow_EnableScrolling(self.this,arg0,arg1)
407 return val
408 def GetScrollPixelsPerUnit(self):
409 val = windowsc.wxScrolledWindow_GetScrollPixelsPerUnit(self.this)
410 return val
411 def GetVirtualSize(self):
412 val = windowsc.wxScrolledWindow_GetVirtualSize(self.this)
413 return val
414 def IsRetained(self):
415 val = windowsc.wxScrolledWindow_IsRetained(self.this)
416 return val
417 def PrepareDC(self,arg0):
418 val = windowsc.wxScrolledWindow_PrepareDC(self.this,arg0.this)
419 return val
420 def Scroll(self,arg0,arg1):
421 val = windowsc.wxScrolledWindow_Scroll(self.this,arg0,arg1)
422 return val
423 def SetScrollbars(self,arg0,arg1,arg2,arg3,*args):
424 val = apply(windowsc.wxScrolledWindow_SetScrollbars,(self.this,arg0,arg1,arg2,arg3,)+args)
425 return val
426 def ViewStart(self):
427 val = windowsc.wxScrolledWindow_ViewStart(self.this)
428 return val
429 def __repr__(self):
430 return "<C wxScrolledWindow instance>"
431 class wxScrolledWindow(wxScrolledWindowPtr):
432 def __init__(self,arg0,*args) :
433 argl = map(None,args)
434 try: argl[1] = argl[1].this
435 except: pass
436 try: argl[2] = argl[2].this
437 except: pass
438 args = tuple(argl)
439 self.this = apply(windowsc.new_wxScrolledWindow,(arg0.this,)+args)
440 self.thisown = 1
441 wx._StdWindowCallbacks(self)
442 wx._StdOnScrollCallbacks(self)
443
444
445
446
447 class wxMenuPtr(wxEvtHandlerPtr):
448 def __init__(self,this):
449 self.this = this
450 self.thisown = 0
451 def Append(self,arg0,arg1,*args):
452 val = apply(windowsc.wxMenu_Append,(self.this,arg0,arg1,)+args)
453 return val
454 def AppendMenu(self,arg0,arg1,arg2,*args):
455 val = apply(windowsc.wxMenu_AppendMenu,(self.this,arg0,arg1,arg2.this,)+args)
456 return val
457 def AppendSeparator(self):
458 val = windowsc.wxMenu_AppendSeparator(self.this)
459 return val
460 def Break(self):
461 val = windowsc.wxMenu_Break(self.this)
462 return val
463 def Check(self,arg0,arg1):
464 val = windowsc.wxMenu_Check(self.this,arg0,arg1)
465 return val
466 def Enable(self,arg0,arg1):
467 val = windowsc.wxMenu_Enable(self.this,arg0,arg1)
468 return val
469 def FindItem(self,arg0):
470 val = windowsc.wxMenu_FindItem(self.this,arg0)
471 return val
472 def GetTitle(self):
473 val = windowsc.wxMenu_GetTitle(self.this)
474 return val
475 def SetTitle(self,arg0):
476 val = windowsc.wxMenu_SetTitle(self.this,arg0)
477 return val
478 def FindItemForId(self,arg0):
479 val = windowsc.wxMenu_FindItemForId(self.this,arg0)
480 val = wxMenuItemPtr(val)
481 return val
482 def GetHelpString(self,arg0):
483 val = windowsc.wxMenu_GetHelpString(self.this,arg0)
484 return val
485 def GetLabel(self,arg0):
486 val = windowsc.wxMenu_GetLabel(self.this,arg0)
487 return val
488 def SetHelpString(self,arg0,arg1):
489 val = windowsc.wxMenu_SetHelpString(self.this,arg0,arg1)
490 return val
491 def IsChecked(self,arg0):
492 val = windowsc.wxMenu_IsChecked(self.this,arg0)
493 return val
494 def IsEnabled(self,arg0):
495 val = windowsc.wxMenu_IsEnabled(self.this,arg0)
496 return val
497 def SetLabel(self,arg0,arg1):
498 val = windowsc.wxMenu_SetLabel(self.this,arg0,arg1)
499 return val
500 def __repr__(self):
501 return "<C wxMenu instance>"
502 class wxMenu(wxMenuPtr):
503 def __init__(self,*args) :
504 self.this = apply(windowsc.new_wxMenu,()+args)
505 self.thisown = 1
506
507
508
509
510 class wxPyMenuPtr(wxMenuPtr):
511 def __init__(self,this):
512 self.this = this
513 self.thisown = 0
514 def __del__(self):
515 if self.thisown == 1 :
516 windowsc.delete_wxPyMenu(self.this)
517 def __repr__(self):
518 return "<C wxPyMenu instance>"
519 class wxPyMenu(wxPyMenuPtr):
520 def __init__(self,*args) :
521 self.this = apply(windowsc.new_wxPyMenu,()+args)
522 self.thisown = 1
523
524
525
526
527 class wxMenuBarPtr(wxEvtHandlerPtr):
528 def __init__(self,this):
529 self.this = this
530 self.thisown = 0
531 def Append(self,arg0,arg1):
532 val = windowsc.wxMenuBar_Append(self.this,arg0.this,arg1)
533 return val
534 def Check(self,arg0,arg1):
535 val = windowsc.wxMenuBar_Check(self.this,arg0,arg1)
536 return val
537 def Checked(self,arg0):
538 val = windowsc.wxMenuBar_Checked(self.this,arg0)
539 return val
540 def Enable(self,arg0,arg1):
541 val = windowsc.wxMenuBar_Enable(self.this,arg0,arg1)
542 return val
543 def Enabled(self,arg0):
544 val = windowsc.wxMenuBar_Enabled(self.this,arg0)
545 return val
546 def FindMenuItem(self,arg0,arg1):
547 val = windowsc.wxMenuBar_FindMenuItem(self.this,arg0,arg1)
548 return val
549 def FindItemForId(self,arg0):
550 val = windowsc.wxMenuBar_FindItemForId(self.this,arg0)
551 val = wxMenuItemPtr(val)
552 return val
553 def GetMenuCount(self):
554 val = windowsc.wxMenuBar_GetMenuCount(self.this)
555 return val
556 def GetMenu(self,arg0):
557 val = windowsc.wxMenuBar_GetMenu(self.this,arg0)
558 val = wxMenuPtr(val)
559 return val
560 def __repr__(self):
561 return "<C wxMenuBar instance>"
562 class wxMenuBar(wxMenuBarPtr):
563 def __init__(self) :
564 self.this = windowsc.new_wxMenuBar()
565 self.thisown = 1
566
567
568
569
570 class wxMenuItemPtr :
571 def __init__(self,this):
572 self.this = this
573 self.thisown = 0
574 def IsSeparator(self):
575 val = windowsc.wxMenuItem_IsSeparator(self.this)
576 return val
577 def IsEnabled(self):
578 val = windowsc.wxMenuItem_IsEnabled(self.this)
579 return val
580 def IsChecked(self):
581 val = windowsc.wxMenuItem_IsChecked(self.this)
582 return val
583 def IsCheckable(self):
584 val = windowsc.wxMenuItem_IsCheckable(self.this)
585 return val
586 def GetId(self):
587 val = windowsc.wxMenuItem_GetId(self.this)
588 return val
589 def GetSubMenu(self):
590 val = windowsc.wxMenuItem_GetSubMenu(self.this)
591 val = wxMenuPtr(val)
592 return val
593 def SetName(self,arg0):
594 val = windowsc.wxMenuItem_SetName(self.this,arg0)
595 return val
596 def GetName(self):
597 val = windowsc.wxMenuItem_GetName(self.this)
598 return val
599 def GetHelp(self):
600 val = windowsc.wxMenuItem_GetHelp(self.this)
601 return val
602 def SetHelp(self,arg0):
603 val = windowsc.wxMenuItem_SetHelp(self.this,arg0)
604 return val
605 def Enable(self,*args):
606 val = apply(windowsc.wxMenuItem_Enable,(self.this,)+args)
607 return val
608 def Check(self,*args):
609 val = apply(windowsc.wxMenuItem_Check,(self.this,)+args)
610 return val
611 def __repr__(self):
612 return "<C wxMenuItem instance>"
613 class wxMenuItem(wxMenuItemPtr):
614 def __init__(self,this):
615 self.this = this
616
617
618
619
620
621
622 #-------------- FUNCTION WRAPPERS ------------------
623
624
625
626 #-------------- VARIABLE WRAPPERS ------------------
627