]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/windows.py
fix text scrolling in GTK2 (patch 703988)
[wxWidgets.git] / wxPython / src / msw / windows.py
CommitLineData
8ab979d7
RD
1# This file was created automatically by SWIG.
2import windowsc
3
4from misc import *
5
6from gdi import *
b1462dfa 7
68bc8549
RD
8from fonts import *
9
b1462dfa 10from clip_dnd import *
b8b8dda7
RD
11import wx
12
bb0054cd
RD
13def wxDLG_PNT(win, point_or_x, y=None):
14 if y is None:
15 return win.ConvertDialogPointToPixels(point_or_x)
16 else:
17 return win.ConvertDialogPointToPixels(wxPoint(point_or_x, y))
b8b8dda7 18
bb0054cd
RD
19def wxDLG_SZE(win, size_width, height=None):
20 if height is None:
21 return win.ConvertDialogSizeToPixels(size_width)
22 else:
23 return win.ConvertDialogSizeToPixels(wxSize(size_width, height))
b8b8dda7 24
9416aa89 25class wxEvtHandlerPtr(wxObjectPtr):
8ab979d7
RD
26 def __init__(self,this):
27 self.this = this
28 self.thisown = 0
1d99702e 29 def ProcessEvent(self, *_args, **_kwargs):
5a2a9da2 30 val = windowsc.wxEvtHandler_ProcessEvent(self, *_args, **_kwargs)
cf694132 31 return val
f6bcfd97 32 def AddPendingEvent(self, *_args, **_kwargs):
5a2a9da2 33 val = windowsc.wxEvtHandler_AddPendingEvent(self, *_args, **_kwargs)
f6bcfd97 34 return val
2f90df85 35 def GetEvtHandlerEnabled(self, *_args, **_kwargs):
5a2a9da2 36 val = windowsc.wxEvtHandler_GetEvtHandlerEnabled(self, *_args, **_kwargs)
2f90df85
RD
37 return val
38 def SetEvtHandlerEnabled(self, *_args, **_kwargs):
5a2a9da2 39 val = windowsc.wxEvtHandler_SetEvtHandlerEnabled(self, *_args, **_kwargs)
2f90df85
RD
40 return val
41 def GetNextHandler(self, *_args, **_kwargs):
5a2a9da2 42 val = windowsc.wxEvtHandler_GetNextHandler(self, *_args, **_kwargs)
2f90df85
RD
43 return val
44 def GetPreviousHandler(self, *_args, **_kwargs):
5a2a9da2 45 val = windowsc.wxEvtHandler_GetPreviousHandler(self, *_args, **_kwargs)
2f90df85
RD
46 return val
47 def SetNextHandler(self, *_args, **_kwargs):
5a2a9da2 48 val = windowsc.wxEvtHandler_SetNextHandler(self, *_args, **_kwargs)
2f90df85
RD
49 return val
50 def SetPreviousHandler(self, *_args, **_kwargs):
5a2a9da2 51 val = windowsc.wxEvtHandler_SetPreviousHandler(self, *_args, **_kwargs)
2f90df85 52 return val
1d99702e 53 def Connect(self, *_args, **_kwargs):
5a2a9da2 54 val = windowsc.wxEvtHandler_Connect(self, *_args, **_kwargs)
8ab979d7 55 return val
6999b0d8 56 def Disconnect(self, *_args, **_kwargs):
5a2a9da2 57 val = windowsc.wxEvtHandler_Disconnect(self, *_args, **_kwargs)
6999b0d8 58 return val
0122b7e3 59 def _setOORInfo(self, *_args, **_kwargs):
5a2a9da2 60 val = windowsc.wxEvtHandler__setOORInfo(self, *_args, **_kwargs)
0122b7e3 61 return val
8ab979d7 62 def __repr__(self):
5a2a9da2 63 return "<%s.%s instance; proxy of C++ wxEvtHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
8ab979d7 64class wxEvtHandler(wxEvtHandlerPtr):
c368d904 65 def __init__(self,*_args,**_kwargs):
5a2a9da2 66 self.this = windowsc.new_wxEvtHandler(*_args,**_kwargs)
c368d904 67 self.thisown = 1
8ab979d7
RD
68
69
70
71
2f90df85
RD
72class wxValidatorPtr(wxEvtHandlerPtr):
73 def __init__(self,this):
74 self.this = this
75 self.thisown = 0
76 def Clone(self, *_args, **_kwargs):
5a2a9da2 77 val = windowsc.wxValidator_Clone(self, *_args, **_kwargs)
2f90df85
RD
78 return val
79 def GetWindow(self, *_args, **_kwargs):
5a2a9da2 80 val = windowsc.wxValidator_GetWindow(self, *_args, **_kwargs)
2f90df85
RD
81 return val
82 def SetWindow(self, *_args, **_kwargs):
5a2a9da2 83 val = windowsc.wxValidator_SetWindow(self, *_args, **_kwargs)
2f90df85
RD
84 return val
85 def __repr__(self):
5a2a9da2 86 return "<%s.%s instance; proxy of C++ wxValidator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
2f90df85
RD
87class wxValidator(wxValidatorPtr):
88 def __init__(self,*_args,**_kwargs):
5a2a9da2 89 self.this = windowsc.new_wxValidator(*_args,**_kwargs)
2f90df85 90 self.thisown = 1
0122b7e3 91 self._setOORInfo(self)
2f90df85
RD
92
93
94
95
96class wxPyValidatorPtr(wxValidatorPtr):
97 def __init__(self,this):
98 self.this = this
99 self.thisown = 0
0122b7e3 100 def _setCallbackInfo(self, *_args, **_kwargs):
5a2a9da2 101 val = windowsc.wxPyValidator__setCallbackInfo(self, *_args, **_kwargs)
2f90df85
RD
102 return val
103 def __repr__(self):
5a2a9da2 104 return "<%s.%s instance; proxy of C++ wxPyValidator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
2f90df85
RD
105class wxPyValidator(wxPyValidatorPtr):
106 def __init__(self,*_args,**_kwargs):
5a2a9da2 107 self.this = windowsc.new_wxPyValidator(*_args,**_kwargs)
2f90df85 108 self.thisown = 1
0122b7e3
RD
109 self._setCallbackInfo(self, wxPyValidator, 1)
110 self._setOORInfo(self)
2f90df85
RD
111
112
113
114
8ab979d7
RD
115class wxWindowPtr(wxEvtHandlerPtr):
116 def __init__(self,this):
117 self.this = this
118 self.thisown = 0
09f3d4e6 119 def Create(self, *_args, **_kwargs):
5a2a9da2 120 val = windowsc.wxWindow_Create(self, *_args, **_kwargs)
09f3d4e6 121 return val
1d99702e 122 def Center(self, *_args, **_kwargs):
5a2a9da2 123 val = windowsc.wxWindow_Center(self, *_args, **_kwargs)
8ab979d7 124 return val
1d99702e 125 def Centre(self, *_args, **_kwargs):
5a2a9da2 126 val = windowsc.wxWindow_Centre(self, *_args, **_kwargs)
8ab979d7 127 return val
1d99702e 128 def CentreOnParent(self, *_args, **_kwargs):
5a2a9da2 129 val = windowsc.wxWindow_CentreOnParent(self, *_args, **_kwargs)
bb0054cd 130 return val
1d99702e 131 def CenterOnParent(self, *_args, **_kwargs):
5a2a9da2 132 val = windowsc.wxWindow_CenterOnParent(self, *_args, **_kwargs)
bb0054cd 133 return val
3ca6a5f0 134 def CentreOnScreen(self, *_args, **_kwargs):
5a2a9da2 135 val = windowsc.wxWindow_CentreOnScreen(self, *_args, **_kwargs)
3ca6a5f0
BP
136 return val
137 def CenterOnScreen(self, *_args, **_kwargs):
5a2a9da2 138 val = windowsc.wxWindow_CenterOnScreen(self, *_args, **_kwargs)
3ca6a5f0 139 return val
e06b17c0
RD
140 def ClearBackground(self, *_args, **_kwargs):
141 val = windowsc.wxWindow_ClearBackground(self, *_args, **_kwargs)
d56cebe7 142 return val
1d99702e 143 def ClientToScreenXY(self, *_args, **_kwargs):
5a2a9da2 144 val = windowsc.wxWindow_ClientToScreenXY(self, *_args, **_kwargs)
af309447 145 return val
1d99702e 146 def ClientToScreen(self, *_args, **_kwargs):
5a2a9da2 147 val = windowsc.wxWindow_ClientToScreen(self, *_args, **_kwargs)
1d99702e 148 if val: val = wxPointPtr(val) ; val.thisown = 1
8ab979d7 149 return val
1d99702e 150 def Close(self, *_args, **_kwargs):
5a2a9da2 151 val = windowsc.wxWindow_Close(self, *_args, **_kwargs)
8ab979d7 152 return val
1d99702e 153 def Destroy(self, *_args, **_kwargs):
5a2a9da2 154 val = windowsc.wxWindow_Destroy(self, *_args, **_kwargs)
8ab979d7 155 return val
1d99702e 156 def DestroyChildren(self, *_args, **_kwargs):
5a2a9da2 157 val = windowsc.wxWindow_DestroyChildren(self, *_args, **_kwargs)
8ab979d7 158 return val
ac346f50 159 def IsBeingDeleted(self, *_args, **_kwargs):
5a2a9da2 160 val = windowsc.wxWindow_IsBeingDeleted(self, *_args, **_kwargs)
ac346f50 161 return val
1d99702e 162 def DragAcceptFiles(self, *_args, **_kwargs):
5a2a9da2 163 val = windowsc.wxWindow_DragAcceptFiles(self, *_args, **_kwargs)
8ab979d7 164 return val
1d99702e 165 def Enable(self, *_args, **_kwargs):
5a2a9da2 166 val = windowsc.wxWindow_Enable(self, *_args, **_kwargs)
8ab979d7 167 return val
7e50db3f 168 def Disable(self, *_args, **_kwargs):
5a2a9da2 169 val = windowsc.wxWindow_Disable(self, *_args, **_kwargs)
7e50db3f 170 return val
1d99702e 171 def FindWindowById(self, *_args, **_kwargs):
5a2a9da2 172 val = windowsc.wxWindow_FindWindowById(self, *_args, **_kwargs)
8ab979d7 173 return val
1d99702e 174 def FindWindowByName(self, *_args, **_kwargs):
5a2a9da2 175 val = windowsc.wxWindow_FindWindowByName(self, *_args, **_kwargs)
8ab979d7 176 return val
1d99702e 177 def Fit(self, *_args, **_kwargs):
5a2a9da2 178 val = windowsc.wxWindow_Fit(self, *_args, **_kwargs)
8ab979d7 179 return val
7e50db3f 180 def FitInside(self, *_args, **_kwargs):
5a2a9da2 181 val = windowsc.wxWindow_FitInside(self, *_args, **_kwargs)
7e50db3f 182 return val
1d99702e 183 def GetBackgroundColour(self, *_args, **_kwargs):
5a2a9da2 184 val = windowsc.wxWindow_GetBackgroundColour(self, *_args, **_kwargs)
1d99702e 185 if val: val = wxColourPtr(val) ; val.thisown = 1
8ab979d7 186 return val
d426c97e 187 def GetChildren(self, *_args, **_kwargs):
5a2a9da2 188 val = windowsc.wxWindow_GetChildren(self, *_args, **_kwargs)
d426c97e 189 return val
1d99702e 190 def GetCharHeight(self, *_args, **_kwargs):
5a2a9da2 191 val = windowsc.wxWindow_GetCharHeight(self, *_args, **_kwargs)
8ab979d7 192 return val
1d99702e 193 def GetCharWidth(self, *_args, **_kwargs):
5a2a9da2 194 val = windowsc.wxWindow_GetCharWidth(self, *_args, **_kwargs)
8ab979d7 195 return val
1d99702e 196 def GetClientSizeTuple(self, *_args, **_kwargs):
5a2a9da2 197 val = windowsc.wxWindow_GetClientSizeTuple(self, *_args, **_kwargs)
b8b8dda7 198 return val
1d99702e 199 def GetClientSize(self, *_args, **_kwargs):
5a2a9da2 200 val = windowsc.wxWindow_GetClientSize(self, *_args, **_kwargs)
1d99702e 201 if val: val = wxSizePtr(val) ; val.thisown = 1
8ab979d7 202 return val
23bed520 203 def GetClientAreaOrigin(self, *_args, **_kwargs):
5a2a9da2 204 val = windowsc.wxWindow_GetClientAreaOrigin(self, *_args, **_kwargs)
23bed520
RD
205 if val: val = wxPointPtr(val) ; val.thisown = 1
206 return val
207 def GetClientRect(self, *_args, **_kwargs):
5a2a9da2 208 val = windowsc.wxWindow_GetClientRect(self, *_args, **_kwargs)
23bed520
RD
209 if val: val = wxRectPtr(val) ; val.thisown = 1
210 return val
1d99702e 211 def GetConstraints(self, *_args, **_kwargs):
5a2a9da2 212 val = windowsc.wxWindow_GetConstraints(self, *_args, **_kwargs)
1d99702e 213 if val: val = wxLayoutConstraintsPtr(val)
8ab979d7 214 return val
1afc06c2 215 def GetEventHandler(self, *_args, **_kwargs):
5a2a9da2 216 val = windowsc.wxWindow_GetEventHandler(self, *_args, **_kwargs)
1afc06c2 217 return val
1d99702e 218 def GetFont(self, *_args, **_kwargs):
5a2a9da2 219 val = windowsc.wxWindow_GetFont(self, *_args, **_kwargs)
c5943253 220 if val: val = wxFontPtr(val) ; val.thisown = 1
8ab979d7 221 return val
1d99702e 222 def GetForegroundColour(self, *_args, **_kwargs):
5a2a9da2 223 val = windowsc.wxWindow_GetForegroundColour(self, *_args, **_kwargs)
1d99702e 224 if val: val = wxColourPtr(val) ; val.thisown = 1
8ab979d7 225 return val
1d99702e 226 def GetGrandParent(self, *_args, **_kwargs):
5a2a9da2 227 val = windowsc.wxWindow_GetGrandParent(self, *_args, **_kwargs)
8ab979d7 228 return val
2abc0a0f 229 def GetHandle(self, *_args, **_kwargs):
5a2a9da2 230 val = windowsc.wxWindow_GetHandle(self, *_args, **_kwargs)
2abc0a0f 231 return val
1d99702e 232 def GetId(self, *_args, **_kwargs):
5a2a9da2 233 val = windowsc.wxWindow_GetId(self, *_args, **_kwargs)
8ab979d7 234 return val
1d99702e 235 def GetLabel(self, *_args, **_kwargs):
5a2a9da2 236 val = windowsc.wxWindow_GetLabel(self, *_args, **_kwargs)
8ab979d7 237 return val
1d99702e 238 def SetLabel(self, *_args, **_kwargs):
5a2a9da2 239 val = windowsc.wxWindow_SetLabel(self, *_args, **_kwargs)
bb0054cd 240 return val
1d99702e 241 def GetName(self, *_args, **_kwargs):
5a2a9da2 242 val = windowsc.wxWindow_GetName(self, *_args, **_kwargs)
8ab979d7 243 return val
1d99702e 244 def GetParent(self, *_args, **_kwargs):
5a2a9da2 245 val = windowsc.wxWindow_GetParent(self, *_args, **_kwargs)
8ab979d7 246 return val
1d99702e 247 def GetPositionTuple(self, *_args, **_kwargs):
5a2a9da2 248 val = windowsc.wxWindow_GetPositionTuple(self, *_args, **_kwargs)
b8b8dda7 249 return val
1d99702e 250 def GetPosition(self, *_args, **_kwargs):
5a2a9da2 251 val = windowsc.wxWindow_GetPosition(self, *_args, **_kwargs)
1d99702e 252 if val: val = wxPointPtr(val) ; val.thisown = 1
b8b8dda7 253 return val
1d99702e 254 def GetRect(self, *_args, **_kwargs):
5a2a9da2 255 val = windowsc.wxWindow_GetRect(self, *_args, **_kwargs)
1d99702e 256 if val: val = wxRectPtr(val) ; val.thisown = 1
b8b8dda7 257 return val
1d99702e 258 def GetScrollThumb(self, *_args, **_kwargs):
5a2a9da2 259 val = windowsc.wxWindow_GetScrollThumb(self, *_args, **_kwargs)
8ab979d7 260 return val
1d99702e 261 def GetScrollPos(self, *_args, **_kwargs):
5a2a9da2 262 val = windowsc.wxWindow_GetScrollPos(self, *_args, **_kwargs)
8ab979d7 263 return val
1d99702e 264 def GetScrollRange(self, *_args, **_kwargs):
5a2a9da2 265 val = windowsc.wxWindow_GetScrollRange(self, *_args, **_kwargs)
8ab979d7 266 return val
1d99702e 267 def GetSizeTuple(self, *_args, **_kwargs):
5a2a9da2 268 val = windowsc.wxWindow_GetSizeTuple(self, *_args, **_kwargs)
b8b8dda7 269 return val
1d99702e 270 def GetSize(self, *_args, **_kwargs):
5a2a9da2 271 val = windowsc.wxWindow_GetSize(self, *_args, **_kwargs)
1d99702e 272 if val: val = wxSizePtr(val) ; val.thisown = 1
8ab979d7 273 return val
1d99702e 274 def GetTextExtent(self, *_args, **_kwargs):
5a2a9da2 275 val = windowsc.wxWindow_GetTextExtent(self, *_args, **_kwargs)
8ab979d7 276 return val
1d99702e 277 def GetFullTextExtent(self, *_args, **_kwargs):
5a2a9da2 278 val = windowsc.wxWindow_GetFullTextExtent(self, *_args, **_kwargs)
af309447 279 return val
1d99702e 280 def GetTitle(self, *_args, **_kwargs):
5a2a9da2 281 val = windowsc.wxWindow_GetTitle(self, *_args, **_kwargs)
8ab979d7 282 return val
1d99702e 283 def GetUpdateRegion(self, *_args, **_kwargs):
5a2a9da2 284 val = windowsc.wxWindow_GetUpdateRegion(self, *_args, **_kwargs)
1d99702e 285 if val: val = wxRegionPtr(val) ; val.thisown = 1
8bf5d46e 286 return val
1d99702e 287 def GetWindowStyleFlag(self, *_args, **_kwargs):
5a2a9da2 288 val = windowsc.wxWindow_GetWindowStyleFlag(self, *_args, **_kwargs)
8ab979d7 289 return val
f6bcfd97 290 def SetWindowStyleFlag(self, *_args, **_kwargs):
5a2a9da2 291 val = windowsc.wxWindow_SetWindowStyleFlag(self, *_args, **_kwargs)
f6bcfd97
BP
292 return val
293 def SetWindowStyle(self, *_args, **_kwargs):
5a2a9da2 294 val = windowsc.wxWindow_SetWindowStyle(self, *_args, **_kwargs)
f6bcfd97 295 return val
23bed520 296 def HasScrollbar(self, *_args, **_kwargs):
5a2a9da2 297 val = windowsc.wxWindow_HasScrollbar(self, *_args, **_kwargs)
23bed520 298 return val
1d99702e 299 def Hide(self, *_args, **_kwargs):
5a2a9da2 300 val = windowsc.wxWindow_Hide(self, *_args, **_kwargs)
bb0054cd 301 return val
23bed520 302 def HitTest(self, *_args, **_kwargs):
5a2a9da2 303 val = windowsc.wxWindow_HitTest(self, *_args, **_kwargs)
23bed520 304 return val
1d99702e 305 def InitDialog(self, *_args, **_kwargs):
5a2a9da2 306 val = windowsc.wxWindow_InitDialog(self, *_args, **_kwargs)
8ab979d7 307 return val
1d99702e 308 def IsEnabled(self, *_args, **_kwargs):
5a2a9da2 309 val = windowsc.wxWindow_IsEnabled(self, *_args, **_kwargs)
8ab979d7 310 return val
1b55cabf 311 def IsExposed(self, *_args, **_kwargs):
5a2a9da2 312 val = windowsc.wxWindow_IsExposed(self, *_args, **_kwargs)
1b55cabf
RD
313 return val
314 def IsExposedPoint(self, *_args, **_kwargs):
5a2a9da2 315 val = windowsc.wxWindow_IsExposedPoint(self, *_args, **_kwargs)
1b55cabf
RD
316 return val
317 def IsExposedRect(self, *_args, **_kwargs):
5a2a9da2 318 val = windowsc.wxWindow_IsExposedRect(self, *_args, **_kwargs)
1b55cabf 319 return val
1d99702e 320 def IsRetained(self, *_args, **_kwargs):
5a2a9da2 321 val = windowsc.wxWindow_IsRetained(self, *_args, **_kwargs)
8ab979d7 322 return val
1d99702e 323 def IsShown(self, *_args, **_kwargs):
5a2a9da2 324 val = windowsc.wxWindow_IsShown(self, *_args, **_kwargs)
8ab979d7 325 return val
1d99702e 326 def IsTopLevel(self, *_args, **_kwargs):
5a2a9da2 327 val = windowsc.wxWindow_IsTopLevel(self, *_args, **_kwargs)
bb0054cd 328 return val
1d99702e 329 def Layout(self, *_args, **_kwargs):
5a2a9da2 330 val = windowsc.wxWindow_Layout(self, *_args, **_kwargs)
8ab979d7 331 return val
1d99702e 332 def Lower(self, *_args, **_kwargs):
5a2a9da2 333 val = windowsc.wxWindow_Lower(self, *_args, **_kwargs)
8ab979d7 334 return val
1d99702e 335 def MakeModal(self, *_args, **_kwargs):
5a2a9da2 336 val = windowsc.wxWindow_MakeModal(self, *_args, **_kwargs)
8ab979d7 337 return val
1d99702e 338 def MoveXY(self, *_args, **_kwargs):
5a2a9da2 339 val = windowsc.wxWindow_MoveXY(self, *_args, **_kwargs)
af309447 340 return val
1d99702e 341 def Move(self, *_args, **_kwargs):
5a2a9da2 342 val = windowsc.wxWindow_Move(self, *_args, **_kwargs)
8ab979d7 343 return val
1afc06c2 344 def PopEventHandler(self, *_args, **_kwargs):
5a2a9da2 345 val = windowsc.wxWindow_PopEventHandler(self, *_args, **_kwargs)
1afc06c2
RD
346 return val
347 def PushEventHandler(self, *_args, **_kwargs):
5a2a9da2 348 val = windowsc.wxWindow_PushEventHandler(self, *_args, **_kwargs)
1afc06c2 349 return val
c6c593e8 350 def RemoveEventHandler(self, *_args, **_kwargs):
5a2a9da2 351 val = windowsc.wxWindow_RemoveEventHandler(self, *_args, **_kwargs)
c6c593e8 352 return val
1d99702e 353 def PopupMenuXY(self, *_args, **_kwargs):
5a2a9da2 354 val = windowsc.wxWindow_PopupMenuXY(self, *_args, **_kwargs)
8bf5d46e 355 return val
1d99702e 356 def PopupMenu(self, *_args, **_kwargs):
5a2a9da2 357 val = windowsc.wxWindow_PopupMenu(self, *_args, **_kwargs)
8ab979d7 358 return val
1d99702e 359 def Raise(self, *_args, **_kwargs):
5a2a9da2 360 val = windowsc.wxWindow_Raise(self, *_args, **_kwargs)
8ab979d7 361 return val
1d99702e 362 def Refresh(self, *_args, **_kwargs):
5a2a9da2 363 val = windowsc.wxWindow_Refresh(self, *_args, **_kwargs)
8ab979d7 364 return val
09f3d4e6 365 def RefreshRect(self, *_args, **_kwargs):
5a2a9da2 366 val = windowsc.wxWindow_RefreshRect(self, *_args, **_kwargs)
09f3d4e6 367 return val
e67409dc 368 def AddChild(self, *_args, **_kwargs):
5a2a9da2 369 val = windowsc.wxWindow_AddChild(self, *_args, **_kwargs)
e67409dc 370 return val
b7e72427 371 def RemoveChild(self, *_args, **_kwargs):
5a2a9da2 372 val = windowsc.wxWindow_RemoveChild(self, *_args, **_kwargs)
b7e72427 373 return val
1d99702e 374 def Reparent(self, *_args, **_kwargs):
5a2a9da2 375 val = windowsc.wxWindow_Reparent(self, *_args, **_kwargs)
bb0054cd 376 return val
1d99702e 377 def ScreenToClientXY(self, *_args, **_kwargs):
5a2a9da2 378 val = windowsc.wxWindow_ScreenToClientXY(self, *_args, **_kwargs)
af309447 379 return val
1d99702e 380 def ScreenToClient(self, *_args, **_kwargs):
5a2a9da2 381 val = windowsc.wxWindow_ScreenToClient(self, *_args, **_kwargs)
1d99702e 382 if val: val = wxPointPtr(val) ; val.thisown = 1
8ab979d7 383 return val
1d99702e 384 def ScrollWindow(self, *_args, **_kwargs):
5a2a9da2 385 val = windowsc.wxWindow_ScrollWindow(self, *_args, **_kwargs)
8ab979d7 386 return val
1d99702e 387 def SetAutoLayout(self, *_args, **_kwargs):
5a2a9da2 388 val = windowsc.wxWindow_SetAutoLayout(self, *_args, **_kwargs)
8ab979d7 389 return val
9d8bd15f 390 def GetAutoLayout(self, *_args, **_kwargs):
5a2a9da2 391 val = windowsc.wxWindow_GetAutoLayout(self, *_args, **_kwargs)
9d8bd15f 392 return val
1d99702e 393 def SetBackgroundColour(self, *_args, **_kwargs):
5a2a9da2 394 val = windowsc.wxWindow_SetBackgroundColour(self, *_args, **_kwargs)
8ab979d7 395 return val
1d99702e 396 def SetConstraints(self, *_args, **_kwargs):
5a2a9da2 397 val = windowsc.wxWindow_SetConstraints(self, *_args, **_kwargs)
8ab979d7 398 return val
2f90df85 399 def UnsetConstraints(self, *_args, **_kwargs):
5a2a9da2 400 val = windowsc.wxWindow_UnsetConstraints(self, *_args, **_kwargs)
2f90df85 401 return val
1d99702e 402 def SetFocus(self, *_args, **_kwargs):
5a2a9da2 403 val = windowsc.wxWindow_SetFocus(self, *_args, **_kwargs)
8ab979d7 404 return val
2a74d141 405 def SetFocusFromKbd(self, *_args, **_kwargs):
5a2a9da2 406 val = windowsc.wxWindow_SetFocusFromKbd(self, *_args, **_kwargs)
2a74d141 407 return val
2f90df85 408 def AcceptsFocus(self, *_args, **_kwargs):
5a2a9da2 409 val = windowsc.wxWindow_AcceptsFocus(self, *_args, **_kwargs)
2f90df85 410 return val
1d99702e 411 def SetFont(self, *_args, **_kwargs):
5a2a9da2 412 val = windowsc.wxWindow_SetFont(self, *_args, **_kwargs)
8ab979d7 413 return val
1d99702e 414 def SetForegroundColour(self, *_args, **_kwargs):
5a2a9da2 415 val = windowsc.wxWindow_SetForegroundColour(self, *_args, **_kwargs)
8ab979d7 416 return val
1d99702e 417 def SetId(self, *_args, **_kwargs):
5a2a9da2 418 val = windowsc.wxWindow_SetId(self, *_args, **_kwargs)
8ab979d7 419 return val
1d99702e 420 def SetName(self, *_args, **_kwargs):
5a2a9da2 421 val = windowsc.wxWindow_SetName(self, *_args, **_kwargs)
8ab979d7 422 return val
1d99702e 423 def SetScrollbar(self, *_args, **_kwargs):
5a2a9da2 424 val = windowsc.wxWindow_SetScrollbar(self, *_args, **_kwargs)
8ab979d7 425 return val
1d99702e 426 def SetScrollPos(self, *_args, **_kwargs):
5a2a9da2 427 val = windowsc.wxWindow_SetScrollPos(self, *_args, **_kwargs)
8ab979d7 428 return val
1d99702e 429 def SetDimensions(self, *_args, **_kwargs):
5a2a9da2 430 val = windowsc.wxWindow_SetDimensions(self, *_args, **_kwargs)
8ab979d7 431 return val
1d99702e 432 def SetSize(self, *_args, **_kwargs):
5a2a9da2 433 val = windowsc.wxWindow_SetSize(self, *_args, **_kwargs)
8ab979d7 434 return val
1d99702e 435 def SetPosition(self, *_args, **_kwargs):
5a2a9da2 436 val = windowsc.wxWindow_SetPosition(self, *_args, **_kwargs)
8ab979d7 437 return val
dbbb98cd 438 def SetRect(self, *_args, **_kwargs):
5a2a9da2 439 val = windowsc.wxWindow_SetRect(self, *_args, **_kwargs)
dbbb98cd 440 return val
1d99702e 441 def SetSizeHints(self, *_args, **_kwargs):
5a2a9da2 442 val = windowsc.wxWindow_SetSizeHints(self, *_args, **_kwargs)
8ab979d7 443 return val
2a74d141 444 def SetVirtualSizeHints(self, *_args, **_kwargs):
5a2a9da2 445 val = windowsc.wxWindow_SetVirtualSizeHints(self, *_args, **_kwargs)
2a74d141
RD
446 return val
447 def SetVirtualSize(self, *_args, **_kwargs):
5a2a9da2 448 val = windowsc.wxWindow_SetVirtualSize(self, *_args, **_kwargs)
2a74d141
RD
449 return val
450 def SetVirtualSizeWH(self, *_args, **_kwargs):
5a2a9da2 451 val = windowsc.wxWindow_SetVirtualSizeWH(self, *_args, **_kwargs)
2a74d141
RD
452 return val
453 def GetVirtualSize(self, *_args, **_kwargs):
5a2a9da2 454 val = windowsc.wxWindow_GetVirtualSize(self, *_args, **_kwargs)
2a74d141
RD
455 if val: val = wxSizePtr(val) ; val.thisown = 1
456 return val
457 def GetVirtualSizeTuple(self, *_args, **_kwargs):
5a2a9da2 458 val = windowsc.wxWindow_GetVirtualSizeTuple(self, *_args, **_kwargs)
2a74d141 459 return val
7e50db3f 460 def GetBestVirtualSize(self, *_args, **_kwargs):
5a2a9da2 461 val = windowsc.wxWindow_GetBestVirtualSize(self, *_args, **_kwargs)
7e50db3f
RD
462 if val: val = wxSizePtr(val) ; val.thisown = 1
463 return val
1d99702e 464 def SetClientSizeWH(self, *_args, **_kwargs):
5a2a9da2 465 val = windowsc.wxWindow_SetClientSizeWH(self, *_args, **_kwargs)
af309447 466 return val
1d99702e 467 def SetClientSize(self, *_args, **_kwargs):
5a2a9da2 468 val = windowsc.wxWindow_SetClientSize(self, *_args, **_kwargs)
8ab979d7 469 return val
1d99702e 470 def SetCursor(self, *_args, **_kwargs):
5a2a9da2 471 val = windowsc.wxWindow_SetCursor(self, *_args, **_kwargs)
8ab979d7 472 return val
e67409dc 473 def GetCursor(self, *_args, **_kwargs):
5a2a9da2 474 val = windowsc.wxWindow_GetCursor(self, *_args, **_kwargs)
e67409dc
RD
475 if val: val = wxCursorPtr(val)
476 return val
1afc06c2 477 def SetEventHandler(self, *_args, **_kwargs):
5a2a9da2 478 val = windowsc.wxWindow_SetEventHandler(self, *_args, **_kwargs)
1afc06c2 479 return val
83b18bab 480 def SetExtraStyle(self, *_args, **_kwargs):
5a2a9da2 481 val = windowsc.wxWindow_SetExtraStyle(self, *_args, **_kwargs)
83b18bab 482 return val
1d99702e 483 def SetTitle(self, *_args, **_kwargs):
5a2a9da2 484 val = windowsc.wxWindow_SetTitle(self, *_args, **_kwargs)
8ab979d7 485 return val
1d99702e 486 def Show(self, *_args, **_kwargs):
5a2a9da2 487 val = windowsc.wxWindow_Show(self, *_args, **_kwargs)
8ab979d7 488 return val
1d99702e 489 def TransferDataFromWindow(self, *_args, **_kwargs):
5a2a9da2 490 val = windowsc.wxWindow_TransferDataFromWindow(self, *_args, **_kwargs)
8ab979d7 491 return val
1d99702e 492 def TransferDataToWindow(self, *_args, **_kwargs):
5a2a9da2 493 val = windowsc.wxWindow_TransferDataToWindow(self, *_args, **_kwargs)
8ab979d7 494 return val
23bed520 495 def UpdateWindowUI(self, *_args, **_kwargs):
5a2a9da2 496 val = windowsc.wxWindow_UpdateWindowUI(self, *_args, **_kwargs)
23bed520 497 return val
1d99702e 498 def Validate(self, *_args, **_kwargs):
5a2a9da2 499 val = windowsc.wxWindow_Validate(self, *_args, **_kwargs)
8ab979d7 500 return val
1d99702e 501 def ConvertDialogPointToPixels(self, *_args, **_kwargs):
5a2a9da2 502 val = windowsc.wxWindow_ConvertDialogPointToPixels(self, *_args, **_kwargs)
1d99702e 503 if val: val = wxPointPtr(val) ; val.thisown = 1
b8b8dda7 504 return val
1d99702e 505 def ConvertDialogSizeToPixels(self, *_args, **_kwargs):
5a2a9da2 506 val = windowsc.wxWindow_ConvertDialogSizeToPixels(self, *_args, **_kwargs)
1d99702e 507 if val: val = wxSizePtr(val) ; val.thisown = 1
b8b8dda7 508 return val
1d99702e 509 def DLG_PNT(self, *_args, **_kwargs):
5a2a9da2 510 val = windowsc.wxWindow_DLG_PNT(self, *_args, **_kwargs)
1d99702e 511 if val: val = wxPointPtr(val) ; val.thisown = 1
cf694132 512 return val
1d99702e 513 def DLG_SZE(self, *_args, **_kwargs):
5a2a9da2 514 val = windowsc.wxWindow_DLG_SZE(self, *_args, **_kwargs)
1d99702e 515 if val: val = wxSizePtr(val) ; val.thisown = 1
cf694132 516 return val
1d99702e 517 def ConvertPixelPointToDialog(self, *_args, **_kwargs):
5a2a9da2 518 val = windowsc.wxWindow_ConvertPixelPointToDialog(self, *_args, **_kwargs)
1d99702e 519 if val: val = wxPointPtr(val) ; val.thisown = 1
b8b8dda7 520 return val
1d99702e 521 def ConvertPixelSizeToDialog(self, *_args, **_kwargs):
5a2a9da2 522 val = windowsc.wxWindow_ConvertPixelSizeToDialog(self, *_args, **_kwargs)
1d99702e 523 if val: val = wxSizePtr(val) ; val.thisown = 1
b8b8dda7 524 return val
1d99702e 525 def SetToolTipString(self, *_args, **_kwargs):
5a2a9da2 526 val = windowsc.wxWindow_SetToolTipString(self, *_args, **_kwargs)
af309447 527 return val
1d99702e 528 def SetToolTip(self, *_args, **_kwargs):
5a2a9da2 529 val = windowsc.wxWindow_SetToolTip(self, *_args, **_kwargs)
af309447 530 return val
1d99702e 531 def GetToolTip(self, *_args, **_kwargs):
5a2a9da2 532 val = windowsc.wxWindow_GetToolTip(self, *_args, **_kwargs)
af309447 533 return val
2f90df85 534 def SetSizer(self, *_args, **_kwargs):
5a2a9da2 535 val = windowsc.wxWindow_SetSizer(self, *_args, **_kwargs)
2f90df85 536 return val
2a74d141 537 def SetSizerAndFit(self, *_args, **_kwargs):
5a2a9da2 538 val = windowsc.wxWindow_SetSizerAndFit(self, *_args, **_kwargs)
2a74d141 539 return val
f6bcfd97 540 def GetSizer(self, *_args, **_kwargs):
5a2a9da2 541 val = windowsc.wxWindow_GetSizer(self, *_args, **_kwargs)
f6bcfd97 542 return val
be90c029 543 def SetContainingSizer(self, *_args, **_kwargs):
5a2a9da2 544 val = windowsc.wxWindow_SetContainingSizer(self, *_args, **_kwargs)
be90c029
RD
545 return val
546 def GetContainingSizer(self, *_args, **_kwargs):
5a2a9da2 547 val = windowsc.wxWindow_GetContainingSizer(self, *_args, **_kwargs)
be90c029 548 return val
2f90df85 549 def GetValidator(self, *_args, **_kwargs):
5a2a9da2 550 val = windowsc.wxWindow_GetValidator(self, *_args, **_kwargs)
2f90df85
RD
551 return val
552 def SetValidator(self, *_args, **_kwargs):
5a2a9da2 553 val = windowsc.wxWindow_SetValidator(self, *_args, **_kwargs)
2f90df85 554 return val
b1462dfa 555 def SetDropTarget(self, *_args, **_kwargs):
5a2a9da2 556 val = windowsc.wxWindow_SetDropTarget(self, *_args, **_kwargs)
b1462dfa
RD
557 _args[0].thisown = 0
558 return val
559 def GetDropTarget(self, *_args, **_kwargs):
5a2a9da2 560 val = windowsc.wxWindow_GetDropTarget(self, *_args, **_kwargs)
b1462dfa
RD
561 if val: val = wxDropTargetPtr(val)
562 return val
694759cf 563 def GetBestSize(self, *_args, **_kwargs):
5a2a9da2 564 val = windowsc.wxWindow_GetBestSize(self, *_args, **_kwargs)
694759cf 565 if val: val = wxSizePtr(val) ; val.thisown = 1
a541c325
RD
566 return val
567 def GetMaxSize(self, *_args, **_kwargs):
5a2a9da2 568 val = windowsc.wxWindow_GetMaxSize(self, *_args, **_kwargs)
a541c325 569 if val: val = wxSizePtr(val) ; val.thisown = 1
694759cf 570 return val
7e50db3f 571 def GetAdjustedBestSize(self, *_args, **_kwargs):
5a2a9da2 572 val = windowsc.wxWindow_GetAdjustedBestSize(self, *_args, **_kwargs)
7e50db3f
RD
573 if val: val = wxSizePtr(val) ; val.thisown = 1
574 return val
a1df7a95 575 def SetCaret(self, *_args, **_kwargs):
5a2a9da2 576 val = windowsc.wxWindow_SetCaret(self, *_args, **_kwargs)
a1df7a95
RD
577 return val
578 def GetCaret(self, *_args, **_kwargs):
5a2a9da2 579 val = windowsc.wxWindow_GetCaret(self, *_args, **_kwargs)
a1df7a95
RD
580 if val: val = wxCaretPtr(val)
581 return val
3a0958b1 582 def Freeze(self, *_args, **_kwargs):
5a2a9da2 583 val = windowsc.wxWindow_Freeze(self, *_args, **_kwargs)
3a0958b1
RD
584 return val
585 def Thaw(self, *_args, **_kwargs):
5a2a9da2 586 val = windowsc.wxWindow_Thaw(self, *_args, **_kwargs)
3a0958b1 587 return val
09f3d4e6 588 def Update(self, *_args, **_kwargs):
5a2a9da2 589 val = windowsc.wxWindow_Update(self, *_args, **_kwargs)
09f3d4e6 590 return val
4f3449b4 591 def GetHelpText(self, *_args, **_kwargs):
5a2a9da2 592 val = windowsc.wxWindow_GetHelpText(self, *_args, **_kwargs)
4f3449b4
RD
593 return val
594 def SetHelpText(self, *_args, **_kwargs):
5a2a9da2 595 val = windowsc.wxWindow_SetHelpText(self, *_args, **_kwargs)
4f3449b4 596 return val
23bed520 597 def SetHelpTextForId(self, *_args, **_kwargs):
5a2a9da2 598 val = windowsc.wxWindow_SetHelpTextForId(self, *_args, **_kwargs)
23bed520 599 return val
c7e7022c 600 def ScrollLines(self, *_args, **_kwargs):
5a2a9da2 601 val = windowsc.wxWindow_ScrollLines(self, *_args, **_kwargs)
c7e7022c
RD
602 return val
603 def ScrollPages(self, *_args, **_kwargs):
5a2a9da2 604 val = windowsc.wxWindow_ScrollPages(self, *_args, **_kwargs)
c7e7022c
RD
605 return val
606 def LineUp(self, *_args, **_kwargs):
5a2a9da2 607 val = windowsc.wxWindow_LineUp(self, *_args, **_kwargs)
c7e7022c
RD
608 return val
609 def LineDown(self, *_args, **_kwargs):
5a2a9da2 610 val = windowsc.wxWindow_LineDown(self, *_args, **_kwargs)
c7e7022c
RD
611 return val
612 def PageUp(self, *_args, **_kwargs):
5a2a9da2 613 val = windowsc.wxWindow_PageUp(self, *_args, **_kwargs)
c7e7022c
RD
614 return val
615 def PageDown(self, *_args, **_kwargs):
5a2a9da2 616 val = windowsc.wxWindow_PageDown(self, *_args, **_kwargs)
c7e7022c 617 return val
76bfdc78 618 def SetAcceleratorTable(self, *_args, **_kwargs):
5a2a9da2 619 val = windowsc.wxWindow_SetAcceleratorTable(self, *_args, **_kwargs)
76bfdc78 620 return val
900d9886 621 def GetAcceleratorTable(self, *_args, **_kwargs):
5a2a9da2 622 val = windowsc.wxWindow_GetAcceleratorTable(self, *_args, **_kwargs)
900d9886
RD
623 if val: val = wxAcceleratorTablePtr(val)
624 return val
5a2a9da2
RD
625 def RegisterHotKey(self, *_args, **_kwargs):
626 val = windowsc.wxWindow_RegisterHotKey(self, *_args, **_kwargs)
627 return val
628 def UnregisterHotKey(self, *_args, **_kwargs):
629 val = windowsc.wxWindow_UnregisterHotKey(self, *_args, **_kwargs)
630 return val
07c99b26 631 def OnPaint(self, *_args, **_kwargs):
5a2a9da2 632 val = windowsc.wxWindow_OnPaint(self, *_args, **_kwargs)
78e8819c 633 return val
5a2930ab 634 def GetDefaultItem(self, *_args, **_kwargs):
5a2a9da2 635 val = windowsc.wxWindow_GetDefaultItem(self, *_args, **_kwargs)
5a2930ab
RD
636 return val
637 def SetDefaultItem(self, *_args, **_kwargs):
5a2a9da2 638 val = windowsc.wxWindow_SetDefaultItem(self, *_args, **_kwargs)
5a2930ab 639 return val
0b85cc38 640 def SetTmpDefaultItem(self, *_args, **_kwargs):
5a2a9da2 641 val = windowsc.wxWindow_SetTmpDefaultItem(self, *_args, **_kwargs)
0b85cc38 642 return val
6d26dc89 643 def WarpPointer(self, *_args, **_kwargs):
5a2a9da2 644 val = windowsc.wxWindow_WarpPointer(self, *_args, **_kwargs)
6d26dc89
RD
645 return val
646 def CaptureMouse(self, *_args, **_kwargs):
5a2a9da2 647 val = windowsc.wxWindow_CaptureMouse(self, *_args, **_kwargs)
6d26dc89
RD
648 return val
649 def ReleaseMouse(self, *_args, **_kwargs):
5a2a9da2 650 val = windowsc.wxWindow_ReleaseMouse(self, *_args, **_kwargs)
6d26dc89
RD
651 return val
652 def HasCapture(self, *_args, **_kwargs):
5a2a9da2
RD
653 val = windowsc.wxWindow_HasCapture(self, *_args, **_kwargs)
654 return val
655 def SetThemeEnabled(self, *_args, **_kwargs):
656 val = windowsc.wxWindow_SetThemeEnabled(self, *_args, **_kwargs)
657 return val
658 def GetThemeEnabled(self, *_args, **_kwargs):
659 val = windowsc.wxWindow_GetThemeEnabled(self, *_args, **_kwargs)
660 return val
661 def GetBorderFlags(self, *_args, **_kwargs):
662 val = windowsc.wxWindow_GetBorderFlags(self, *_args, **_kwargs)
663 return val
664 def GetBorder(self, *_args, **_kwargs):
665 val = windowsc.wxWindow_GetBorder(self, *_args, **_kwargs)
6d26dc89 666 return val
8ab979d7 667 def __repr__(self):
5a2a9da2 668 return "<%s.%s instance; proxy of C++ wxWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
9416aa89 669 # replaces broken shadow method
a1df7a95
RD
670 def GetCaret(self, *_args, **_kwargs):
671 from misc2 import wxCaretPtr
5a2a9da2 672 val = windowsc.wxWindow_GetCaret(self, *_args, **_kwargs)
a1df7a95
RD
673 if val: val = wxCaretPtr(val)
674 return val
f6bcfd97 675
8ab979d7 676class wxWindow(wxWindowPtr):
1d99702e 677 def __init__(self,*_args,**_kwargs):
5a2a9da2 678 self.this = windowsc.new_wxWindow(*_args,**_kwargs)
8ab979d7 679 self.thisown = 1
0122b7e3 680 self._setOORInfo(self)
8ab979d7
RD
681
682
683
09f3d4e6 684def wxPreWindow(*_args,**_kwargs):
5a2a9da2 685 val = wxWindowPtr(windowsc.new_wxPreWindow(*_args,**_kwargs))
09f3d4e6 686 val.thisown = 1
17c0e08c 687 val._setOORInfo(val)
09f3d4e6
RD
688 return val
689
8ab979d7
RD
690
691class wxPanelPtr(wxWindowPtr):
692 def __init__(self,this):
693 self.this = this
694 self.thisown = 0
09f3d4e6 695 def Create(self, *_args, **_kwargs):
5a2a9da2 696 val = windowsc.wxPanel_Create(self, *_args, **_kwargs)
09f3d4e6 697 return val
1d99702e 698 def InitDialog(self, *_args, **_kwargs):
5a2a9da2 699 val = windowsc.wxPanel_InitDialog(self, *_args, **_kwargs)
8ab979d7
RD
700 return val
701 def __repr__(self):
5a2a9da2 702 return "<%s.%s instance; proxy of C++ wxPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
8ab979d7 703class wxPanel(wxPanelPtr):
1d99702e 704 def __init__(self,*_args,**_kwargs):
5a2a9da2 705 self.this = windowsc.new_wxPanel(*_args,**_kwargs)
8ab979d7 706 self.thisown = 1
0122b7e3 707 self._setOORInfo(self)
8ab979d7
RD
708
709
710
09f3d4e6 711def wxPrePanel(*_args,**_kwargs):
5a2a9da2 712 val = wxPanelPtr(windowsc.new_wxPrePanel(*_args,**_kwargs))
09f3d4e6 713 val.thisown = 1
7b7ac0ab 714 val._setOORInfo(val)
09f3d4e6
RD
715 return val
716
8ab979d7 717
bb0054cd 718class wxScrolledWindowPtr(wxPanelPtr):
8ab979d7
RD
719 def __init__(self,this):
720 self.this = this
721 self.thisown = 0
09f3d4e6 722 def Create(self, *_args, **_kwargs):
5a2a9da2 723 val = windowsc.wxScrolledWindow_Create(self, *_args, **_kwargs)
09f3d4e6 724 return val
1d99702e 725 def EnableScrolling(self, *_args, **_kwargs):
5a2a9da2 726 val = windowsc.wxScrolledWindow_EnableScrolling(self, *_args, **_kwargs)
8ab979d7 727 return val
b7e72427 728 def GetScrollPageSize(self, *_args, **_kwargs):
5a2a9da2 729 val = windowsc.wxScrolledWindow_GetScrollPageSize(self, *_args, **_kwargs)
b7e72427 730 return val
1d99702e 731 def GetScrollPixelsPerUnit(self, *_args, **_kwargs):
5a2a9da2 732 val = windowsc.wxScrolledWindow_GetScrollPixelsPerUnit(self, *_args, **_kwargs)
8ab979d7 733 return val
b7e72427 734 def GetTargetWindow(self, *_args, **_kwargs):
5a2a9da2 735 val = windowsc.wxScrolledWindow_GetTargetWindow(self, *_args, **_kwargs)
b7e72427 736 return val
1d99702e 737 def IsRetained(self, *_args, **_kwargs):
5a2a9da2 738 val = windowsc.wxScrolledWindow_IsRetained(self, *_args, **_kwargs)
8ab979d7 739 return val
1d99702e 740 def PrepareDC(self, *_args, **_kwargs):
5a2a9da2 741 val = windowsc.wxScrolledWindow_PrepareDC(self, *_args, **_kwargs)
8ab979d7 742 return val
1d99702e 743 def Scroll(self, *_args, **_kwargs):
5a2a9da2 744 val = windowsc.wxScrolledWindow_Scroll(self, *_args, **_kwargs)
8ab979d7 745 return val
1d99702e 746 def SetScrollbars(self, *_args, **_kwargs):
5a2a9da2 747 val = windowsc.wxScrolledWindow_SetScrollbars(self, *_args, **_kwargs)
8ab979d7 748 return val
b7e72427 749 def SetScrollPageSize(self, *_args, **_kwargs):
5a2a9da2 750 val = windowsc.wxScrolledWindow_SetScrollPageSize(self, *_args, **_kwargs)
b7e72427 751 return val
eb715945 752 def SetTargetWindow(self, *_args, **_kwargs):
5a2a9da2 753 val = windowsc.wxScrolledWindow_SetTargetWindow(self, *_args, **_kwargs)
eb715945 754 return val
4c9993c3 755 def GetViewStart(self, *_args, **_kwargs):
5a2a9da2 756 val = windowsc.wxScrolledWindow_GetViewStart(self, *_args, **_kwargs)
4c9993c3 757 return val
e9159fe8 758 def CalcScrolledPosition1(self, *_args, **_kwargs):
5a2a9da2 759 val = windowsc.wxScrolledWindow_CalcScrolledPosition1(self, *_args, **_kwargs)
e9159fe8
RD
760 if val: val = wxPointPtr(val) ; val.thisown = 1
761 return val
762 def CalcScrolledPosition2(self, *_args, **_kwargs):
5a2a9da2 763 val = windowsc.wxScrolledWindow_CalcScrolledPosition2(self, *_args, **_kwargs)
e9159fe8
RD
764 return val
765 def CalcUnscrolledPosition1(self, *_args, **_kwargs):
5a2a9da2 766 val = windowsc.wxScrolledWindow_CalcUnscrolledPosition1(self, *_args, **_kwargs)
e9159fe8 767 if val: val = wxPointPtr(val) ; val.thisown = 1
9d8bd15f 768 return val
e9159fe8 769 def CalcUnscrolledPosition2(self, *_args, **_kwargs):
5a2a9da2 770 val = windowsc.wxScrolledWindow_CalcUnscrolledPosition2(self, *_args, **_kwargs)
9d8bd15f 771 return val
d1679124 772 def SetScale(self, *_args, **_kwargs):
5a2a9da2 773 val = windowsc.wxScrolledWindow_SetScale(self, *_args, **_kwargs)
d1679124
RD
774 return val
775 def GetScaleX(self, *_args, **_kwargs):
5a2a9da2 776 val = windowsc.wxScrolledWindow_GetScaleX(self, *_args, **_kwargs)
d1679124
RD
777 return val
778 def GetScaleY(self, *_args, **_kwargs):
5a2a9da2 779 val = windowsc.wxScrolledWindow_GetScaleY(self, *_args, **_kwargs)
d1679124
RD
780 return val
781 def AdjustScrollbars(self, *_args, **_kwargs):
5a2a9da2 782 val = windowsc.wxScrolledWindow_AdjustScrollbars(self, *_args, **_kwargs)
d1679124 783 return val
26e335b8 784 def Layout(self, *_args, **_kwargs):
5a2a9da2 785 val = windowsc.wxScrolledWindow_Layout(self, *_args, **_kwargs)
26e335b8 786 return val
2a74d141 787 def SetScrollRate(self, *_args, **_kwargs):
5a2a9da2 788 val = windowsc.wxScrolledWindow_SetScrollRate(self, *_args, **_kwargs)
2a74d141 789 return val
8ab979d7 790 def __repr__(self):
5a2a9da2 791 return "<%s.%s instance; proxy of C++ wxScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
0adbc166 792 ViewStart = GetViewStart
e9159fe8
RD
793
794 def CalcScrolledPosition(self, *args):
795 if len(args) == 1:
5a2a9da2 796 return self.CalcScrolledPosition1(*args)
e9159fe8 797 elif len(args) == 2:
5a2a9da2 798 return self.CalcScrolledPosition2(*args)
e9159fe8
RD
799 else:
800 raise TypeError, 'Invalid parameters: only (x,y) or (point) allowed'
801
802 def CalcUnscrolledPosition(self, *args):
803 if len(args) == 1:
5a2a9da2 804 return self.CalcUnscrolledPosition1(*args)
e9159fe8 805 elif len(args) == 2:
5a2a9da2 806 return self.CalcUnscrolledPosition2(*args)
e9159fe8
RD
807 else:
808 raise TypeError, 'Invalid parameters: only (x,y) or (point) allowed'
809
8ab979d7 810class wxScrolledWindow(wxScrolledWindowPtr):
1d99702e 811 def __init__(self,*_args,**_kwargs):
5a2a9da2 812 self.this = windowsc.new_wxScrolledWindow(*_args,**_kwargs)
8ab979d7 813 self.thisown = 1
0122b7e3 814 self._setOORInfo(self)
8ab979d7
RD
815
816
817
09f3d4e6 818def wxPreScrolledWindow(*_args,**_kwargs):
5a2a9da2 819 val = wxScrolledWindowPtr(windowsc.new_wxPreScrolledWindow(*_args,**_kwargs))
09f3d4e6 820 val.thisown = 1
17c0e08c 821 val._setOORInfo(val)
09f3d4e6
RD
822 return val
823
8ab979d7
RD
824
825class wxMenuPtr(wxEvtHandlerPtr):
826 def __init__(self,this):
827 self.this = this
828 self.thisown = 0
1d99702e 829 def Append(self, *_args, **_kwargs):
5a2a9da2 830 val = windowsc.wxMenu_Append(self, *_args, **_kwargs)
8ab979d7 831 return val
1d99702e 832 def AppendMenu(self, *_args, **_kwargs):
5a2a9da2 833 val = windowsc.wxMenu_AppendMenu(self, *_args, **_kwargs)
8ab979d7 834 return val
1d99702e 835 def AppendItem(self, *_args, **_kwargs):
5a2a9da2 836 val = windowsc.wxMenu_AppendItem(self, *_args, **_kwargs)
af309447 837 return val
e9159fe8 838 def AppendCheckItem(self, *_args, **_kwargs):
5a2a9da2 839 val = windowsc.wxMenu_AppendCheckItem(self, *_args, **_kwargs)
e9159fe8
RD
840 return val
841 def AppendRadioItem(self, *_args, **_kwargs):
5a2a9da2 842 val = windowsc.wxMenu_AppendRadioItem(self, *_args, **_kwargs)
e9159fe8 843 return val
1d99702e 844 def AppendSeparator(self, *_args, **_kwargs):
5a2a9da2 845 val = windowsc.wxMenu_AppendSeparator(self, *_args, **_kwargs)
8ab979d7 846 return val
e9159fe8 847 def Insert(self, *_args, **_kwargs):
5a2a9da2 848 val = windowsc.wxMenu_Insert(self, *_args, **_kwargs)
e9159fe8
RD
849 return val
850 def InsertSeparator(self, *_args, **_kwargs):
5a2a9da2 851 val = windowsc.wxMenu_InsertSeparator(self, *_args, **_kwargs)
e9159fe8
RD
852 return val
853 def InsertCheckItem(self, *_args, **_kwargs):
5a2a9da2 854 val = windowsc.wxMenu_InsertCheckItem(self, *_args, **_kwargs)
e9159fe8
RD
855 return val
856 def InsertRadioItem(self, *_args, **_kwargs):
5a2a9da2 857 val = windowsc.wxMenu_InsertRadioItem(self, *_args, **_kwargs)
e9159fe8
RD
858 return val
859 def InsertMenu(self, *_args, **_kwargs):
5a2a9da2 860 val = windowsc.wxMenu_InsertMenu(self, *_args, **_kwargs)
e9159fe8
RD
861 return val
862 def InsertItem(self, *_args, **_kwargs):
5a2a9da2 863 val = windowsc.wxMenu_InsertItem(self, *_args, **_kwargs)
e9159fe8
RD
864 return val
865 def Prepend(self, *_args, **_kwargs):
5a2a9da2 866 val = windowsc.wxMenu_Prepend(self, *_args, **_kwargs)
e9159fe8
RD
867 return val
868 def PrependSeparator(self, *_args, **_kwargs):
5a2a9da2 869 val = windowsc.wxMenu_PrependSeparator(self, *_args, **_kwargs)
e9159fe8
RD
870 return val
871 def PrependCheckItem(self, *_args, **_kwargs):
5a2a9da2 872 val = windowsc.wxMenu_PrependCheckItem(self, *_args, **_kwargs)
e9159fe8
RD
873 return val
874 def PrependRadioItem(self, *_args, **_kwargs):
5a2a9da2 875 val = windowsc.wxMenu_PrependRadioItem(self, *_args, **_kwargs)
e9159fe8
RD
876 return val
877 def PrependMenu(self, *_args, **_kwargs):
5a2a9da2 878 val = windowsc.wxMenu_PrependMenu(self, *_args, **_kwargs)
e9159fe8
RD
879 return val
880 def PrependItem(self, *_args, **_kwargs):
5a2a9da2 881 val = windowsc.wxMenu_PrependItem(self, *_args, **_kwargs)
e9159fe8 882 return val
1d99702e 883 def Break(self, *_args, **_kwargs):
5a2a9da2 884 val = windowsc.wxMenu_Break(self, *_args, **_kwargs)
8ab979d7 885 return val
1d99702e 886 def Check(self, *_args, **_kwargs):
5a2a9da2 887 val = windowsc.wxMenu_Check(self, *_args, **_kwargs)
8ab979d7 888 return val
b1462dfa 889 def IsChecked(self, *_args, **_kwargs):
5a2a9da2 890 val = windowsc.wxMenu_IsChecked(self, *_args, **_kwargs)
b1462dfa 891 return val
1d99702e 892 def Enable(self, *_args, **_kwargs):
5a2a9da2 893 val = windowsc.wxMenu_Enable(self, *_args, **_kwargs)
8ab979d7 894 return val
b1462dfa 895 def IsEnabled(self, *_args, **_kwargs):
5a2a9da2 896 val = windowsc.wxMenu_IsEnabled(self, *_args, **_kwargs)
b1462dfa 897 return val
1d99702e 898 def FindItem(self, *_args, **_kwargs):
5a2a9da2 899 val = windowsc.wxMenu_FindItem(self, *_args, **_kwargs)
8ab979d7 900 return val
b1462dfa 901 def FindItemById(self, *_args, **_kwargs):
5a2a9da2
RD
902 val = windowsc.wxMenu_FindItemById(self, *_args, **_kwargs)
903 return val
904 def FindItemByPosition(self, *_args, **_kwargs):
905 val = windowsc.wxMenu_FindItemByPosition(self, *_args, **_kwargs)
b1462dfa 906 return val
1d99702e 907 def GetTitle(self, *_args, **_kwargs):
5a2a9da2 908 val = windowsc.wxMenu_GetTitle(self, *_args, **_kwargs)
8ab979d7 909 return val
1d99702e 910 def SetTitle(self, *_args, **_kwargs):
5a2a9da2 911 val = windowsc.wxMenu_SetTitle(self, *_args, **_kwargs)
8ab979d7 912 return val
b1462dfa 913 def GetLabel(self, *_args, **_kwargs):
5a2a9da2 914 val = windowsc.wxMenu_GetLabel(self, *_args, **_kwargs)
b1462dfa
RD
915 return val
916 def SetLabel(self, *_args, **_kwargs):
5a2a9da2 917 val = windowsc.wxMenu_SetLabel(self, *_args, **_kwargs)
8ab979d7 918 return val
1d99702e 919 def GetHelpString(self, *_args, **_kwargs):
5a2a9da2 920 val = windowsc.wxMenu_GetHelpString(self, *_args, **_kwargs)
8ab979d7 921 return val
1d99702e 922 def SetHelpString(self, *_args, **_kwargs):
5a2a9da2 923 val = windowsc.wxMenu_SetHelpString(self, *_args, **_kwargs)
8ab979d7 924 return val
b1462dfa 925 def UpdateUI(self, *_args, **_kwargs):
5a2a9da2 926 val = windowsc.wxMenu_UpdateUI(self, *_args, **_kwargs)
8ab979d7 927 return val
b1462dfa 928 def Delete(self, *_args, **_kwargs):
5a2a9da2 929 val = windowsc.wxMenu_Delete(self, *_args, **_kwargs)
8ab979d7 930 return val
b1462dfa 931 def DeleteItem(self, *_args, **_kwargs):
5a2a9da2 932 val = windowsc.wxMenu_DeleteItem(self, *_args, **_kwargs)
8ab979d7 933 return val
b1462dfa 934 def Remove(self, *_args, **_kwargs):
5a2a9da2 935 val = windowsc.wxMenu_Remove(self, *_args, **_kwargs)
b1462dfa
RD
936 return val
937 def RemoveItem(self, *_args, **_kwargs):
5a2a9da2 938 val = windowsc.wxMenu_RemoveItem(self, *_args, **_kwargs)
efc5f224
RD
939 return val
940 def Destroy(self, *_args, **_kwargs):
5a2a9da2 941 val = windowsc.wxMenu_Destroy(self, *_args, **_kwargs)
8bf5d46e 942 return val
b1462dfa 943 def DestroyId(self, *_args, **_kwargs):
5a2a9da2 944 val = windowsc.wxMenu_DestroyId(self, *_args, **_kwargs)
b1462dfa
RD
945 return val
946 def DestroyItem(self, *_args, **_kwargs):
5a2a9da2 947 val = windowsc.wxMenu_DestroyItem(self, *_args, **_kwargs)
b1462dfa
RD
948 return val
949 def GetMenuItemCount(self, *_args, **_kwargs):
5a2a9da2 950 val = windowsc.wxMenu_GetMenuItemCount(self, *_args, **_kwargs)
b1462dfa
RD
951 return val
952 def GetMenuItems(self, *_args, **_kwargs):
5a2a9da2 953 val = windowsc.wxMenu_GetMenuItems(self, *_args, **_kwargs)
b1462dfa
RD
954 return val
955 def SetEventHandler(self, *_args, **_kwargs):
5a2a9da2 956 val = windowsc.wxMenu_SetEventHandler(self, *_args, **_kwargs)
b1462dfa
RD
957 return val
958 def GetEventHandler(self, *_args, **_kwargs):
5a2a9da2 959 val = windowsc.wxMenu_GetEventHandler(self, *_args, **_kwargs)
b1462dfa
RD
960 return val
961 def SetInvokingWindow(self, *_args, **_kwargs):
5a2a9da2 962 val = windowsc.wxMenu_SetInvokingWindow(self, *_args, **_kwargs)
b1462dfa
RD
963 return val
964 def GetInvokingWindow(self, *_args, **_kwargs):
5a2a9da2 965 val = windowsc.wxMenu_GetInvokingWindow(self, *_args, **_kwargs)
b1462dfa
RD
966 return val
967 def GetStyle(self, *_args, **_kwargs):
5a2a9da2 968 val = windowsc.wxMenu_GetStyle(self, *_args, **_kwargs)
b1462dfa
RD
969 return val
970 def IsAttached(self, *_args, **_kwargs):
5a2a9da2 971 val = windowsc.wxMenu_IsAttached(self, *_args, **_kwargs)
b1462dfa
RD
972 return val
973 def SetParent(self, *_args, **_kwargs):
5a2a9da2 974 val = windowsc.wxMenu_SetParent(self, *_args, **_kwargs)
b1462dfa
RD
975 return val
976 def GetParent(self, *_args, **_kwargs):
5a2a9da2 977 val = windowsc.wxMenu_GetParent(self, *_args, **_kwargs)
b1462dfa 978 return val
8ab979d7 979 def __repr__(self):
5a2a9da2 980 return "<%s.%s instance; proxy of C++ wxMenu instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
8ab979d7 981class wxMenu(wxMenuPtr):
1d99702e 982 def __init__(self,*_args,**_kwargs):
5a2a9da2 983 self.this = windowsc.new_wxMenu(*_args,**_kwargs)
8ab979d7 984 self.thisown = 1
0122b7e3 985 self._setOORInfo(self)
8ab979d7
RD
986
987
988
989
b1462dfa 990class wxMenuBarPtr(wxWindowPtr):
8ab979d7
RD
991 def __init__(self,this):
992 self.this = this
993 self.thisown = 0
1d99702e 994 def Append(self, *_args, **_kwargs):
5a2a9da2 995 val = windowsc.wxMenuBar_Append(self, *_args, **_kwargs)
8ab979d7 996 return val
b1462dfa 997 def Insert(self, *_args, **_kwargs):
5a2a9da2 998 val = windowsc.wxMenuBar_Insert(self, *_args, **_kwargs)
b1462dfa
RD
999 return val
1000 def GetMenuCount(self, *_args, **_kwargs):
5a2a9da2 1001 val = windowsc.wxMenuBar_GetMenuCount(self, *_args, **_kwargs)
b1462dfa
RD
1002 return val
1003 def GetMenu(self, *_args, **_kwargs):
5a2a9da2 1004 val = windowsc.wxMenuBar_GetMenu(self, *_args, **_kwargs)
b1462dfa
RD
1005 return val
1006 def Replace(self, *_args, **_kwargs):
5a2a9da2 1007 val = windowsc.wxMenuBar_Replace(self, *_args, **_kwargs)
b1462dfa
RD
1008 return val
1009 def Remove(self, *_args, **_kwargs):
5a2a9da2 1010 val = windowsc.wxMenuBar_Remove(self, *_args, **_kwargs)
b1462dfa
RD
1011 return val
1012 def EnableTop(self, *_args, **_kwargs):
5a2a9da2 1013 val = windowsc.wxMenuBar_EnableTop(self, *_args, **_kwargs)
b1462dfa 1014 return val
7e50db3f 1015 def IsEnabledTop(self, *_args, **_kwargs):
5a2a9da2 1016 val = windowsc.wxMenuBar_IsEnabledTop(self, *_args, **_kwargs)
7e50db3f 1017 return val
b1462dfa 1018 def SetLabelTop(self, *_args, **_kwargs):
5a2a9da2 1019 val = windowsc.wxMenuBar_SetLabelTop(self, *_args, **_kwargs)
b1462dfa
RD
1020 return val
1021 def GetLabelTop(self, *_args, **_kwargs):
5a2a9da2 1022 val = windowsc.wxMenuBar_GetLabelTop(self, *_args, **_kwargs)
b1462dfa 1023 return val
3a0958b1 1024 def FindMenu(self, *_args, **_kwargs):
5a2a9da2 1025 val = windowsc.wxMenuBar_FindMenu(self, *_args, **_kwargs)
3a0958b1 1026 return val
b1462dfa 1027 def FindMenuItem(self, *_args, **_kwargs):
5a2a9da2 1028 val = windowsc.wxMenuBar_FindMenuItem(self, *_args, **_kwargs)
b1462dfa
RD
1029 return val
1030 def FindItemById(self, *_args, **_kwargs):
5a2a9da2 1031 val = windowsc.wxMenuBar_FindItemById(self, *_args, **_kwargs)
8ab979d7 1032 return val
1d99702e 1033 def Enable(self, *_args, **_kwargs):
5a2a9da2 1034 val = windowsc.wxMenuBar_Enable(self, *_args, **_kwargs)
8ab979d7 1035 return val
b1462dfa 1036 def Check(self, *_args, **_kwargs):
5a2a9da2 1037 val = windowsc.wxMenuBar_Check(self, *_args, **_kwargs)
b1462dfa 1038 return val
2abc0a0f 1039 def IsChecked(self, *_args, **_kwargs):
5a2a9da2 1040 val = windowsc.wxMenuBar_IsChecked(self, *_args, **_kwargs)
2abc0a0f
RD
1041 return val
1042 def IsEnabled(self, *_args, **_kwargs):
5a2a9da2 1043 val = windowsc.wxMenuBar_IsEnabled(self, *_args, **_kwargs)
8ab979d7 1044 return val
2f90df85 1045 def SetLabel(self, *_args, **_kwargs):
5a2a9da2 1046 val = windowsc.wxMenuBar_SetLabel(self, *_args, **_kwargs)
2f90df85 1047 return val
1d99702e 1048 def GetLabel(self, *_args, **_kwargs):
5a2a9da2 1049 val = windowsc.wxMenuBar_GetLabel(self, *_args, **_kwargs)
8ab979d7 1050 return val
1d99702e 1051 def SetHelpString(self, *_args, **_kwargs):
5a2a9da2 1052 val = windowsc.wxMenuBar_SetHelpString(self, *_args, **_kwargs)
8ab979d7 1053 return val
b1462dfa 1054 def GetHelpString(self, *_args, **_kwargs):
5a2a9da2 1055 val = windowsc.wxMenuBar_GetHelpString(self, *_args, **_kwargs)
2abc0a0f 1056 return val
8ab979d7 1057 def __repr__(self):
5a2a9da2 1058 return "<%s.%s instance; proxy of C++ wxMenuBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
8ab979d7 1059class wxMenuBar(wxMenuBarPtr):
1d99702e 1060 def __init__(self,*_args,**_kwargs):
5a2a9da2 1061 self.this = windowsc.new_wxMenuBar(*_args,**_kwargs)
8ab979d7 1062 self.thisown = 1
0122b7e3 1063 self._setOORInfo(self)
8ab979d7
RD
1064
1065
1066
1067
9416aa89 1068class wxMenuItemPtr(wxObjectPtr):
8ab979d7
RD
1069 def __init__(self,this):
1070 self.this = this
1071 self.thisown = 0
b1462dfa 1072 def GetMenu(self, *_args, **_kwargs):
5a2a9da2
RD
1073 val = windowsc.wxMenuItem_GetMenu(self, *_args, **_kwargs)
1074 return val
1075 def SetMenu(self, *_args, **_kwargs):
1076 val = windowsc.wxMenuItem_SetMenu(self, *_args, **_kwargs)
b1462dfa
RD
1077 return val
1078 def SetId(self, *_args, **_kwargs):
5a2a9da2 1079 val = windowsc.wxMenuItem_SetId(self, *_args, **_kwargs)
b1462dfa
RD
1080 return val
1081 def GetId(self, *_args, **_kwargs):
5a2a9da2 1082 val = windowsc.wxMenuItem_GetId(self, *_args, **_kwargs)
b1462dfa 1083 return val
1d99702e 1084 def IsSeparator(self, *_args, **_kwargs):
5a2a9da2 1085 val = windowsc.wxMenuItem_IsSeparator(self, *_args, **_kwargs)
8ab979d7 1086 return val
b1462dfa 1087 def SetText(self, *_args, **_kwargs):
5a2a9da2 1088 val = windowsc.wxMenuItem_SetText(self, *_args, **_kwargs)
8ab979d7 1089 return val
b1462dfa 1090 def GetLabel(self, *_args, **_kwargs):
5a2a9da2 1091 val = windowsc.wxMenuItem_GetLabel(self, *_args, **_kwargs)
b1462dfa
RD
1092 return val
1093 def GetText(self, *_args, **_kwargs):
5a2a9da2 1094 val = windowsc.wxMenuItem_GetText(self, *_args, **_kwargs)
b1462dfa 1095 return val
e9159fe8 1096 def GetKind(self, *_args, **_kwargs):
5a2a9da2 1097 val = windowsc.wxMenuItem_GetKind(self, *_args, **_kwargs)
e9159fe8 1098 return val
b1462dfa 1099 def SetCheckable(self, *_args, **_kwargs):
5a2a9da2 1100 val = windowsc.wxMenuItem_SetCheckable(self, *_args, **_kwargs)
8ab979d7 1101 return val
1d99702e 1102 def IsCheckable(self, *_args, **_kwargs):
5a2a9da2 1103 val = windowsc.wxMenuItem_IsCheckable(self, *_args, **_kwargs)
8ab979d7 1104 return val
2abc0a0f 1105 def IsSubMenu(self, *_args, **_kwargs):
5a2a9da2 1106 val = windowsc.wxMenuItem_IsSubMenu(self, *_args, **_kwargs)
2abc0a0f 1107 return val
b1462dfa 1108 def SetSubMenu(self, *_args, **_kwargs):
5a2a9da2 1109 val = windowsc.wxMenuItem_SetSubMenu(self, *_args, **_kwargs)
2abc0a0f 1110 return val
1d99702e 1111 def GetSubMenu(self, *_args, **_kwargs):
5a2a9da2 1112 val = windowsc.wxMenuItem_GetSubMenu(self, *_args, **_kwargs)
8ab979d7 1113 return val
1d99702e 1114 def Enable(self, *_args, **_kwargs):
5a2a9da2 1115 val = windowsc.wxMenuItem_Enable(self, *_args, **_kwargs)
8ab979d7 1116 return val
b1462dfa 1117 def IsEnabled(self, *_args, **_kwargs):
5a2a9da2 1118 val = windowsc.wxMenuItem_IsEnabled(self, *_args, **_kwargs)
b1462dfa 1119 return val
1d99702e 1120 def Check(self, *_args, **_kwargs):
5a2a9da2 1121 val = windowsc.wxMenuItem_Check(self, *_args, **_kwargs)
8ab979d7 1122 return val
b1462dfa 1123 def IsChecked(self, *_args, **_kwargs):
5a2a9da2 1124 val = windowsc.wxMenuItem_IsChecked(self, *_args, **_kwargs)
2abc0a0f 1125 return val
b1462dfa 1126 def Toggle(self, *_args, **_kwargs):
5a2a9da2 1127 val = windowsc.wxMenuItem_Toggle(self, *_args, **_kwargs)
2abc0a0f 1128 return val
b1462dfa 1129 def SetHelp(self, *_args, **_kwargs):
5a2a9da2 1130 val = windowsc.wxMenuItem_SetHelp(self, *_args, **_kwargs)
cf694132 1131 return val
b1462dfa 1132 def GetHelp(self, *_args, **_kwargs):
5a2a9da2 1133 val = windowsc.wxMenuItem_GetHelp(self, *_args, **_kwargs)
be4d9c1f 1134 return val
b1462dfa 1135 def GetAccel(self, *_args, **_kwargs):
5a2a9da2 1136 val = windowsc.wxMenuItem_GetAccel(self, *_args, **_kwargs)
b1462dfa 1137 if val: val = wxAcceleratorEntryPtr(val)
2abc0a0f 1138 return val
b1462dfa 1139 def SetAccel(self, *_args, **_kwargs):
5a2a9da2 1140 val = windowsc.wxMenuItem_SetAccel(self, *_args, **_kwargs)
2abc0a0f 1141 return val
f3d9dc1d 1142 def SetFont(self, *_args, **_kwargs):
5a2a9da2 1143 val = windowsc.wxMenuItem_SetFont(self, *_args, **_kwargs)
f3d9dc1d
RD
1144 return val
1145 def GetFont(self, *_args, **_kwargs):
5a2a9da2 1146 val = windowsc.wxMenuItem_GetFont(self, *_args, **_kwargs)
c5943253 1147 if val: val = wxFontPtr(val) ; val.thisown = 1
f3d9dc1d
RD
1148 return val
1149 def SetTextColour(self, *_args, **_kwargs):
5a2a9da2 1150 val = windowsc.wxMenuItem_SetTextColour(self, *_args, **_kwargs)
f3d9dc1d
RD
1151 return val
1152 def GetTextColour(self, *_args, **_kwargs):
5a2a9da2 1153 val = windowsc.wxMenuItem_GetTextColour(self, *_args, **_kwargs)
25832b3f 1154 if val: val = wxColourPtr(val) ; val.thisown = 1
f3d9dc1d
RD
1155 return val
1156 def SetBackgroundColour(self, *_args, **_kwargs):
5a2a9da2 1157 val = windowsc.wxMenuItem_SetBackgroundColour(self, *_args, **_kwargs)
f3d9dc1d
RD
1158 return val
1159 def GetBackgroundColour(self, *_args, **_kwargs):
5a2a9da2 1160 val = windowsc.wxMenuItem_GetBackgroundColour(self, *_args, **_kwargs)
25832b3f 1161 if val: val = wxColourPtr(val) ; val.thisown = 1
f3d9dc1d
RD
1162 return val
1163 def SetBitmaps(self, *_args, **_kwargs):
5a2a9da2 1164 val = windowsc.wxMenuItem_SetBitmaps(self, *_args, **_kwargs)
f3d9dc1d 1165 return val
f3d9dc1d 1166 def SetMarginWidth(self, *_args, **_kwargs):
5a2a9da2 1167 val = windowsc.wxMenuItem_SetMarginWidth(self, *_args, **_kwargs)
f3d9dc1d
RD
1168 return val
1169 def GetMarginWidth(self, *_args, **_kwargs):
5a2a9da2 1170 val = windowsc.wxMenuItem_GetMarginWidth(self, *_args, **_kwargs)
f3d9dc1d
RD
1171 return val
1172 def IsOwnerDrawn(self, *_args, **_kwargs):
5a2a9da2 1173 val = windowsc.wxMenuItem_IsOwnerDrawn(self, *_args, **_kwargs)
f3d9dc1d
RD
1174 return val
1175 def ResetOwnerDrawn(self, *_args, **_kwargs):
5a2a9da2 1176 val = windowsc.wxMenuItem_ResetOwnerDrawn(self, *_args, **_kwargs)
f3d9dc1d 1177 return val
032b1ef1 1178 def SetBitmap(self, *_args, **_kwargs):
5a2a9da2 1179 val = windowsc.wxMenuItem_SetBitmap(self, *_args, **_kwargs)
032b1ef1
RD
1180 return val
1181 def GetBitmap(self, *_args, **_kwargs):
5a2a9da2 1182 val = windowsc.wxMenuItem_GetBitmap(self, *_args, **_kwargs)
032b1ef1
RD
1183 if val: val = wxBitmapPtr(val)
1184 return val
8ab979d7 1185 def __repr__(self):
5a2a9da2 1186 return "<%s.%s instance; proxy of C++ wxMenuItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
8ab979d7 1187class wxMenuItem(wxMenuItemPtr):
1d99702e 1188 def __init__(self,*_args,**_kwargs):
5a2a9da2 1189 self.this = windowsc.new_wxMenuItem(*_args,**_kwargs)
cf694132 1190 self.thisown = 1
8ab979d7
RD
1191
1192
1193
1194
1195
1196
1197#-------------- FUNCTION WRAPPERS ------------------
1198
1d99702e 1199def wxWindow_FromHWND(*_args, **_kwargs):
5a2a9da2 1200 val = windowsc.wxWindow_FromHWND(*_args,**_kwargs)
af309447
RD
1201 return val
1202
e67409dc 1203def wxFindWindowById(*_args, **_kwargs):
5a2a9da2 1204 val = windowsc.wxFindWindowById(*_args,**_kwargs)
e67409dc
RD
1205 return val
1206
1207def wxFindWindowByName(*_args, **_kwargs):
5a2a9da2 1208 val = windowsc.wxFindWindowByName(*_args,**_kwargs)
e67409dc
RD
1209 return val
1210
1211def wxFindWindowByLabel(*_args, **_kwargs):
5a2a9da2 1212 val = windowsc.wxFindWindowByLabel(*_args,**_kwargs)
e67409dc
RD
1213 return val
1214
09f3d4e6
RD
1215wxValidator_IsSilent = windowsc.wxValidator_IsSilent
1216
1217wxValidator_SetBellOnError = windowsc.wxValidator_SetBellOnError
1218
1219def wxWindow_FindFocus(*_args, **_kwargs):
5a2a9da2 1220 val = windowsc.wxWindow_FindFocus(*_args,**_kwargs)
09f3d4e6
RD
1221 return val
1222
a1df7a95
RD
1223wxWindow_NewControlId = windowsc.wxWindow_NewControlId
1224
1225wxWindow_NextControlId = windowsc.wxWindow_NextControlId
1226
1227wxWindow_PrevControlId = windowsc.wxWindow_PrevControlId
1228
6d26dc89 1229def wxWindow_GetCapture(*_args, **_kwargs):
5a2a9da2 1230 val = windowsc.wxWindow_GetCapture(*_args,**_kwargs)
6d26dc89
RD
1231 return val
1232
1b62f00d
RD
1233wxMenuItem_GetLabelFromText = windowsc.wxMenuItem_GetLabelFromText
1234
f3d9dc1d
RD
1235wxMenuItem_GetDefaultMarginWidth = windowsc.wxMenuItem_GetDefaultMarginWidth
1236
8ab979d7
RD
1237
1238
1239#-------------- VARIABLE WRAPPERS ------------------
1240