]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/msw/controls2.py
Compilation fixes
[wxWidgets.git] / utils / wxPython / src / msw / controls2.py
CommitLineData
8ab979d7
RD
1# This file was created automatically by SWIG.
2import controls2c
3
4from misc import *
5
6from windows import *
7
8from gdi import *
9
b1462dfa
RD
10from clip_dnd import *
11
8ab979d7
RD
12from events import *
13
14from controls import *
b8b8dda7 15import wx
8ab979d7
RD
16class wxListItemPtr :
17 def __init__(self,this):
18 self.this = this
19 self.thisown = 0
1d99702e 20 def __del__(self,controls2c=controls2c):
8ab979d7 21 if self.thisown == 1 :
1d99702e 22 controls2c.delete_wxListItem(self)
8ab979d7
RD
23 def __setattr__(self,name,value):
24 if name == "m_mask" :
1d99702e 25 controls2c.wxListItem_m_mask_set(self,value)
8ab979d7
RD
26 return
27 if name == "m_itemId" :
1d99702e 28 controls2c.wxListItem_m_itemId_set(self,value)
8ab979d7
RD
29 return
30 if name == "m_col" :
1d99702e 31 controls2c.wxListItem_m_col_set(self,value)
8ab979d7
RD
32 return
33 if name == "m_state" :
1d99702e 34 controls2c.wxListItem_m_state_set(self,value)
8ab979d7
RD
35 return
36 if name == "m_stateMask" :
1d99702e 37 controls2c.wxListItem_m_stateMask_set(self,value)
8ab979d7
RD
38 return
39 if name == "m_text" :
1d99702e 40 controls2c.wxListItem_m_text_set(self,value)
8ab979d7
RD
41 return
42 if name == "m_image" :
1d99702e 43 controls2c.wxListItem_m_image_set(self,value)
8ab979d7
RD
44 return
45 if name == "m_data" :
1d99702e 46 controls2c.wxListItem_m_data_set(self,value)
8ab979d7
RD
47 return
48 if name == "m_format" :
1d99702e 49 controls2c.wxListItem_m_format_set(self,value)
8ab979d7
RD
50 return
51 if name == "m_width" :
1d99702e 52 controls2c.wxListItem_m_width_set(self,value)
8ab979d7
RD
53 return
54 self.__dict__[name] = value
55 def __getattr__(self,name):
56 if name == "m_mask" :
1d99702e 57 return controls2c.wxListItem_m_mask_get(self)
8ab979d7 58 if name == "m_itemId" :
1d99702e 59 return controls2c.wxListItem_m_itemId_get(self)
8ab979d7 60 if name == "m_col" :
1d99702e 61 return controls2c.wxListItem_m_col_get(self)
8ab979d7 62 if name == "m_state" :
1d99702e 63 return controls2c.wxListItem_m_state_get(self)
8ab979d7 64 if name == "m_stateMask" :
1d99702e 65 return controls2c.wxListItem_m_stateMask_get(self)
8ab979d7 66 if name == "m_text" :
1d99702e 67 return controls2c.wxListItem_m_text_get(self)
8ab979d7 68 if name == "m_image" :
1d99702e 69 return controls2c.wxListItem_m_image_get(self)
8ab979d7 70 if name == "m_data" :
1d99702e 71 return controls2c.wxListItem_m_data_get(self)
8ab979d7 72 if name == "m_format" :
1d99702e 73 return controls2c.wxListItem_m_format_get(self)
8ab979d7 74 if name == "m_width" :
1d99702e 75 return controls2c.wxListItem_m_width_get(self)
8ab979d7
RD
76 raise AttributeError,name
77 def __repr__(self):
1d99702e 78 return "<C wxListItem instance at %s>" % (self.this,)
8ab979d7 79class wxListItem(wxListItemPtr):
1d99702e
RD
80 def __init__(self,*_args,**_kwargs):
81 self.this = apply(controls2c.new_wxListItem,_args,_kwargs)
8ab979d7
RD
82 self.thisown = 1
83
84
85
86
87class wxListEventPtr(wxCommandEventPtr):
88 def __init__(self,this):
89 self.this = this
90 self.thisown = 0
91 def __setattr__(self,name,value):
92 if name == "m_code" :
1d99702e 93 controls2c.wxListEvent_m_code_set(self,value)
8ab979d7
RD
94 return
95 if name == "m_itemIndex" :
1d99702e 96 controls2c.wxListEvent_m_itemIndex_set(self,value)
8ab979d7
RD
97 return
98 if name == "m_oldItemIndex" :
1d99702e 99 controls2c.wxListEvent_m_oldItemIndex_set(self,value)
8ab979d7
RD
100 return
101 if name == "m_col" :
1d99702e 102 controls2c.wxListEvent_m_col_set(self,value)
8ab979d7
RD
103 return
104 if name == "m_cancelled" :
1d99702e 105 controls2c.wxListEvent_m_cancelled_set(self,value)
8ab979d7
RD
106 return
107 if name == "m_pointDrag" :
1d99702e 108 controls2c.wxListEvent_m_pointDrag_set(self,value.this)
8ab979d7
RD
109 return
110 if name == "m_item" :
1d99702e 111 controls2c.wxListEvent_m_item_set(self,value.this)
8ab979d7
RD
112 return
113 self.__dict__[name] = value
114 def __getattr__(self,name):
115 if name == "m_code" :
1d99702e 116 return controls2c.wxListEvent_m_code_get(self)
8ab979d7 117 if name == "m_itemIndex" :
1d99702e 118 return controls2c.wxListEvent_m_itemIndex_get(self)
8ab979d7 119 if name == "m_oldItemIndex" :
1d99702e 120 return controls2c.wxListEvent_m_oldItemIndex_get(self)
8ab979d7 121 if name == "m_col" :
1d99702e 122 return controls2c.wxListEvent_m_col_get(self)
8ab979d7 123 if name == "m_cancelled" :
1d99702e 124 return controls2c.wxListEvent_m_cancelled_get(self)
8ab979d7 125 if name == "m_pointDrag" :
1d99702e 126 return wxPointPtr(controls2c.wxListEvent_m_pointDrag_get(self))
8ab979d7 127 if name == "m_item" :
1d99702e 128 return wxListItemPtr(controls2c.wxListEvent_m_item_get(self))
8ab979d7
RD
129 raise AttributeError,name
130 def __repr__(self):
1d99702e 131 return "<C wxListEvent instance at %s>" % (self.this,)
8ab979d7
RD
132class wxListEvent(wxListEventPtr):
133 def __init__(self,this):
134 self.this = this
135
136
137
138
139class wxListCtrlPtr(wxControlPtr):
140 def __init__(self,this):
141 self.this = this
142 self.thisown = 0
1d99702e
RD
143 def Arrange(self, *_args, **_kwargs):
144 val = apply(controls2c.wxListCtrl_Arrange,(self,) + _args, _kwargs)
8ab979d7 145 return val
1d99702e
RD
146 def DeleteItem(self, *_args, **_kwargs):
147 val = apply(controls2c.wxListCtrl_DeleteItem,(self,) + _args, _kwargs)
8ab979d7 148 return val
1d99702e
RD
149 def DeleteAllItems(self, *_args, **_kwargs):
150 val = apply(controls2c.wxListCtrl_DeleteAllItems,(self,) + _args, _kwargs)
8ab979d7 151 return val
1d99702e
RD
152 def DeleteColumn(self, *_args, **_kwargs):
153 val = apply(controls2c.wxListCtrl_DeleteColumn,(self,) + _args, _kwargs)
8ab979d7 154 return val
1d99702e
RD
155 def DeleteAllColumns(self, *_args, **_kwargs):
156 val = apply(controls2c.wxListCtrl_DeleteAllColumns,(self,) + _args, _kwargs)
8ab979d7 157 return val
1d99702e
RD
158 def ClearAll(self, *_args, **_kwargs):
159 val = apply(controls2c.wxListCtrl_ClearAll,(self,) + _args, _kwargs)
8ab979d7 160 return val
1d99702e
RD
161 def EditLabel(self, *_args, **_kwargs):
162 val = apply(controls2c.wxListCtrl_EditLabel,(self,) + _args, _kwargs)
163 if val: val = wxTextCtrlPtr(val)
8ab979d7 164 return val
1d99702e
RD
165 def EndEditLabel(self, *_args, **_kwargs):
166 val = apply(controls2c.wxListCtrl_EndEditLabel,(self,) + _args, _kwargs)
8ab979d7 167 return val
1d99702e
RD
168 def GetEditControl(self, *_args, **_kwargs):
169 val = apply(controls2c.wxListCtrl_GetEditControl,(self,) + _args, _kwargs)
170 if val: val = wxTextCtrlPtr(val)
be4d9c1f 171 return val
1d99702e
RD
172 def EnsureVisible(self, *_args, **_kwargs):
173 val = apply(controls2c.wxListCtrl_EnsureVisible,(self,) + _args, _kwargs)
8ab979d7 174 return val
1d99702e
RD
175 def FindItem(self, *_args, **_kwargs):
176 val = apply(controls2c.wxListCtrl_FindItem,(self,) + _args, _kwargs)
8ab979d7 177 return val
1d99702e
RD
178 def FindItemData(self, *_args, **_kwargs):
179 val = apply(controls2c.wxListCtrl_FindItemData,(self,) + _args, _kwargs)
8ab979d7 180 return val
1d99702e
RD
181 def FindItemAtPos(self, *_args, **_kwargs):
182 val = apply(controls2c.wxListCtrl_FindItemAtPos,(self,) + _args, _kwargs)
8ab979d7 183 return val
1d99702e
RD
184 def GetColumn(self, *_args, **_kwargs):
185 val = apply(controls2c.wxListCtrl_GetColumn,(self,) + _args, _kwargs)
8ab979d7 186 return val
1d99702e
RD
187 def GetColumnWidth(self, *_args, **_kwargs):
188 val = apply(controls2c.wxListCtrl_GetColumnWidth,(self,) + _args, _kwargs)
8ab979d7 189 return val
1d99702e
RD
190 def GetCountPerPage(self, *_args, **_kwargs):
191 val = apply(controls2c.wxListCtrl_GetCountPerPage,(self,) + _args, _kwargs)
8ab979d7 192 return val
1d99702e
RD
193 def GetImageList(self, *_args, **_kwargs):
194 val = apply(controls2c.wxListCtrl_GetImageList,(self,) + _args, _kwargs)
195 if val: val = wxImageListPtr(val)
8ab979d7 196 return val
1d99702e
RD
197 def GetItemData(self, *_args, **_kwargs):
198 val = apply(controls2c.wxListCtrl_GetItemData,(self,) + _args, _kwargs)
8ab979d7 199 return val
1d99702e
RD
200 def GetItem(self, *_args, **_kwargs):
201 val = apply(controls2c.wxListCtrl_GetItem,(self,) + _args, _kwargs)
202 if val: val = wxListItemPtr(val) ; val.thisown = 1
8ab979d7 203 return val
1d99702e
RD
204 def GetItemPosition(self, *_args, **_kwargs):
205 val = apply(controls2c.wxListCtrl_GetItemPosition,(self,) + _args, _kwargs)
206 if val: val = wxPointPtr(val) ; val.thisown = 1
8ab979d7 207 return val
1d99702e
RD
208 def GetItemRect(self, *_args, **_kwargs):
209 val = apply(controls2c.wxListCtrl_GetItemRect,(self,) + _args, _kwargs)
210 if val: val = wxRectPtr(val) ; val.thisown = 1
8ab979d7 211 return val
1d99702e
RD
212 def GetItemState(self, *_args, **_kwargs):
213 val = apply(controls2c.wxListCtrl_GetItemState,(self,) + _args, _kwargs)
8ab979d7 214 return val
1d99702e
RD
215 def GetItemCount(self, *_args, **_kwargs):
216 val = apply(controls2c.wxListCtrl_GetItemCount,(self,) + _args, _kwargs)
8ab979d7 217 return val
1d99702e
RD
218 def GetItemSpacing(self, *_args, **_kwargs):
219 val = apply(controls2c.wxListCtrl_GetItemSpacing,(self,) + _args, _kwargs)
8ab979d7 220 return val
1d99702e
RD
221 def GetItemText(self, *_args, **_kwargs):
222 val = apply(controls2c.wxListCtrl_GetItemText,(self,) + _args, _kwargs)
8ab979d7 223 return val
1d99702e
RD
224 def GetNextItem(self, *_args, **_kwargs):
225 val = apply(controls2c.wxListCtrl_GetNextItem,(self,) + _args, _kwargs)
8ab979d7 226 return val
1d99702e
RD
227 def GetSelectedItemCount(self, *_args, **_kwargs):
228 val = apply(controls2c.wxListCtrl_GetSelectedItemCount,(self,) + _args, _kwargs)
8ab979d7 229 return val
1d99702e
RD
230 def GetTextColour(self, *_args, **_kwargs):
231 val = apply(controls2c.wxListCtrl_GetTextColour,(self,) + _args, _kwargs)
232 if val: val = wxColourPtr(val) ; val.thisown = 1
8ab979d7 233 return val
1d99702e
RD
234 def SetTextColour(self, *_args, **_kwargs):
235 val = apply(controls2c.wxListCtrl_SetTextColour,(self,) + _args, _kwargs)
be4d9c1f 236 return val
1d99702e
RD
237 def GetTopItem(self, *_args, **_kwargs):
238 val = apply(controls2c.wxListCtrl_GetTopItem,(self,) + _args, _kwargs)
8ab979d7 239 return val
1d99702e
RD
240 def HitTest(self, *_args, **_kwargs):
241 val = apply(controls2c.wxListCtrl_HitTest,(self,) + _args, _kwargs)
8ab979d7 242 return val
1d99702e
RD
243 def InsertColumnWith(self, *_args, **_kwargs):
244 val = apply(controls2c.wxListCtrl_InsertColumnWith,(self,) + _args, _kwargs)
8ab979d7 245 return val
1d99702e
RD
246 def InsertColumn(self, *_args, **_kwargs):
247 val = apply(controls2c.wxListCtrl_InsertColumn,(self,) + _args, _kwargs)
8ab979d7 248 return val
1d99702e
RD
249 def InsertItem(self, *_args, **_kwargs):
250 val = apply(controls2c.wxListCtrl_InsertItem,(self,) + _args, _kwargs)
8ab979d7 251 return val
1d99702e
RD
252 def InsertStringItem(self, *_args, **_kwargs):
253 val = apply(controls2c.wxListCtrl_InsertStringItem,(self,) + _args, _kwargs)
8ab979d7 254 return val
1d99702e
RD
255 def InsertImageItem(self, *_args, **_kwargs):
256 val = apply(controls2c.wxListCtrl_InsertImageItem,(self,) + _args, _kwargs)
8ab979d7 257 return val
1d99702e
RD
258 def InsertImageStringItem(self, *_args, **_kwargs):
259 val = apply(controls2c.wxListCtrl_InsertImageStringItem,(self,) + _args, _kwargs)
8ab979d7 260 return val
1d99702e
RD
261 def ScrollList(self, *_args, **_kwargs):
262 val = apply(controls2c.wxListCtrl_ScrollList,(self,) + _args, _kwargs)
8ab979d7 263 return val
1d99702e
RD
264 def SetBackgroundColour(self, *_args, **_kwargs):
265 val = apply(controls2c.wxListCtrl_SetBackgroundColour,(self,) + _args, _kwargs)
8ab979d7 266 return val
1d99702e
RD
267 def SetColumn(self, *_args, **_kwargs):
268 val = apply(controls2c.wxListCtrl_SetColumn,(self,) + _args, _kwargs)
8ab979d7 269 return val
1d99702e
RD
270 def SetColumnWidth(self, *_args, **_kwargs):
271 val = apply(controls2c.wxListCtrl_SetColumnWidth,(self,) + _args, _kwargs)
8ab979d7 272 return val
1d99702e
RD
273 def SetImageList(self, *_args, **_kwargs):
274 val = apply(controls2c.wxListCtrl_SetImageList,(self,) + _args, _kwargs)
8ab979d7 275 return val
1d99702e
RD
276 def SetItem(self, *_args, **_kwargs):
277 val = apply(controls2c.wxListCtrl_SetItem,(self,) + _args, _kwargs)
8ab979d7 278 return val
1d99702e
RD
279 def SetStringItem(self, *_args, **_kwargs):
280 val = apply(controls2c.wxListCtrl_SetStringItem,(self,) + _args, _kwargs)
8ab979d7 281 return val
1d99702e
RD
282 def SetItemData(self, *_args, **_kwargs):
283 val = apply(controls2c.wxListCtrl_SetItemData,(self,) + _args, _kwargs)
8ab979d7 284 return val
1d99702e
RD
285 def SetItemImage(self, *_args, **_kwargs):
286 val = apply(controls2c.wxListCtrl_SetItemImage,(self,) + _args, _kwargs)
8ab979d7 287 return val
1d99702e
RD
288 def SetItemPosition(self, *_args, **_kwargs):
289 val = apply(controls2c.wxListCtrl_SetItemPosition,(self,) + _args, _kwargs)
8ab979d7 290 return val
1d99702e
RD
291 def SetItemState(self, *_args, **_kwargs):
292 val = apply(controls2c.wxListCtrl_SetItemState,(self,) + _args, _kwargs)
8ab979d7 293 return val
1d99702e
RD
294 def SetItemText(self, *_args, **_kwargs):
295 val = apply(controls2c.wxListCtrl_SetItemText,(self,) + _args, _kwargs)
8ab979d7 296 return val
1d99702e
RD
297 def SetSingleStyle(self, *_args, **_kwargs):
298 val = apply(controls2c.wxListCtrl_SetSingleStyle,(self,) + _args, _kwargs)
8ab979d7 299 return val
1d99702e
RD
300 def SetWindowStyleFlag(self, *_args, **_kwargs):
301 val = apply(controls2c.wxListCtrl_SetWindowStyleFlag,(self,) + _args, _kwargs)
8ab979d7
RD
302 return val
303 def __repr__(self):
1d99702e 304 return "<C wxListCtrl instance at %s>" % (self.this,)
8ab979d7 305class wxListCtrl(wxListCtrlPtr):
1d99702e
RD
306 def __init__(self,*_args,**_kwargs):
307 self.this = apply(controls2c.new_wxListCtrl,_args,_kwargs)
8ab979d7 308 self.thisown = 1
b8b8dda7 309 wx._StdWindowCallbacks(self)
8ab979d7
RD
310
311
312
313
d5c9047a 314class wxTreeItemIdPtr :
8ab979d7
RD
315 def __init__(self,this):
316 self.this = this
317 self.thisown = 0
1d99702e 318 def __del__(self,controls2c=controls2c):
8ab979d7 319 if self.thisown == 1 :
1d99702e
RD
320 controls2c.delete_wxTreeItemId(self)
321 def IsOk(self, *_args, **_kwargs):
322 val = apply(controls2c.wxTreeItemId_IsOk,(self,) + _args, _kwargs)
d5c9047a 323 return val
d5c9047a 324 def __repr__(self):
1d99702e 325 return "<C wxTreeItemId instance at %s>" % (self.this,)
d5c9047a 326class wxTreeItemId(wxTreeItemIdPtr):
1d99702e
RD
327 def __init__(self,*_args,**_kwargs):
328 self.this = apply(controls2c.new_wxTreeItemId,_args,_kwargs)
d5c9047a
RD
329 self.thisown = 1
330
331
332
333
334class wxTreeItemDataPtr :
335 def __init__(self,this):
336 self.this = this
337 self.thisown = 0
1d99702e
RD
338 def GetData(self, *_args, **_kwargs):
339 val = apply(controls2c.wxTreeItemData_GetData,(self,) + _args, _kwargs)
cf694132 340 return val
1d99702e
RD
341 def SetData(self, *_args, **_kwargs):
342 val = apply(controls2c.wxTreeItemData_SetData,(self,) + _args, _kwargs)
cf694132 343 return val
1d99702e
RD
344 def GetId(self, *_args, **_kwargs):
345 val = apply(controls2c.wxTreeItemData_GetId,(self,) + _args, _kwargs)
346 if val: val = wxTreeItemIdPtr(val)
d5c9047a 347 return val
1d99702e
RD
348 def SetId(self, *_args, **_kwargs):
349 val = apply(controls2c.wxTreeItemData_SetId,(self,) + _args, _kwargs)
630d84f2 350 return val
8ab979d7 351 def __repr__(self):
1d99702e 352 return "<C wxTreeItemData instance at %s>" % (self.this,)
d5c9047a 353class wxTreeItemData(wxTreeItemDataPtr):
1d99702e
RD
354 def __init__(self,*_args,**_kwargs):
355 self.this = apply(controls2c.new_wxTreeItemData,_args,_kwargs)
8ab979d7
RD
356 self.thisown = 1
357
358
359
360
8bf5d46e 361class wxTreeEventPtr(wxNotifyEventPtr):
8ab979d7
RD
362 def __init__(self,this):
363 self.this = this
364 self.thisown = 0
1d99702e
RD
365 def GetItem(self, *_args, **_kwargs):
366 val = apply(controls2c.wxTreeEvent_GetItem,(self,) + _args, _kwargs)
367 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
d5c9047a 368 return val
1d99702e
RD
369 def GetOldItem(self, *_args, **_kwargs):
370 val = apply(controls2c.wxTreeEvent_GetOldItem,(self,) + _args, _kwargs)
371 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
d5c9047a 372 return val
1d99702e
RD
373 def GetPoint(self, *_args, **_kwargs):
374 val = apply(controls2c.wxTreeEvent_GetPoint,(self,) + _args, _kwargs)
375 if val: val = wxPointPtr(val) ; val.thisown = 1
d5c9047a 376 return val
1d99702e
RD
377 def GetCode(self, *_args, **_kwargs):
378 val = apply(controls2c.wxTreeEvent_GetCode,(self,) + _args, _kwargs)
d5c9047a 379 return val
1d99702e
RD
380 def GetLabel(self, *_args, **_kwargs):
381 val = apply(controls2c.wxTreeEvent_GetLabel,(self,) + _args, _kwargs)
d5c9047a 382 return val
8ab979d7 383 def __repr__(self):
1d99702e 384 return "<C wxTreeEvent instance at %s>" % (self.this,)
8ab979d7
RD
385class wxTreeEvent(wxTreeEventPtr):
386 def __init__(self,this):
387 self.this = this
388
389
390
391
392class wxTreeCtrlPtr(wxControlPtr):
393 def __init__(self,this):
394 self.this = this
395 self.thisown = 0
1d99702e
RD
396 def GetCount(self, *_args, **_kwargs):
397 val = apply(controls2c.wxTreeCtrl_GetCount,(self,) + _args, _kwargs)
8ab979d7 398 return val
1d99702e
RD
399 def GetIndent(self, *_args, **_kwargs):
400 val = apply(controls2c.wxTreeCtrl_GetIndent,(self,) + _args, _kwargs)
8ab979d7 401 return val
1d99702e
RD
402 def SetIndent(self, *_args, **_kwargs):
403 val = apply(controls2c.wxTreeCtrl_SetIndent,(self,) + _args, _kwargs)
8ab979d7 404 return val
1d99702e
RD
405 def GetImageList(self, *_args, **_kwargs):
406 val = apply(controls2c.wxTreeCtrl_GetImageList,(self,) + _args, _kwargs)
407 if val: val = wxImageListPtr(val)
8ab979d7 408 return val
1d99702e
RD
409 def GetStateImageList(self, *_args, **_kwargs):
410 val = apply(controls2c.wxTreeCtrl_GetStateImageList,(self,) + _args, _kwargs)
411 if val: val = wxImageListPtr(val)
8ab979d7 412 return val
1d99702e
RD
413 def SetImageList(self, *_args, **_kwargs):
414 val = apply(controls2c.wxTreeCtrl_SetImageList,(self,) + _args, _kwargs)
8ab979d7 415 return val
1d99702e
RD
416 def SetStateImageList(self, *_args, **_kwargs):
417 val = apply(controls2c.wxTreeCtrl_SetStateImageList,(self,) + _args, _kwargs)
8ab979d7 418 return val
b1462dfa
RD
419 def GetSpacing(self, *_args, **_kwargs):
420 val = apply(controls2c.wxTreeCtrl_GetSpacing,(self,) + _args, _kwargs)
421 return val
422 def SetSpacing(self, *_args, **_kwargs):
423 val = apply(controls2c.wxTreeCtrl_SetSpacing,(self,) + _args, _kwargs)
424 return val
1d99702e
RD
425 def GetItemText(self, *_args, **_kwargs):
426 val = apply(controls2c.wxTreeCtrl_GetItemText,(self,) + _args, _kwargs)
8ab979d7 427 return val
1d99702e
RD
428 def GetItemImage(self, *_args, **_kwargs):
429 val = apply(controls2c.wxTreeCtrl_GetItemImage,(self,) + _args, _kwargs)
8ab979d7 430 return val
1d99702e
RD
431 def GetItemSelectedImage(self, *_args, **_kwargs):
432 val = apply(controls2c.wxTreeCtrl_GetItemSelectedImage,(self,) + _args, _kwargs)
8ab979d7 433 return val
1d99702e
RD
434 def SetItemText(self, *_args, **_kwargs):
435 val = apply(controls2c.wxTreeCtrl_SetItemText,(self,) + _args, _kwargs)
8ab979d7 436 return val
1d99702e
RD
437 def SetItemImage(self, *_args, **_kwargs):
438 val = apply(controls2c.wxTreeCtrl_SetItemImage,(self,) + _args, _kwargs)
8ab979d7 439 return val
1d99702e
RD
440 def SetItemSelectedImage(self, *_args, **_kwargs):
441 val = apply(controls2c.wxTreeCtrl_SetItemSelectedImage,(self,) + _args, _kwargs)
8ab979d7 442 return val
1d99702e
RD
443 def SetItemHasChildren(self, *_args, **_kwargs):
444 val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self,) + _args, _kwargs)
cf694132 445 return val
1d99702e
RD
446 def GetItemData(self, *_args, **_kwargs):
447 val = apply(controls2c.wxTreeCtrl_GetItemData,(self,) + _args, _kwargs)
448 if val: val = wxTreeItemDataPtr(val)
cf694132 449 return val
1d99702e
RD
450 def SetItemData(self, *_args, **_kwargs):
451 val = apply(controls2c.wxTreeCtrl_SetItemData,(self,) + _args, _kwargs)
d5c9047a 452 return val
1d99702e
RD
453 def GetPyData(self, *_args, **_kwargs):
454 val = apply(controls2c.wxTreeCtrl_GetPyData,(self,) + _args, _kwargs)
cf694132 455 return val
1d99702e
RD
456 def SetPyData(self, *_args, **_kwargs):
457 val = apply(controls2c.wxTreeCtrl_SetPyData,(self,) + _args, _kwargs)
08127323 458 return val
1d99702e
RD
459 def IsVisible(self, *_args, **_kwargs):
460 val = apply(controls2c.wxTreeCtrl_IsVisible,(self,) + _args, _kwargs)
8ab979d7 461 return val
1d99702e
RD
462 def ItemHasChildren(self, *_args, **_kwargs):
463 val = apply(controls2c.wxTreeCtrl_ItemHasChildren,(self,) + _args, _kwargs)
8ab979d7 464 return val
1d99702e
RD
465 def IsExpanded(self, *_args, **_kwargs):
466 val = apply(controls2c.wxTreeCtrl_IsExpanded,(self,) + _args, _kwargs)
8ab979d7 467 return val
1d99702e
RD
468 def IsSelected(self, *_args, **_kwargs):
469 val = apply(controls2c.wxTreeCtrl_IsSelected,(self,) + _args, _kwargs)
8ab979d7 470 return val
1d99702e
RD
471 def GetRootItem(self, *_args, **_kwargs):
472 val = apply(controls2c.wxTreeCtrl_GetRootItem,(self,) + _args, _kwargs)
473 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
8ab979d7 474 return val
1d99702e
RD
475 def GetSelection(self, *_args, **_kwargs):
476 val = apply(controls2c.wxTreeCtrl_GetSelection,(self,) + _args, _kwargs)
477 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
8ab979d7 478 return val
eb715945
RD
479 def GetItemParent(self, *_args, **_kwargs):
480 val = apply(controls2c.wxTreeCtrl_GetItemParent,(self,) + _args, _kwargs)
1d99702e 481 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
8ab979d7 482 return val
d426c97e
RD
483 def GetSelections(self, *_args, **_kwargs):
484 val = apply(controls2c.wxTreeCtrl_GetSelections,(self,) + _args, _kwargs)
485 return val
1d99702e
RD
486 def GetChildrenCount(self, *_args, **_kwargs):
487 val = apply(controls2c.wxTreeCtrl_GetChildrenCount,(self,) + _args, _kwargs)
bb0054cd 488 return val
1d99702e
RD
489 def GetFirstChild(self, *_args, **_kwargs):
490 val = apply(controls2c.wxTreeCtrl_GetFirstChild,(self,) + _args, _kwargs)
8ab979d7 491 return val
1d99702e
RD
492 def GetNextChild(self, *_args, **_kwargs):
493 val = apply(controls2c.wxTreeCtrl_GetNextChild,(self,) + _args, _kwargs)
494 return val
495 def GetNextSibling(self, *_args, **_kwargs):
496 val = apply(controls2c.wxTreeCtrl_GetNextSibling,(self,) + _args, _kwargs)
497 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
498 return val
499 def GetPrevSibling(self, *_args, **_kwargs):
500 val = apply(controls2c.wxTreeCtrl_GetPrevSibling,(self,) + _args, _kwargs)
501 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
502 return val
503 def GetFirstVisibleItem(self, *_args, **_kwargs):
504 val = apply(controls2c.wxTreeCtrl_GetFirstVisibleItem,(self,) + _args, _kwargs)
505 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
506 return val
507 def GetNextVisible(self, *_args, **_kwargs):
508 val = apply(controls2c.wxTreeCtrl_GetNextVisible,(self,) + _args, _kwargs)
509 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
510 return val
511 def GetPrevVisible(self, *_args, **_kwargs):
512 val = apply(controls2c.wxTreeCtrl_GetPrevVisible,(self,) + _args, _kwargs)
513 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
514 return val
d426c97e
RD
515 def GetLastChild(self, *_args, **_kwargs):
516 val = apply(controls2c.wxTreeCtrl_GetLastChild,(self,) + _args, _kwargs)
517 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
518 return val
1d99702e
RD
519 def AddRoot(self, *_args, **_kwargs):
520 val = apply(controls2c.wxTreeCtrl_AddRoot,(self,) + _args, _kwargs)
521 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
522 return val
523 def PrependItem(self, *_args, **_kwargs):
524 val = apply(controls2c.wxTreeCtrl_PrependItem,(self,) + _args, _kwargs)
525 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
526 return val
527 def InsertItem(self, *_args, **_kwargs):
528 val = apply(controls2c.wxTreeCtrl_InsertItem,(self,) + _args, _kwargs)
529 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
530 return val
531 def AppendItem(self, *_args, **_kwargs):
532 val = apply(controls2c.wxTreeCtrl_AppendItem,(self,) + _args, _kwargs)
533 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
534 return val
535 def Delete(self, *_args, **_kwargs):
536 val = apply(controls2c.wxTreeCtrl_Delete,(self,) + _args, _kwargs)
537 return val
538 def DeleteChildren(self, *_args, **_kwargs):
539 val = apply(controls2c.wxTreeCtrl_DeleteChildren,(self,) + _args, _kwargs)
540 return val
541 def DeleteAllItems(self, *_args, **_kwargs):
542 val = apply(controls2c.wxTreeCtrl_DeleteAllItems,(self,) + _args, _kwargs)
543 return val
544 def Expand(self, *_args, **_kwargs):
545 val = apply(controls2c.wxTreeCtrl_Expand,(self,) + _args, _kwargs)
546 return val
547 def Collapse(self, *_args, **_kwargs):
548 val = apply(controls2c.wxTreeCtrl_Collapse,(self,) + _args, _kwargs)
549 return val
550 def CollapseAndReset(self, *_args, **_kwargs):
551 val = apply(controls2c.wxTreeCtrl_CollapseAndReset,(self,) + _args, _kwargs)
552 return val
553 def Toggle(self, *_args, **_kwargs):
554 val = apply(controls2c.wxTreeCtrl_Toggle,(self,) + _args, _kwargs)
555 return val
556 def Unselect(self, *_args, **_kwargs):
557 val = apply(controls2c.wxTreeCtrl_Unselect,(self,) + _args, _kwargs)
558 return val
559 def UnselectAll(self, *_args, **_kwargs):
560 val = apply(controls2c.wxTreeCtrl_UnselectAll,(self,) + _args, _kwargs)
561 return val
562 def SelectItem(self, *_args, **_kwargs):
563 val = apply(controls2c.wxTreeCtrl_SelectItem,(self,) + _args, _kwargs)
564 return val
565 def EnsureVisible(self, *_args, **_kwargs):
566 val = apply(controls2c.wxTreeCtrl_EnsureVisible,(self,) + _args, _kwargs)
567 return val
568 def ScrollTo(self, *_args, **_kwargs):
569 val = apply(controls2c.wxTreeCtrl_ScrollTo,(self,) + _args, _kwargs)
570 return val
571 def EditLabel(self, *_args, **_kwargs):
572 val = apply(controls2c.wxTreeCtrl_EditLabel,(self,) + _args, _kwargs)
573 if val: val = wxTextCtrlPtr(val)
574 return val
575 def GetEditControl(self, *_args, **_kwargs):
576 val = apply(controls2c.wxTreeCtrl_GetEditControl,(self,) + _args, _kwargs)
577 if val: val = wxTextCtrlPtr(val)
578 return val
579 def EndEditLabel(self, *_args, **_kwargs):
580 val = apply(controls2c.wxTreeCtrl_EndEditLabel,(self,) + _args, _kwargs)
581 return val
d426c97e
RD
582 def SortChildren(self, *_args, **_kwargs):
583 val = apply(controls2c.wxTreeCtrl_SortChildren,(self,) + _args, _kwargs)
584 return val
1d99702e
RD
585 def SetItemBold(self, *_args, **_kwargs):
586 val = apply(controls2c.wxTreeCtrl_SetItemBold,(self,) + _args, _kwargs)
587 return val
588 def IsBold(self, *_args, **_kwargs):
589 val = apply(controls2c.wxTreeCtrl_IsBold,(self,) + _args, _kwargs)
590 return val
591 def HitTest(self, *_args, **_kwargs):
592 val = apply(controls2c.wxTreeCtrl_HitTest,(self,) + _args, _kwargs)
b8b8dda7 593 return val
b7e72427
RD
594 def SetItemTextColour(self, *_args, **_kwargs):
595 val = apply(controls2c.wxTreeCtrl_SetItemTextColour,(self,) + _args, _kwargs)
596 return val
597 def SetItemBackgroundColour(self, *_args, **_kwargs):
598 val = apply(controls2c.wxTreeCtrl_SetItemBackgroundColour,(self,) + _args, _kwargs)
599 return val
600 def SetItemFont(self, *_args, **_kwargs):
601 val = apply(controls2c.wxTreeCtrl_SetItemFont,(self,) + _args, _kwargs)
602 return val
b1462dfa
RD
603 def SetItemDropHighlight(self, *_args, **_kwargs):
604 val = apply(controls2c.wxTreeCtrl_SetItemDropHighlight,(self,) + _args, _kwargs)
605 return val
d426c97e
RD
606 def GetBoundingRect(self, *_args, **_kwargs):
607 val = apply(controls2c.wxTreeCtrl_GetBoundingRect,(self,) + _args, _kwargs)
608 return val
8ab979d7 609 def __repr__(self):
1d99702e 610 return "<C wxTreeCtrl instance at %s>" % (self.this,)
c127177f
RD
611
612 # Redefine a couple methods that SWIG gets a bit confused on...
613 def GetFirstChild(self,arg0,arg1):
614 val1, val2 = controls2c.wxTreeCtrl_GetFirstChild(self.this,arg0.this,arg1)
615 val1 = wxTreeItemIdPtr(val1)
616 val1.thisown = 1
617 return (val1,val2)
618 def GetNextChild(self,arg0,arg1):
bb0054cd 619 val1, val2 = controls2c.wxTreeCtrl_GetNextChild(self.this,arg0.this,arg1)
c127177f
RD
620 val1 = wxTreeItemIdPtr(val1)
621 val1.thisown = 1
622 return (val1,val2)
623
8ab979d7 624class wxTreeCtrl(wxTreeCtrlPtr):
1d99702e
RD
625 def __init__(self,*_args,**_kwargs):
626 self.this = apply(controls2c.new_wxTreeCtrl,_args,_kwargs)
8ab979d7 627 self.thisown = 1
b8b8dda7 628 wx._StdWindowCallbacks(self)
8ab979d7
RD
629
630
631
632
633
634
635#-------------- FUNCTION WRAPPERS ------------------
636
637
638
639#-------------- VARIABLE WRAPPERS ------------------
640
af309447
RD
641wxLIST_MASK_TEXT = controls2c.wxLIST_MASK_TEXT
642wxLIST_MASK_IMAGE = controls2c.wxLIST_MASK_IMAGE
643wxLIST_MASK_DATA = controls2c.wxLIST_MASK_DATA
644wxLIST_MASK_WIDTH = controls2c.wxLIST_MASK_WIDTH
645wxLIST_MASK_FORMAT = controls2c.wxLIST_MASK_FORMAT
bb0054cd 646wxLIST_MASK_STATE = controls2c.wxLIST_MASK_STATE
af309447
RD
647wxLIST_STATE_DONTCARE = controls2c.wxLIST_STATE_DONTCARE
648wxLIST_STATE_DROPHILITED = controls2c.wxLIST_STATE_DROPHILITED
649wxLIST_STATE_FOCUSED = controls2c.wxLIST_STATE_FOCUSED
650wxLIST_STATE_SELECTED = controls2c.wxLIST_STATE_SELECTED
651wxLIST_STATE_CUT = controls2c.wxLIST_STATE_CUT
652wxLIST_HITTEST_ABOVE = controls2c.wxLIST_HITTEST_ABOVE
653wxLIST_HITTEST_BELOW = controls2c.wxLIST_HITTEST_BELOW
654wxLIST_HITTEST_NOWHERE = controls2c.wxLIST_HITTEST_NOWHERE
655wxLIST_HITTEST_ONITEMICON = controls2c.wxLIST_HITTEST_ONITEMICON
656wxLIST_HITTEST_ONITEMLABEL = controls2c.wxLIST_HITTEST_ONITEMLABEL
657wxLIST_HITTEST_ONITEMRIGHT = controls2c.wxLIST_HITTEST_ONITEMRIGHT
658wxLIST_HITTEST_ONITEMSTATEICON = controls2c.wxLIST_HITTEST_ONITEMSTATEICON
659wxLIST_HITTEST_TOLEFT = controls2c.wxLIST_HITTEST_TOLEFT
660wxLIST_HITTEST_TORIGHT = controls2c.wxLIST_HITTEST_TORIGHT
661wxLIST_HITTEST_ONITEM = controls2c.wxLIST_HITTEST_ONITEM
662wxLIST_NEXT_ABOVE = controls2c.wxLIST_NEXT_ABOVE
663wxLIST_NEXT_ALL = controls2c.wxLIST_NEXT_ALL
664wxLIST_NEXT_BELOW = controls2c.wxLIST_NEXT_BELOW
665wxLIST_NEXT_LEFT = controls2c.wxLIST_NEXT_LEFT
666wxLIST_NEXT_RIGHT = controls2c.wxLIST_NEXT_RIGHT
667wxLIST_ALIGN_DEFAULT = controls2c.wxLIST_ALIGN_DEFAULT
668wxLIST_ALIGN_LEFT = controls2c.wxLIST_ALIGN_LEFT
669wxLIST_ALIGN_TOP = controls2c.wxLIST_ALIGN_TOP
670wxLIST_ALIGN_SNAP_TO_GRID = controls2c.wxLIST_ALIGN_SNAP_TO_GRID
671wxLIST_FORMAT_LEFT = controls2c.wxLIST_FORMAT_LEFT
672wxLIST_FORMAT_RIGHT = controls2c.wxLIST_FORMAT_RIGHT
673wxLIST_FORMAT_CENTRE = controls2c.wxLIST_FORMAT_CENTRE
674wxLIST_FORMAT_CENTER = controls2c.wxLIST_FORMAT_CENTER
675wxLIST_AUTOSIZE = controls2c.wxLIST_AUTOSIZE
676wxLIST_AUTOSIZE_USEHEADER = controls2c.wxLIST_AUTOSIZE_USEHEADER
677wxLIST_RECT_BOUNDS = controls2c.wxLIST_RECT_BOUNDS
678wxLIST_RECT_ICON = controls2c.wxLIST_RECT_ICON
679wxLIST_RECT_LABEL = controls2c.wxLIST_RECT_LABEL
680wxLIST_FIND_UP = controls2c.wxLIST_FIND_UP
681wxLIST_FIND_DOWN = controls2c.wxLIST_FIND_DOWN
682wxLIST_FIND_LEFT = controls2c.wxLIST_FIND_LEFT
683wxLIST_FIND_RIGHT = controls2c.wxLIST_FIND_RIGHT
694759cf
RD
684wxTreeItemIcon_Normal = controls2c.wxTreeItemIcon_Normal
685wxTreeItemIcon_Selected = controls2c.wxTreeItemIcon_Selected
686wxTreeItemIcon_Expanded = controls2c.wxTreeItemIcon_Expanded
687wxTreeItemIcon_SelectedExpanded = controls2c.wxTreeItemIcon_SelectedExpanded
688wxTreeItemIcon_Max = controls2c.wxTreeItemIcon_Max
164b735b
RD
689wxTREE_HITTEST_ABOVE = controls2c.wxTREE_HITTEST_ABOVE
690wxTREE_HITTEST_BELOW = controls2c.wxTREE_HITTEST_BELOW
691wxTREE_HITTEST_NOWHERE = controls2c.wxTREE_HITTEST_NOWHERE
692wxTREE_HITTEST_ONITEMBUTTON = controls2c.wxTREE_HITTEST_ONITEMBUTTON
693wxTREE_HITTEST_ONITEMICON = controls2c.wxTREE_HITTEST_ONITEMICON
694wxTREE_HITTEST_ONITEMINDENT = controls2c.wxTREE_HITTEST_ONITEMINDENT
695wxTREE_HITTEST_ONITEMLABEL = controls2c.wxTREE_HITTEST_ONITEMLABEL
696wxTREE_HITTEST_ONITEMRIGHT = controls2c.wxTREE_HITTEST_ONITEMRIGHT
697wxTREE_HITTEST_ONITEMSTATEICON = controls2c.wxTREE_HITTEST_ONITEMSTATEICON
698wxTREE_HITTEST_TOLEFT = controls2c.wxTREE_HITTEST_TOLEFT
699wxTREE_HITTEST_TORIGHT = controls2c.wxTREE_HITTEST_TORIGHT
700wxTREE_HITTEST_ONITEMUPPERPART = controls2c.wxTREE_HITTEST_ONITEMUPPERPART
701wxTREE_HITTEST_ONITEMLOWERPART = controls2c.wxTREE_HITTEST_ONITEMLOWERPART
702wxTREE_HITTEST_ONITEM = controls2c.wxTREE_HITTEST_ONITEM