]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/grid.py
SWIGged updates for wxMSW
[wxWidgets.git] / wxPython / src / mac / grid.py
CommitLineData
e6056257
RD
1# This file was created automatically by SWIG.
2import gridc
3
4from misc import *
5
6from gdi import *
7
40699168
RD
8from fonts import *
9
e6056257
RD
10from windows import *
11
12from clip_dnd import *
13
14from controls import *
15
16from events import *
17import wx
18
19def EVT_GRID_CELL_LEFT_CLICK(win, fn):
20 win.Connect(-1, -1, wxEVT_GRID_CELL_LEFT_CLICK, fn)
21
22def EVT_GRID_CELL_RIGHT_CLICK(win, fn):
23 win.Connect(-1, -1, wxEVT_GRID_CELL_RIGHT_CLICK, fn)
24
25def EVT_GRID_CELL_LEFT_DCLICK(win, fn):
26 win.Connect(-1, -1, wxEVT_GRID_CELL_LEFT_DCLICK, fn)
27
28def EVT_GRID_CELL_RIGHT_DCLICK(win, fn):
29 win.Connect(-1, -1, wxEVT_GRID_CELL_RIGHT_DCLICK, fn)
30
31def EVT_GRID_LABEL_LEFT_CLICK(win, fn):
32 win.Connect(-1, -1, wxEVT_GRID_LABEL_LEFT_CLICK, fn)
33
34def EVT_GRID_LABEL_RIGHT_CLICK(win, fn):
35 win.Connect(-1, -1, wxEVT_GRID_LABEL_RIGHT_CLICK, fn)
36
37def EVT_GRID_LABEL_LEFT_DCLICK(win, fn):
38 win.Connect(-1, -1, wxEVT_GRID_LABEL_LEFT_DCLICK, fn)
39
40def EVT_GRID_LABEL_RIGHT_DCLICK(win, fn):
41 win.Connect(-1, -1, wxEVT_GRID_LABEL_RIGHT_DCLICK, fn)
42
43def EVT_GRID_ROW_SIZE(win, fn):
44 win.Connect(-1, -1, wxEVT_GRID_ROW_SIZE, fn)
45
46def EVT_GRID_COL_SIZE(win, fn):
47 win.Connect(-1, -1, wxEVT_GRID_COL_SIZE, fn)
48
49def EVT_GRID_RANGE_SELECT(win, fn):
50 win.Connect(-1, -1, wxEVT_GRID_RANGE_SELECT, fn)
51
52def EVT_GRID_CELL_CHANGE(win, fn):
53 win.Connect(-1, -1, wxEVT_GRID_CELL_CHANGE, fn)
54
55def EVT_GRID_SELECT_CELL(win, fn):
56 win.Connect(-1, -1, wxEVT_GRID_SELECT_CELL, fn)
57
58def EVT_GRID_EDITOR_SHOWN(win, fn):
59 win.Connect(-1, -1, wxEVT_GRID_EDITOR_SHOWN, fn)
60
61def EVT_GRID_EDITOR_HIDDEN(win, fn):
62 win.Connect(-1, -1, wxEVT_GRID_EDITOR_HIDDEN, fn)
63
64def EVT_GRID_EDITOR_CREATED(win, fn):
65 win.Connect(-1, -1, wxEVT_GRID_EDITOR_CREATED, fn)
66
67
68class wxGridCellRendererPtr :
69 def __init__(self,this):
70 self.this = this
71 self.thisown = 0
eb28fd47
RD
72 def _setOORInfo(self, *_args, **_kwargs):
73 val = apply(gridc.wxGridCellRenderer__setOORInfo,(self,) + _args, _kwargs)
74 return val
e6056257
RD
75 def SetParameters(self, *_args, **_kwargs):
76 val = apply(gridc.wxGridCellRenderer_SetParameters,(self,) + _args, _kwargs)
77 return val
78 def IncRef(self, *_args, **_kwargs):
79 val = apply(gridc.wxGridCellRenderer_IncRef,(self,) + _args, _kwargs)
80 return val
81 def DecRef(self, *_args, **_kwargs):
82 val = apply(gridc.wxGridCellRenderer_DecRef,(self,) + _args, _kwargs)
83 return val
84 def Draw(self, *_args, **_kwargs):
85 val = apply(gridc.wxGridCellRenderer_Draw,(self,) + _args, _kwargs)
86 return val
87 def GetBestSize(self, *_args, **_kwargs):
88 val = apply(gridc.wxGridCellRenderer_GetBestSize,(self,) + _args, _kwargs)
89 if val: val = wxSizePtr(val) ; val.thisown = 1
90 return val
91 def Clone(self, *_args, **_kwargs):
92 val = apply(gridc.wxGridCellRenderer_Clone,(self,) + _args, _kwargs)
e6056257
RD
93 return val
94 def __repr__(self):
95 return "<C wxGridCellRenderer instance at %s>" % (self.this,)
96class wxGridCellRenderer(wxGridCellRendererPtr):
97 def __init__(self,this):
98 self.this = this
99
100
101
102
103class wxPyGridCellRendererPtr(wxGridCellRendererPtr):
104 def __init__(self,this):
105 self.this = this
106 self.thisown = 0
107 def _setCallbackInfo(self, *_args, **_kwargs):
108 val = apply(gridc.wxPyGridCellRenderer__setCallbackInfo,(self,) + _args, _kwargs)
109 return val
110 def base_SetParameters(self, *_args, **_kwargs):
111 val = apply(gridc.wxPyGridCellRenderer_base_SetParameters,(self,) + _args, _kwargs)
112 return val
113 def __repr__(self):
114 return "<C wxPyGridCellRenderer instance at %s>" % (self.this,)
115class wxPyGridCellRenderer(wxPyGridCellRendererPtr):
116 def __init__(self,*_args,**_kwargs):
117 self.this = apply(gridc.new_wxPyGridCellRenderer,_args,_kwargs)
118 self.thisown = 1
119 self._setCallbackInfo(self, wxPyGridCellRenderer)
eb28fd47 120 self._setOORInfo(self)
e6056257
RD
121
122
123
124
125class wxGridCellStringRendererPtr(wxGridCellRendererPtr):
126 def __init__(self,this):
127 self.this = this
128 self.thisown = 0
129 def __repr__(self):
130 return "<C wxGridCellStringRenderer instance at %s>" % (self.this,)
131class wxGridCellStringRenderer(wxGridCellStringRendererPtr):
132 def __init__(self,*_args,**_kwargs):
133 self.this = apply(gridc.new_wxGridCellStringRenderer,_args,_kwargs)
134 self.thisown = 1
eb28fd47 135 self._setOORInfo(self)
e6056257
RD
136
137
138
139
140class wxGridCellNumberRendererPtr(wxGridCellStringRendererPtr):
141 def __init__(self,this):
142 self.this = this
143 self.thisown = 0
144 def __repr__(self):
145 return "<C wxGridCellNumberRenderer instance at %s>" % (self.this,)
146class wxGridCellNumberRenderer(wxGridCellNumberRendererPtr):
147 def __init__(self,*_args,**_kwargs):
148 self.this = apply(gridc.new_wxGridCellNumberRenderer,_args,_kwargs)
149 self.thisown = 1
eb28fd47 150 self._setOORInfo(self)
e6056257
RD
151
152
153
154
155class wxGridCellFloatRendererPtr(wxGridCellStringRendererPtr):
156 def __init__(self,this):
157 self.this = this
158 self.thisown = 0
159 def GetWidth(self, *_args, **_kwargs):
160 val = apply(gridc.wxGridCellFloatRenderer_GetWidth,(self,) + _args, _kwargs)
161 return val
162 def SetWidth(self, *_args, **_kwargs):
163 val = apply(gridc.wxGridCellFloatRenderer_SetWidth,(self,) + _args, _kwargs)
164 return val
165 def GetPrecision(self, *_args, **_kwargs):
166 val = apply(gridc.wxGridCellFloatRenderer_GetPrecision,(self,) + _args, _kwargs)
167 return val
168 def SetPrecision(self, *_args, **_kwargs):
169 val = apply(gridc.wxGridCellFloatRenderer_SetPrecision,(self,) + _args, _kwargs)
170 return val
171 def __repr__(self):
172 return "<C wxGridCellFloatRenderer instance at %s>" % (self.this,)
173class wxGridCellFloatRenderer(wxGridCellFloatRendererPtr):
174 def __init__(self,*_args,**_kwargs):
175 self.this = apply(gridc.new_wxGridCellFloatRenderer,_args,_kwargs)
176 self.thisown = 1
eb28fd47 177 self._setOORInfo(self)
e6056257
RD
178
179
180
181
182class wxGridCellBoolRendererPtr(wxGridCellRendererPtr):
183 def __init__(self,this):
184 self.this = this
185 self.thisown = 0
186 def __repr__(self):
187 return "<C wxGridCellBoolRenderer instance at %s>" % (self.this,)
188class wxGridCellBoolRenderer(wxGridCellBoolRendererPtr):
189 def __init__(self,*_args,**_kwargs):
190 self.this = apply(gridc.new_wxGridCellBoolRenderer,_args,_kwargs)
191 self.thisown = 1
eb28fd47 192 self._setOORInfo(self)
e6056257
RD
193
194
195
196
197class wxGridCellDateTimeRendererPtr(wxGridCellStringRendererPtr):
198 def __init__(self,this):
199 self.this = this
200 self.thisown = 0
201 def __repr__(self):
202 return "<C wxGridCellDateTimeRenderer instance at %s>" % (self.this,)
203class wxGridCellDateTimeRenderer(wxGridCellDateTimeRendererPtr):
204 def __init__(self,*_args,**_kwargs):
205 self.this = apply(gridc.new_wxGridCellDateTimeRenderer,_args,_kwargs)
206 self.thisown = 1
eb28fd47 207 self._setOORInfo(self)
e6056257
RD
208
209
210
211
212class wxGridCellEnumRendererPtr(wxGridCellStringRendererPtr):
213 def __init__(self,this):
214 self.this = this
215 self.thisown = 0
216 def __repr__(self):
217 return "<C wxGridCellEnumRenderer instance at %s>" % (self.this,)
218class wxGridCellEnumRenderer(wxGridCellEnumRendererPtr):
219 def __init__(self,*_args,**_kwargs):
220 self.this = apply(gridc.new_wxGridCellEnumRenderer,_args,_kwargs)
221 self.thisown = 1
eb28fd47 222 self._setOORInfo(self)
e6056257
RD
223
224
225
226
227class wxGridCellAutoWrapStringRendererPtr(wxGridCellStringRendererPtr):
228 def __init__(self,this):
229 self.this = this
230 self.thisown = 0
231 def __repr__(self):
232 return "<C wxGridCellAutoWrapStringRenderer instance at %s>" % (self.this,)
233class wxGridCellAutoWrapStringRenderer(wxGridCellAutoWrapStringRendererPtr):
234 def __init__(self,*_args,**_kwargs):
235 self.this = apply(gridc.new_wxGridCellAutoWrapStringRenderer,_args,_kwargs)
236 self.thisown = 1
eb28fd47 237 self._setOORInfo(self)
e6056257
RD
238
239
240
241
242class wxGridCellEditorPtr :
243 def __init__(self,this):
244 self.this = this
245 self.thisown = 0
eb28fd47
RD
246 def _setOORInfo(self, *_args, **_kwargs):
247 val = apply(gridc.wxGridCellEditor__setOORInfo,(self,) + _args, _kwargs)
248 return val
e6056257
RD
249 def IsCreated(self, *_args, **_kwargs):
250 val = apply(gridc.wxGridCellEditor_IsCreated,(self,) + _args, _kwargs)
251 return val
252 def GetControl(self, *_args, **_kwargs):
253 val = apply(gridc.wxGridCellEditor_GetControl,(self,) + _args, _kwargs)
254 return val
255 def SetControl(self, *_args, **_kwargs):
256 val = apply(gridc.wxGridCellEditor_SetControl,(self,) + _args, _kwargs)
257 return val
7108497a
RD
258 def GetCellAttr(self, *_args, **_kwargs):
259 val = apply(gridc.wxGridCellEditor_GetCellAttr,(self,) + _args, _kwargs)
260 return val
261 def SetCellAttr(self, *_args, **_kwargs):
262 val = apply(gridc.wxGridCellEditor_SetCellAttr,(self,) + _args, _kwargs)
263 return val
e6056257
RD
264 def SetParameters(self, *_args, **_kwargs):
265 val = apply(gridc.wxGridCellEditor_SetParameters,(self,) + _args, _kwargs)
266 return val
267 def IncRef(self, *_args, **_kwargs):
268 val = apply(gridc.wxGridCellEditor_IncRef,(self,) + _args, _kwargs)
269 return val
270 def DecRef(self, *_args, **_kwargs):
271 val = apply(gridc.wxGridCellEditor_DecRef,(self,) + _args, _kwargs)
272 return val
273 def Create(self, *_args, **_kwargs):
274 val = apply(gridc.wxGridCellEditor_Create,(self,) + _args, _kwargs)
275 return val
276 def BeginEdit(self, *_args, **_kwargs):
277 val = apply(gridc.wxGridCellEditor_BeginEdit,(self,) + _args, _kwargs)
278 return val
279 def EndEdit(self, *_args, **_kwargs):
280 val = apply(gridc.wxGridCellEditor_EndEdit,(self,) + _args, _kwargs)
281 return val
282 def Reset(self, *_args, **_kwargs):
283 val = apply(gridc.wxGridCellEditor_Reset,(self,) + _args, _kwargs)
284 return val
285 def Clone(self, *_args, **_kwargs):
286 val = apply(gridc.wxGridCellEditor_Clone,(self,) + _args, _kwargs)
e6056257
RD
287 return val
288 def SetSize(self, *_args, **_kwargs):
289 val = apply(gridc.wxGridCellEditor_SetSize,(self,) + _args, _kwargs)
290 return val
291 def Show(self, *_args, **_kwargs):
292 val = apply(gridc.wxGridCellEditor_Show,(self,) + _args, _kwargs)
293 return val
294 def PaintBackground(self, *_args, **_kwargs):
295 val = apply(gridc.wxGridCellEditor_PaintBackground,(self,) + _args, _kwargs)
296 return val
297 def IsAcceptedKey(self, *_args, **_kwargs):
298 val = apply(gridc.wxGridCellEditor_IsAcceptedKey,(self,) + _args, _kwargs)
299 return val
300 def StartingKey(self, *_args, **_kwargs):
301 val = apply(gridc.wxGridCellEditor_StartingKey,(self,) + _args, _kwargs)
302 return val
303 def StartingClick(self, *_args, **_kwargs):
304 val = apply(gridc.wxGridCellEditor_StartingClick,(self,) + _args, _kwargs)
305 return val
306 def HandleReturn(self, *_args, **_kwargs):
307 val = apply(gridc.wxGridCellEditor_HandleReturn,(self,) + _args, _kwargs)
308 return val
309 def Destroy(self, *_args, **_kwargs):
310 val = apply(gridc.wxGridCellEditor_Destroy,(self,) + _args, _kwargs)
311 return val
7108497a
RD
312 def GetValue(self, *_args, **_kwargs):
313 val = apply(gridc.wxGridCellEditor_GetValue,(self,) + _args, _kwargs)
314 return val
e6056257
RD
315 def __repr__(self):
316 return "<C wxGridCellEditor instance at %s>" % (self.this,)
317class wxGridCellEditor(wxGridCellEditorPtr):
318 def __init__(self,this):
319 self.this = this
320
321
322
323
324class wxPyGridCellEditorPtr(wxGridCellEditorPtr):
325 def __init__(self,this):
326 self.this = this
327 self.thisown = 0
328 def _setCallbackInfo(self, *_args, **_kwargs):
329 val = apply(gridc.wxPyGridCellEditor__setCallbackInfo,(self,) + _args, _kwargs)
330 return val
331 def base_SetSize(self, *_args, **_kwargs):
332 val = apply(gridc.wxPyGridCellEditor_base_SetSize,(self,) + _args, _kwargs)
333 return val
334 def base_Show(self, *_args, **_kwargs):
335 val = apply(gridc.wxPyGridCellEditor_base_Show,(self,) + _args, _kwargs)
336 return val
337 def base_PaintBackground(self, *_args, **_kwargs):
338 val = apply(gridc.wxPyGridCellEditor_base_PaintBackground,(self,) + _args, _kwargs)
339 return val
340 def base_IsAcceptedKey(self, *_args, **_kwargs):
341 val = apply(gridc.wxPyGridCellEditor_base_IsAcceptedKey,(self,) + _args, _kwargs)
342 return val
343 def base_StartingKey(self, *_args, **_kwargs):
344 val = apply(gridc.wxPyGridCellEditor_base_StartingKey,(self,) + _args, _kwargs)
345 return val
346 def base_StartingClick(self, *_args, **_kwargs):
347 val = apply(gridc.wxPyGridCellEditor_base_StartingClick,(self,) + _args, _kwargs)
348 return val
349 def base_HandleReturn(self, *_args, **_kwargs):
350 val = apply(gridc.wxPyGridCellEditor_base_HandleReturn,(self,) + _args, _kwargs)
351 return val
352 def base_Destroy(self, *_args, **_kwargs):
353 val = apply(gridc.wxPyGridCellEditor_base_Destroy,(self,) + _args, _kwargs)
354 return val
355 def base_SetParameters(self, *_args, **_kwargs):
356 val = apply(gridc.wxPyGridCellEditor_base_SetParameters,(self,) + _args, _kwargs)
357 return val
7108497a
RD
358 def base_GetValue(self, *_args, **_kwargs):
359 val = apply(gridc.wxPyGridCellEditor_base_GetValue,(self,) + _args, _kwargs)
360 return val
e6056257
RD
361 def __repr__(self):
362 return "<C wxPyGridCellEditor instance at %s>" % (self.this,)
363class wxPyGridCellEditor(wxPyGridCellEditorPtr):
364 def __init__(self,*_args,**_kwargs):
365 self.this = apply(gridc.new_wxPyGridCellEditor,_args,_kwargs)
366 self.thisown = 1
367 self._setCallbackInfo(self, wxPyGridCellEditor)
eb28fd47 368 self._setOORInfo(self)
e6056257
RD
369
370
371
372
373class wxGridCellTextEditorPtr(wxGridCellEditorPtr):
374 def __init__(self,this):
375 self.this = this
376 self.thisown = 0
377 def __repr__(self):
378 return "<C wxGridCellTextEditor instance at %s>" % (self.this,)
379class wxGridCellTextEditor(wxGridCellTextEditorPtr):
380 def __init__(self,*_args,**_kwargs):
381 self.this = apply(gridc.new_wxGridCellTextEditor,_args,_kwargs)
382 self.thisown = 1
eb28fd47 383 self._setOORInfo(self)
e6056257
RD
384
385
386
387
388class wxGridCellNumberEditorPtr(wxGridCellTextEditorPtr):
389 def __init__(self,this):
390 self.this = this
391 self.thisown = 0
392 def __repr__(self):
393 return "<C wxGridCellNumberEditor instance at %s>" % (self.this,)
394class wxGridCellNumberEditor(wxGridCellNumberEditorPtr):
395 def __init__(self,*_args,**_kwargs):
396 self.this = apply(gridc.new_wxGridCellNumberEditor,_args,_kwargs)
397 self.thisown = 1
eb28fd47 398 self._setOORInfo(self)
e6056257
RD
399
400
401
402
403class wxGridCellFloatEditorPtr(wxGridCellTextEditorPtr):
404 def __init__(self,this):
405 self.this = this
406 self.thisown = 0
407 def __repr__(self):
408 return "<C wxGridCellFloatEditor instance at %s>" % (self.this,)
409class wxGridCellFloatEditor(wxGridCellFloatEditorPtr):
410 def __init__(self,*_args,**_kwargs):
411 self.this = apply(gridc.new_wxGridCellFloatEditor,_args,_kwargs)
412 self.thisown = 1
eb28fd47 413 self._setOORInfo(self)
e6056257
RD
414
415
416
417
418class wxGridCellBoolEditorPtr(wxGridCellEditorPtr):
419 def __init__(self,this):
420 self.this = this
421 self.thisown = 0
422 def __repr__(self):
423 return "<C wxGridCellBoolEditor instance at %s>" % (self.this,)
424class wxGridCellBoolEditor(wxGridCellBoolEditorPtr):
425 def __init__(self,*_args,**_kwargs):
426 self.this = apply(gridc.new_wxGridCellBoolEditor,_args,_kwargs)
427 self.thisown = 1
eb28fd47 428 self._setOORInfo(self)
e6056257
RD
429
430
431
432
433class wxGridCellChoiceEditorPtr(wxGridCellEditorPtr):
434 def __init__(self,this):
435 self.this = this
436 self.thisown = 0
437 def __repr__(self):
438 return "<C wxGridCellChoiceEditor instance at %s>" % (self.this,)
439class wxGridCellChoiceEditor(wxGridCellChoiceEditorPtr):
440 def __init__(self,*_args,**_kwargs):
441 self.this = apply(gridc.new_wxGridCellChoiceEditor,_args,_kwargs)
442 self.thisown = 1
eb28fd47 443 self._setOORInfo(self)
e6056257
RD
444
445
446
447
448class wxGridCellEnumEditorPtr(wxGridCellChoiceEditorPtr):
449 def __init__(self,this):
450 self.this = this
451 self.thisown = 0
452 def __repr__(self):
453 return "<C wxGridCellEnumEditor instance at %s>" % (self.this,)
454class wxGridCellEnumEditor(wxGridCellEnumEditorPtr):
455 def __init__(self,*_args,**_kwargs):
456 self.this = apply(gridc.new_wxGridCellEnumEditor,_args,_kwargs)
457 self.thisown = 1
eb28fd47 458 self._setOORInfo(self)
e6056257
RD
459
460
461
462
463class wxGridCellAutoWrapStringEditorPtr(wxGridCellTextEditorPtr):
464 def __init__(self,this):
465 self.this = this
466 self.thisown = 0
467 def __repr__(self):
468 return "<C wxGridCellAutoWrapStringEditor instance at %s>" % (self.this,)
469class wxGridCellAutoWrapStringEditor(wxGridCellAutoWrapStringEditorPtr):
470 def __init__(self,*_args,**_kwargs):
471 self.this = apply(gridc.new_wxGridCellAutoWrapStringEditor,_args,_kwargs)
472 self.thisown = 1
eb28fd47 473 self._setOORInfo(self)
e6056257
RD
474
475
476
477
478class wxGridCellAttrPtr :
479 Any = gridc.wxGridCellAttr_Any
480 Default = gridc.wxGridCellAttr_Default
481 Cell = gridc.wxGridCellAttr_Cell
482 Row = gridc.wxGridCellAttr_Row
483 Col = gridc.wxGridCellAttr_Col
484 Merged = gridc.wxGridCellAttr_Merged
485 def __init__(self,this):
486 self.this = this
487 self.thisown = 0
eb28fd47
RD
488 def _setOORInfo(self, *_args, **_kwargs):
489 val = apply(gridc.wxGridCellAttr__setOORInfo,(self,) + _args, _kwargs)
490 return val
e6056257
RD
491 def Clone(self, *_args, **_kwargs):
492 val = apply(gridc.wxGridCellAttr_Clone,(self,) + _args, _kwargs)
e6056257
RD
493 return val
494 def MergeWith(self, *_args, **_kwargs):
495 val = apply(gridc.wxGridCellAttr_MergeWith,(self,) + _args, _kwargs)
496 return val
497 def IncRef(self, *_args, **_kwargs):
498 val = apply(gridc.wxGridCellAttr_IncRef,(self,) + _args, _kwargs)
499 return val
500 def DecRef(self, *_args, **_kwargs):
501 val = apply(gridc.wxGridCellAttr_DecRef,(self,) + _args, _kwargs)
502 return val
503 def SetTextColour(self, *_args, **_kwargs):
504 val = apply(gridc.wxGridCellAttr_SetTextColour,(self,) + _args, _kwargs)
505 return val
506 def SetBackgroundColour(self, *_args, **_kwargs):
507 val = apply(gridc.wxGridCellAttr_SetBackgroundColour,(self,) + _args, _kwargs)
508 return val
509 def SetFont(self, *_args, **_kwargs):
510 val = apply(gridc.wxGridCellAttr_SetFont,(self,) + _args, _kwargs)
511 return val
512 def SetAlignment(self, *_args, **_kwargs):
513 val = apply(gridc.wxGridCellAttr_SetAlignment,(self,) + _args, _kwargs)
514 return val
4ea97290
RD
515 def SetSize(self, *_args, **_kwargs):
516 val = apply(gridc.wxGridCellAttr_SetSize,(self,) + _args, _kwargs)
517 return val
518 def SetOverflow(self, *_args, **_kwargs):
519 val = apply(gridc.wxGridCellAttr_SetOverflow,(self,) + _args, _kwargs)
520 return val
e6056257
RD
521 def SetReadOnly(self, *_args, **_kwargs):
522 val = apply(gridc.wxGridCellAttr_SetReadOnly,(self,) + _args, _kwargs)
523 return val
524 def SetRenderer(self, *_args, **_kwargs):
525 val = apply(gridc.wxGridCellAttr_SetRenderer,(self,) + _args, _kwargs)
526 return val
527 def SetEditor(self, *_args, **_kwargs):
528 val = apply(gridc.wxGridCellAttr_SetEditor,(self,) + _args, _kwargs)
529 return val
530 def SetKind(self, *_args, **_kwargs):
531 val = apply(gridc.wxGridCellAttr_SetKind,(self,) + _args, _kwargs)
532 return val
533 def HasTextColour(self, *_args, **_kwargs):
534 val = apply(gridc.wxGridCellAttr_HasTextColour,(self,) + _args, _kwargs)
535 return val
536 def HasBackgroundColour(self, *_args, **_kwargs):
537 val = apply(gridc.wxGridCellAttr_HasBackgroundColour,(self,) + _args, _kwargs)
538 return val
539 def HasFont(self, *_args, **_kwargs):
540 val = apply(gridc.wxGridCellAttr_HasFont,(self,) + _args, _kwargs)
541 return val
542 def HasAlignment(self, *_args, **_kwargs):
543 val = apply(gridc.wxGridCellAttr_HasAlignment,(self,) + _args, _kwargs)
544 return val
545 def HasRenderer(self, *_args, **_kwargs):
546 val = apply(gridc.wxGridCellAttr_HasRenderer,(self,) + _args, _kwargs)
547 return val
548 def HasEditor(self, *_args, **_kwargs):
549 val = apply(gridc.wxGridCellAttr_HasEditor,(self,) + _args, _kwargs)
550 return val
551 def HasReadWriteMode(self, *_args, **_kwargs):
552 val = apply(gridc.wxGridCellAttr_HasReadWriteMode,(self,) + _args, _kwargs)
553 return val
554 def GetTextColour(self, *_args, **_kwargs):
555 val = apply(gridc.wxGridCellAttr_GetTextColour,(self,) + _args, _kwargs)
00360d46 556 if val: val = wxColourPtr(val) ; val.thisown = 1
e6056257
RD
557 return val
558 def GetBackgroundColour(self, *_args, **_kwargs):
559 val = apply(gridc.wxGridCellAttr_GetBackgroundColour,(self,) + _args, _kwargs)
00360d46 560 if val: val = wxColourPtr(val) ; val.thisown = 1
e6056257
RD
561 return val
562 def GetFont(self, *_args, **_kwargs):
563 val = apply(gridc.wxGridCellAttr_GetFont,(self,) + _args, _kwargs)
00360d46 564 if val: val = wxFontPtr(val) ; val.thisown = 1
e6056257
RD
565 return val
566 def GetAlignment(self, *_args, **_kwargs):
567 val = apply(gridc.wxGridCellAttr_GetAlignment,(self,) + _args, _kwargs)
568 return val
4ea97290
RD
569 def GetSize(self, *_args, **_kwargs):
570 val = apply(gridc.wxGridCellAttr_GetSize,(self,) + _args, _kwargs)
571 return val
572 def GetOverflow(self, *_args, **_kwargs):
573 val = apply(gridc.wxGridCellAttr_GetOverflow,(self,) + _args, _kwargs)
574 return val
e6056257
RD
575 def GetRenderer(self, *_args, **_kwargs):
576 val = apply(gridc.wxGridCellAttr_GetRenderer,(self,) + _args, _kwargs)
e6056257
RD
577 return val
578 def GetEditor(self, *_args, **_kwargs):
579 val = apply(gridc.wxGridCellAttr_GetEditor,(self,) + _args, _kwargs)
e6056257
RD
580 return val
581 def IsReadOnly(self, *_args, **_kwargs):
582 val = apply(gridc.wxGridCellAttr_IsReadOnly,(self,) + _args, _kwargs)
583 return val
584 def SetDefAttr(self, *_args, **_kwargs):
585 val = apply(gridc.wxGridCellAttr_SetDefAttr,(self,) + _args, _kwargs)
586 return val
587 def __repr__(self):
588 return "<C wxGridCellAttr instance at %s>" % (self.this,)
589class wxGridCellAttr(wxGridCellAttrPtr):
590 def __init__(self,*_args,**_kwargs):
591 self.this = apply(gridc.new_wxGridCellAttr,_args,_kwargs)
592 self.thisown = 1
eb28fd47 593 self._setOORInfo(self)
e6056257
RD
594
595
596
597
598class wxGridCellAttrProviderPtr :
599 def __init__(self,this):
600 self.this = this
601 self.thisown = 0
eb28fd47
RD
602 def _setOORInfo(self, *_args, **_kwargs):
603 val = apply(gridc.wxGridCellAttrProvider__setOORInfo,(self,) + _args, _kwargs)
604 return val
e6056257
RD
605 def GetAttr(self, *_args, **_kwargs):
606 val = apply(gridc.wxGridCellAttrProvider_GetAttr,(self,) + _args, _kwargs)
e6056257
RD
607 return val
608 def SetAttr(self, *_args, **_kwargs):
609 val = apply(gridc.wxGridCellAttrProvider_SetAttr,(self,) + _args, _kwargs)
610 return val
611 def SetRowAttr(self, *_args, **_kwargs):
612 val = apply(gridc.wxGridCellAttrProvider_SetRowAttr,(self,) + _args, _kwargs)
613 return val
614 def SetColAttr(self, *_args, **_kwargs):
615 val = apply(gridc.wxGridCellAttrProvider_SetColAttr,(self,) + _args, _kwargs)
616 return val
617 def UpdateAttrRows(self, *_args, **_kwargs):
618 val = apply(gridc.wxGridCellAttrProvider_UpdateAttrRows,(self,) + _args, _kwargs)
619 return val
620 def UpdateAttrCols(self, *_args, **_kwargs):
621 val = apply(gridc.wxGridCellAttrProvider_UpdateAttrCols,(self,) + _args, _kwargs)
622 return val
623 def __repr__(self):
624 return "<C wxGridCellAttrProvider instance at %s>" % (self.this,)
625class wxGridCellAttrProvider(wxGridCellAttrProviderPtr):
626 def __init__(self,*_args,**_kwargs):
627 self.this = apply(gridc.new_wxGridCellAttrProvider,_args,_kwargs)
628 self.thisown = 1
eb28fd47 629 self._setOORInfo(self)
e6056257
RD
630
631
632
633
634class wxPyGridCellAttrProviderPtr(wxGridCellAttrProviderPtr):
635 def __init__(self,this):
636 self.this = this
637 self.thisown = 0
638 def _setCallbackInfo(self, *_args, **_kwargs):
639 val = apply(gridc.wxPyGridCellAttrProvider__setCallbackInfo,(self,) + _args, _kwargs)
640 return val
641 def base_GetAttr(self, *_args, **_kwargs):
642 val = apply(gridc.wxPyGridCellAttrProvider_base_GetAttr,(self,) + _args, _kwargs)
e6056257
RD
643 return val
644 def base_SetAttr(self, *_args, **_kwargs):
645 val = apply(gridc.wxPyGridCellAttrProvider_base_SetAttr,(self,) + _args, _kwargs)
646 return val
647 def base_SetRowAttr(self, *_args, **_kwargs):
648 val = apply(gridc.wxPyGridCellAttrProvider_base_SetRowAttr,(self,) + _args, _kwargs)
649 return val
650 def base_SetColAttr(self, *_args, **_kwargs):
651 val = apply(gridc.wxPyGridCellAttrProvider_base_SetColAttr,(self,) + _args, _kwargs)
652 return val
653 def __repr__(self):
654 return "<C wxPyGridCellAttrProvider instance at %s>" % (self.this,)
655class wxPyGridCellAttrProvider(wxPyGridCellAttrProviderPtr):
656 def __init__(self,*_args,**_kwargs):
657 self.this = apply(gridc.new_wxPyGridCellAttrProvider,_args,_kwargs)
658 self.thisown = 1
659 self._setCallbackInfo(self, wxPyGridCellAttrProvider)
660
661
662
663
664class wxGridTableBasePtr(wxObjectPtr):
665 def __init__(self,this):
666 self.this = this
667 self.thisown = 0
eb28fd47
RD
668 def _setOORInfo(self, *_args, **_kwargs):
669 val = apply(gridc.wxGridTableBase__setOORInfo,(self,) + _args, _kwargs)
670 return val
e6056257
RD
671 def SetAttrProvider(self, *_args, **_kwargs):
672 val = apply(gridc.wxGridTableBase_SetAttrProvider,(self,) + _args, _kwargs)
673 return val
674 def GetAttrProvider(self, *_args, **_kwargs):
675 val = apply(gridc.wxGridTableBase_GetAttrProvider,(self,) + _args, _kwargs)
e6056257
RD
676 return val
677 def SetView(self, *_args, **_kwargs):
678 val = apply(gridc.wxGridTableBase_SetView,(self,) + _args, _kwargs)
679 return val
680 def GetView(self, *_args, **_kwargs):
681 val = apply(gridc.wxGridTableBase_GetView,(self,) + _args, _kwargs)
682 return val
683 def GetNumberRows(self, *_args, **_kwargs):
684 val = apply(gridc.wxGridTableBase_GetNumberRows,(self,) + _args, _kwargs)
685 return val
686 def GetNumberCols(self, *_args, **_kwargs):
687 val = apply(gridc.wxGridTableBase_GetNumberCols,(self,) + _args, _kwargs)
688 return val
689 def IsEmptyCell(self, *_args, **_kwargs):
690 val = apply(gridc.wxGridTableBase_IsEmptyCell,(self,) + _args, _kwargs)
691 return val
692 def GetValue(self, *_args, **_kwargs):
693 val = apply(gridc.wxGridTableBase_GetValue,(self,) + _args, _kwargs)
694 return val
695 def SetValue(self, *_args, **_kwargs):
696 val = apply(gridc.wxGridTableBase_SetValue,(self,) + _args, _kwargs)
697 return val
698 def GetTypeName(self, *_args, **_kwargs):
699 val = apply(gridc.wxGridTableBase_GetTypeName,(self,) + _args, _kwargs)
700 return val
701 def CanGetValueAs(self, *_args, **_kwargs):
702 val = apply(gridc.wxGridTableBase_CanGetValueAs,(self,) + _args, _kwargs)
703 return val
704 def CanSetValueAs(self, *_args, **_kwargs):
705 val = apply(gridc.wxGridTableBase_CanSetValueAs,(self,) + _args, _kwargs)
706 return val
707 def GetValueAsLong(self, *_args, **_kwargs):
708 val = apply(gridc.wxGridTableBase_GetValueAsLong,(self,) + _args, _kwargs)
709 return val
710 def GetValueAsDouble(self, *_args, **_kwargs):
711 val = apply(gridc.wxGridTableBase_GetValueAsDouble,(self,) + _args, _kwargs)
712 return val
713 def GetValueAsBool(self, *_args, **_kwargs):
714 val = apply(gridc.wxGridTableBase_GetValueAsBool,(self,) + _args, _kwargs)
715 return val
716 def SetValueAsLong(self, *_args, **_kwargs):
717 val = apply(gridc.wxGridTableBase_SetValueAsLong,(self,) + _args, _kwargs)
718 return val
719 def SetValueAsDouble(self, *_args, **_kwargs):
720 val = apply(gridc.wxGridTableBase_SetValueAsDouble,(self,) + _args, _kwargs)
721 return val
722 def SetValueAsBool(self, *_args, **_kwargs):
723 val = apply(gridc.wxGridTableBase_SetValueAsBool,(self,) + _args, _kwargs)
724 return val
725 def Clear(self, *_args, **_kwargs):
726 val = apply(gridc.wxGridTableBase_Clear,(self,) + _args, _kwargs)
727 return val
728 def InsertRows(self, *_args, **_kwargs):
729 val = apply(gridc.wxGridTableBase_InsertRows,(self,) + _args, _kwargs)
730 return val
731 def AppendRows(self, *_args, **_kwargs):
732 val = apply(gridc.wxGridTableBase_AppendRows,(self,) + _args, _kwargs)
733 return val
734 def DeleteRows(self, *_args, **_kwargs):
735 val = apply(gridc.wxGridTableBase_DeleteRows,(self,) + _args, _kwargs)
736 return val
737 def InsertCols(self, *_args, **_kwargs):
738 val = apply(gridc.wxGridTableBase_InsertCols,(self,) + _args, _kwargs)
739 return val
740 def AppendCols(self, *_args, **_kwargs):
741 val = apply(gridc.wxGridTableBase_AppendCols,(self,) + _args, _kwargs)
742 return val
743 def DeleteCols(self, *_args, **_kwargs):
744 val = apply(gridc.wxGridTableBase_DeleteCols,(self,) + _args, _kwargs)
745 return val
746 def GetRowLabelValue(self, *_args, **_kwargs):
747 val = apply(gridc.wxGridTableBase_GetRowLabelValue,(self,) + _args, _kwargs)
748 return val
749 def GetColLabelValue(self, *_args, **_kwargs):
750 val = apply(gridc.wxGridTableBase_GetColLabelValue,(self,) + _args, _kwargs)
751 return val
752 def SetRowLabelValue(self, *_args, **_kwargs):
753 val = apply(gridc.wxGridTableBase_SetRowLabelValue,(self,) + _args, _kwargs)
754 return val
755 def SetColLabelValue(self, *_args, **_kwargs):
756 val = apply(gridc.wxGridTableBase_SetColLabelValue,(self,) + _args, _kwargs)
757 return val
758 def CanHaveAttributes(self, *_args, **_kwargs):
759 val = apply(gridc.wxGridTableBase_CanHaveAttributes,(self,) + _args, _kwargs)
760 return val
761 def GetAttr(self, *_args, **_kwargs):
762 val = apply(gridc.wxGridTableBase_GetAttr,(self,) + _args, _kwargs)
e6056257
RD
763 return val
764 def SetAttr(self, *_args, **_kwargs):
765 val = apply(gridc.wxGridTableBase_SetAttr,(self,) + _args, _kwargs)
766 return val
767 def SetRowAttr(self, *_args, **_kwargs):
768 val = apply(gridc.wxGridTableBase_SetRowAttr,(self,) + _args, _kwargs)
769 return val
770 def SetColAttr(self, *_args, **_kwargs):
771 val = apply(gridc.wxGridTableBase_SetColAttr,(self,) + _args, _kwargs)
772 return val
773 def __repr__(self):
774 return "<C wxGridTableBase instance at %s>" % (self.this,)
775class wxGridTableBase(wxGridTableBasePtr):
776 def __init__(self,this):
777 self.this = this
778
779
780
781
782class wxPyGridTableBasePtr(wxGridTableBasePtr):
783 def __init__(self,this):
784 self.this = this
785 self.thisown = 0
786 def _setCallbackInfo(self, *_args, **_kwargs):
787 val = apply(gridc.wxPyGridTableBase__setCallbackInfo,(self,) + _args, _kwargs)
788 return val
789 def Destroy(self, *_args, **_kwargs):
790 val = apply(gridc.wxPyGridTableBase_Destroy,(self,) + _args, _kwargs)
791 return val
792 def base_GetTypeName(self, *_args, **_kwargs):
793 val = apply(gridc.wxPyGridTableBase_base_GetTypeName,(self,) + _args, _kwargs)
794 return val
795 def base_CanGetValueAs(self, *_args, **_kwargs):
796 val = apply(gridc.wxPyGridTableBase_base_CanGetValueAs,(self,) + _args, _kwargs)
797 return val
798 def base_CanSetValueAs(self, *_args, **_kwargs):
799 val = apply(gridc.wxPyGridTableBase_base_CanSetValueAs,(self,) + _args, _kwargs)
800 return val
801 def base_Clear(self, *_args, **_kwargs):
802 val = apply(gridc.wxPyGridTableBase_base_Clear,(self,) + _args, _kwargs)
803 return val
804 def base_InsertRows(self, *_args, **_kwargs):
805 val = apply(gridc.wxPyGridTableBase_base_InsertRows,(self,) + _args, _kwargs)
806 return val
807 def base_AppendRows(self, *_args, **_kwargs):
808 val = apply(gridc.wxPyGridTableBase_base_AppendRows,(self,) + _args, _kwargs)
809 return val
810 def base_DeleteRows(self, *_args, **_kwargs):
811 val = apply(gridc.wxPyGridTableBase_base_DeleteRows,(self,) + _args, _kwargs)
812 return val
813 def base_InsertCols(self, *_args, **_kwargs):
814 val = apply(gridc.wxPyGridTableBase_base_InsertCols,(self,) + _args, _kwargs)
815 return val
816 def base_AppendCols(self, *_args, **_kwargs):
817 val = apply(gridc.wxPyGridTableBase_base_AppendCols,(self,) + _args, _kwargs)
818 return val
819 def base_DeleteCols(self, *_args, **_kwargs):
820 val = apply(gridc.wxPyGridTableBase_base_DeleteCols,(self,) + _args, _kwargs)
821 return val
822 def base_GetRowLabelValue(self, *_args, **_kwargs):
823 val = apply(gridc.wxPyGridTableBase_base_GetRowLabelValue,(self,) + _args, _kwargs)
824 return val
825 def base_GetColLabelValue(self, *_args, **_kwargs):
826 val = apply(gridc.wxPyGridTableBase_base_GetColLabelValue,(self,) + _args, _kwargs)
827 return val
828 def base_SetRowLabelValue(self, *_args, **_kwargs):
829 val = apply(gridc.wxPyGridTableBase_base_SetRowLabelValue,(self,) + _args, _kwargs)
830 return val
831 def base_SetColLabelValue(self, *_args, **_kwargs):
832 val = apply(gridc.wxPyGridTableBase_base_SetColLabelValue,(self,) + _args, _kwargs)
833 return val
834 def base_CanHaveAttributes(self, *_args, **_kwargs):
835 val = apply(gridc.wxPyGridTableBase_base_CanHaveAttributes,(self,) + _args, _kwargs)
836 return val
837 def base_GetAttr(self, *_args, **_kwargs):
838 val = apply(gridc.wxPyGridTableBase_base_GetAttr,(self,) + _args, _kwargs)
e6056257
RD
839 return val
840 def base_SetAttr(self, *_args, **_kwargs):
841 val = apply(gridc.wxPyGridTableBase_base_SetAttr,(self,) + _args, _kwargs)
842 return val
843 def base_SetRowAttr(self, *_args, **_kwargs):
844 val = apply(gridc.wxPyGridTableBase_base_SetRowAttr,(self,) + _args, _kwargs)
845 return val
846 def base_SetColAttr(self, *_args, **_kwargs):
847 val = apply(gridc.wxPyGridTableBase_base_SetColAttr,(self,) + _args, _kwargs)
848 return val
849 def __repr__(self):
850 return "<C wxPyGridTableBase instance at %s>" % (self.this,)
851class wxPyGridTableBase(wxPyGridTableBasePtr):
852 def __init__(self,*_args,**_kwargs):
853 self.this = apply(gridc.new_wxPyGridTableBase,_args,_kwargs)
854 self.thisown = 1
855 self._setCallbackInfo(self, wxPyGridTableBase)
eb28fd47 856 self._setOORInfo(self)
e6056257
RD
857
858
859
860
861class wxGridStringTablePtr(wxGridTableBasePtr):
862 def __init__(self,this):
863 self.this = this
864 self.thisown = 0
865 def __repr__(self):
866 return "<C wxGridStringTable instance at %s>" % (self.this,)
867class wxGridStringTable(wxGridStringTablePtr):
868 def __init__(self,*_args,**_kwargs):
869 self.this = apply(gridc.new_wxGridStringTable,_args,_kwargs)
870 self.thisown = 1
eb28fd47 871 self._setOORInfo(self)
e6056257
RD
872
873
874
875
876class wxGridTableMessagePtr :
877 def __init__(self,this):
878 self.this = this
879 self.thisown = 0
7108497a
RD
880 def __del__(self, delfunc=gridc.delete_wxGridTableMessage):
881 if self.thisown == 1:
882 try:
883 delfunc(self)
884 except:
885 pass
e6056257
RD
886 def SetTableObject(self, *_args, **_kwargs):
887 val = apply(gridc.wxGridTableMessage_SetTableObject,(self,) + _args, _kwargs)
888 return val
889 def GetTableObject(self, *_args, **_kwargs):
890 val = apply(gridc.wxGridTableMessage_GetTableObject,(self,) + _args, _kwargs)
891 return val
892 def SetId(self, *_args, **_kwargs):
893 val = apply(gridc.wxGridTableMessage_SetId,(self,) + _args, _kwargs)
894 return val
895 def GetId(self, *_args, **_kwargs):
896 val = apply(gridc.wxGridTableMessage_GetId,(self,) + _args, _kwargs)
897 return val
898 def SetCommandInt(self, *_args, **_kwargs):
899 val = apply(gridc.wxGridTableMessage_SetCommandInt,(self,) + _args, _kwargs)
900 return val
901 def GetCommandInt(self, *_args, **_kwargs):
902 val = apply(gridc.wxGridTableMessage_GetCommandInt,(self,) + _args, _kwargs)
903 return val
904 def SetCommandInt2(self, *_args, **_kwargs):
905 val = apply(gridc.wxGridTableMessage_SetCommandInt2,(self,) + _args, _kwargs)
906 return val
907 def GetCommandInt2(self, *_args, **_kwargs):
908 val = apply(gridc.wxGridTableMessage_GetCommandInt2,(self,) + _args, _kwargs)
909 return val
910 def __repr__(self):
911 return "<C wxGridTableMessage instance at %s>" % (self.this,)
912class wxGridTableMessage(wxGridTableMessagePtr):
913 def __init__(self,*_args,**_kwargs):
914 self.this = apply(gridc.new_wxGridTableMessage,_args,_kwargs)
915 self.thisown = 1
916
917
918
919
920class wxGridCellCoordsPtr :
921 def __init__(self,this):
922 self.this = this
923 self.thisown = 0
7108497a
RD
924 def __del__(self, delfunc=gridc.delete_wxGridCellCoords):
925 if self.thisown == 1:
926 try:
927 delfunc(self)
928 except:
929 pass
e6056257
RD
930 def GetRow(self, *_args, **_kwargs):
931 val = apply(gridc.wxGridCellCoords_GetRow,(self,) + _args, _kwargs)
932 return val
933 def SetRow(self, *_args, **_kwargs):
934 val = apply(gridc.wxGridCellCoords_SetRow,(self,) + _args, _kwargs)
935 return val
936 def GetCol(self, *_args, **_kwargs):
937 val = apply(gridc.wxGridCellCoords_GetCol,(self,) + _args, _kwargs)
938 return val
939 def SetCol(self, *_args, **_kwargs):
940 val = apply(gridc.wxGridCellCoords_SetCol,(self,) + _args, _kwargs)
941 return val
942 def Set(self, *_args, **_kwargs):
943 val = apply(gridc.wxGridCellCoords_Set,(self,) + _args, _kwargs)
944 return val
945 def asTuple(self, *_args, **_kwargs):
946 val = apply(gridc.wxGridCellCoords_asTuple,(self,) + _args, _kwargs)
947 return val
948 def __cmp__(self, *_args, **_kwargs):
949 val = apply(gridc.wxGridCellCoords___cmp__,(self,) + _args, _kwargs)
950 return val
951 def __repr__(self):
952 return "<C wxGridCellCoords instance at %s>" % (self.this,)
7108497a
RD
953
954 def __str__(self): return str(self.asTuple())
955 def __repr__(self): return 'wxGridCellCoords'+str(self.asTuple())
956 def __len__(self): return len(self.asTuple())
957 def __getitem__(self, index): return self.asTuple()[index]
958 def __setitem__(self, index, val):
959 if index == 0: self.SetRow(val)
960 elif index == 1: self.SetCol(val)
961 else: raise IndexError
962
e6056257
RD
963class wxGridCellCoords(wxGridCellCoordsPtr):
964 def __init__(self,*_args,**_kwargs):
965 self.this = apply(gridc.new_wxGridCellCoords,_args,_kwargs)
966 self.thisown = 1
967
968
969
970
971class wxGridPtr(wxScrolledWindowPtr):
972 wxGridSelectCells = gridc.wxGrid_wxGridSelectCells
973 wxGridSelectRows = gridc.wxGrid_wxGridSelectRows
974 wxGridSelectColumns = gridc.wxGrid_wxGridSelectColumns
975 def __init__(self,this):
976 self.this = this
977 self.thisown = 0
978 def CreateGrid(self, *_args, **_kwargs):
979 val = apply(gridc.wxGrid_CreateGrid,(self,) + _args, _kwargs)
980 return val
981 def SetSelectionMode(self, *_args, **_kwargs):
982 val = apply(gridc.wxGrid_SetSelectionMode,(self,) + _args, _kwargs)
983 return val
47a06a26
RD
984 def GetSelectionMode(self, *_args, **_kwargs):
985 val = apply(gridc.wxGrid_GetSelectionMode,(self,) + _args, _kwargs)
986 return val
e6056257
RD
987 def GetNumberRows(self, *_args, **_kwargs):
988 val = apply(gridc.wxGrid_GetNumberRows,(self,) + _args, _kwargs)
989 return val
990 def GetNumberCols(self, *_args, **_kwargs):
991 val = apply(gridc.wxGrid_GetNumberCols,(self,) + _args, _kwargs)
992 return val
993 def ProcessTableMessage(self, *_args, **_kwargs):
994 val = apply(gridc.wxGrid_ProcessTableMessage,(self,) + _args, _kwargs)
995 return val
996 def GetTable(self, *_args, **_kwargs):
997 val = apply(gridc.wxGrid_GetTable,(self,) + _args, _kwargs)
998 return val
999 def SetTable(self, *_args, **_kwargs):
1000 val = apply(gridc.wxGrid_SetTable,(self,) + _args, _kwargs)
1001 return val
1002 def ClearGrid(self, *_args, **_kwargs):
1003 val = apply(gridc.wxGrid_ClearGrid,(self,) + _args, _kwargs)
1004 return val
1005 def InsertRows(self, *_args, **_kwargs):
1006 val = apply(gridc.wxGrid_InsertRows,(self,) + _args, _kwargs)
1007 return val
1008 def AppendRows(self, *_args, **_kwargs):
1009 val = apply(gridc.wxGrid_AppendRows,(self,) + _args, _kwargs)
1010 return val
1011 def DeleteRows(self, *_args, **_kwargs):
1012 val = apply(gridc.wxGrid_DeleteRows,(self,) + _args, _kwargs)
1013 return val
1014 def InsertCols(self, *_args, **_kwargs):
1015 val = apply(gridc.wxGrid_InsertCols,(self,) + _args, _kwargs)
1016 return val
1017 def AppendCols(self, *_args, **_kwargs):
1018 val = apply(gridc.wxGrid_AppendCols,(self,) + _args, _kwargs)
1019 return val
1020 def DeleteCols(self, *_args, **_kwargs):
1021 val = apply(gridc.wxGrid_DeleteCols,(self,) + _args, _kwargs)
1022 return val
1023 def DrawCellHighlight(self, *_args, **_kwargs):
1024 val = apply(gridc.wxGrid_DrawCellHighlight,(self,) + _args, _kwargs)
1025 return val
1026 def DrawTextRectangle(self, *_args, **_kwargs):
1027 val = apply(gridc.wxGrid_DrawTextRectangle,(self,) + _args, _kwargs)
1028 return val
e6056257
RD
1029 def GetTextBoxSize(self, *_args, **_kwargs):
1030 val = apply(gridc.wxGrid_GetTextBoxSize,(self,) + _args, _kwargs)
1031 return val
1032 def BeginBatch(self, *_args, **_kwargs):
1033 val = apply(gridc.wxGrid_BeginBatch,(self,) + _args, _kwargs)
1034 return val
1035 def EndBatch(self, *_args, **_kwargs):
1036 val = apply(gridc.wxGrid_EndBatch,(self,) + _args, _kwargs)
1037 return val
1038 def GetBatchCount(self, *_args, **_kwargs):
1039 val = apply(gridc.wxGrid_GetBatchCount,(self,) + _args, _kwargs)
1040 return val
1041 def ForceRefresh(self, *_args, **_kwargs):
1042 val = apply(gridc.wxGrid_ForceRefresh,(self,) + _args, _kwargs)
1043 return val
4ea97290
RD
1044 def Refresh(self, *_args, **_kwargs):
1045 val = apply(gridc.wxGrid_Refresh,(self,) + _args, _kwargs)
1046 return val
e6056257
RD
1047 def IsEditable(self, *_args, **_kwargs):
1048 val = apply(gridc.wxGrid_IsEditable,(self,) + _args, _kwargs)
1049 return val
1050 def EnableEditing(self, *_args, **_kwargs):
1051 val = apply(gridc.wxGrid_EnableEditing,(self,) + _args, _kwargs)
1052 return val
1053 def EnableCellEditControl(self, *_args, **_kwargs):
1054 val = apply(gridc.wxGrid_EnableCellEditControl,(self,) + _args, _kwargs)
1055 return val
1056 def DisableCellEditControl(self, *_args, **_kwargs):
1057 val = apply(gridc.wxGrid_DisableCellEditControl,(self,) + _args, _kwargs)
1058 return val
1059 def CanEnableCellControl(self, *_args, **_kwargs):
1060 val = apply(gridc.wxGrid_CanEnableCellControl,(self,) + _args, _kwargs)
1061 return val
1062 def IsCellEditControlEnabled(self, *_args, **_kwargs):
1063 val = apply(gridc.wxGrid_IsCellEditControlEnabled,(self,) + _args, _kwargs)
1064 return val
1065 def IsCellEditControlShown(self, *_args, **_kwargs):
1066 val = apply(gridc.wxGrid_IsCellEditControlShown,(self,) + _args, _kwargs)
1067 return val
1068 def IsCurrentCellReadOnly(self, *_args, **_kwargs):
1069 val = apply(gridc.wxGrid_IsCurrentCellReadOnly,(self,) + _args, _kwargs)
1070 return val
1071 def ShowCellEditControl(self, *_args, **_kwargs):
1072 val = apply(gridc.wxGrid_ShowCellEditControl,(self,) + _args, _kwargs)
1073 return val
1074 def HideCellEditControl(self, *_args, **_kwargs):
1075 val = apply(gridc.wxGrid_HideCellEditControl,(self,) + _args, _kwargs)
1076 return val
1077 def SaveEditControlValue(self, *_args, **_kwargs):
1078 val = apply(gridc.wxGrid_SaveEditControlValue,(self,) + _args, _kwargs)
1079 return val
1080 def XYToCell(self, *_args, **_kwargs):
1081 val = apply(gridc.wxGrid_XYToCell,(self,) + _args, _kwargs)
1082 if val: val = wxGridCellCoordsPtr(val) ; val.thisown = 1
1083 return val
1084 def YToRow(self, *_args, **_kwargs):
1085 val = apply(gridc.wxGrid_YToRow,(self,) + _args, _kwargs)
1086 return val
1087 def XToCol(self, *_args, **_kwargs):
1088 val = apply(gridc.wxGrid_XToCol,(self,) + _args, _kwargs)
1089 return val
1090 def YToEdgeOfRow(self, *_args, **_kwargs):
1091 val = apply(gridc.wxGrid_YToEdgeOfRow,(self,) + _args, _kwargs)
1092 return val
1093 def XToEdgeOfCol(self, *_args, **_kwargs):
1094 val = apply(gridc.wxGrid_XToEdgeOfCol,(self,) + _args, _kwargs)
1095 return val
1096 def CellToRect(self, *_args, **_kwargs):
1097 val = apply(gridc.wxGrid_CellToRect,(self,) + _args, _kwargs)
1098 if val: val = wxRectPtr(val) ; val.thisown = 1
1099 return val
1100 def GetGridCursorRow(self, *_args, **_kwargs):
1101 val = apply(gridc.wxGrid_GetGridCursorRow,(self,) + _args, _kwargs)
1102 return val
1103 def GetGridCursorCol(self, *_args, **_kwargs):
1104 val = apply(gridc.wxGrid_GetGridCursorCol,(self,) + _args, _kwargs)
1105 return val
1106 def IsVisible(self, *_args, **_kwargs):
1107 val = apply(gridc.wxGrid_IsVisible,(self,) + _args, _kwargs)
1108 return val
1109 def MakeCellVisible(self, *_args, **_kwargs):
1110 val = apply(gridc.wxGrid_MakeCellVisible,(self,) + _args, _kwargs)
1111 return val
1112 def SetGridCursor(self, *_args, **_kwargs):
1113 val = apply(gridc.wxGrid_SetGridCursor,(self,) + _args, _kwargs)
1114 return val
1115 def MoveCursorUp(self, *_args, **_kwargs):
1116 val = apply(gridc.wxGrid_MoveCursorUp,(self,) + _args, _kwargs)
1117 return val
1118 def MoveCursorDown(self, *_args, **_kwargs):
1119 val = apply(gridc.wxGrid_MoveCursorDown,(self,) + _args, _kwargs)
1120 return val
1121 def MoveCursorLeft(self, *_args, **_kwargs):
1122 val = apply(gridc.wxGrid_MoveCursorLeft,(self,) + _args, _kwargs)
1123 return val
1124 def MoveCursorRight(self, *_args, **_kwargs):
1125 val = apply(gridc.wxGrid_MoveCursorRight,(self,) + _args, _kwargs)
1126 return val
1127 def MovePageDown(self, *_args, **_kwargs):
1128 val = apply(gridc.wxGrid_MovePageDown,(self,) + _args, _kwargs)
1129 return val
1130 def MovePageUp(self, *_args, **_kwargs):
1131 val = apply(gridc.wxGrid_MovePageUp,(self,) + _args, _kwargs)
1132 return val
1133 def MoveCursorUpBlock(self, *_args, **_kwargs):
1134 val = apply(gridc.wxGrid_MoveCursorUpBlock,(self,) + _args, _kwargs)
1135 return val
1136 def MoveCursorDownBlock(self, *_args, **_kwargs):
1137 val = apply(gridc.wxGrid_MoveCursorDownBlock,(self,) + _args, _kwargs)
1138 return val
1139 def MoveCursorLeftBlock(self, *_args, **_kwargs):
1140 val = apply(gridc.wxGrid_MoveCursorLeftBlock,(self,) + _args, _kwargs)
1141 return val
1142 def MoveCursorRightBlock(self, *_args, **_kwargs):
1143 val = apply(gridc.wxGrid_MoveCursorRightBlock,(self,) + _args, _kwargs)
1144 return val
1145 def GetDefaultRowLabelSize(self, *_args, **_kwargs):
1146 val = apply(gridc.wxGrid_GetDefaultRowLabelSize,(self,) + _args, _kwargs)
1147 return val
1148 def GetRowLabelSize(self, *_args, **_kwargs):
1149 val = apply(gridc.wxGrid_GetRowLabelSize,(self,) + _args, _kwargs)
1150 return val
1151 def GetDefaultColLabelSize(self, *_args, **_kwargs):
1152 val = apply(gridc.wxGrid_GetDefaultColLabelSize,(self,) + _args, _kwargs)
1153 return val
1154 def GetColLabelSize(self, *_args, **_kwargs):
1155 val = apply(gridc.wxGrid_GetColLabelSize,(self,) + _args, _kwargs)
1156 return val
1157 def GetLabelBackgroundColour(self, *_args, **_kwargs):
1158 val = apply(gridc.wxGrid_GetLabelBackgroundColour,(self,) + _args, _kwargs)
1159 if val: val = wxColourPtr(val) ; val.thisown = 1
1160 return val
1161 def GetLabelTextColour(self, *_args, **_kwargs):
1162 val = apply(gridc.wxGrid_GetLabelTextColour,(self,) + _args, _kwargs)
1163 if val: val = wxColourPtr(val) ; val.thisown = 1
1164 return val
1165 def GetLabelFont(self, *_args, **_kwargs):
1166 val = apply(gridc.wxGrid_GetLabelFont,(self,) + _args, _kwargs)
1167 if val: val = wxFontPtr(val) ; val.thisown = 1
1168 return val
1169 def GetRowLabelAlignment(self, *_args, **_kwargs):
1170 val = apply(gridc.wxGrid_GetRowLabelAlignment,(self,) + _args, _kwargs)
1171 return val
1172 def GetColLabelAlignment(self, *_args, **_kwargs):
1173 val = apply(gridc.wxGrid_GetColLabelAlignment,(self,) + _args, _kwargs)
1174 return val
7108497a
RD
1175 def GetColLabelTextOrientation(self, *_args, **_kwargs):
1176 val = apply(gridc.wxGrid_GetColLabelTextOrientation,(self,) + _args, _kwargs)
1177 return val
e6056257
RD
1178 def GetRowLabelValue(self, *_args, **_kwargs):
1179 val = apply(gridc.wxGrid_GetRowLabelValue,(self,) + _args, _kwargs)
1180 return val
1181 def GetColLabelValue(self, *_args, **_kwargs):
1182 val = apply(gridc.wxGrid_GetColLabelValue,(self,) + _args, _kwargs)
1183 return val
1184 def GetGridLineColour(self, *_args, **_kwargs):
1185 val = apply(gridc.wxGrid_GetGridLineColour,(self,) + _args, _kwargs)
1186 if val: val = wxColourPtr(val) ; val.thisown = 1
1187 return val
1188 def GetCellHighlightColour(self, *_args, **_kwargs):
1189 val = apply(gridc.wxGrid_GetCellHighlightColour,(self,) + _args, _kwargs)
1190 if val: val = wxColourPtr(val) ; val.thisown = 1
1191 return val
1192 def GetCellHighlightPenWidth(self, *_args, **_kwargs):
1193 val = apply(gridc.wxGrid_GetCellHighlightPenWidth,(self,) + _args, _kwargs)
1194 return val
1195 def GetCellHighlightROPenWidth(self, *_args, **_kwargs):
1196 val = apply(gridc.wxGrid_GetCellHighlightROPenWidth,(self,) + _args, _kwargs)
1197 return val
1198 def SetRowLabelSize(self, *_args, **_kwargs):
1199 val = apply(gridc.wxGrid_SetRowLabelSize,(self,) + _args, _kwargs)
1200 return val
1201 def SetColLabelSize(self, *_args, **_kwargs):
1202 val = apply(gridc.wxGrid_SetColLabelSize,(self,) + _args, _kwargs)
1203 return val
1204 def SetLabelBackgroundColour(self, *_args, **_kwargs):
1205 val = apply(gridc.wxGrid_SetLabelBackgroundColour,(self,) + _args, _kwargs)
1206 return val
1207 def SetLabelTextColour(self, *_args, **_kwargs):
1208 val = apply(gridc.wxGrid_SetLabelTextColour,(self,) + _args, _kwargs)
1209 return val
1210 def SetLabelFont(self, *_args, **_kwargs):
1211 val = apply(gridc.wxGrid_SetLabelFont,(self,) + _args, _kwargs)
1212 return val
1213 def SetRowLabelAlignment(self, *_args, **_kwargs):
1214 val = apply(gridc.wxGrid_SetRowLabelAlignment,(self,) + _args, _kwargs)
1215 return val
1216 def SetColLabelAlignment(self, *_args, **_kwargs):
1217 val = apply(gridc.wxGrid_SetColLabelAlignment,(self,) + _args, _kwargs)
1218 return val
7108497a
RD
1219 def SetColLabelTextOrientation(self, *_args, **_kwargs):
1220 val = apply(gridc.wxGrid_SetColLabelTextOrientation,(self,) + _args, _kwargs)
1221 return val
e6056257
RD
1222 def SetRowLabelValue(self, *_args, **_kwargs):
1223 val = apply(gridc.wxGrid_SetRowLabelValue,(self,) + _args, _kwargs)
1224 return val
1225 def SetColLabelValue(self, *_args, **_kwargs):
1226 val = apply(gridc.wxGrid_SetColLabelValue,(self,) + _args, _kwargs)
1227 return val
1228 def SetGridLineColour(self, *_args, **_kwargs):
1229 val = apply(gridc.wxGrid_SetGridLineColour,(self,) + _args, _kwargs)
1230 return val
1231 def SetCellHighlightColour(self, *_args, **_kwargs):
1232 val = apply(gridc.wxGrid_SetCellHighlightColour,(self,) + _args, _kwargs)
1233 return val
1234 def SetCellHighlightPenWidth(self, *_args, **_kwargs):
1235 val = apply(gridc.wxGrid_SetCellHighlightPenWidth,(self,) + _args, _kwargs)
1236 return val
1237 def SetCellHighlightROPenWidth(self, *_args, **_kwargs):
1238 val = apply(gridc.wxGrid_SetCellHighlightROPenWidth,(self,) + _args, _kwargs)
1239 return val
1240 def EnableDragRowSize(self, *_args, **_kwargs):
1241 val = apply(gridc.wxGrid_EnableDragRowSize,(self,) + _args, _kwargs)
1242 return val
1243 def DisableDragRowSize(self, *_args, **_kwargs):
1244 val = apply(gridc.wxGrid_DisableDragRowSize,(self,) + _args, _kwargs)
1245 return val
1246 def CanDragRowSize(self, *_args, **_kwargs):
1247 val = apply(gridc.wxGrid_CanDragRowSize,(self,) + _args, _kwargs)
1248 return val
1249 def EnableDragColSize(self, *_args, **_kwargs):
1250 val = apply(gridc.wxGrid_EnableDragColSize,(self,) + _args, _kwargs)
1251 return val
1252 def DisableDragColSize(self, *_args, **_kwargs):
1253 val = apply(gridc.wxGrid_DisableDragColSize,(self,) + _args, _kwargs)
1254 return val
1255 def CanDragColSize(self, *_args, **_kwargs):
1256 val = apply(gridc.wxGrid_CanDragColSize,(self,) + _args, _kwargs)
1257 return val
1258 def EnableDragGridSize(self, *_args, **_kwargs):
1259 val = apply(gridc.wxGrid_EnableDragGridSize,(self,) + _args, _kwargs)
1260 return val
1261 def DisableDragGridSize(self, *_args, **_kwargs):
1262 val = apply(gridc.wxGrid_DisableDragGridSize,(self,) + _args, _kwargs)
1263 return val
1264 def CanDragGridSize(self, *_args, **_kwargs):
1265 val = apply(gridc.wxGrid_CanDragGridSize,(self,) + _args, _kwargs)
1266 return val
4ea97290
RD
1267 def SetAttr(self, *_args, **_kwargs):
1268 val = apply(gridc.wxGrid_SetAttr,(self,) + _args, _kwargs)
1269 return val
e6056257
RD
1270 def SetRowAttr(self, *_args, **_kwargs):
1271 val = apply(gridc.wxGrid_SetRowAttr,(self,) + _args, _kwargs)
1272 return val
1273 def SetColAttr(self, *_args, **_kwargs):
1274 val = apply(gridc.wxGrid_SetColAttr,(self,) + _args, _kwargs)
1275 return val
1276 def SetColFormatBool(self, *_args, **_kwargs):
1277 val = apply(gridc.wxGrid_SetColFormatBool,(self,) + _args, _kwargs)
1278 return val
1279 def SetColFormatNumber(self, *_args, **_kwargs):
1280 val = apply(gridc.wxGrid_SetColFormatNumber,(self,) + _args, _kwargs)
1281 return val
1282 def SetColFormatFloat(self, *_args, **_kwargs):
1283 val = apply(gridc.wxGrid_SetColFormatFloat,(self,) + _args, _kwargs)
1284 return val
1285 def SetColFormatCustom(self, *_args, **_kwargs):
1286 val = apply(gridc.wxGrid_SetColFormatCustom,(self,) + _args, _kwargs)
1287 return val
1288 def EnableGridLines(self, *_args, **_kwargs):
1289 val = apply(gridc.wxGrid_EnableGridLines,(self,) + _args, _kwargs)
1290 return val
1291 def GridLinesEnabled(self, *_args, **_kwargs):
1292 val = apply(gridc.wxGrid_GridLinesEnabled,(self,) + _args, _kwargs)
1293 return val
1294 def GetDefaultRowSize(self, *_args, **_kwargs):
1295 val = apply(gridc.wxGrid_GetDefaultRowSize,(self,) + _args, _kwargs)
1296 return val
1297 def GetRowSize(self, *_args, **_kwargs):
1298 val = apply(gridc.wxGrid_GetRowSize,(self,) + _args, _kwargs)
1299 return val
1300 def GetDefaultColSize(self, *_args, **_kwargs):
1301 val = apply(gridc.wxGrid_GetDefaultColSize,(self,) + _args, _kwargs)
1302 return val
1303 def GetColSize(self, *_args, **_kwargs):
1304 val = apply(gridc.wxGrid_GetColSize,(self,) + _args, _kwargs)
1305 return val
1306 def GetDefaultCellBackgroundColour(self, *_args, **_kwargs):
1307 val = apply(gridc.wxGrid_GetDefaultCellBackgroundColour,(self,) + _args, _kwargs)
1308 if val: val = wxColourPtr(val) ; val.thisown = 1
1309 return val
1310 def GetCellBackgroundColour(self, *_args, **_kwargs):
1311 val = apply(gridc.wxGrid_GetCellBackgroundColour,(self,) + _args, _kwargs)
1312 if val: val = wxColourPtr(val) ; val.thisown = 1
1313 return val
1314 def GetDefaultCellTextColour(self, *_args, **_kwargs):
1315 val = apply(gridc.wxGrid_GetDefaultCellTextColour,(self,) + _args, _kwargs)
1316 if val: val = wxColourPtr(val) ; val.thisown = 1
1317 return val
1318 def GetCellTextColour(self, *_args, **_kwargs):
1319 val = apply(gridc.wxGrid_GetCellTextColour,(self,) + _args, _kwargs)
1320 if val: val = wxColourPtr(val) ; val.thisown = 1
1321 return val
1322 def GetDefaultCellFont(self, *_args, **_kwargs):
1323 val = apply(gridc.wxGrid_GetDefaultCellFont,(self,) + _args, _kwargs)
1324 if val: val = wxFontPtr(val) ; val.thisown = 1
1325 return val
1326 def GetCellFont(self, *_args, **_kwargs):
1327 val = apply(gridc.wxGrid_GetCellFont,(self,) + _args, _kwargs)
1328 if val: val = wxFontPtr(val) ; val.thisown = 1
1329 return val
1330 def GetDefaultCellAlignment(self, *_args, **_kwargs):
1331 val = apply(gridc.wxGrid_GetDefaultCellAlignment,(self,) + _args, _kwargs)
1332 return val
1333 def GetCellAlignment(self, *_args, **_kwargs):
1334 val = apply(gridc.wxGrid_GetCellAlignment,(self,) + _args, _kwargs)
1335 return val
4ea97290
RD
1336 def GetDefaultCellOverflow(self, *_args, **_kwargs):
1337 val = apply(gridc.wxGrid_GetDefaultCellOverflow,(self,) + _args, _kwargs)
1338 return val
1339 def GetCellOverflow(self, *_args, **_kwargs):
1340 val = apply(gridc.wxGrid_GetCellOverflow,(self,) + _args, _kwargs)
1341 return val
1342 def GetCellSize(self, *_args, **_kwargs):
1343 val = apply(gridc.wxGrid_GetCellSize,(self,) + _args, _kwargs)
1344 return val
e6056257
RD
1345 def SetDefaultRowSize(self, *_args, **_kwargs):
1346 val = apply(gridc.wxGrid_SetDefaultRowSize,(self,) + _args, _kwargs)
1347 return val
1348 def SetRowSize(self, *_args, **_kwargs):
1349 val = apply(gridc.wxGrid_SetRowSize,(self,) + _args, _kwargs)
1350 return val
1351 def SetDefaultColSize(self, *_args, **_kwargs):
1352 val = apply(gridc.wxGrid_SetDefaultColSize,(self,) + _args, _kwargs)
1353 return val
1354 def SetColSize(self, *_args, **_kwargs):
1355 val = apply(gridc.wxGrid_SetColSize,(self,) + _args, _kwargs)
1356 return val
1357 def AutoSizeColumn(self, *_args, **_kwargs):
1358 val = apply(gridc.wxGrid_AutoSizeColumn,(self,) + _args, _kwargs)
1359 return val
1360 def AutoSizeRow(self, *_args, **_kwargs):
1361 val = apply(gridc.wxGrid_AutoSizeRow,(self,) + _args, _kwargs)
1362 return val
1363 def AutoSizeColumns(self, *_args, **_kwargs):
1364 val = apply(gridc.wxGrid_AutoSizeColumns,(self,) + _args, _kwargs)
1365 return val
1366 def AutoSizeRows(self, *_args, **_kwargs):
1367 val = apply(gridc.wxGrid_AutoSizeRows,(self,) + _args, _kwargs)
1368 return val
1369 def AutoSize(self, *_args, **_kwargs):
1370 val = apply(gridc.wxGrid_AutoSize,(self,) + _args, _kwargs)
1371 return val
7108497a
RD
1372 def AutoSizeRowLabelSize(self, *_args, **_kwargs):
1373 val = apply(gridc.wxGrid_AutoSizeRowLabelSize,(self,) + _args, _kwargs)
1374 return val
1375 def AutoSizeColLabelSize(self, *_args, **_kwargs):
1376 val = apply(gridc.wxGrid_AutoSizeColLabelSize,(self,) + _args, _kwargs)
1377 return val
e6056257
RD
1378 def SetColMinimalWidth(self, *_args, **_kwargs):
1379 val = apply(gridc.wxGrid_SetColMinimalWidth,(self,) + _args, _kwargs)
1380 return val
1381 def SetRowMinimalHeight(self, *_args, **_kwargs):
1382 val = apply(gridc.wxGrid_SetRowMinimalHeight,(self,) + _args, _kwargs)
1383 return val
1384 def SetDefaultCellBackgroundColour(self, *_args, **_kwargs):
1385 val = apply(gridc.wxGrid_SetDefaultCellBackgroundColour,(self,) + _args, _kwargs)
1386 return val
1387 def SetCellBackgroundColour(self, *_args, **_kwargs):
1388 val = apply(gridc.wxGrid_SetCellBackgroundColour,(self,) + _args, _kwargs)
1389 return val
1390 def SetDefaultCellTextColour(self, *_args, **_kwargs):
1391 val = apply(gridc.wxGrid_SetDefaultCellTextColour,(self,) + _args, _kwargs)
1392 return val
1393 def SetCellTextColour(self, *_args, **_kwargs):
1394 val = apply(gridc.wxGrid_SetCellTextColour,(self,) + _args, _kwargs)
1395 return val
1396 def SetDefaultCellFont(self, *_args, **_kwargs):
1397 val = apply(gridc.wxGrid_SetDefaultCellFont,(self,) + _args, _kwargs)
1398 return val
1399 def SetCellFont(self, *_args, **_kwargs):
1400 val = apply(gridc.wxGrid_SetCellFont,(self,) + _args, _kwargs)
1401 return val
1402 def SetDefaultCellAlignment(self, *_args, **_kwargs):
1403 val = apply(gridc.wxGrid_SetDefaultCellAlignment,(self,) + _args, _kwargs)
1404 return val
1405 def SetCellAlignment(self, *_args, **_kwargs):
1406 val = apply(gridc.wxGrid_SetCellAlignment,(self,) + _args, _kwargs)
1407 return val
4ea97290
RD
1408 def SetDefaultCellOverflow(self, *_args, **_kwargs):
1409 val = apply(gridc.wxGrid_SetDefaultCellOverflow,(self,) + _args, _kwargs)
1410 return val
1411 def SetCellOverflow(self, *_args, **_kwargs):
1412 val = apply(gridc.wxGrid_SetCellOverflow,(self,) + _args, _kwargs)
1413 return val
1414 def SetCellSize(self, *_args, **_kwargs):
1415 val = apply(gridc.wxGrid_SetCellSize,(self,) + _args, _kwargs)
1416 return val
e6056257
RD
1417 def SetDefaultRenderer(self, *_args, **_kwargs):
1418 val = apply(gridc.wxGrid_SetDefaultRenderer,(self,) + _args, _kwargs)
1419 return val
1420 def SetCellRenderer(self, *_args, **_kwargs):
1421 val = apply(gridc.wxGrid_SetCellRenderer,(self,) + _args, _kwargs)
1422 return val
1423 def GetDefaultRenderer(self, *_args, **_kwargs):
1424 val = apply(gridc.wxGrid_GetDefaultRenderer,(self,) + _args, _kwargs)
e6056257
RD
1425 return val
1426 def GetCellRenderer(self, *_args, **_kwargs):
1427 val = apply(gridc.wxGrid_GetCellRenderer,(self,) + _args, _kwargs)
e6056257
RD
1428 return val
1429 def SetDefaultEditor(self, *_args, **_kwargs):
1430 val = apply(gridc.wxGrid_SetDefaultEditor,(self,) + _args, _kwargs)
1431 return val
1432 def SetCellEditor(self, *_args, **_kwargs):
1433 val = apply(gridc.wxGrid_SetCellEditor,(self,) + _args, _kwargs)
1434 return val
1435 def GetDefaultEditor(self, *_args, **_kwargs):
1436 val = apply(gridc.wxGrid_GetDefaultEditor,(self,) + _args, _kwargs)
e6056257
RD
1437 return val
1438 def GetCellEditor(self, *_args, **_kwargs):
1439 val = apply(gridc.wxGrid_GetCellEditor,(self,) + _args, _kwargs)
e6056257
RD
1440 return val
1441 def GetCellValue(self, *_args, **_kwargs):
1442 val = apply(gridc.wxGrid_GetCellValue,(self,) + _args, _kwargs)
1443 return val
1444 def SetCellValue(self, *_args, **_kwargs):
1445 val = apply(gridc.wxGrid_SetCellValue,(self,) + _args, _kwargs)
1446 return val
1447 def IsReadOnly(self, *_args, **_kwargs):
1448 val = apply(gridc.wxGrid_IsReadOnly,(self,) + _args, _kwargs)
1449 return val
1450 def SetReadOnly(self, *_args, **_kwargs):
1451 val = apply(gridc.wxGrid_SetReadOnly,(self,) + _args, _kwargs)
1452 return val
1453 def SelectRow(self, *_args, **_kwargs):
1454 val = apply(gridc.wxGrid_SelectRow,(self,) + _args, _kwargs)
1455 return val
1456 def SelectCol(self, *_args, **_kwargs):
1457 val = apply(gridc.wxGrid_SelectCol,(self,) + _args, _kwargs)
1458 return val
1459 def SelectBlock(self, *_args, **_kwargs):
1460 val = apply(gridc.wxGrid_SelectBlock,(self,) + _args, _kwargs)
1461 return val
1462 def SelectAll(self, *_args, **_kwargs):
1463 val = apply(gridc.wxGrid_SelectAll,(self,) + _args, _kwargs)
1464 return val
1465 def IsSelection(self, *_args, **_kwargs):
1466 val = apply(gridc.wxGrid_IsSelection,(self,) + _args, _kwargs)
1467 return val
1468 def ClearSelection(self, *_args, **_kwargs):
1469 val = apply(gridc.wxGrid_ClearSelection,(self,) + _args, _kwargs)
1470 return val
1471 def IsInSelection(self, *_args, **_kwargs):
1472 val = apply(gridc.wxGrid_IsInSelection,(self,) + _args, _kwargs)
1473 return val
7108497a
RD
1474 def GetSelectedCells(self, *_args, **_kwargs):
1475 val = apply(gridc.wxGrid_GetSelectedCells,(self,) + _args, _kwargs)
1476 return val
1477 def GetSelectionBlockTopLeft(self, *_args, **_kwargs):
1478 val = apply(gridc.wxGrid_GetSelectionBlockTopLeft,(self,) + _args, _kwargs)
1479 return val
1480 def GetSelectionBlockBottomRight(self, *_args, **_kwargs):
1481 val = apply(gridc.wxGrid_GetSelectionBlockBottomRight,(self,) + _args, _kwargs)
1482 return val
1483 def GetSelectedRows(self, *_args, **_kwargs):
1484 val = apply(gridc.wxGrid_GetSelectedRows,(self,) + _args, _kwargs)
1485 return val
1486 def GetSelectedCols(self, *_args, **_kwargs):
1487 val = apply(gridc.wxGrid_GetSelectedCols,(self,) + _args, _kwargs)
1488 return val
1489 def DeselectRow(self, *_args, **_kwargs):
1490 val = apply(gridc.wxGrid_DeselectRow,(self,) + _args, _kwargs)
1491 return val
1492 def DeselectCol(self, *_args, **_kwargs):
1493 val = apply(gridc.wxGrid_DeselectCol,(self,) + _args, _kwargs)
1494 return val
1495 def DeselectCell(self, *_args, **_kwargs):
1496 val = apply(gridc.wxGrid_DeselectCell,(self,) + _args, _kwargs)
1497 return val
e6056257
RD
1498 def BlockToDeviceRect(self, *_args, **_kwargs):
1499 val = apply(gridc.wxGrid_BlockToDeviceRect,(self,) + _args, _kwargs)
1500 if val: val = wxRectPtr(val) ; val.thisown = 1
1501 return val
1502 def GetSelectionBackground(self, *_args, **_kwargs):
1503 val = apply(gridc.wxGrid_GetSelectionBackground,(self,) + _args, _kwargs)
1504 if val: val = wxColourPtr(val) ; val.thisown = 1
1505 return val
1506 def GetSelectionForeground(self, *_args, **_kwargs):
1507 val = apply(gridc.wxGrid_GetSelectionForeground,(self,) + _args, _kwargs)
1508 if val: val = wxColourPtr(val) ; val.thisown = 1
1509 return val
1510 def SetSelectionBackground(self, *_args, **_kwargs):
1511 val = apply(gridc.wxGrid_SetSelectionBackground,(self,) + _args, _kwargs)
1512 return val
1513 def SetSelectionForeground(self, *_args, **_kwargs):
1514 val = apply(gridc.wxGrid_SetSelectionForeground,(self,) + _args, _kwargs)
1515 return val
1516 def RegisterDataType(self, *_args, **_kwargs):
1517 val = apply(gridc.wxGrid_RegisterDataType,(self,) + _args, _kwargs)
1518 return val
1519 def GetDefaultEditorForCell(self, *_args, **_kwargs):
1520 val = apply(gridc.wxGrid_GetDefaultEditorForCell,(self,) + _args, _kwargs)
e6056257
RD
1521 return val
1522 def GetDefaultRendererForCell(self, *_args, **_kwargs):
1523 val = apply(gridc.wxGrid_GetDefaultRendererForCell,(self,) + _args, _kwargs)
e6056257
RD
1524 return val
1525 def GetDefaultEditorForType(self, *_args, **_kwargs):
1526 val = apply(gridc.wxGrid_GetDefaultEditorForType,(self,) + _args, _kwargs)
e6056257
RD
1527 return val
1528 def GetDefaultRendererForType(self, *_args, **_kwargs):
1529 val = apply(gridc.wxGrid_GetDefaultRendererForType,(self,) + _args, _kwargs)
e6056257
RD
1530 return val
1531 def SetMargins(self, *_args, **_kwargs):
1532 val = apply(gridc.wxGrid_SetMargins,(self,) + _args, _kwargs)
1533 return val
1534 def GetGridWindow(self, *_args, **_kwargs):
1535 val = apply(gridc.wxGrid_GetGridWindow,(self,) + _args, _kwargs)
1536 return val
1537 def GetGridRowLabelWindow(self, *_args, **_kwargs):
1538 val = apply(gridc.wxGrid_GetGridRowLabelWindow,(self,) + _args, _kwargs)
1539 return val
1540 def GetGridColLabelWindow(self, *_args, **_kwargs):
1541 val = apply(gridc.wxGrid_GetGridColLabelWindow,(self,) + _args, _kwargs)
1542 return val
1543 def GetGridCornerLabelWindow(self, *_args, **_kwargs):
1544 val = apply(gridc.wxGrid_GetGridCornerLabelWindow,(self,) + _args, _kwargs)
1545 return val
1546 def __repr__(self):
1547 return "<C wxGrid instance at %s>" % (self.this,)
1548class wxGrid(wxGridPtr):
1549 def __init__(self,*_args,**_kwargs):
1550 self.this = apply(gridc.new_wxGrid,_args,_kwargs)
1551 self.thisown = 1
1552 self._setOORInfo(self)
1553
1554
1555
1556
1557class wxGridEventPtr(wxNotifyEventPtr):
1558 def __init__(self,this):
1559 self.this = this
1560 self.thisown = 0
1561 def GetRow(self, *_args, **_kwargs):
1562 val = apply(gridc.wxGridEvent_GetRow,(self,) + _args, _kwargs)
1563 return val
1564 def GetCol(self, *_args, **_kwargs):
1565 val = apply(gridc.wxGridEvent_GetCol,(self,) + _args, _kwargs)
1566 return val
1567 def GetPosition(self, *_args, **_kwargs):
1568 val = apply(gridc.wxGridEvent_GetPosition,(self,) + _args, _kwargs)
1569 if val: val = wxPointPtr(val) ; val.thisown = 1
1570 return val
1571 def Selecting(self, *_args, **_kwargs):
1572 val = apply(gridc.wxGridEvent_Selecting,(self,) + _args, _kwargs)
1573 return val
1574 def ControlDown(self, *_args, **_kwargs):
1575 val = apply(gridc.wxGridEvent_ControlDown,(self,) + _args, _kwargs)
1576 return val
1577 def MetaDown(self, *_args, **_kwargs):
1578 val = apply(gridc.wxGridEvent_MetaDown,(self,) + _args, _kwargs)
1579 return val
1580 def ShiftDown(self, *_args, **_kwargs):
1581 val = apply(gridc.wxGridEvent_ShiftDown,(self,) + _args, _kwargs)
1582 return val
1583 def AltDown(self, *_args, **_kwargs):
1584 val = apply(gridc.wxGridEvent_AltDown,(self,) + _args, _kwargs)
1585 return val
1586 def __repr__(self):
1587 return "<C wxGridEvent instance at %s>" % (self.this,)
1588class wxGridEvent(wxGridEventPtr):
1589 def __init__(self,*_args,**_kwargs):
1590 self.this = apply(gridc.new_wxGridEvent,_args,_kwargs)
1591 self.thisown = 1
1592
1593
1594
1595
1596class wxGridSizeEventPtr(wxNotifyEventPtr):
1597 def __init__(self,this):
1598 self.this = this
1599 self.thisown = 0
1600 def GetRowOrCol(self, *_args, **_kwargs):
1601 val = apply(gridc.wxGridSizeEvent_GetRowOrCol,(self,) + _args, _kwargs)
1602 return val
1603 def GetPosition(self, *_args, **_kwargs):
1604 val = apply(gridc.wxGridSizeEvent_GetPosition,(self,) + _args, _kwargs)
1605 if val: val = wxPointPtr(val) ; val.thisown = 1
1606 return val
1607 def ControlDown(self, *_args, **_kwargs):
1608 val = apply(gridc.wxGridSizeEvent_ControlDown,(self,) + _args, _kwargs)
1609 return val
1610 def MetaDown(self, *_args, **_kwargs):
1611 val = apply(gridc.wxGridSizeEvent_MetaDown,(self,) + _args, _kwargs)
1612 return val
1613 def ShiftDown(self, *_args, **_kwargs):
1614 val = apply(gridc.wxGridSizeEvent_ShiftDown,(self,) + _args, _kwargs)
1615 return val
1616 def AltDown(self, *_args, **_kwargs):
1617 val = apply(gridc.wxGridSizeEvent_AltDown,(self,) + _args, _kwargs)
1618 return val
1619 def __repr__(self):
1620 return "<C wxGridSizeEvent instance at %s>" % (self.this,)
1621class wxGridSizeEvent(wxGridSizeEventPtr):
1622 def __init__(self,*_args,**_kwargs):
1623 self.this = apply(gridc.new_wxGridSizeEvent,_args,_kwargs)
1624 self.thisown = 1
1625
1626
1627
1628
1629class wxGridRangeSelectEventPtr(wxNotifyEventPtr):
1630 def __init__(self,this):
1631 self.this = this
1632 self.thisown = 0
1633 def GetTopLeftCoords(self, *_args, **_kwargs):
1634 val = apply(gridc.wxGridRangeSelectEvent_GetTopLeftCoords,(self,) + _args, _kwargs)
1635 if val: val = wxGridCellCoordsPtr(val) ; val.thisown = 1
1636 return val
1637 def GetBottomRightCoords(self, *_args, **_kwargs):
1638 val = apply(gridc.wxGridRangeSelectEvent_GetBottomRightCoords,(self,) + _args, _kwargs)
1639 if val: val = wxGridCellCoordsPtr(val) ; val.thisown = 1
1640 return val
1641 def GetTopRow(self, *_args, **_kwargs):
1642 val = apply(gridc.wxGridRangeSelectEvent_GetTopRow,(self,) + _args, _kwargs)
1643 return val
1644 def GetBottomRow(self, *_args, **_kwargs):
1645 val = apply(gridc.wxGridRangeSelectEvent_GetBottomRow,(self,) + _args, _kwargs)
1646 return val
1647 def GetLeftCol(self, *_args, **_kwargs):
1648 val = apply(gridc.wxGridRangeSelectEvent_GetLeftCol,(self,) + _args, _kwargs)
1649 return val
1650 def GetRightCol(self, *_args, **_kwargs):
1651 val = apply(gridc.wxGridRangeSelectEvent_GetRightCol,(self,) + _args, _kwargs)
1652 return val
1653 def Selecting(self, *_args, **_kwargs):
1654 val = apply(gridc.wxGridRangeSelectEvent_Selecting,(self,) + _args, _kwargs)
1655 return val
1656 def ControlDown(self, *_args, **_kwargs):
1657 val = apply(gridc.wxGridRangeSelectEvent_ControlDown,(self,) + _args, _kwargs)
1658 return val
1659 def MetaDown(self, *_args, **_kwargs):
1660 val = apply(gridc.wxGridRangeSelectEvent_MetaDown,(self,) + _args, _kwargs)
1661 return val
1662 def ShiftDown(self, *_args, **_kwargs):
1663 val = apply(gridc.wxGridRangeSelectEvent_ShiftDown,(self,) + _args, _kwargs)
1664 return val
1665 def AltDown(self, *_args, **_kwargs):
1666 val = apply(gridc.wxGridRangeSelectEvent_AltDown,(self,) + _args, _kwargs)
1667 return val
1668 def __repr__(self):
1669 return "<C wxGridRangeSelectEvent instance at %s>" % (self.this,)
1670class wxGridRangeSelectEvent(wxGridRangeSelectEventPtr):
1671 def __init__(self,*_args,**_kwargs):
1672 self.this = apply(gridc.new_wxGridRangeSelectEvent,_args,_kwargs)
1673 self.thisown = 1
1674
1675
1676
1677
1678class wxGridEditorCreatedEventPtr(wxCommandEventPtr):
1679 def __init__(self,this):
1680 self.this = this
1681 self.thisown = 0
1682 def GetRow(self, *_args, **_kwargs):
1683 val = apply(gridc.wxGridEditorCreatedEvent_GetRow,(self,) + _args, _kwargs)
1684 return val
1685 def GetCol(self, *_args, **_kwargs):
1686 val = apply(gridc.wxGridEditorCreatedEvent_GetCol,(self,) + _args, _kwargs)
1687 return val
1688 def GetControl(self, *_args, **_kwargs):
1689 val = apply(gridc.wxGridEditorCreatedEvent_GetControl,(self,) + _args, _kwargs)
1690 return val
1691 def SetRow(self, *_args, **_kwargs):
1692 val = apply(gridc.wxGridEditorCreatedEvent_SetRow,(self,) + _args, _kwargs)
1693 return val
1694 def SetCol(self, *_args, **_kwargs):
1695 val = apply(gridc.wxGridEditorCreatedEvent_SetCol,(self,) + _args, _kwargs)
1696 return val
1697 def SetControl(self, *_args, **_kwargs):
1698 val = apply(gridc.wxGridEditorCreatedEvent_SetControl,(self,) + _args, _kwargs)
1699 return val
1700 def __repr__(self):
1701 return "<C wxGridEditorCreatedEvent instance at %s>" % (self.this,)
1702class wxGridEditorCreatedEvent(wxGridEditorCreatedEventPtr):
1703 def __init__(self,*_args,**_kwargs):
1704 self.this = apply(gridc.new_wxGridEditorCreatedEvent,_args,_kwargs)
1705 self.thisown = 1
1706
1707
1708
1709
1710
1711
1712#-------------- FUNCTION WRAPPERS ------------------
1713
1714
1715
1716#-------------- VARIABLE WRAPPERS ------------------
1717
1718wxGRID_VALUE_STRING = gridc.wxGRID_VALUE_STRING
1719wxGRID_VALUE_BOOL = gridc.wxGRID_VALUE_BOOL
1720wxGRID_VALUE_NUMBER = gridc.wxGRID_VALUE_NUMBER
1721wxGRID_VALUE_FLOAT = gridc.wxGRID_VALUE_FLOAT
1722wxGRID_VALUE_CHOICE = gridc.wxGRID_VALUE_CHOICE
1723wxGRID_VALUE_TEXT = gridc.wxGRID_VALUE_TEXT
1724wxGRID_VALUE_LONG = gridc.wxGRID_VALUE_LONG
eb28fd47
RD
1725wxGRID_VALUE_CHOICEINT = gridc.wxGRID_VALUE_CHOICEINT
1726wxGRID_VALUE_DATETIME = gridc.wxGRID_VALUE_DATETIME
e6056257
RD
1727cvar = gridc.cvar
1728wxGridNoCellCoords = wxGridCellCoordsPtr(gridc.cvar.wxGridNoCellCoords)
1729wxGridNoCellRect = wxRectPtr(gridc.cvar.wxGridNoCellRect)
1730wxGRIDTABLE_REQUEST_VIEW_GET_VALUES = gridc.wxGRIDTABLE_REQUEST_VIEW_GET_VALUES
1731wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES = gridc.wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES
1732wxGRIDTABLE_NOTIFY_ROWS_INSERTED = gridc.wxGRIDTABLE_NOTIFY_ROWS_INSERTED
1733wxGRIDTABLE_NOTIFY_ROWS_APPENDED = gridc.wxGRIDTABLE_NOTIFY_ROWS_APPENDED
1734wxGRIDTABLE_NOTIFY_ROWS_DELETED = gridc.wxGRIDTABLE_NOTIFY_ROWS_DELETED
1735wxGRIDTABLE_NOTIFY_COLS_INSERTED = gridc.wxGRIDTABLE_NOTIFY_COLS_INSERTED
1736wxGRIDTABLE_NOTIFY_COLS_APPENDED = gridc.wxGRIDTABLE_NOTIFY_COLS_APPENDED
1737wxGRIDTABLE_NOTIFY_COLS_DELETED = gridc.wxGRIDTABLE_NOTIFY_COLS_DELETED
1738wxEVT_GRID_CELL_LEFT_CLICK = gridc.wxEVT_GRID_CELL_LEFT_CLICK
1739wxEVT_GRID_CELL_RIGHT_CLICK = gridc.wxEVT_GRID_CELL_RIGHT_CLICK
1740wxEVT_GRID_CELL_LEFT_DCLICK = gridc.wxEVT_GRID_CELL_LEFT_DCLICK
1741wxEVT_GRID_CELL_RIGHT_DCLICK = gridc.wxEVT_GRID_CELL_RIGHT_DCLICK
1742wxEVT_GRID_LABEL_LEFT_CLICK = gridc.wxEVT_GRID_LABEL_LEFT_CLICK
1743wxEVT_GRID_LABEL_RIGHT_CLICK = gridc.wxEVT_GRID_LABEL_RIGHT_CLICK
1744wxEVT_GRID_LABEL_LEFT_DCLICK = gridc.wxEVT_GRID_LABEL_LEFT_DCLICK
1745wxEVT_GRID_LABEL_RIGHT_DCLICK = gridc.wxEVT_GRID_LABEL_RIGHT_DCLICK
1746wxEVT_GRID_ROW_SIZE = gridc.wxEVT_GRID_ROW_SIZE
1747wxEVT_GRID_COL_SIZE = gridc.wxEVT_GRID_COL_SIZE
1748wxEVT_GRID_RANGE_SELECT = gridc.wxEVT_GRID_RANGE_SELECT
1749wxEVT_GRID_CELL_CHANGE = gridc.wxEVT_GRID_CELL_CHANGE
1750wxEVT_GRID_SELECT_CELL = gridc.wxEVT_GRID_SELECT_CELL
1751wxEVT_GRID_EDITOR_SHOWN = gridc.wxEVT_GRID_EDITOR_SHOWN
1752wxEVT_GRID_EDITOR_HIDDEN = gridc.wxEVT_GRID_EDITOR_HIDDEN
1753wxEVT_GRID_EDITOR_CREATED = gridc.wxEVT_GRID_EDITOR_CREATED
1754
1755
1756#-------------- USER INCLUDE -----------------------
1757
1758
1759
1760# Stuff these names into the wx namespace so wxPyConstructObject can find them
1761
1762wx.wxGridEventPtr = wxGridEventPtr
1763wx.wxGridSizeEventPtr = wxGridSizeEventPtr
1764wx.wxGridRangeSelectEventPtr = wxGridRangeSelectEventPtr
1765wx.wxGridEditorCreatedEventPtr = wxGridEditorCreatedEventPtr
1766wx.wxGridCellRendererPtr = wxGridCellRendererPtr
1767wx.wxPyGridCellRendererPtr = wxPyGridCellRendererPtr
1768wx.wxGridCellEditorPtr = wxGridCellEditorPtr
1769wx.wxPyGridCellEditorPtr = wxPyGridCellEditorPtr
1770wx.wxGridCellAttrPtr = wxGridCellAttrPtr
1771wx.wxGridCellAttrProviderPtr = wxGridCellAttrProviderPtr
1772wx.wxPyGridCellAttrProviderPtr = wxPyGridCellAttrProviderPtr
1773wx.wxGridTableBasePtr = wxGridTableBasePtr
1774wx.wxPyGridTableBasePtr = wxPyGridTableBasePtr
1775wx.wxGridTableMessagePtr = wxGridTableMessagePtr
1776wx.wxGridCellCoordsPtr = wxGridCellCoordsPtr
1777wx.wxGridPtr = wxGridPtr