Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.6
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if False:
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_pcbnew', [dirname(__file__)])
except ImportError:
import _pcbnew
return _pcbnew
if fp is not None:
try:
_mod = imp.load_module('_pcbnew', fp, pathname, description)
finally:
fp.close()
return _mod
_pcbnew = swig_import_helper()
del swig_import_helper
else:
import _pcbnew
del version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if (name == "thisown"):
return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
if (not static):
if _newclass:
object.__setattr__(self, name, value)
else:
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self, class_type, name, value):
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
def _swig_getattr_nondynamic(self, class_type, name, static=1):
if (name == "thisown"):
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
if (not static):
return object.__getattr__(self, name)
else:
raise AttributeError(name)
def _swig_getattr(self, class_type, name):
return _swig_getattr_nondynamic(self, class_type, name, 0)
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
try:
_object = object
_newclass = 1
except AttributeError:
class _object:
pass
_newclass = 0
class SwigPyIterator(_object):
"""Proxy of C++ swig::SwigPyIterator class"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _pcbnew.delete_SwigPyIterator
__del__ = lambda self: None
def value(self):
"""value(SwigPyIterator self) -> PyObject *"""
return _pcbnew.SwigPyIterator_value(self)
def incr(self, n=1):
"""
incr(SwigPyIterator self, size_t n=1) -> SwigPyIterator
incr(SwigPyIterator self) -> SwigPyIterator
"""
return _pcbnew.SwigPyIterator_incr(self, n)
def decr(self, n=1):
"""
decr(SwigPyIterator self, size_t n=1) -> SwigPyIterator
decr(SwigPyIterator self) -> SwigPyIterator
"""
return _pcbnew.SwigPyIterator_decr(self, n)
def distance(self, x):
"""distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"""
return _pcbnew.SwigPyIterator_distance(self, x)
def equal(self, x):
"""equal(SwigPyIterator self, SwigPyIterator x) -> bool"""
return _pcbnew.SwigPyIterator_equal(self, x)
def copy(self):
"""copy(SwigPyIterator self) -> SwigPyIterator"""
return _pcbnew.SwigPyIterator_copy(self)
def next(self):
"""next(SwigPyIterator self) -> PyObject *"""
return _pcbnew.SwigPyIterator_next(self)
def __next__(self):
"""__next__(SwigPyIterator self) -> PyObject *"""
return _pcbnew.SwigPyIterator___next__(self)
def previous(self):
"""previous(SwigPyIterator self) -> PyObject *"""
return _pcbnew.SwigPyIterator_previous(self)
def advance(self, n):
"""advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
return _pcbnew.SwigPyIterator_advance(self, n)
def __eq__(self, x):
"""__eq__(SwigPyIterator self, SwigPyIterator x) -> bool"""
return _pcbnew.SwigPyIterator___eq__(self, x)
def __ne__(self, x):
"""__ne__(SwigPyIterator self, SwigPyIterator x) -> bool"""
return _pcbnew.SwigPyIterator___ne__(self, x)
def __iadd__(self, n):
"""__iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
return _pcbnew.SwigPyIterator___iadd__(self, n)
def __isub__(self, n):
"""__isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
return _pcbnew.SwigPyIterator___isub__(self, n)
def __add__(self, n):
"""__add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
return _pcbnew.SwigPyIterator___add__(self, n)
def __sub__(self, *args):
"""
__sub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator
__sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t
"""
return _pcbnew.SwigPyIterator___sub__(self, *args)
def __iter__(self):
return self
SwigPyIterator_swigregister = _pcbnew.SwigPyIterator_swigregister
SwigPyIterator_swigregister(SwigPyIterator)
class string(_object):
"""Proxy of C++ std::basic_string<(char)> class"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, string, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, string, name)
__repr__ = _swig_repr
def length(self):
"""length(string self) -> std::basic_string< char >::size_type"""
return _pcbnew.string_length(self)
def max_size(self):
"""max_size(string self) -> std::basic_string< char >::size_type"""
return _pcbnew.string_max_size(self)
def capacity(self):
"""capacity(string self) -> std::basic_string< char >::size_type"""
return _pcbnew.string_capacity(self)
def reserve(self, __res_arg=0):
"""
reserve(string self, std::basic_string< char >::size_type __res_arg=0)
reserve(string self)
"""
return _pcbnew.string_reserve(self, __res_arg)
def copy(self, __s, __n, __pos=0):
"""
copy(string self, char * __s, std::basic_string< char >::size_type __n, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
copy(string self, char * __s, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
"""
return _pcbnew.string_copy(self, __s, __n, __pos)
def c_str(self):
"""c_str(string self) -> char const *"""
return _pcbnew.string_c_str(self)
def find(self, *args):
"""
find(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
find(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
find(string self, string __str) -> std::basic_string< char >::size_type
find(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
find(string self, char __c) -> std::basic_string< char >::size_type
"""
return _pcbnew.string_find(self, *args)
def rfind(self, *args):
"""
rfind(string self, string __str, std::basic_string< char >::size_type __pos) -> std::basic_string< char >::size_type
rfind(string self, string __str) -> std::basic_string< char >::size_type
rfind(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
rfind(string self, char __c, std::basic_string< char >::size_type __pos) -> std::basic_string< char >::size_type
rfind(string self, char __c) -> std::basic_string< char >::size_type
"""
return _pcbnew.string_rfind(self, *args)
def find_first_of(self, *args):
"""
find_first_of(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
find_first_of(string self, string __str) -> std::basic_string< char >::size_type
find_first_of(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
find_first_of(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
find_first_of(string self, char __c) -> std::basic_string< char >::size_type
"""
return _pcbnew.string_find_first_of(self, *args)
def find_last_of(self, *args):
"""
find_last_of(string self, string __str, std::basic_string< char >::size_type __pos) -> std::basic_string< char >::size_type
find_last_of(string self, string __str) -> std::basic_string< char >::size_type
find_last_of(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
find_last_of(string self, char __c, std::basic_string< char >::size_type __pos) -> std::basic_string< char >::size_type
find_last_of(string self, char __c) -> std::basic_string< char >::size_type
"""
return _pcbnew.string_find_last_of(self, *args)
def find_first_not_of(self, *args):
"""
find_first_not_of(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
find_first_not_of(string self, string __str) -> std::basic_string< char >::size_type
find_first_not_of(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
find_first_not_of(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
find_first_not_of(string self, char __c) -> std::basic_string< char >::size_type
"""
return _pcbnew.string_find_first_not_of(self, *args)
def find_last_not_of(self, *args):
"""
find_last_not_of(string self, string __str, std::basic_string< char >::size_type __pos) -> std::basic_string< char >::size_type
find_last_not_of(string self, string __str) -> std::basic_string< char >::size_type
find_last_not_of(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
find_last_not_of(string self, char __c, std::basic_string< char >::size_type __pos) -> std::basic_string< char >::size_type
find_last_not_of(string self, char __c) -> std::basic_string< char >::size_type
"""
return _pcbnew.string_find_last_not_of(self, *args)
def substr(self, *args):
"""
substr(string self, std::basic_string< char >::size_type __pos=0, std::basic_string< char >::size_type __n) -> string
substr(string self, std::basic_string< char >::size_type __pos=0) -> string
substr(string self) -> string
"""
return _pcbnew.string_substr(self, *args)
def empty(self):
"""empty(string self) -> bool"""
return _pcbnew.string_empty(self)
def size(self):
"""size(string self) -> std::basic_string< char >::size_type"""
return _pcbnew.string_size(self)
def swap(self, v):
"""swap(string self, string v)"""
return _pcbnew.string_swap(self, v)
def get_allocator(self):
"""get_allocator(string self) -> std::basic_string< char >::allocator_type"""
return _pcbnew.string_get_allocator(self)
def begin(self):
"""begin(string self) -> std::basic_string< char >::iterator"""
return _pcbnew.string_begin(self)
def end(self):
"""end(string self) -> std::basic_string< char >::iterator"""
return _pcbnew.string_end(self)
def rbegin(self):
"""rbegin(string self) -> std::basic_string< char >::reverse_iterator"""
return _pcbnew.string_rbegin(self)
def rend(self):
"""rend(string self) -> std::basic_string< char >::reverse_iterator"""
return _pcbnew.string_rend(self)
def erase(self, *args):
"""
erase(string self, std::basic_string< char >::size_type __pos=0, std::basic_string< char >::size_type __n) -> string
erase(string self, std::basic_string< char >::size_type __pos=0) -> string
erase(string self) -> string
erase(string self, std::basic_string< char >::iterator pos) -> std::basic_string< char >::iterator
erase(string self, std::basic_string< char >::iterator first, std::basic_string< char >::iterator last) -> std::basic_string< char >::iterator
"""
return _pcbnew.string_erase(self, *args)
def __init__(self, *args):
"""
__init__(std::basic_string<(char)> self, char const * __s, std::basic_string< char >::size_type __n) -> string
__init__(std::basic_string<(char)> self) -> string
__init__(std::basic_string<(char)> self, string arg2) -> string
__init__(std::basic_string<(char)> self, std::basic_string< char >::size_type size, std::basic_string< char >::value_type value) -> string
"""
this = _pcbnew.new_string(*args)
try:
self.this.append(this)
except:
self.this = this
def assign(self, *args):
"""
assign(string self, string __str) -> string
assign(string self, string __str, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> string
assign(string self, char const * __s, std::basic_string< char >::size_type __n) -> string
assign(string self, std::basic_string< char >::size_type n, std::basic_string< char >::value_type x)
"""
return _pcbnew.string_assign(self, *args)
def resize(self, *args):
"""
resize(string self, std::basic_string< char >::size_type new_size)
resize(string self, std::basic_string< char >::size_type new_size, std::basic_string< char >::value_type x)
"""
return _pcbnew.string_resize(self, *args)
def iterator(self):
"""iterator(string self) -> SwigPyIterator"""
return _pcbnew.string_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
"""__nonzero__(string self) -> bool"""
return _pcbnew.string___nonzero__(self)
def __bool__(self):
"""__bool__(string self) -> bool"""
return _pcbnew.string___bool__(self)
def __len__(self):
"""__len__(string self) -> std::basic_string< char >::size_type"""
return _pcbnew.string___len__(self)
def __getslice__(self, i, j):
"""__getslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j) -> string"""
return _pcbnew.string___getslice__(self, i, j)
def __setslice__(self, *args):
"""
__setslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j, string v)
__setslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j)
"""
return _pcbnew.string___setslice__(self, *args)
def __delslice__(self, i, j):
"""__delslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j)"""
return _pcbnew.string___delslice__(self, i, j)
def __delitem__(self, *args):
"""
__delitem__(string self, std::basic_string< char >::difference_type i)
__delitem__(string self, PySliceObject * slice)
"""
return _pcbnew.string___delitem__(self, *args)
def __getitem__(self, *args):
"""
__getitem__(string self, PySliceObject * slice) -> string
__getitem__(string self, std::basic_string< char >::difference_type i) -> std::basic_string< char >::value_type
"""
return _pcbnew.string___getitem__(self, *args)
def __setitem__(self, *args):
"""
__setitem__(string self, PySliceObject * slice, string v)
__setitem__(string self, PySliceObject * slice)
__setitem__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::value_type x)
"""
return _pcbnew.string___setitem__(self, *args)
def insert(self, *args):
"""
insert(string self, std::basic_string< char >::size_type __pos1, string __str) -> string
insert(string self, std::basic_string< char >::size_type __pos1, string __str, std::basic_string< char >::size_type __pos2, std::basic_string< char >::size_type __n) -> string
insert(string self, std::basic_string< char >::size_type __pos, char const * __s, std::basic_string< char >::size_type __n) -> string
insert(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n, char __c) -> string
insert(string self, std::basic_string< char >::iterator pos, std::basic_string< char >::value_type x) -> std::basic_string< char >::iterator
insert(string self, std::basic_string< char >::iterator pos, std::basic_string< char >::size_type n, std::basic_string< char >::value_type x)
insert(string self, std::basic_string< char >::iterator __p, std::basic_string< char >::size_type __n, char __c)
"""
return _pcbnew.string_insert(self, *args)
def replace(self, *args):
"""
replace(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n, string __str) -> string
replace(string self, std::basic_string< char >::size_type __pos1, std::basic_string< char >::size_type __n1, string __str, std::basic_string< char >::size_type __pos2, std::basic_string< char >::size_type __n2) -> string
replace(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n1, char const * __s, std::basic_string< char >::size_type __n2) -> string
replace(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n1, std::basic_string< char >::size_type __n2, char __c) -> string
replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, string __str) -> string
replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, char const * __s, std::basic_string< char >::size_type __n) -> string
replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, std::basic_string< char >::size_type __n, char __c) -> string
replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, char const * __k1, char const * __k2) -> string
replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, std::basic_string< char >::const_iterator __k1, std::basic_string< char >::const_iterator __k2) -> string
"""
return _pcbnew.string_replace(self, *args)
def __iadd__(self, v):
"""__iadd__(string self, string v) -> string"""
return _pcbnew.string___iadd__(self, v)
def __add__(self, v):
"""__add__(string self, string v) -> string"""
return _pcbnew.string___add__(self, v)
def __radd__(self, v):
"""__radd__(string self, string v) -> string"""
return _pcbnew.string___radd__(self, v)
def __str__(self):
"""__str__(string self) -> string"""
return _pcbnew.string___str__(self)
def __rlshift__(self, out):
"""__rlshift__(string self, std::basic_ostream< char,std::char_traits< char > > & out) -> std::basic_ostream< char,std::char_traits< char > > &"""
return _pcbnew.string___rlshift__(self, out)
def __eq__(self, v):
"""__eq__(string self, string v) -> bool"""
return _pcbnew.string___eq__(self, v)
def __ne__(self, v):
"""__ne__(string self, string v) -> bool"""
return _pcbnew.string___ne__(self, v)
def __gt__(self, v):
"""__gt__(string self, string v) -> bool"""
return _pcbnew.string___gt__(self, v)
def __lt__(self, v):
"""__lt__(string self, string v) -> bool"""
return _pcbnew.string___lt__(self, v)
def __ge__(self, v):
"""__ge__(string self, string v) -> bool"""
return _pcbnew.string___ge__(self, v)
def __le__(self, v):
"""__le__(string self, string v) -> bool"""
return _pcbnew.string___le__(self, v)
__swig_destroy__ = _pcbnew.delete_string
__del__ = lambda self: None
string_swigregister = _pcbnew.string_swigregister
string_swigregister(string)
cvar = _pcbnew.cvar
string.npos = _pcbnew.cvar.string_npos
def wxSetDefaultPyEncoding(encoding):
"""wxSetDefaultPyEncoding(char const * encoding)"""
return _pcbnew.wxSetDefaultPyEncoding(encoding)
def wxGetDefaultPyEncoding():
"""wxGetDefaultPyEncoding() -> char const *"""
return _pcbnew.wxGetDefaultPyEncoding()
class wxRect(_object):
"""Proxy of C++ wxRect class"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, wxRect, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, wxRect, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
__init__(wxRect self) -> wxRect
__init__(wxRect self, int xx, int yy, int ww, int hh) -> wxRect
__init__(wxRect self, wxPoint topLeft, wxPoint bottomRight) -> wxRect
__init__(wxRect self, wxPoint pt, wxSize size) -> wxRect
__init__(wxRect self, wxSize size) -> wxRect
"""
this = _pcbnew.new_wxRect(*args)
try:
self.this.append(this)
except:
self.this = this
def GetX(self):
"""GetX(wxRect self) -> int"""
return _pcbnew.wxRect_GetX(self)
def SetX(self, xx):
"""SetX(wxRect self, int xx)"""
return _pcbnew.wxRect_SetX(self, xx)
def GetY(self):
"""GetY(wxRect self) -> int"""
return _pcbnew.wxRect_GetY(self)
def SetY(self, yy):
"""SetY(wxRect self, int yy)"""
return _pcbnew.wxRect_SetY(self, yy)
def GetWidth(self):
"""GetWidth(wxRect self) -> int"""
return _pcbnew.wxRect_GetWidth(self)
def SetWidth(self, w):
"""SetWidth(wxRect self, int w)"""
return _pcbnew.wxRect_SetWidth(self, w)
def GetHeight(self):
"""GetHeight(wxRect self) -> int"""
return _pcbnew.wxRect_GetHeight(self)
def SetHeight(self, h):
"""SetHeight(wxRect self, int h)"""
return _pcbnew.wxRect_SetHeight(self, h)
def GetPosition(self):
"""GetPosition(wxRect self) -> wxPoint"""
return _pcbnew.wxRect_GetPosition(self)
def SetPosition(self, p):
"""SetPosition(wxRect self, wxPoint p)"""
return _pcbnew.wxRect_SetPosition(self, p)
__swig_setmethods__["x"] = _pcbnew.wxRect_x_set
__swig_getmethods__["x"] = _pcbnew.wxRect_x_get
if _newclass:
x = _swig_property(_pcbnew.wxRect_x_get, _pcbnew.wxRect_x_set)
__swig_setmethods__["y"] = _pcbnew.wxRect_y_set
__swig_getmethods__["y"] = _pcbnew.wxRect_y_get
if _newclass:
y = _swig_property(_pcbnew.wxRect_y_get, _pcbnew.wxRect_y_set)
__swig_setmethods__["width"] = _pcbnew.wxRect_width_set
__swig_getmethods__["width"] = _pcbnew.wxRect_width_get
if _newclass:
width = _swig_property(_pcbnew.wxRect_width_get, _pcbnew.wxRect_width_set)
__swig_setmethods__["height"] = _pcbnew.wxRect_height_set
__swig_getmethods__["height"] = _pcbnew.wxRect_height_get
if _newclass:
height = _swig_property(_pcbnew.wxRect_height_get, _pcbnew.wxRect_height_set)
def Get(self):
"""Get(wxRect self) -> PyObject *"""
return _pcbnew.wxRect_Get(self)
def __eq__(self,other):
return self.x==other.x and self.y==other.y and self.width==other.width and self.height==other.height
def __str__(self): return str(self.Get())
def __repr__(self): return 'wxRect'+str(self.Get())
def __len__(self): return len(self.Get())
def __getitem__(self, index): return self.Get()[index]
def __setitem__(self, index, val):
if index == 0: self.SetX(val)
elif index == 1: self.SetY(val)
elif index == 2: self.SetWidth(val)
elif index == 3: self.SetHeight(val)
else: raise IndexError
def __nonzero__(self): return self.Get() != (0,0,0,0)
__safe_for_unpickling__ = True
__swig_destroy__ = _pcbnew.delete_wxRect
__del__ = lambda self: None
wxRect_swigregister = _pcbnew.wxRect_swigregister
wxRect_swigregister(wxRect)
class wxSize(_object):
"""Proxy of C++ wxSize class"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, wxSize, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, wxSize, name)
__repr__ = _swig_repr
__swig_setmethods__["x"] = _pcbnew.wxSize_x_set
__swig_getmethods__["x"] = _pcbnew.wxSize_x_get
if _newclass:
x = _swig_property(_pcbnew.wxSize_x_get, _pcbnew.wxSize_x_set)
__swig_setmethods__["y"] = _pcbnew.wxSize_y_set
__swig_getmethods__["y"] = _pcbnew.wxSize_y_get
if _newclass:
y = _swig_property(_pcbnew.wxSize_y_get, _pcbnew.wxSize_y_set)
def __init__(self, *args):
"""
__init__(wxSize self, int xx, int yy) -> wxSize
__init__(wxSize self, double xx, double yy) -> wxSize
"""
this = _pcbnew.new_wxSize(*args)
try:
self.this.append(this)
except:
self.this = this
def Get(self):
"""Get(wxSize self) -> PyObject *"""
return _pcbnew.wxSize_Get(self)
__swig_destroy__ = _pcbnew.delete_wxSize
__del__ = lambda self: None
def SetWidth(self, w):
"""SetWidth(wxSize self, int w)"""
return _pcbnew.wxSize_SetWidth(self, w)
def SetHeight(self, h):
"""SetHeight(wxSize self, int h)"""
return _pcbnew.wxSize_SetHeight(self, h)
def GetWidth(self):
"""GetWidth(wxSize self) -> int"""
return _pcbnew.wxSize_GetWidth(self)
def GetHeight(self):
"""GetHeight(wxSize self) -> int"""
return _pcbnew.wxSize_GetHeight(self)
def Scale(self,xscale,yscale):
return wxSize(self.x*xscale,self.y*yscale)
def __eq__(self,other):
return self.GetWidth()==other.GetWidth() and self.GetHeight()==other.GetHeight()
def __str__(self): return str(self.Get())
def __repr__(self): return 'wxSize'+str(self.Get())
def __len__(self): return len(self.Get())
def __getitem__(self, index): return self.Get()[index]
def __setitem__(self, index, val):
if index == 0: self.SetWidth(val)
elif index == 1: self.SetHeight(val)
else: raise IndexError
def __nonzero__(self): return self.Get() != (0,0)
__safe_for_unpickling__ = True
wxSize_swigregister = _pcbnew.wxSize_swigregister
wxSize_swigregister(wxSize)
class wxPoint(_object):
"""Proxy of C++ wxPoint class"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, wxPoint, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, wxPoint, name)
__repr__ = _swig_repr
__swig_setmethods__["x"] = _pcbnew.wxPoint_x_set
__swig_getmethods__["x"] = _pcbnew.wxPoint_x_get
if _newclass:
x = _swig_property(_pcbnew.wxPoint_x_get, _pcbnew.wxPoint_x_set)
__swig_setmethods__["y"] = _pcbnew.wxPoint_y_set
__swig_getmethods__["y"] = _pcbnew.wxPoint_y_get
if _newclass:
y = _swig_property(_pcbnew.wxPoint_y_get, _pcbnew.wxPoint_y_set)
def __init__(self, *args):
"""
__init__(wxPoint self, int xx, int yy) -> wxPoint
__init__(wxPoint self, double xx, double yy) -> wxPoint
"""
this = _pcbnew.new_wxPoint(*args)
try:
self.this.append(this)
except:
self.this = this
__swig_destroy__ = _pcbnew.delete_wxPoint
__del__ = lambda self: None
def __add__(self, pt):
"""__add__(wxPoint self, wxPoint pt) -> wxPoint"""
return _pcbnew.wxPoint___add__(self, pt)
def __sub__(self, pt):
"""__sub__(wxPoint self, wxPoint pt) -> wxPoint"""
return _pcbnew.wxPoint___sub__(self, pt)
def Set(self, x, y):
"""Set(wxPoint self, long x, long y)"""
return _pcbnew.wxPoint_Set(self, x, y)
def Get(self):
"""Get(wxPoint self) -> PyObject *"""
return _pcbnew.wxPoint_Get(self)
def __eq__(self,other): return (self.x==other.x and self.y==other.y)
def __ne__(self,other): return not (self==other)
def __str__(self): return str(self.Get())
def __repr__(self): return 'wxPoint'+str(self.Get())
def __len__(self): return len(self.Get())
def __getitem__(self, index): return self.Get()[index]
def __setitem__(self, index, val):
if index == 0:
self.x = val
elif index == 1:
self.y = val
else:
raise IndexError
def __nonzero__(self): return self.Get() != (0,0)
wxPoint_swigregister = _pcbnew.wxPoint_swigregister
wxPoint_swigregister(wxPoint)
class wxPoint_Vector(_object):
"""Proxy of C++ std::vector<(wxPoint)> class"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, wxPoint_Vector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, wxPoint_Vector, name)
__repr__ = _swig_repr
def iterator(self):
"""iterator(wxPoint_Vector self) -> SwigPyIterator"""
return _pcbnew.wxPoint_Vector_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
"""__nonzero__(wxPoint_Vector self) -> bool"""
return _pcbnew.wxPoint_Vector___nonzero__(self)
def __bool__(self):
"""__bool__(wxPoint_Vector self) -> bool"""
return _pcbnew.wxPoint_Vector___bool__(self)
def __len__(self):
"""__len__(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
return _pcbnew.wxPoint_Vector___len__(self)
def pop(self):
"""pop(wxPoint_Vector self) -> wxPoint"""
return _pcbnew.wxPoint_Vector_pop(self)
def __getslice__(self, i, j):
"""__getslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j) -> wxPoint_Vector"""
return _pcbnew.wxPoint_Vector___getslice__(self, i, j)
def __setslice__(self, *args):
"""
__setslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j, wxPoint_Vector v)
__setslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j)
"""
return _pcbnew.wxPoint_Vector___setslice__(self, *args)
def __delslice__(self, i, j):
"""__delslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j)"""
return _pcbnew.wxPoint_Vector___delslice__(self, i, j)
def __delitem__(self, *args):
"""
__delitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i)
__delitem__(wxPoint_Vector self, PySliceObject * slice)
"""
return _pcbnew.wxPoint_Vector___delitem__(self, *args)
def __getitem__(self, *args):
"""
__getitem__(wxPoint_Vector self, PySliceObject * slice) -> wxPoint_Vector
__getitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i) -> wxPoint
"""
return _pcbnew.wxPoint_Vector___getitem__(self, *args)
def __setitem__(self, *args):
"""
__setitem__(wxPoint_Vector self, PySliceObject * slice, wxPoint_Vector v)
__setitem__(wxPoint_Vector self, PySliceObject * slice)
__setitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, wxPoint x)
"""
return _pcbnew.wxPoint_Vector___setitem__(self, *args)
def append(self, x):
"""append(wxPoint_Vector self, wxPoint x)"""
return _pcbnew.wxPoint_Vector_append(self, x)
def empty(self):
"""empty(wxPoint_Vector self) -> bool"""
return _pcbnew.wxPoint_Vector_empty(self)
def size(self):
"""size(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
return _pcbnew.wxPoint_Vector_size(self)
def clear(self):
"""clear(wxPoint_Vector self)"""
return _pcbnew.wxPoint_Vector_clear(self)
def swap(self, v):
"""swap(wxPoint_Vector self, wxPoint_Vector v)"""
return _pcbnew.wxPoint_Vector_swap(self, v)
def get_allocator(self):
"""get_allocator(wxPoint_Vector self) -> std::vector< wxPoint >::allocator_type"""
return _pcbnew.wxPoint_Vector_get_allocator(self)
def begin(self):
"""begin(wxPoint_Vector self) -> std::vector< wxPoint >::iterator"""
return _pcbnew.wxPoint_Vector_begin(self)
def end(self):
"""end(wxPoint_Vector self) -> std::vector< wxPoint >::iterator"""
return _pcbnew.wxPoint_Vector_end(self)
def rbegin(self):
"""rbegin(wxPoint_Vector self) -> std::vector< wxPoint >::reverse_iterator"""
return _pcbnew.wxPoint_Vector_rbegin(self)
def rend(self):
"""rend(wxPoint_Vector self) -> std::vector< wxPoint >::reverse_iterator"""
return _pcbnew.wxPoint_Vector_rend(self)
def pop_back(self):
"""pop_back(wxPoint_Vector self)"""
return _pcbnew.wxPoint_Vector_pop_back(self)
def erase(self, *args):
"""
erase(wxPoint_Vector self, std::vector< wxPoint >::iterator pos) -> std::vector< wxPoint >::iterator
erase(wxPoint_Vector self, std::vector< wxPoint >::iterator first, std::vector< wxPoint >::iterator last) -> std::vector< wxPoint >::iterator
"""
return _pcbnew.wxPoint_Vector_erase(self, *args)
def __init__(self, *args):
"""
__init__(std::vector<(wxPoint)> self) -> wxPoint_Vector
__init__(std::vector<(wxPoint)> self, wxPoint_Vector arg2) -> wxPoint_Vector
__init__(std::vector<(wxPoint)> self, std::vector< wxPoint >::size_type size) -> wxPoint_Vector
__init__(std::vector<(wxPoint)> self, std::vector< wxPoint >::size_type size, wxPoint value) -> wxPoint_Vector
"""
this = _pcbnew.new_wxPoint_Vector(*args)
try:
self.this.append(this)
except:
self.this = this
def push_back(self, x):
"""push_back(wxPoint_Vector self, wxPoint x)"""
return _pcbnew.wxPoint_Vector_push_back(self, x)
def front(self):
"""front(wxPoint_Vector self) -> wxPoint"""
return _pcbnew.wxPoint_Vector_front(self)
def back(self):
"""back(wxPoint_Vector self) -> wxPoint"""
return _pcbnew.wxPoint_Vector_back(self)
def assign(self, n, x):
"""assign(wxPoint_Vector self, std::vector< wxPoint >::size_type n, wxPoint x)"""
return _pcbnew.wxPoint_Vector_assign(self, n, x)
def resize(self, *args):
"""
resize(wxPoint_Vector self, std::vector< wxPoint >::size_type new_size)
resize(wxPoint_Vector self, std::vector< wxPoint >::size_type new_size, wxPoint x)
"""
return _pcbnew.wxPoint_Vector_resize(self, *args)
def insert(self, *args):
"""