KiCad Pcbnew Python Scripting
pcbnew.py
Go to the documentation of this file.
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.8
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 
8 
9 
10 
11 from sys import version_info
12 if False:
14  from os.path import dirname
15  import imp
16  fp = None
17  try:
18  fp, pathname, description = imp.find_module('_pcbnew', [dirname(__file__)])
19  except ImportError:
20  import _pcbnew
21  return _pcbnew
22  if fp is not None:
23  try:
24  _mod = imp.load_module('_pcbnew', fp, pathname, description)
25  finally:
26  fp.close()
27  return _mod
28  _pcbnew = swig_import_helper()
29  del swig_import_helper
30 else:
31  import _pcbnew
32 del version_info
33 try:
34  _swig_property = property
35 except NameError:
36  pass # Python < 2.2 doesn't have 'property'.
37 
38 
39 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
40  if (name == "thisown"):
41  return self.this.own(value)
42  if (name == "this"):
43  if type(value).__name__ == 'SwigPyObject':
44  self.__dict__[name] = value
45  return
46  method = class_type.__swig_setmethods__.get(name, None)
47  if method:
48  return method(self, value)
49  if (not static):
50  if _newclass:
51  object.__setattr__(self, name, value)
52  else:
53  self.__dict__[name] = value
54  else:
55  raise AttributeError("You cannot add attributes to %s" % self)
56 
57 
58 def _swig_setattr(self, class_type, name, value):
59  return _swig_setattr_nondynamic(self, class_type, name, value, 0)
60 
61 
62 def _swig_getattr_nondynamic(self, class_type, name, static=1):
63  if (name == "thisown"):
64  return self.this.own()
65  method = class_type.__swig_getmethods__.get(name, None)
66  if method:
67  return method(self)
68  if (not static):
69  return object.__getattr__(self, name)
70  else:
71  raise AttributeError(name)
72 
73 def _swig_getattr(self, class_type, name):
74  return _swig_getattr_nondynamic(self, class_type, name, 0)
75 
76 
77 def _swig_repr(self):
78  try:
79  strthis = "proxy of " + self.this.__repr__()
80  except Exception:
81  strthis = ""
82  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
83 
84 try:
85  _object = object
86  _newclass = 1
87 except AttributeError:
88  class _object:
89  pass
90  _newclass = 0
91 
92 
94  """Proxy of C++ swig::SwigPyIterator class."""
95 
96  __swig_setmethods__ = {}
97  __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
98  __swig_getmethods__ = {}
99  __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
100 
101  def __init__(self, *args, **kwargs):
102  raise AttributeError("No constructor defined - class is abstract")
103  __repr__ = _swig_repr
104  __swig_destroy__ = _pcbnew.delete_SwigPyIterator
105  __del__ = lambda self: None
106 
107  def value(self):
108  """value(SwigPyIterator self) -> PyObject *"""
109  return _pcbnew.SwigPyIterator_value(self)
110 
111 
112  def incr(self, n=1):
113  """
114  incr(SwigPyIterator self, size_t n=1) -> SwigPyIterator
115  incr(SwigPyIterator self) -> SwigPyIterator
116  """
117  return _pcbnew.SwigPyIterator_incr(self, n)
118 
119 
120  def decr(self, n=1):
121  """
122  decr(SwigPyIterator self, size_t n=1) -> SwigPyIterator
123  decr(SwigPyIterator self) -> SwigPyIterator
124  """
125  return _pcbnew.SwigPyIterator_decr(self, n)
126 
127 
128  def distance(self, x):
129  """distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"""
130  return _pcbnew.SwigPyIterator_distance(self, x)
131 
132 
133  def equal(self, x):
134  """equal(SwigPyIterator self, SwigPyIterator x) -> bool"""
135  return _pcbnew.SwigPyIterator_equal(self, x)
136 
137 
138  def copy(self):
139  """copy(SwigPyIterator self) -> SwigPyIterator"""
140  return _pcbnew.SwigPyIterator_copy(self)
141 
142 
143  def next(self):
144  """next(SwigPyIterator self) -> PyObject *"""
145  return _pcbnew.SwigPyIterator_next(self)
146 
147 
148  def __next__(self):
149  """__next__(SwigPyIterator self) -> PyObject *"""
150  return _pcbnew.SwigPyIterator___next__(self)
151 
152 
153  def previous(self):
154  """previous(SwigPyIterator self) -> PyObject *"""
155  return _pcbnew.SwigPyIterator_previous(self)
156 
157 
158  def advance(self, n):
159  """advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
160  return _pcbnew.SwigPyIterator_advance(self, n)
161 
162 
163  def __eq__(self, x):
164  """__eq__(SwigPyIterator self, SwigPyIterator x) -> bool"""
165  return _pcbnew.SwigPyIterator___eq__(self, x)
166 
167 
168  def __ne__(self, x):
169  """__ne__(SwigPyIterator self, SwigPyIterator x) -> bool"""
170  return _pcbnew.SwigPyIterator___ne__(self, x)
171 
172 
173  def __iadd__(self, n):
174  """__iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
175  return _pcbnew.SwigPyIterator___iadd__(self, n)
176 
177 
178  def __isub__(self, n):
179  """__isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
180  return _pcbnew.SwigPyIterator___isub__(self, n)
181 
182 
183  def __add__(self, n):
184  """__add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
185  return _pcbnew.SwigPyIterator___add__(self, n)
186 
187 
188  def __sub__(self, *args):
189  """
190  __sub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator
191  __sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t
192  """
193  return _pcbnew.SwigPyIterator___sub__(self, *args)
194 
195  def __iter__(self):
196  return self
197 SwigPyIterator_swigregister = _pcbnew.SwigPyIterator_swigregister
198 SwigPyIterator_swigregister(SwigPyIterator)
199 
201  """Proxy of C++ std::basic_string<(char)> class."""
202 
203  __swig_setmethods__ = {}
204  __setattr__ = lambda self, name, value: _swig_setattr(self, string, name, value)
205  __swig_getmethods__ = {}
206  __getattr__ = lambda self, name: _swig_getattr(self, string, name)
207  __repr__ = _swig_repr
208 
209  def length(self):
210  """length(string self) -> std::basic_string< char >::size_type"""
211  return _pcbnew.string_length(self)
212 
213 
214  def max_size(self):
215  """max_size(string self) -> std::basic_string< char >::size_type"""
216  return _pcbnew.string_max_size(self)
217 
218 
219  def capacity(self):
220  """capacity(string self) -> std::basic_string< char >::size_type"""
221  return _pcbnew.string_capacity(self)
222 
223 
224  def reserve(self, __res_arg=0):
225  """
226  reserve(string self, std::basic_string< char >::size_type __res_arg=0)
227  reserve(string self)
228  """
229  return _pcbnew.string_reserve(self, __res_arg)
230 
231 
232  def copy(self, __s, __n, __pos=0):
233  """
234  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
235  copy(string self, char * __s, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
236  """
237  return _pcbnew.string_copy(self, __s, __n, __pos)
238 
239 
240  def c_str(self):
241  """c_str(string self) -> char const *"""
242  return _pcbnew.string_c_str(self)
243 
244 
245  def find(self, *args):
246  """
247  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
248  find(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
249  find(string self, string __str) -> std::basic_string< char >::size_type
250  find(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
251  find(string self, char __c) -> std::basic_string< char >::size_type
252  """
253  return _pcbnew.string_find(self, *args)
254 
255 
256  def rfind(self, *args):
257  """
258  rfind(string self, string __str, std::basic_string< char >::size_type __pos) -> std::basic_string< char >::size_type
259  rfind(string self, string __str) -> std::basic_string< char >::size_type
260  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
261  rfind(string self, char __c, std::basic_string< char >::size_type __pos) -> std::basic_string< char >::size_type
262  rfind(string self, char __c) -> std::basic_string< char >::size_type
263  """
264  return _pcbnew.string_rfind(self, *args)
265 
266 
267  def find_first_of(self, *args):
268  """
269  find_first_of(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
270  find_first_of(string self, string __str) -> std::basic_string< char >::size_type
271  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
272  find_first_of(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
273  find_first_of(string self, char __c) -> std::basic_string< char >::size_type
274  """
275  return _pcbnew.string_find_first_of(self, *args)
276 
277 
278  def find_last_of(self, *args):
279  """
280  find_last_of(string self, string __str, std::basic_string< char >::size_type __pos) -> std::basic_string< char >::size_type
281  find_last_of(string self, string __str) -> std::basic_string< char >::size_type
282  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
283  find_last_of(string self, char __c, std::basic_string< char >::size_type __pos) -> std::basic_string< char >::size_type
284  find_last_of(string self, char __c) -> std::basic_string< char >::size_type
285  """
286  return _pcbnew.string_find_last_of(self, *args)
287 
288 
289  def find_first_not_of(self, *args):
290  """
291  find_first_not_of(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
292  find_first_not_of(string self, string __str) -> std::basic_string< char >::size_type
293  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
294  find_first_not_of(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
295  find_first_not_of(string self, char __c) -> std::basic_string< char >::size_type
296  """
297  return _pcbnew.string_find_first_not_of(self, *args)
298 
299 
300  def find_last_not_of(self, *args):
301  """
302  find_last_not_of(string self, string __str, std::basic_string< char >::size_type __pos) -> std::basic_string< char >::size_type
303  find_last_not_of(string self, string __str) -> std::basic_string< char >::size_type
304  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
305  find_last_not_of(string self, char __c, std::basic_string< char >::size_type __pos) -> std::basic_string< char >::size_type
306  find_last_not_of(string self, char __c) -> std::basic_string< char >::size_type
307  """
308  return _pcbnew.string_find_last_not_of(self, *args)
309 
310 
311  def substr(self, *args):
312  """
313  substr(string self, std::basic_string< char >::size_type __pos=0, std::basic_string< char >::size_type __n) -> string
314  substr(string self, std::basic_string< char >::size_type __pos=0) -> string
315  substr(string self) -> string
316  """
317  return _pcbnew.string_substr(self, *args)
318 
319 
320  def empty(self):
321  """empty(string self) -> bool"""
322  return _pcbnew.string_empty(self)
323 
324 
325  def size(self):
326  """size(string self) -> std::basic_string< char >::size_type"""
327  return _pcbnew.string_size(self)
328 
329 
330  def swap(self, v):
331  """swap(string self, string v)"""
332  return _pcbnew.string_swap(self, v)
333 
334 
335  def begin(self):
336  """begin(string self) -> std::basic_string< char >::iterator"""
337  return _pcbnew.string_begin(self)
338 
339 
340  def end(self):
341  """end(string self) -> std::basic_string< char >::iterator"""
342  return _pcbnew.string_end(self)
343 
344 
345  def rbegin(self):
346  """rbegin(string self) -> std::basic_string< char >::reverse_iterator"""
347  return _pcbnew.string_rbegin(self)
348 
349 
350  def rend(self):
351  """rend(string self) -> std::basic_string< char >::reverse_iterator"""
352  return _pcbnew.string_rend(self)
353 
354 
355  def get_allocator(self):
356  """get_allocator(string self) -> std::basic_string< char >::allocator_type"""
357  return _pcbnew.string_get_allocator(self)
358 
359 
360  def erase(self, *args):
361  """
362  erase(string self, std::basic_string< char >::size_type __pos=0, std::basic_string< char >::size_type __n) -> string
363  erase(string self, std::basic_string< char >::size_type __pos=0) -> string
364  erase(string self) -> string
365  erase(string self, std::basic_string< char >::iterator pos) -> std::basic_string< char >::iterator
366  erase(string self, std::basic_string< char >::iterator first, std::basic_string< char >::iterator last) -> std::basic_string< char >::iterator
367  """
368  return _pcbnew.string_erase(self, *args)
369 
370 
371  def __init__(self, *args):
372  """
373  __init__(std::basic_string<(char)> self, char const * __s, std::basic_string< char >::size_type __n) -> string
374  __init__(std::basic_string<(char)> self) -> string
375  __init__(std::basic_string<(char)> self, string arg2) -> string
376  __init__(std::basic_string<(char)> self, std::basic_string< char >::size_type size, std::basic_string< char >::value_type value) -> string
377  """
378  this = _pcbnew.new_string(*args)
379  try:
380  self.this.append(this)
381  except Exception:
382  self.this = this
383 
384  def assign(self, *args):
385  """
386  assign(string self, string __str) -> string
387  assign(string self, string __str, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> string
388  assign(string self, char const * __s, std::basic_string< char >::size_type __n) -> string
389  assign(string self, std::basic_string< char >::size_type n, std::basic_string< char >::value_type x)
390  """
391  return _pcbnew.string_assign(self, *args)
392 
393 
394  def resize(self, *args):
395  """
396  resize(string self, std::basic_string< char >::size_type new_size)
397  resize(string self, std::basic_string< char >::size_type new_size, std::basic_string< char >::value_type x)
398  """
399  return _pcbnew.string_resize(self, *args)
400 
401 
402  def iterator(self):
403  """iterator(string self) -> SwigPyIterator"""
404  return _pcbnew.string_iterator(self)
405 
406  def __iter__(self):
407  return self.iterator()
408 
409  def __nonzero__(self):
410  """__nonzero__(string self) -> bool"""
411  return _pcbnew.string___nonzero__(self)
412 
413 
414  def __bool__(self):
415  """__bool__(string self) -> bool"""
416  return _pcbnew.string___bool__(self)
417 
418 
419  def __len__(self):
420  """__len__(string self) -> std::basic_string< char >::size_type"""
421  return _pcbnew.string___len__(self)
422 
423 
424  def __getslice__(self, i, j):
425  """__getslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j) -> string"""
426  return _pcbnew.string___getslice__(self, i, j)
427 
428 
429  def __setslice__(self, *args):
430  """
431  __setslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j)
432  __setslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j, string v)
433  """
434  return _pcbnew.string___setslice__(self, *args)
435 
436 
437  def __delslice__(self, i, j):
438  """__delslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j)"""
439  return _pcbnew.string___delslice__(self, i, j)
440 
441 
442  def __delitem__(self, *args):
443  """
444  __delitem__(string self, std::basic_string< char >::difference_type i)
445  __delitem__(string self, PySliceObject * slice)
446  """
447  return _pcbnew.string___delitem__(self, *args)
448 
449 
450  def __getitem__(self, *args):
451  """
452  __getitem__(string self, PySliceObject * slice) -> string
453  __getitem__(string self, std::basic_string< char >::difference_type i) -> std::basic_string< char >::value_type
454  """
455  return _pcbnew.string___getitem__(self, *args)
456 
457 
458  def __setitem__(self, *args):
459  """
460  __setitem__(string self, PySliceObject * slice, string v)
461  __setitem__(string self, PySliceObject * slice)
462  __setitem__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::value_type x)
463  """
464  return _pcbnew.string___setitem__(self, *args)
465 
466 
467  def insert(self, *args):
468  """
469  insert(string self, std::basic_string< char >::size_type __pos1, string __str) -> string
470  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
471  insert(string self, std::basic_string< char >::size_type __pos, char const * __s, std::basic_string< char >::size_type __n) -> string
472  insert(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n, char __c) -> string
473  insert(string self, std::basic_string< char >::iterator pos, std::basic_string< char >::value_type x) -> std::basic_string< char >::iterator
474  insert(string self, std::basic_string< char >::iterator pos, std::basic_string< char >::size_type n, std::basic_string< char >::value_type x)
475  insert(string self, std::basic_string< char >::iterator __p, std::basic_string< char >::size_type __n, char __c)
476  """
477  return _pcbnew.string_insert(self, *args)
478 
479 
480  def replace(self, *args):
481  """
482  replace(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n, string __str) -> string
483  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
484  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
485  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
486  replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, string __str) -> string
487  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
488  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
489  replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, char const * __k1, char const * __k2) -> string
490  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
491  """
492  return _pcbnew.string_replace(self, *args)
493 
494 
495  def __iadd__(self, v):
496  """__iadd__(string self, string v) -> string"""
497  return _pcbnew.string___iadd__(self, v)
498 
499 
500  def __add__(self, v):
501  """__add__(string self, string v) -> string"""
502  return _pcbnew.string___add__(self, v)
503 
504 
505  def __radd__(self, v):
506  """__radd__(string self, string v) -> string"""
507  return _pcbnew.string___radd__(self, v)
508 
509 
510  def __str__(self):
511  """__str__(string self) -> string"""
512  return _pcbnew.string___str__(self)
513 
514 
515  def __rlshift__(self, out):
516  """__rlshift__(string self, std::basic_ostream< char,std::char_traits< char > > & out) -> std::basic_ostream< char,std::char_traits< char > > &"""
517  return _pcbnew.string___rlshift__(self, out)
518 
519 
520  def __eq__(self, v):
521  """__eq__(string self, string v) -> bool"""
522  return _pcbnew.string___eq__(self, v)
523 
524 
525  def __ne__(self, v):
526  """__ne__(string self, string v) -> bool"""
527  return _pcbnew.string___ne__(self, v)
528 
529 
530  def __gt__(self, v):
531  """__gt__(string self, string v) -> bool"""
532  return _pcbnew.string___gt__(self, v)
533 
534 
535  def __lt__(self, v):
536  """__lt__(string self, string v) -> bool"""
537  return _pcbnew.string___lt__(self, v)
538 
539 
540  def __ge__(self, v):
541  """__ge__(string self, string v) -> bool"""
542  return _pcbnew.string___ge__(self, v)
543 
544 
545  def __le__(self, v):
546  """__le__(string self, string v) -> bool"""
547  return _pcbnew.string___le__(self, v)
548 
549  __swig_destroy__ = _pcbnew.delete_string
550  __del__ = lambda self: None
551 string_swigregister = _pcbnew.string_swigregister
552 string_swigregister(string)
553 cvar = _pcbnew.cvar
554 string.npos = _pcbnew.cvar.string_npos
555 
556 
557 _pcbnew.SHARED_PTR_DISOWN_swigconstant(_pcbnew)
558 SHARED_PTR_DISOWN = _pcbnew.SHARED_PTR_DISOWN
560  """Proxy of C++ KI_PARAM_ERROR class."""
561 
562  __swig_setmethods__ = {}
563  __setattr__ = lambda self, name, value: _swig_setattr(self, KI_PARAM_ERROR, name, value)
564  __swig_getmethods__ = {}
565  __getattr__ = lambda self, name: _swig_getattr(self, KI_PARAM_ERROR, name)
566  __repr__ = _swig_repr
567 
568  def __init__(self, *args):
569  """
570  __init__(KI_PARAM_ERROR self, wxString aMessage) -> KI_PARAM_ERROR
571  __init__(KI_PARAM_ERROR self) -> KI_PARAM_ERROR
572  """
573  this = _pcbnew.new_KI_PARAM_ERROR(*args)
574  try:
575  self.this.append(this)
576  except Exception:
577  self.this = this
578 
579  def What(self):
580  """What(KI_PARAM_ERROR self) -> wxString"""
581  return _pcbnew.KI_PARAM_ERROR_What(self)
582 
583  __swig_destroy__ = _pcbnew.delete_KI_PARAM_ERROR
584  __del__ = lambda self: None
585 KI_PARAM_ERROR_swigregister = _pcbnew.KI_PARAM_ERROR_swigregister
586 KI_PARAM_ERROR_swigregister(KI_PARAM_ERROR)
587 
589  """Proxy of C++ IO_ERROR class."""
590 
591  __swig_setmethods__ = {}
592  __setattr__ = lambda self, name, value: _swig_setattr(self, IO_ERROR, name, value)
593  __swig_getmethods__ = {}
594  __getattr__ = lambda self, name: _swig_getattr(self, IO_ERROR, name)
595  __repr__ = _swig_repr
596 
597  def __init__(self, *args):
598  """
599  __init__(IO_ERROR self, wxString aProblem, char const * aThrowersFile, char const * aThrowersFunction, int aThrowersLineNumber) -> IO_ERROR
600  __init__(IO_ERROR self) -> IO_ERROR
601  """
602  this = _pcbnew.new_IO_ERROR(*args)
603  try:
604  self.this.append(this)
605  except Exception:
606  self.this = this
607 
608  def init(self, aProblem, aThrowersFile, aThrowersFunction, aThrowersLineNumber):
609  """init(IO_ERROR self, wxString aProblem, char const * aThrowersFile, char const * aThrowersFunction, int aThrowersLineNumber)"""
610  return _pcbnew.IO_ERROR_init(self, aProblem, aThrowersFile, aThrowersFunction, aThrowersLineNumber)
611 
612 
613  def Problem(self):
614  """Problem(IO_ERROR self) -> wxString"""
615  return _pcbnew.IO_ERROR_Problem(self)
616 
617 
618  def Where(self):
619  """Where(IO_ERROR self) -> wxString"""
620  return _pcbnew.IO_ERROR_Where(self)
621 
622 
623  def What(self):
624  """What(IO_ERROR self) -> wxString"""
625  return _pcbnew.IO_ERROR_What(self)
626 
627  __swig_destroy__ = _pcbnew.delete_IO_ERROR
628  __del__ = lambda self: None
629 IO_ERROR_swigregister = _pcbnew.IO_ERROR_swigregister
630 IO_ERROR_swigregister(IO_ERROR)
631 
632 class DHEAD(_object):
633  """Proxy of C++ DHEAD class."""
634 
635  __swig_setmethods__ = {}
636  __setattr__ = lambda self, name, value: _swig_setattr(self, DHEAD, name, value)
637  __swig_getmethods__ = {}
638  __getattr__ = lambda self, name: _swig_getattr(self, DHEAD, name)
639 
640  def __init__(self, *args, **kwargs):
641  raise AttributeError("No constructor defined")
642  __repr__ = _swig_repr
643 
644  def DeleteAll(self):
645  """DeleteAll(DHEAD self)"""
646  return _pcbnew.DHEAD_DeleteAll(self)
647 
648 
649  def SetOwnership(self, Iown):
650  """SetOwnership(DHEAD self, bool Iown)"""
651  return _pcbnew.DHEAD_SetOwnership(self, Iown)
652 
653 
654  def GetCount(self):
655  """GetCount(DHEAD self) -> unsigned int"""
656  return _pcbnew.DHEAD_GetCount(self)
657 
658 DHEAD_swigregister = _pcbnew.DHEAD_swigregister
659 DHEAD_swigregister(DHEAD)
660 
661 
663  """wxSetDefaultPyEncoding(char const * encoding)"""
664  return _pcbnew.wxSetDefaultPyEncoding(encoding)
665 
667  """wxGetDefaultPyEncoding() -> char const *"""
668  return _pcbnew.wxGetDefaultPyEncoding()
670  """Proxy of C++ wxRect class."""
671 
672  __swig_setmethods__ = {}
673  __setattr__ = lambda self, name, value: _swig_setattr(self, wxRect, name, value)
674  __swig_getmethods__ = {}
675  __getattr__ = lambda self, name: _swig_getattr(self, wxRect, name)
676  __repr__ = _swig_repr
677 
678  def __init__(self, *args):
679  """
680  __init__(wxRect self) -> wxRect
681  __init__(wxRect self, int xx, int yy, int ww, int hh) -> wxRect
682  __init__(wxRect self, wxPoint topLeft, wxPoint bottomRight) -> wxRect
683  __init__(wxRect self, wxPoint pt, wxSize size) -> wxRect
684  __init__(wxRect self, wxSize size) -> wxRect
685  """
686  this = _pcbnew.new_wxRect(*args)
687  try:
688  self.this.append(this)
689  except Exception:
690  self.this = this
691 
692  def GetX(self):
693  """GetX(wxRect self) -> int"""
694  return _pcbnew.wxRect_GetX(self)
695 
696 
697  def SetX(self, xx):
698  """SetX(wxRect self, int xx)"""
699  return _pcbnew.wxRect_SetX(self, xx)
700 
701 
702  def GetY(self):
703  """GetY(wxRect self) -> int"""
704  return _pcbnew.wxRect_GetY(self)
705 
706 
707  def SetY(self, yy):
708  """SetY(wxRect self, int yy)"""
709  return _pcbnew.wxRect_SetY(self, yy)
710 
711 
712  def GetWidth(self):
713  """GetWidth(wxRect self) -> int"""
714  return _pcbnew.wxRect_GetWidth(self)
715 
716 
717  def SetWidth(self, w):
718  """SetWidth(wxRect self, int w)"""
719  return _pcbnew.wxRect_SetWidth(self, w)
720 
721 
722  def GetHeight(self):
723  """GetHeight(wxRect self) -> int"""
724  return _pcbnew.wxRect_GetHeight(self)
725 
726 
727  def SetHeight(self, h):
728  """SetHeight(wxRect self, int h)"""
729  return _pcbnew.wxRect_SetHeight(self, h)
730 
731 
732  def GetPosition(self):
733  """GetPosition(wxRect self) -> wxPoint"""
734  return _pcbnew.wxRect_GetPosition(self)
735 
736 
737  def SetPosition(self, p):
738  """SetPosition(wxRect self, wxPoint p)"""
739  return _pcbnew.wxRect_SetPosition(self, p)
740 
741  __swig_setmethods__["x"] = _pcbnew.wxRect_x_set
742  __swig_getmethods__["x"] = _pcbnew.wxRect_x_get
743  if _newclass:
744  x = _swig_property(_pcbnew.wxRect_x_get, _pcbnew.wxRect_x_set)
745  __swig_setmethods__["y"] = _pcbnew.wxRect_y_set
746  __swig_getmethods__["y"] = _pcbnew.wxRect_y_get
747  if _newclass:
748  y = _swig_property(_pcbnew.wxRect_y_get, _pcbnew.wxRect_y_set)
749  __swig_setmethods__["width"] = _pcbnew.wxRect_width_set
750  __swig_getmethods__["width"] = _pcbnew.wxRect_width_get
751  if _newclass:
752  width = _swig_property(_pcbnew.wxRect_width_get, _pcbnew.wxRect_width_set)
753  __swig_setmethods__["height"] = _pcbnew.wxRect_height_set
754  __swig_getmethods__["height"] = _pcbnew.wxRect_height_get
755  if _newclass:
756  height = _swig_property(_pcbnew.wxRect_height_get, _pcbnew.wxRect_height_set)
757 
758  def Get(self):
759  """Get(wxRect self) -> PyObject *"""
760  return _pcbnew.wxRect_Get(self)
761 
762 
763 
764  def __eq__(self,other):
765  return self.x==other.x and self.y==other.y and self.width==other.width and self.height==other.height
766  def __str__(self): return str(self.Get())
767  def __repr__(self): return 'wxRect'+str(self.Get())
768  def __len__(self): return len(self.Get())
769  def __getitem__(self, index): return self.Get()[index]
770  def __setitem__(self, index, val):
771  if index == 0: self.SetX(val)
772  elif index == 1: self.SetY(val)
773  elif index == 2: self.SetWidth(val)
774  elif index == 3: self.SetHeight(val)
775  else: raise IndexError
776  def __nonzero__(self): return self.Get() != (0,0,0,0)
777  __safe_for_unpickling__ = True
778 
779  __swig_destroy__ = _pcbnew.delete_wxRect
780  __del__ = lambda self: None
781 wxRect_swigregister = _pcbnew.wxRect_swigregister
782 wxRect_swigregister(wxRect)
783 
785  """Proxy of C++ wxSize class."""
786 
787  __swig_setmethods__ = {}
788  __setattr__ = lambda self, name, value: _swig_setattr(self, wxSize, name, value)
789  __swig_getmethods__ = {}
790  __getattr__ = lambda self, name: _swig_getattr(self, wxSize, name)
791  __repr__ = _swig_repr
792  __swig_setmethods__["x"] = _pcbnew.wxSize_x_set
793  __swig_getmethods__["x"] = _pcbnew.wxSize_x_get
794  if _newclass:
795  x = _swig_property(_pcbnew.wxSize_x_get, _pcbnew.wxSize_x_set)
796  __swig_setmethods__["y"] = _pcbnew.wxSize_y_set
797  __swig_getmethods__["y"] = _pcbnew.wxSize_y_get
798  if _newclass:
799  y = _swig_property(_pcbnew.wxSize_y_get, _pcbnew.wxSize_y_set)
800 
801  def __init__(self, *args):
802  """
803  __init__(wxSize self, int xx, int yy) -> wxSize
804  __init__(wxSize self, double xx, double yy) -> wxSize
805  """
806  this = _pcbnew.new_wxSize(*args)
807  try:
808  self.this.append(this)
809  except Exception:
810  self.this = this
811 
812  def Get(self):
813  """Get(wxSize self) -> PyObject *"""
814  return _pcbnew.wxSize_Get(self)
815 
816  __swig_destroy__ = _pcbnew.delete_wxSize
817  __del__ = lambda self: None
818 
819  def SetWidth(self, w):
820  """SetWidth(wxSize self, int w)"""
821  return _pcbnew.wxSize_SetWidth(self, w)
822 
823 
824  def SetHeight(self, h):
825  """SetHeight(wxSize self, int h)"""
826  return _pcbnew.wxSize_SetHeight(self, h)
827 
828 
829  def GetWidth(self):
830  """GetWidth(wxSize self) -> int"""
831  return _pcbnew.wxSize_GetWidth(self)
832 
833 
834  def GetHeight(self):
835  """GetHeight(wxSize self) -> int"""
836  return _pcbnew.wxSize_GetHeight(self)
837 
838 
839  def Scale(self,xscale,yscale):
840  return wxSize(self.x*xscale,self.y*yscale)
841  def __eq__(self,other):
842  return self.GetWidth()==other.GetWidth() and self.GetHeight()==other.GetHeight()
843  def __str__(self): return str(self.Get())
844  def __repr__(self): return 'wxSize'+str(self.Get())
845  def __len__(self): return len(self.Get())
846  def __getitem__(self, index): return self.Get()[index]
847  def __setitem__(self, index, val):
848  if index == 0: self.SetWidth(val)
849  elif index == 1: self.SetHeight(val)
850  else: raise IndexError
851  def __nonzero__(self): return self.Get() != (0,0)
852  __safe_for_unpickling__ = True
853 
854 
855 wxSize_swigregister = _pcbnew.wxSize_swigregister
856 wxSize_swigregister(wxSize)
857 
859  """Proxy of C++ wxPoint class."""
860 
861  __swig_setmethods__ = {}
862  __setattr__ = lambda self, name, value: _swig_setattr(self, wxPoint, name, value)
863  __swig_getmethods__ = {}
864  __getattr__ = lambda self, name: _swig_getattr(self, wxPoint, name)
865  __repr__ = _swig_repr
866  __swig_setmethods__["x"] = _pcbnew.wxPoint_x_set
867  __swig_getmethods__["x"] = _pcbnew.wxPoint_x_get
868  if _newclass:
869  x = _swig_property(_pcbnew.wxPoint_x_get, _pcbnew.wxPoint_x_set)
870  __swig_setmethods__["y"] = _pcbnew.wxPoint_y_set
871  __swig_getmethods__["y"] = _pcbnew.wxPoint_y_get
872  if _newclass:
873  y = _swig_property(_pcbnew.wxPoint_y_get, _pcbnew.wxPoint_y_set)
874 
875  def __init__(self, *args):
876  """
877  __init__(wxPoint self, int xx, int yy) -> wxPoint
878  __init__(wxPoint self, double xx, double yy) -> wxPoint
879  """
880  this = _pcbnew.new_wxPoint(*args)
881  try:
882  self.this.append(this)
883  except Exception:
884  self.this = this
885  __swig_destroy__ = _pcbnew.delete_wxPoint
886  __del__ = lambda self: None
887 
888  def __add__(self, pt):
889  """__add__(wxPoint self, wxPoint pt) -> wxPoint"""
890  return _pcbnew.wxPoint___add__(self, pt)
891 
892 
893  def __sub__(self, pt):
894  """__sub__(wxPoint self, wxPoint pt) -> wxPoint"""
895  return _pcbnew.wxPoint___sub__(self, pt)
896 
897 
898  def Set(self, x, y):
899  """Set(wxPoint self, long x, long y)"""
900  return _pcbnew.wxPoint_Set(self, x, y)
901 
902 
903  def Get(self):
904  """Get(wxPoint self) -> PyObject *"""
905  return _pcbnew.wxPoint_Get(self)
906 
907 
908  def __eq__(self,other): return (self.x==other.x and self.y==other.y)
909  def __ne__(self,other): return not (self==other)
910  def __str__(self): return str(self.Get())
911  def __repr__(self): return 'wxPoint'+str(self.Get())
912  def __len__(self): return len(self.Get())
913  def __getitem__(self, index): return self.Get()[index]
914  def __setitem__(self, index, val):
915  if index == 0:
916  self.x = val
917  elif index == 1:
918  self.y = val
919  else:
920  raise IndexError
921  def __nonzero__(self): return self.Get() != (0,0)
922 
923 
924 wxPoint_swigregister = _pcbnew.wxPoint_swigregister
925 wxPoint_swigregister(wxPoint)
926 
928  """Proxy of C++ wxString class."""
929 
930  __swig_setmethods__ = {}
931  __setattr__ = lambda self, name, value: _swig_setattr(self, wxString, name, value)
932  __swig_getmethods__ = {}
933  __getattr__ = lambda self, name: _swig_getattr(self, wxString, name)
934  __repr__ = _swig_repr
935  __swig_destroy__ = _pcbnew.delete_wxString
936  __del__ = lambda self: None
937 
938  def __str__(self):
939  """__str__(wxString self) -> PyObject *"""
940  return _pcbnew.wxString___str__(self)
941 
942 
943  def __repr__(self): return 'wxString(\'' + self.__str__() + '\')'
944 
945 
946  def __init__(self):
947  """__init__(wxString self) -> wxString"""
948  this = _pcbnew.new_wxString()
949  try:
950  self.this.append(this)
951  except Exception:
952  self.this = this
953 wxString_swigregister = _pcbnew.wxString_swigregister
954 wxString_swigregister(wxString)
955 
957  """Proxy of C++ std::vector<(wxPoint)> class."""
958 
959  __swig_setmethods__ = {}
960  __setattr__ = lambda self, name, value: _swig_setattr(self, wxPoint_Vector, name, value)
961  __swig_getmethods__ = {}
962  __getattr__ = lambda self, name: _swig_getattr(self, wxPoint_Vector, name)
963  __repr__ = _swig_repr
964 
965  def iterator(self):
966  """iterator(wxPoint_Vector self) -> SwigPyIterator"""
967  return _pcbnew.wxPoint_Vector_iterator(self)
968 
969  def __iter__(self):
970  return self.iterator()
971 
972  def __nonzero__(self):
973  """__nonzero__(wxPoint_Vector self) -> bool"""
974  return _pcbnew.wxPoint_Vector___nonzero__(self)
975 
976 
977  def __bool__(self):
978  """__bool__(wxPoint_Vector self) -> bool"""
979  return _pcbnew.wxPoint_Vector___bool__(self)
980 
981 
982  def __len__(self):
983  """__len__(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
984  return _pcbnew.wxPoint_Vector___len__(self)
985 
986 
987  def __getslice__(self, i, j):
988  """__getslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j) -> wxPoint_Vector"""
989  return _pcbnew.wxPoint_Vector___getslice__(self, i, j)
990 
991 
992  def __setslice__(self, *args):
993  """
994  __setslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j)
995  __setslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j, wxPoint_Vector v)
996  """
997  return _pcbnew.wxPoint_Vector___setslice__(self, *args)
998 
999 
1000  def __delslice__(self, i, j):
1001  """__delslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j)"""
1002  return _pcbnew.wxPoint_Vector___delslice__(self, i, j)
1003 
1004 
1005  def __delitem__(self, *args):
1006  """
1007  __delitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i)
1008  __delitem__(wxPoint_Vector self, PySliceObject * slice)
1009  """
1010  return _pcbnew.wxPoint_Vector___delitem__(self, *args)
1011 
1012 
1013  def __getitem__(self, *args):
1014  """
1015  __getitem__(wxPoint_Vector self, PySliceObject * slice) -> wxPoint_Vector
1016  __getitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i) -> wxPoint
1017  """
1018  return _pcbnew.wxPoint_Vector___getitem__(self, *args)
1019 
1020 
1021  def __setitem__(self, *args):
1022  """
1023  __setitem__(wxPoint_Vector self, PySliceObject * slice, wxPoint_Vector v)
1024  __setitem__(wxPoint_Vector self, PySliceObject * slice)
1025  __setitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, wxPoint x)
1026  """
1027  return _pcbnew.wxPoint_Vector___setitem__(self, *args)
1028 
1029 
1030  def pop(self):
1031  """pop(wxPoint_Vector self) -> wxPoint"""
1032  return _pcbnew.wxPoint_Vector_pop(self)
1033 
1034 
1035  def append(self, x):
1036  """append(wxPoint_Vector self, wxPoint x)"""
1037  return _pcbnew.wxPoint_Vector_append(self, x)
1038 
1039 
1040  def empty(self):
1041  """empty(wxPoint_Vector self) -> bool"""
1042  return _pcbnew.wxPoint_Vector_empty(self)
1043 
1044 
1045  def size(self):
1046  """size(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
1047  return _pcbnew.wxPoint_Vector_size(self)
1048 
1049 
1050  def swap(self, v):
1051  """swap(wxPoint_Vector self, wxPoint_Vector v)"""
1052  return _pcbnew.wxPoint_Vector_swap(self, v)
1053 
1054 
1055  def begin(self):
1056  """begin(wxPoint_Vector self) -> std::vector< wxPoint >::iterator"""
1057  return _pcbnew.wxPoint_Vector_begin(self)
1058 
1059 
1060  def end(self):
1061  """end(wxPoint_Vector self) -> std::vector< wxPoint >::iterator"""
1062  return _pcbnew.wxPoint_Vector_end(self)
1063 
1064 
1065  def rbegin(self):
1066  """rbegin(wxPoint_Vector self) -> std::vector< wxPoint >::reverse_iterator"""
1067  return _pcbnew.wxPoint_Vector_rbegin(self)
1068 
1069 
1070  def rend(self):
1071  """rend(wxPoint_Vector self) -> std::vector< wxPoint >::reverse_iterator"""
1072  return _pcbnew.wxPoint_Vector_rend(self)
1073 
1074 
1075  def clear(self):
1076  """clear(wxPoint_Vector self)"""
1077  return _pcbnew.wxPoint_Vector_clear(self)
1078 
1079 
1080  def get_allocator(self):
1081  """get_allocator(wxPoint_Vector self) -> std::vector< wxPoint >::allocator_type"""
1082  return _pcbnew.wxPoint_Vector_get_allocator(self)
1083 
1084 
1085  def pop_back(self):
1086  """pop_back(wxPoint_Vector self)"""
1087  return _pcbnew.wxPoint_Vector_pop_back(self)
1088 
1089 
1090  def erase(self, *args):
1091  """
1092  erase(wxPoint_Vector self, std::vector< wxPoint >::iterator pos) -> std::vector< wxPoint >::iterator
1093  erase(wxPoint_Vector self, std::vector< wxPoint >::iterator first, std::vector< wxPoint >::iterator last) -> std::vector< wxPoint >::iterator
1094  """
1095  return _pcbnew.wxPoint_Vector_erase(self, *args)
1096 
1097 
1098  def __init__(self, *args):
1099  """
1100  __init__(std::vector<(wxPoint)> self) -> wxPoint_Vector
1101  __init__(std::vector<(wxPoint)> self, wxPoint_Vector arg2) -> wxPoint_Vector
1102  __init__(std::vector<(wxPoint)> self, std::vector< wxPoint >::size_type size) -> wxPoint_Vector
1103  __init__(std::vector<(wxPoint)> self, std::vector< wxPoint >::size_type size, wxPoint value) -> wxPoint_Vector
1104  """
1105  this = _pcbnew.new_wxPoint_Vector(*args)
1106  try:
1107  self.this.append(this)
1108  except Exception:
1109  self.this = this
1110 
1111  def push_back(self, x):
1112  """push_back(wxPoint_Vector self, wxPoint x)"""
1113  return _pcbnew.wxPoint_Vector_push_back(self, x)
1114 
1115 
1116  def front(self):
1117  """front(wxPoint_Vector self) -> wxPoint"""
1118  return _pcbnew.wxPoint_Vector_front(self)
1119 
1120 
1121  def back(self):
1122  """back(wxPoint_Vector self) -> wxPoint"""
1123  return _pcbnew.wxPoint_Vector_back(self)
1124 
1125 
1126  def assign(self, n, x):
1127  """assign(wxPoint_Vector self, std::vector< wxPoint >::size_type n, wxPoint x)"""
1128  return _pcbnew.wxPoint_Vector_assign(self, n, x)
1129 
1130 
1131  def resize(self, *args):
1132  """
1133  resize(wxPoint_Vector self, std::vector< wxPoint >::size_type new_size)
1134  resize(wxPoint_Vector self, std::vector< wxPoint >::size_type new_size, wxPoint x)
1135  """
1136  return _pcbnew.wxPoint_Vector_resize(self, *args)
1137 
1138 
1139  def insert(self, *args):
1140  """
1141  insert(wxPoint_Vector self, std::vector< wxPoint >::iterator pos, wxPoint x) -> std::vector< wxPoint >::iterator
1142  insert(wxPoint_Vector self, std::vector< wxPoint >::iterator pos, std::vector< wxPoint >::size_type n, wxPoint x)
1143  """
1144  return _pcbnew.wxPoint_Vector_insert(self, *args)
1145 
1146 
1147  def reserve(self, n):
1148  """reserve(wxPoint_Vector self, std::vector< wxPoint >::size_type n)"""
1149  return _pcbnew.wxPoint_Vector_reserve(self, n)
1150 
1151 
1152  def capacity(self):
1153  """capacity(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
1154  return _pcbnew.wxPoint_Vector_capacity(self)
1155 
1156  __swig_destroy__ = _pcbnew.delete_wxPoint_Vector
1157  __del__ = lambda self: None
1158 wxPoint_Vector_swigregister = _pcbnew.wxPoint_Vector_swigregister
1159 wxPoint_Vector_swigregister(wxPoint_Vector)
1160 
1161 
1162 def FROM_UTF8(cstring):
1163  """FROM_UTF8(char const * cstring) -> wxString"""
1164  return _pcbnew.FROM_UTF8(cstring)
1165 
1166 def AccumulateDescription(aDesc, aItem):
1167  """AccumulateDescription(wxString aDesc, wxString aItem)"""
1168  return _pcbnew.AccumulateDescription(aDesc, aItem)
1169 
1170 def GetChars(s):
1171  """GetChars(wxString s) -> wxChar const *"""
1172  return _pcbnew.GetChars(s)
1173 
1174 _pcbnew.NOT_USED_swigconstant(_pcbnew)
1175 NOT_USED = _pcbnew.NOT_USED
1176 
1177 _pcbnew.EOT_swigconstant(_pcbnew)
1178 EOT = _pcbnew.EOT
1179 
1180 _pcbnew.TYPE_NOT_INIT_swigconstant(_pcbnew)
1181 TYPE_NOT_INIT = _pcbnew.TYPE_NOT_INIT
1182 
1183 _pcbnew.PCB_T_swigconstant(_pcbnew)
1184 PCB_T = _pcbnew.PCB_T
1185 
1186 _pcbnew.SCREEN_T_swigconstant(_pcbnew)
1187 SCREEN_T = _pcbnew.SCREEN_T
1188 
1189 _pcbnew.PCB_MODULE_T_swigconstant(_pcbnew)
1190 PCB_MODULE_T = _pcbnew.PCB_MODULE_T
1191 
1192 _pcbnew.PCB_PAD_T_swigconstant(_pcbnew)
1193 PCB_PAD_T = _pcbnew.PCB_PAD_T
1194 
1195 _pcbnew.PCB_LINE_T_swigconstant(_pcbnew)
1196 PCB_LINE_T = _pcbnew.PCB_LINE_T
1197 
1198 _pcbnew.PCB_TEXT_T_swigconstant(_pcbnew)
1199 PCB_TEXT_T = _pcbnew.PCB_TEXT_T
1200 
1201 _pcbnew.PCB_MODULE_TEXT_T_swigconstant(_pcbnew)
1202 PCB_MODULE_TEXT_T = _pcbnew.PCB_MODULE_TEXT_T
1203 
1204 _pcbnew.PCB_MODULE_EDGE_T_swigconstant(_pcbnew)
1205 PCB_MODULE_EDGE_T = _pcbnew.PCB_MODULE_EDGE_T
1206 
1207 _pcbnew.PCB_TRACE_T_swigconstant(_pcbnew)
1208 PCB_TRACE_T = _pcbnew.PCB_TRACE_T
1209 
1210 _pcbnew.PCB_VIA_T_swigconstant(_pcbnew)
1211 PCB_VIA_T = _pcbnew.PCB_VIA_T
1212 
1213 _pcbnew.PCB_SEGZONE_T_swigconstant(_pcbnew)
1214 PCB_SEGZONE_T = _pcbnew.PCB_SEGZONE_T
1215 
1216 _pcbnew.PCB_MARKER_T_swigconstant(_pcbnew)
1217 PCB_MARKER_T = _pcbnew.PCB_MARKER_T
1218 
1219 _pcbnew.PCB_DIMENSION_T_swigconstant(_pcbnew)
1220 PCB_DIMENSION_T = _pcbnew.PCB_DIMENSION_T
1221 
1222 _pcbnew.PCB_TARGET_T_swigconstant(_pcbnew)
1223 PCB_TARGET_T = _pcbnew.PCB_TARGET_T
1224 
1225 _pcbnew.PCB_ZONE_AREA_T_swigconstant(_pcbnew)
1226 PCB_ZONE_AREA_T = _pcbnew.PCB_ZONE_AREA_T
1227 
1228 _pcbnew.PCB_ITEM_LIST_T_swigconstant(_pcbnew)
1229 PCB_ITEM_LIST_T = _pcbnew.PCB_ITEM_LIST_T
1230 
1231 _pcbnew.PCB_NETINFO_T_swigconstant(_pcbnew)
1232 PCB_NETINFO_T = _pcbnew.PCB_NETINFO_T
1233 
1234 _pcbnew.SCH_MARKER_T_swigconstant(_pcbnew)
1235 SCH_MARKER_T = _pcbnew.SCH_MARKER_T
1236 
1237 _pcbnew.SCH_JUNCTION_T_swigconstant(_pcbnew)
1238 SCH_JUNCTION_T = _pcbnew.SCH_JUNCTION_T
1239 
1240 _pcbnew.SCH_NO_CONNECT_T_swigconstant(_pcbnew)
1241 SCH_NO_CONNECT_T = _pcbnew.SCH_NO_CONNECT_T
1242 
1243 _pcbnew.SCH_BUS_WIRE_ENTRY_T_swigconstant(_pcbnew)
1244 SCH_BUS_WIRE_ENTRY_T = _pcbnew.SCH_BUS_WIRE_ENTRY_T
1245 
1246 _pcbnew.SCH_BUS_BUS_ENTRY_T_swigconstant(_pcbnew)
1247 SCH_BUS_BUS_ENTRY_T = _pcbnew.SCH_BUS_BUS_ENTRY_T
1248 
1249 _pcbnew.SCH_LINE_T_swigconstant(_pcbnew)
1250 SCH_LINE_T = _pcbnew.SCH_LINE_T
1251 
1252 _pcbnew.SCH_BITMAP_T_swigconstant(_pcbnew)
1253 SCH_BITMAP_T = _pcbnew.SCH_BITMAP_T
1254 
1255 _pcbnew.SCH_TEXT_T_swigconstant(_pcbnew)
1256 SCH_TEXT_T = _pcbnew.SCH_TEXT_T
1257 
1258 _pcbnew.SCH_LABEL_T_swigconstant(_pcbnew)
1259 SCH_LABEL_T = _pcbnew.SCH_LABEL_T
1260 
1261 _pcbnew.SCH_GLOBAL_LABEL_T_swigconstant(_pcbnew)
1262 SCH_GLOBAL_LABEL_T = _pcbnew.SCH_GLOBAL_LABEL_T
1263 
1264 _pcbnew.SCH_HIERARCHICAL_LABEL_T_swigconstant(_pcbnew)
1265 SCH_HIERARCHICAL_LABEL_T = _pcbnew.SCH_HIERARCHICAL_LABEL_T
1266 
1267 _pcbnew.SCH_FIELD_T_swigconstant(_pcbnew)
1268 SCH_FIELD_T = _pcbnew.SCH_FIELD_T
1269 
1270 _pcbnew.SCH_COMPONENT_T_swigconstant(_pcbnew)
1271 SCH_COMPONENT_T = _pcbnew.SCH_COMPONENT_T
1272 
1273 _pcbnew.SCH_SHEET_PIN_T_swigconstant(_pcbnew)
1274 SCH_SHEET_PIN_T = _pcbnew.SCH_SHEET_PIN_T
1275 
1276 _pcbnew.SCH_SHEET_T_swigconstant(_pcbnew)
1277 SCH_SHEET_T = _pcbnew.SCH_SHEET_T
1278 
1279 _pcbnew.SCH_FIELD_LOCATE_REFERENCE_T_swigconstant(_pcbnew)
1280 SCH_FIELD_LOCATE_REFERENCE_T = _pcbnew.SCH_FIELD_LOCATE_REFERENCE_T
1281 
1282 _pcbnew.SCH_FIELD_LOCATE_VALUE_T_swigconstant(_pcbnew)
1283 SCH_FIELD_LOCATE_VALUE_T = _pcbnew.SCH_FIELD_LOCATE_VALUE_T
1284 
1285 _pcbnew.SCH_FIELD_LOCATE_FOOTPRINT_T_swigconstant(_pcbnew)
1286 SCH_FIELD_LOCATE_FOOTPRINT_T = _pcbnew.SCH_FIELD_LOCATE_FOOTPRINT_T
1287 
1288 _pcbnew.SCH_FIELD_LOCATE_DATASHEET_T_swigconstant(_pcbnew)
1289 SCH_FIELD_LOCATE_DATASHEET_T = _pcbnew.SCH_FIELD_LOCATE_DATASHEET_T
1290 
1291 _pcbnew.SCH_SCREEN_T_swigconstant(_pcbnew)
1292 SCH_SCREEN_T = _pcbnew.SCH_SCREEN_T
1293 
1294 _pcbnew.LIB_PART_T_swigconstant(_pcbnew)
1295 LIB_PART_T = _pcbnew.LIB_PART_T
1296 
1297 _pcbnew.LIB_ALIAS_T_swigconstant(_pcbnew)
1298 LIB_ALIAS_T = _pcbnew.LIB_ALIAS_T
1299 
1300 _pcbnew.LIB_ARC_T_swigconstant(_pcbnew)
1301 LIB_ARC_T = _pcbnew.LIB_ARC_T
1302 
1303 _pcbnew.LIB_CIRCLE_T_swigconstant(_pcbnew)
1304 LIB_CIRCLE_T = _pcbnew.LIB_CIRCLE_T
1305 
1306 _pcbnew.LIB_TEXT_T_swigconstant(_pcbnew)
1307 LIB_TEXT_T = _pcbnew.LIB_TEXT_T
1308 
1309 _pcbnew.LIB_RECTANGLE_T_swigconstant(_pcbnew)
1310 LIB_RECTANGLE_T = _pcbnew.LIB_RECTANGLE_T
1311 
1312 _pcbnew.LIB_POLYLINE_T_swigconstant(_pcbnew)
1313 LIB_POLYLINE_T = _pcbnew.LIB_POLYLINE_T
1314 
1315 _pcbnew.LIB_BEZIER_T_swigconstant(_pcbnew)
1316 LIB_BEZIER_T = _pcbnew.LIB_BEZIER_T
1317 
1318 _pcbnew.LIB_PIN_T_swigconstant(_pcbnew)
1319 LIB_PIN_T = _pcbnew.LIB_PIN_T
1320 
1321 _pcbnew.LIB_FIELD_T_swigconstant(_pcbnew)
1322 LIB_FIELD_T = _pcbnew.LIB_FIELD_T
1323 
1324 _pcbnew.GERBER_LAYOUT_T_swigconstant(_pcbnew)
1325 GERBER_LAYOUT_T = _pcbnew.GERBER_LAYOUT_T
1326 
1327 _pcbnew.GERBER_DRAW_ITEM_T_swigconstant(_pcbnew)
1328 GERBER_DRAW_ITEM_T = _pcbnew.GERBER_DRAW_ITEM_T
1329 
1330 _pcbnew.GERBER_IMAGE_LIST_T_swigconstant(_pcbnew)
1331 GERBER_IMAGE_LIST_T = _pcbnew.GERBER_IMAGE_LIST_T
1332 
1333 _pcbnew.GERBER_IMAGE_T_swigconstant(_pcbnew)
1334 GERBER_IMAGE_T = _pcbnew.GERBER_IMAGE_T
1335 
1336 _pcbnew.TYPE_PL_EDITOR_LAYOUT_swigconstant(_pcbnew)
1337 TYPE_PL_EDITOR_LAYOUT = _pcbnew.TYPE_PL_EDITOR_LAYOUT
1338 
1339 _pcbnew.SYMBOL_LIB_TABLE_T_swigconstant(_pcbnew)
1340 SYMBOL_LIB_TABLE_T = _pcbnew.SYMBOL_LIB_TABLE_T
1341 
1342 _pcbnew.FP_LIB_TABLE_T_swigconstant(_pcbnew)
1343 FP_LIB_TABLE_T = _pcbnew.FP_LIB_TABLE_T
1344 
1345 _pcbnew.PART_LIBS_T_swigconstant(_pcbnew)
1346 PART_LIBS_T = _pcbnew.PART_LIBS_T
1347 
1348 _pcbnew.SEARCH_STACK_T_swigconstant(_pcbnew)
1349 SEARCH_STACK_T = _pcbnew.SEARCH_STACK_T
1350 
1351 _pcbnew.CACHE_WRAPPER_T_swigconstant(_pcbnew)
1352 CACHE_WRAPPER_T = _pcbnew.CACHE_WRAPPER_T
1353 
1354 _pcbnew.MAX_STRUCT_TYPE_ID_swigconstant(_pcbnew)
1355 MAX_STRUCT_TYPE_ID = _pcbnew.MAX_STRUCT_TYPE_ID
1356 
1357 _pcbnew.NO_FILL_swigconstant(_pcbnew)
1358 NO_FILL = _pcbnew.NO_FILL
1359 
1360 _pcbnew.FILLED_SHAPE_swigconstant(_pcbnew)
1361 FILLED_SHAPE = _pcbnew.FILLED_SHAPE
1362 
1363 _pcbnew.FILLED_WITH_BG_BODYCOLOR_swigconstant(_pcbnew)
1364 FILLED_WITH_BG_BODYCOLOR = _pcbnew.FILLED_WITH_BG_BODYCOLOR
1365 
1366 _pcbnew.SEARCH_QUIT_swigconstant(_pcbnew)
1367 SEARCH_QUIT = _pcbnew.SEARCH_QUIT
1368 
1369 _pcbnew.SEARCH_CONTINUE_swigconstant(_pcbnew)
1370 SEARCH_CONTINUE = _pcbnew.SEARCH_CONTINUE
1371 
1372 _pcbnew.IS_CHANGED_swigconstant(_pcbnew)
1373 IS_CHANGED = _pcbnew.IS_CHANGED
1374 
1375 _pcbnew.IS_LINKED_swigconstant(_pcbnew)
1376 IS_LINKED = _pcbnew.IS_LINKED
1377 
1378 _pcbnew.IN_EDIT_swigconstant(_pcbnew)
1379 IN_EDIT = _pcbnew.IN_EDIT
1380 
1381 _pcbnew.IS_MOVED_swigconstant(_pcbnew)
1382 IS_MOVED = _pcbnew.IS_MOVED
1383 
1384 _pcbnew.IS_NEW_swigconstant(_pcbnew)
1385 IS_NEW = _pcbnew.IS_NEW
1386 
1387 _pcbnew.IS_RESIZED_swigconstant(_pcbnew)
1388 IS_RESIZED = _pcbnew.IS_RESIZED
1389 
1390 _pcbnew.IS_DRAGGED_swigconstant(_pcbnew)
1391 IS_DRAGGED = _pcbnew.IS_DRAGGED
1392 
1393 _pcbnew.IS_DELETED_swigconstant(_pcbnew)
1394 IS_DELETED = _pcbnew.IS_DELETED
1395 
1396 _pcbnew.IS_WIRE_IMAGE_swigconstant(_pcbnew)
1397 IS_WIRE_IMAGE = _pcbnew.IS_WIRE_IMAGE
1398 
1399 _pcbnew.STARTPOINT_swigconstant(_pcbnew)
1400 STARTPOINT = _pcbnew.STARTPOINT
1401 
1402 _pcbnew.ENDPOINT_swigconstant(_pcbnew)
1403 ENDPOINT = _pcbnew.ENDPOINT
1404 
1405 _pcbnew.SELECTED_swigconstant(_pcbnew)
1406 SELECTED = _pcbnew.SELECTED
1407 
1408 _pcbnew.SELECTEDNODE_swigconstant(_pcbnew)
1409 SELECTEDNODE = _pcbnew.SELECTEDNODE
1410 
1411 _pcbnew.STRUCT_DELETED_swigconstant(_pcbnew)
1412 STRUCT_DELETED = _pcbnew.STRUCT_DELETED
1413 
1414 _pcbnew.CANDIDATE_swigconstant(_pcbnew)
1415 CANDIDATE = _pcbnew.CANDIDATE
1416 
1417 _pcbnew.SKIP_STRUCT_swigconstant(_pcbnew)
1418 SKIP_STRUCT = _pcbnew.SKIP_STRUCT
1419 
1420 _pcbnew.DO_NOT_DRAW_swigconstant(_pcbnew)
1421 DO_NOT_DRAW = _pcbnew.DO_NOT_DRAW
1422 
1423 _pcbnew.IS_CANCELLED_swigconstant(_pcbnew)
1424 IS_CANCELLED = _pcbnew.IS_CANCELLED
1425 
1426 _pcbnew.TRACK_LOCKED_swigconstant(_pcbnew)
1427 TRACK_LOCKED = _pcbnew.TRACK_LOCKED
1428 
1429 _pcbnew.TRACK_AR_swigconstant(_pcbnew)
1430 TRACK_AR = _pcbnew.TRACK_AR
1431 
1432 _pcbnew.FLAG1_swigconstant(_pcbnew)
1433 FLAG1 = _pcbnew.FLAG1
1434 
1435 _pcbnew.FLAG0_swigconstant(_pcbnew)
1436 FLAG0 = _pcbnew.FLAG0
1437 
1438 _pcbnew.BEGIN_ONPAD_swigconstant(_pcbnew)
1439 BEGIN_ONPAD = _pcbnew.BEGIN_ONPAD
1440 
1441 _pcbnew.END_ONPAD_swigconstant(_pcbnew)
1442 END_ONPAD = _pcbnew.END_ONPAD
1443 
1444 _pcbnew.BUSY_swigconstant(_pcbnew)
1445 BUSY = _pcbnew.BUSY
1446 
1447 _pcbnew.HIGHLIGHTED_swigconstant(_pcbnew)
1448 HIGHLIGHTED = _pcbnew.HIGHLIGHTED
1449 
1450 _pcbnew.BRIGHTENED_swigconstant(_pcbnew)
1451 BRIGHTENED = _pcbnew.BRIGHTENED
1452 
1453 _pcbnew.DP_COUPLED_swigconstant(_pcbnew)
1454 DP_COUPLED = _pcbnew.DP_COUPLED
1455 
1456 _pcbnew.UR_TRANSIENT_swigconstant(_pcbnew)
1457 UR_TRANSIENT = _pcbnew.UR_TRANSIENT
1458 
1459 _pcbnew.EDA_ITEM_ALL_FLAGS_swigconstant(_pcbnew)
1460 EDA_ITEM_ALL_FLAGS = _pcbnew.EDA_ITEM_ALL_FLAGS
1462  """Proxy of C++ EDA_ITEM class."""
1463 
1464  __swig_setmethods__ = {}
1465  __setattr__ = lambda self, name, value: _swig_setattr(self, EDA_ITEM, name, value)
1466  __swig_getmethods__ = {}
1467  __getattr__ = lambda self, name: _swig_getattr(self, EDA_ITEM, name)
1468 
1469  def __init__(self, *args, **kwargs):
1470  raise AttributeError("No constructor defined - class is abstract")
1471  __repr__ = _swig_repr
1472  __swig_destroy__ = _pcbnew.delete_EDA_ITEM
1473  __del__ = lambda self: None
1474 
1475  def Type(self):
1476  """Type(EDA_ITEM self) -> KICAD_T"""
1477  return _pcbnew.EDA_ITEM_Type(self)
1478 
1479 
1480  def SetTimeStamp(self, aNewTimeStamp):
1481  """SetTimeStamp(EDA_ITEM self, timestamp_t aNewTimeStamp)"""
1482  return _pcbnew.EDA_ITEM_SetTimeStamp(self, aNewTimeStamp)
1483 
1484 
1485  def GetTimeStamp(self):
1486  """GetTimeStamp(EDA_ITEM self) -> timestamp_t"""
1487  return _pcbnew.EDA_ITEM_GetTimeStamp(self)
1488 
1489 
1490  def Next(self):
1491  """Next(EDA_ITEM self) -> EDA_ITEM"""
1492  return _pcbnew.EDA_ITEM_Next(self)
1493 
1494 
1495  def Back(self):
1496  """Back(EDA_ITEM self) -> EDA_ITEM"""
1497  return _pcbnew.EDA_ITEM_Back(self)
1498 
1499 
1500  def GetParent(self):
1501  """GetParent(EDA_ITEM self) -> EDA_ITEM"""
1502  return _pcbnew.EDA_ITEM_GetParent(self)
1503 
1504 
1505  def GetList(self):
1506  """GetList(EDA_ITEM self) -> DHEAD"""
1507  return _pcbnew.EDA_ITEM_GetList(self)
1508 
1509 
1510  def SetParent(self, aParent):
1511  """SetParent(EDA_ITEM self, EDA_ITEM aParent)"""
1512  return _pcbnew.EDA_ITEM_SetParent(self, aParent)
1513 
1514 
1515  def SetList(self, aList):
1516  """SetList(EDA_ITEM self, DHEAD aList)"""
1517  return _pcbnew.EDA_ITEM_SetList(self, aList)
1518 
1519 
1520  def IsNew(self):
1521  """IsNew(EDA_ITEM self) -> bool"""
1522  return _pcbnew.EDA_ITEM_IsNew(self)
1523 
1524 
1525  def IsModified(self):
1526  """IsModified(EDA_ITEM self) -> bool"""
1527  return _pcbnew.EDA_ITEM_IsModified(self)
1528 
1529 
1530  def IsMoving(self):
1531  """IsMoving(EDA_ITEM self) -> bool"""
1532  return _pcbnew.EDA_ITEM_IsMoving(self)
1533 
1534 
1535  def IsDragging(self):
1536  """IsDragging(EDA_ITEM self) -> bool"""
1537  return _pcbnew.EDA_ITEM_IsDragging(self)
1538 
1539 
1540  def IsWireImage(self):
1541  """IsWireImage(EDA_ITEM self) -> bool"""
1542  return _pcbnew.EDA_ITEM_IsWireImage(self)
1543 
1544 
1545  def IsSelected(self):
1546  """IsSelected(EDA_ITEM self) -> bool"""
1547  return _pcbnew.EDA_ITEM_IsSelected(self)
1548 
1549 
1550  def IsResized(self):
1551  """IsResized(EDA_ITEM self) -> bool"""
1552  return _pcbnew.EDA_ITEM_IsResized(self)
1553 
1554 
1555  def IsHighlighted(self):
1556  """IsHighlighted(EDA_ITEM self) -> bool"""
1557  return _pcbnew.EDA_ITEM_IsHighlighted(self)
1558 
1559 
1560  def IsBrightened(self):
1561  """IsBrightened(EDA_ITEM self) -> bool"""
1562  return _pcbnew.EDA_ITEM_IsBrightened(self)
1563 
1564 
1565  def SetWireImage(self):
1566  """SetWireImage(EDA_ITEM self)"""
1567  return _pcbnew.EDA_ITEM_SetWireImage(self)
1568 
1569 
1570  def SetSelected(self):
1571  """SetSelected(EDA_ITEM self)"""
1572  return _pcbnew.EDA_ITEM_SetSelected(self)
1573 
1574 
1575  def SetHighlighted(self):
1576  """SetHighlighted(EDA_ITEM self)"""
1577  return _pcbnew.EDA_ITEM_SetHighlighted(self)
1578 
1579 
1580  def SetBrightened(self):
1581  """SetBrightened(EDA_ITEM self)"""
1582  return _pcbnew.EDA_ITEM_SetBrightened(self)
1583 
1584 
1585  def ClearSelected(self):
1586  """ClearSelected(EDA_ITEM self)"""
1587  return _pcbnew.EDA_ITEM_ClearSelected(self)
1588 
1589 
1590  def ClearHighlighted(self):
1591  """ClearHighlighted(EDA_ITEM self)"""
1592  return _pcbnew.EDA_ITEM_ClearHighlighted(self)
1593 
1594 
1595  def ClearBrightened(self):
1596  """ClearBrightened(EDA_ITEM self)"""
1597  return _pcbnew.EDA_ITEM_ClearBrightened(self)
1598 
1599 
1600  def SetModified(self):
1601  """SetModified(EDA_ITEM self)"""
1602  return _pcbnew.EDA_ITEM_SetModified(self)
1603 
1604 
1605  def GetState(self, type):
1606  """GetState(EDA_ITEM self, int type) -> int"""
1607  return _pcbnew.EDA_ITEM_GetState(self, type)
1608 
1609 
1610  def SetState(self, type, state):
1611  """SetState(EDA_ITEM self, int type, int state)"""
1612  return _pcbnew.EDA_ITEM_SetState(self, type, state)
1613 
1614 
1615  def GetStatus(self):
1616  """GetStatus(EDA_ITEM self) -> STATUS_FLAGS"""
1617  return _pcbnew.EDA_ITEM_GetStatus(self)
1618 
1619 
1620  def SetStatus(self, aStatus):
1621  """SetStatus(EDA_ITEM self, STATUS_FLAGS aStatus)"""
1622  return _pcbnew.EDA_ITEM_SetStatus(self, aStatus)
1623 
1624 
1625  def SetFlags(self, aMask):
1626  """SetFlags(EDA_ITEM self, STATUS_FLAGS aMask)"""
1627  return _pcbnew.EDA_ITEM_SetFlags(self, aMask)
1628 
1629 
1630  def ClearFlags(self, aMask=-1):
1631  """
1632  ClearFlags(EDA_ITEM self, STATUS_FLAGS aMask=-1)
1633  ClearFlags(EDA_ITEM self)
1634  """
1635  return _pcbnew.EDA_ITEM_ClearFlags(self, aMask)
1636 
1637 
1638  def GetFlags(self):
1639  """GetFlags(EDA_ITEM self) -> STATUS_FLAGS"""
1640  return _pcbnew.EDA_ITEM_GetFlags(self)
1641 
1642 
1643  def IsType(self, aScanTypes):
1644  """IsType(EDA_ITEM self, KICAD_T const [] aScanTypes) -> bool"""
1645  return _pcbnew.EDA_ITEM_IsType(self, aScanTypes)
1646 
1647 
1648  def SetForceVisible(self, aEnable):
1649  """SetForceVisible(EDA_ITEM self, bool aEnable)"""
1650  return _pcbnew.EDA_ITEM_SetForceVisible(self, aEnable)
1651 
1652 
1653  def GetMsgPanelInfo(self, aUnits, aList):
1654  """GetMsgPanelInfo(EDA_ITEM self, EDA_UNITS_T aUnits, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)"""
1655  return _pcbnew.EDA_ITEM_GetMsgPanelInfo(self, aUnits, aList)
1656 
1657 
1658  def HitTest(self, aPosition):
1659  """HitTest(EDA_ITEM self, wxPoint aPosition) -> bool"""
1660  return _pcbnew.EDA_ITEM_HitTest(self, aPosition)
1661 
1662 
1663  def GetBoundingBox(self):
1664  """GetBoundingBox(EDA_ITEM self) -> EDA_RECT"""
1665  return _pcbnew.EDA_ITEM_GetBoundingBox(self)
1666 
1667 
1668  def Clone(self):
1669  """Clone(EDA_ITEM self) -> EDA_ITEM"""
1670  return _pcbnew.EDA_ITEM_Clone(self)
1671 
1672 
1673  def IterateForward(listStart, inspector, testData, scanTypes):
1674  """IterateForward(EDA_ITEM listStart, INSPECTOR inspector, void * testData, KICAD_T const [] scanTypes) -> SEARCH_RESULT"""
1675  return _pcbnew.EDA_ITEM_IterateForward(listStart, inspector, testData, scanTypes)
1676 
1677  if _newclass:
1678  IterateForward = staticmethod(IterateForward)
1679  __swig_getmethods__["IterateForward"] = lambda x: IterateForward
1680 
1681  def Visit(self, inspector, testData, scanTypes):
1682  """Visit(EDA_ITEM self, INSPECTOR inspector, void * testData, KICAD_T const [] scanTypes) -> SEARCH_RESULT"""
1683  return _pcbnew.EDA_ITEM_Visit(self, inspector, testData, scanTypes)
1684 
1685 
1686  def GetClass(self):
1687  """GetClass(EDA_ITEM self) -> wxString"""
1688  return _pcbnew.EDA_ITEM_GetClass(self)
1689 
1690 
1691  def GetSelectMenuText(self, aUnits):
1692  """GetSelectMenuText(EDA_ITEM self, EDA_UNITS_T aUnits) -> wxString"""
1693  return _pcbnew.EDA_ITEM_GetSelectMenuText(self, aUnits)
1694 
1695 
1696  def GetMenuImage(self):
1697  """GetMenuImage(EDA_ITEM self) -> BITMAP_DEF"""
1698  return _pcbnew.EDA_ITEM_GetMenuImage(self)
1699 
1700 
1701  def Matches(self, aSearchData, aAuxData, aFindLocation):
1702  """Matches(EDA_ITEM self, wxFindReplaceData & aSearchData, void * aAuxData, wxPoint aFindLocation) -> bool"""
1703  return _pcbnew.EDA_ITEM_Matches(self, aSearchData, aAuxData, aFindLocation)
1704 
1705 
1706  def Replace(self, *args):
1707  """
1708  Replace(EDA_ITEM self, wxFindReplaceData & aSearchData, wxString aText) -> bool
1709  Replace(EDA_ITEM self, wxFindReplaceData & aSearchData, void * aAuxData=None) -> bool
1710  Replace(EDA_ITEM self, wxFindReplaceData & aSearchData) -> bool
1711  """
1712  return _pcbnew.EDA_ITEM_Replace(self, *args)
1713 
1714 
1715  def IsReplaceable(self):
1716  """IsReplaceable(EDA_ITEM self) -> bool"""
1717  return _pcbnew.EDA_ITEM_IsReplaceable(self)
1718 
1719 
1720  def __lt__(self, aItem):
1721  """__lt__(EDA_ITEM self, EDA_ITEM aItem) -> bool"""
1722  return _pcbnew.EDA_ITEM___lt__(self, aItem)
1723 
1724 
1725  def Sort(aLeft, aRight):
1726  """Sort(EDA_ITEM aLeft, EDA_ITEM aRight) -> bool"""
1727  return _pcbnew.EDA_ITEM_Sort(aLeft, aRight)
1728 
1729  if _newclass:
1730  Sort = staticmethod(Sort)
1731  __swig_getmethods__["Sort"] = lambda x: Sort
1732 
1733  def ViewBBox(self):
1734  """ViewBBox(EDA_ITEM self) -> BOX2I const"""
1735  return _pcbnew.EDA_ITEM_ViewBBox(self)
1736 
1737 
1738  def ViewGetLayers(self, aLayers, aCount):
1739  """ViewGetLayers(EDA_ITEM self, int [] aLayers, int & aCount)"""
1740  return _pcbnew.EDA_ITEM_ViewGetLayers(self, aLayers, aCount)
1741 
1742 EDA_ITEM_swigregister = _pcbnew.EDA_ITEM_swigregister
1743 EDA_ITEM_swigregister(EDA_ITEM)
1744 
1745 def EDA_ITEM_IterateForward(listStart, inspector, testData, scanTypes):
1746  """EDA_ITEM_IterateForward(EDA_ITEM listStart, INSPECTOR inspector, void * testData, KICAD_T const [] scanTypes) -> SEARCH_RESULT"""
1747  return _pcbnew.EDA_ITEM_IterateForward(listStart, inspector, testData, scanTypes)
1748 
1749 def EDA_ITEM_Sort(aLeft, aRight):
1750  """EDA_ITEM_Sort(EDA_ITEM aLeft, EDA_ITEM aRight) -> bool"""
1751  return _pcbnew.EDA_ITEM_Sort(aLeft, aRight)
1752 
1753 
1754 def new_clone(aItem):
1755  """new_clone(EDA_ITEM aItem) -> EDA_ITEM"""
1756  return _pcbnew.new_clone(aItem)
1758  """Proxy of C++ EDA_RECT class."""
1759 
1760  __swig_setmethods__ = {}
1761  __setattr__ = lambda self, name, value: _swig_setattr(self, EDA_RECT, name, value)
1762  __swig_getmethods__ = {}
1763  __getattr__ = lambda self, name: _swig_getattr(self, EDA_RECT, name)
1764  __repr__ = _swig_repr
1765 
1766  def __init__(self, *args):
1767  """
1768  __init__(EDA_RECT self) -> EDA_RECT
1769  __init__(EDA_RECT self, wxPoint aPos, wxSize aSize) -> EDA_RECT
1770  """
1771  this = _pcbnew.new_EDA_RECT(*args)
1772  try:
1773  self.this.append(this)
1774  except Exception:
1775  self.this = this
1776  __swig_destroy__ = _pcbnew.delete_EDA_RECT
1777  __del__ = lambda self: None
1778 
1779  def Centre(self):
1780  """Centre(EDA_RECT self) -> wxPoint"""
1781  return _pcbnew.EDA_RECT_Centre(self)
1782 
1783 
1784  def Move(self, aMoveVector):
1785  """Move(EDA_RECT self, wxPoint aMoveVector)"""
1786  return _pcbnew.EDA_RECT_Move(self, aMoveVector)
1787 
1788 
1789  def Normalize(self):
1790  """Normalize(EDA_RECT self)"""
1791  return _pcbnew.EDA_RECT_Normalize(self)
1792 
1793 
1794  def Contains(self, *args):
1795  """
1796  Contains(EDA_RECT self, wxPoint aPoint) -> bool
1797  Contains(EDA_RECT self, int x, int y) -> bool
1798  Contains(EDA_RECT self, EDA_RECT aRect) -> bool
1799  """
1800  return _pcbnew.EDA_RECT_Contains(self, *args)
1801 
1802 
1803  def GetSize(self):
1804  """GetSize(EDA_RECT self) -> wxSize"""
1805  return _pcbnew.EDA_RECT_GetSize(self)
1806 
1807 
1808  def GetSizeMax(self):
1809  """GetSizeMax(EDA_RECT self) -> int"""
1810  return _pcbnew.EDA_RECT_GetSizeMax(self)
1811 
1812 
1813  def GetX(self):
1814  """GetX(EDA_RECT self) -> int"""
1815  return _pcbnew.EDA_RECT_GetX(self)
1816 
1817 
1818  def GetY(self):
1819  """GetY(EDA_RECT self) -> int"""
1820  return _pcbnew.EDA_RECT_GetY(self)
1821 
1822 
1823  def GetOrigin(self):
1824  """GetOrigin(EDA_RECT self) -> wxPoint"""
1825  return _pcbnew.EDA_RECT_GetOrigin(self)
1826 
1827 
1828  def GetPosition(self):
1829  """GetPosition(EDA_RECT self) -> wxPoint"""
1830  return _pcbnew.EDA_RECT_GetPosition(self)
1831 
1832 
1833  def GetEnd(self):
1834  """GetEnd(EDA_RECT self) -> wxPoint"""
1835  return _pcbnew.EDA_RECT_GetEnd(self)
1836 
1837 
1838  def GetCenter(self):
1839  """GetCenter(EDA_RECT self) -> wxPoint"""
1840  return _pcbnew.EDA_RECT_GetCenter(self)
1841 
1842 
1843  def GetWidth(self):
1844  """GetWidth(EDA_RECT self) -> int"""
1845  return _pcbnew.EDA_RECT_GetWidth(self)
1846 
1847 
1848  def GetHeight(self):
1849  """GetHeight(EDA_RECT self) -> int"""
1850  return _pcbnew.EDA_RECT_GetHeight(self)
1851 
1852 
1853  def GetRight(self):
1854  """GetRight(EDA_RECT self) -> int"""
1855  return _pcbnew.EDA_RECT_GetRight(self)
1856 
1857 
1858  def GetLeft(self):
1859  """GetLeft(EDA_RECT self) -> int"""
1860  return _pcbnew.EDA_RECT_GetLeft(self)
1861 
1862 
1863  def GetTop(self):
1864  """GetTop(EDA_RECT self) -> int"""
1865  return _pcbnew.EDA_RECT_GetTop(self)
1866 
1867 
1868  def GetBottom(self):
1869  """GetBottom(EDA_RECT self) -> int"""
1870  return _pcbnew.EDA_RECT_GetBottom(self)
1871 
1872 
1873  def SetOrigin(self, *args):
1874  """
1875  SetOrigin(EDA_RECT self, wxPoint pos)
1876  SetOrigin(EDA_RECT self, int x, int y)
1877  """
1878  return _pcbnew.EDA_RECT_SetOrigin(self, *args)
1879 
1880 
1881  def SetSize(self, *args):
1882  """
1883  SetSize(EDA_RECT self, wxSize size)
1884  SetSize(EDA_RECT self, int w, int h)
1885  """
1886  return _pcbnew.EDA_RECT_SetSize(self, *args)
1887 
1888 
1889  def Offset(self, *args):
1890  """
1891  Offset(EDA_RECT self, int dx, int dy)
1892  Offset(EDA_RECT self, wxPoint offset)
1893  """
1894  return _pcbnew.EDA_RECT_Offset(self, *args)
1895 
1896 
1897  def SetX(self, val):
1898  """SetX(EDA_RECT self, int val)"""
1899  return _pcbnew.EDA_RECT_SetX(self, val)
1900 
1901 
1902  def SetY(self, val):
1903  """SetY(EDA_RECT self, int val)"""
1904  return _pcbnew.EDA_RECT_SetY(self, val)
1905 
1906 
1907  def SetWidth(self, val):
1908  """SetWidth(EDA_RECT self, int val)"""
1909  return _pcbnew.EDA_RECT_SetWidth(self, val)
1910 
1911 
1912  def SetHeight(self, val):
1913  """SetHeight(EDA_RECT self, int val)"""
1914  return _pcbnew.EDA_RECT_SetHeight(self, val)
1915 
1916 
1917  def SetEnd(self, *args):
1918  """
1919  SetEnd(EDA_RECT self, int x, int y)
1920  SetEnd(EDA_RECT self, wxPoint pos)
1921  """
1922  return _pcbnew.EDA_RECT_SetEnd(self, *args)
1923 
1924 
1925  def RevertYAxis(self):
1926  """RevertYAxis(EDA_RECT self)"""
1927  return _pcbnew.EDA_RECT_RevertYAxis(self)
1928 
1929 
1930  def Intersects(self, *args):
1931  """
1932  Intersects(EDA_RECT self, EDA_RECT aRect) -> bool
1933  Intersects(EDA_RECT self, EDA_RECT aRect, double aRot) -> bool
1934  Intersects(EDA_RECT self, wxPoint aPoint1, wxPoint aPoint2) -> bool
1935  """
1936  return _pcbnew.EDA_RECT_Intersects(self, *args)
1937 
1938 
1939  def ClosestPointTo(self, aPoint):
1940  """ClosestPointTo(EDA_RECT self, wxPoint aPoint) -> wxPoint"""
1941  return _pcbnew.EDA_RECT_ClosestPointTo(self, aPoint)
1942 
1943 
1944  def FarthestPointTo(self, aPoint):
1945  """FarthestPointTo(EDA_RECT self, wxPoint aPoint) -> wxPoint"""
1946  return _pcbnew.EDA_RECT_FarthestPointTo(self, aPoint)
1947 
1948 
1949  def IntersectsCircle(self, aCenter, aRadius):
1950  """IntersectsCircle(EDA_RECT self, wxPoint aCenter, int const aRadius) -> bool"""
1951  return _pcbnew.EDA_RECT_IntersectsCircle(self, aCenter, aRadius)
1952 
1953 
1954  def IntersectsCircleEdge(self, aCenter, aRadius, aWidth):
1955  """IntersectsCircleEdge(EDA_RECT self, wxPoint aCenter, int const aRadius, int const aWidth) -> bool"""
1956  return _pcbnew.EDA_RECT_IntersectsCircleEdge(self, aCenter, aRadius, aWidth)
1957 
1958 
1959  def getWxRect(self):
1960  """getWxRect(EDA_RECT self) -> wxRect"""
1961  return _pcbnew.EDA_RECT_getWxRect(self)
1962 
1963 
1964  def getBOX2I(self):
1965  """getBOX2I(EDA_RECT self) -> BOX2I"""
1966  return _pcbnew.EDA_RECT_getBOX2I(self)
1967 
1968 
1969  def Inflate(self, *args):
1970  """
1971  Inflate(EDA_RECT self, wxCoord dx, wxCoord dy) -> EDA_RECT
1972  Inflate(EDA_RECT self, int aDelta) -> EDA_RECT
1973  """
1974  return _pcbnew.EDA_RECT_Inflate(self, *args)
1975 
1976 
1977  def Merge(self, *args):
1978  """
1979  Merge(EDA_RECT self, EDA_RECT aRect)
1980  Merge(EDA_RECT self, wxPoint aPoint)
1981  """
1982  return _pcbnew.EDA_RECT_Merge(self, *args)
1983 
1984 
1985  def GetArea(self):
1986  """GetArea(EDA_RECT self) -> double"""
1987  return _pcbnew.EDA_RECT_GetArea(self)
1988 
1989 
1990  def Common(self, aRect):
1991  """Common(EDA_RECT self, EDA_RECT aRect) -> EDA_RECT"""
1992  return _pcbnew.EDA_RECT_Common(self, aRect)
1993 
1994 
1995  def GetBoundingBoxRotated(self, aRotCenter, aAngle):
1996  """GetBoundingBoxRotated(EDA_RECT self, wxPoint aRotCenter, double aAngle) -> EDA_RECT"""
1997  return _pcbnew.EDA_RECT_GetBoundingBoxRotated(self, aRotCenter, aAngle)
1998 
1999 EDA_RECT_swigregister = _pcbnew.EDA_RECT_swigregister
2000 EDA_RECT_swigregister(EDA_RECT)
2001 
2002 
2003 _pcbnew.EDA_PANNING_UP_KEY_swigconstant(_pcbnew)
2004 EDA_PANNING_UP_KEY = _pcbnew.EDA_PANNING_UP_KEY
2005 
2006 _pcbnew.EDA_PANNING_DOWN_KEY_swigconstant(_pcbnew)
2007 EDA_PANNING_DOWN_KEY = _pcbnew.EDA_PANNING_DOWN_KEY
2008 
2009 _pcbnew.EDA_PANNING_LEFT_KEY_swigconstant(_pcbnew)
2010 EDA_PANNING_LEFT_KEY = _pcbnew.EDA_PANNING_LEFT_KEY
2011 
2012 _pcbnew.EDA_PANNING_RIGHT_KEY_swigconstant(_pcbnew)
2013 EDA_PANNING_RIGHT_KEY = _pcbnew.EDA_PANNING_RIGHT_KEY
2014 
2015 _pcbnew.EDA_ZOOM_IN_FROM_MOUSE_swigconstant(_pcbnew)
2016 EDA_ZOOM_IN_FROM_MOUSE = _pcbnew.EDA_ZOOM_IN_FROM_MOUSE
2017 
2018 _pcbnew.EDA_ZOOM_OUT_FROM_MOUSE_swigconstant(_pcbnew)
2019 EDA_ZOOM_OUT_FROM_MOUSE = _pcbnew.EDA_ZOOM_OUT_FROM_MOUSE
2020 
2021 _pcbnew.EDA_ZOOM_CENTER_FROM_MOUSE_swigconstant(_pcbnew)
2022 EDA_ZOOM_CENTER_FROM_MOUSE = _pcbnew.EDA_ZOOM_CENTER_FROM_MOUSE
2023 
2024 _pcbnew.ESC_swigconstant(_pcbnew)
2025 ESC = _pcbnew.ESC
2026 
2027 _pcbnew.TEXT_ANGLE_HORIZ_swigconstant(_pcbnew)
2028 TEXT_ANGLE_HORIZ = _pcbnew.TEXT_ANGLE_HORIZ
2029 
2030 _pcbnew.TEXT_ANGLE_VERT_swigconstant(_pcbnew)
2031 TEXT_ANGLE_VERT = _pcbnew.TEXT_ANGLE_VERT
2032 
2033 def KiROUND(v):
2034  """KiROUND(double v) -> int"""
2035  return _pcbnew.KiROUND(v)
2036 
2037 _pcbnew.INCHES_swigconstant(_pcbnew)
2038 INCHES = _pcbnew.INCHES
2039 
2040 _pcbnew.MILLIMETRES_swigconstant(_pcbnew)
2041 MILLIMETRES = _pcbnew.MILLIMETRES
2042 
2043 _pcbnew.UNSCALED_UNITS_swigconstant(_pcbnew)
2044 UNSCALED_UNITS = _pcbnew.UNSCALED_UNITS
2045 
2046 _pcbnew.DEGREES_swigconstant(_pcbnew)
2047 DEGREES = _pcbnew.DEGREES
2049  """Proxy of C++ LOCALE_IO class."""
2050 
2051  __swig_setmethods__ = {}
2052  __setattr__ = lambda self, name, value: _swig_setattr(self, LOCALE_IO, name, value)
2053  __swig_getmethods__ = {}
2054  __getattr__ = lambda self, name: _swig_getattr(self, LOCALE_IO, name)
2055  __repr__ = _swig_repr
2056 
2057  def __init__(self):
2058  """__init__(LOCALE_IO self) -> LOCALE_IO"""
2059  this = _pcbnew.new_LOCALE_IO()
2060  try:
2061  self.this.append(this)
2062  except Exception:
2063  self.this = this
2064  __swig_destroy__ = _pcbnew.delete_LOCALE_IO
2065  __del__ = lambda self: None
2066 LOCALE_IO_swigregister = _pcbnew.LOCALE_IO_swigregister
2067 LOCALE_IO_swigregister(LOCALE_IO)
2068 
2069 
2070 def GetTextSize(aSingleLine, aWindow):
2071  """GetTextSize(wxString aSingleLine, wxWindow * aWindow) -> wxSize"""
2072  return _pcbnew.GetTextSize(aSingleLine, aWindow)
2073 
2074 def EnsureTextCtrlWidth(aCtrl, aString=None):
2075  """
2076  EnsureTextCtrlWidth(wxTextCtrl * aCtrl, wxString aString=None) -> bool
2077  EnsureTextCtrlWidth(wxTextCtrl * aCtrl) -> bool
2078  """
2079  return _pcbnew.EnsureTextCtrlWidth(aCtrl, aString)
2080 
2081 def SelectReferenceNumber(aTextEntry):
2082  """SelectReferenceNumber(wxTextEntry * aTextEntry)"""
2083  return _pcbnew.SelectReferenceNumber(aTextEntry)
2084 
2085 def ProcessExecute(*args):
2086  """
2087  ProcessExecute(wxString aCommandLine, int aFlags, wxProcess * callback=None) -> int
2088  ProcessExecute(wxString aCommandLine, int aFlags) -> int
2089  ProcessExecute(wxString aCommandLine) -> int
2090  """
2091  return _pcbnew.ProcessExecute(*args)
2092 
2094  """GetNewTimeStamp() -> timestamp_t"""
2095  return _pcbnew.GetNewTimeStamp()
2096 
2097 def RoundTo0(x, precision):
2098  """RoundTo0(double x, double precision) -> double"""
2099  return _pcbnew.RoundTo0(x, precision)
2100 
2101 def wxStringSplit(aText, aStrings, aSplitter):
2102  """wxStringSplit(wxString aText, wxArrayString & aStrings, wxChar aSplitter)"""
2103  return _pcbnew.wxStringSplit(aText, aStrings, aSplitter)
2104 
2105 def SearchHelpFileFullPath(aSearchStack, aBaseName):
2106  """SearchHelpFileFullPath(SEARCH_STACK const & aSearchStack, wxString aBaseName) -> wxString"""
2107  return _pcbnew.SearchHelpFileFullPath(aSearchStack, aBaseName)
2108 
2109 def EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter=None):
2110  """
2111  EnsureFileDirectoryExists(wxFileName * aTargetFullFileName, wxString aBaseFilename, REPORTER * aReporter=None) -> bool
2112  EnsureFileDirectoryExists(wxFileName * aTargetFullFileName, wxString aBaseFilename) -> bool
2113  """
2114  return _pcbnew.EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter)
2115 
2116 def PrePendPath(aEnvVar, aPriorityPath):
2117  """PrePendPath(wxString aEnvVar, wxString aPriorityPath) -> wxString"""
2118  return _pcbnew.PrePendPath(aEnvVar, aPriorityPath)
2119 
2120 def GetNewConfig(aProgName):
2121  """GetNewConfig(wxString aProgName) -> wxConfigBase *"""
2122  return _pcbnew.GetNewConfig(aProgName)
2123 
2125  """GetKicadConfigPath() -> wxString"""
2126  return _pcbnew.GetKicadConfigPath()
2127 
2129  """ExpandEnvVarSubstitutions(wxString aString) -> wxString"""
2130  return _pcbnew.ExpandEnvVarSubstitutions(aString)
2131 
2133  """ResolveUriByEnvVars(wxString aUri) -> wxString"""
2134  return _pcbnew.ResolveUriByEnvVars(aUri)
2136  """Proxy of C++ WX_FILENAME class."""
2137 
2138  __swig_setmethods__ = {}
2139  __setattr__ = lambda self, name, value: _swig_setattr(self, WX_FILENAME, name, value)
2140  __swig_getmethods__ = {}
2141  __getattr__ = lambda self, name: _swig_getattr(self, WX_FILENAME, name)
2142  __repr__ = _swig_repr
2143 
2144  def __init__(self, aPath, aFilename):
2145  """__init__(WX_FILENAME self, wxString aPath, wxString aFilename) -> WX_FILENAME"""
2146  this = _pcbnew.new_WX_FILENAME(aPath, aFilename)
2147  try:
2148  self.this.append(this)
2149  except Exception:
2150  self.this = this
2151 
2152  def SetFullName(self, aFileNameAndExtension):
2153  """SetFullName(WX_FILENAME self, wxString aFileNameAndExtension)"""
2154  return _pcbnew.WX_FILENAME_SetFullName(self, aFileNameAndExtension)
2155 
2156 
2157  def GetName(self):
2158  """GetName(WX_FILENAME self) -> wxString"""
2159  return _pcbnew.WX_FILENAME_GetName(self)
2160 
2161 
2162  def GetFullName(self):
2163  """GetFullName(WX_FILENAME self) -> wxString"""
2164  return _pcbnew.WX_FILENAME_GetFullName(self)
2165 
2166 
2167  def GetPath(self):
2168  """GetPath(WX_FILENAME self) -> wxString"""
2169  return _pcbnew.WX_FILENAME_GetPath(self)
2170 
2171 
2172  def GetFullPath(self):
2173  """GetFullPath(WX_FILENAME self) -> wxString"""
2174  return _pcbnew.WX_FILENAME_GetFullPath(self)
2175 
2176 
2177  def GetTimestamp(self):
2178  """GetTimestamp(WX_FILENAME self) -> long long"""
2179  return _pcbnew.WX_FILENAME_GetTimestamp(self)
2180 
2181  __swig_destroy__ = _pcbnew.delete_WX_FILENAME
2182  __del__ = lambda self: None
2183 WX_FILENAME_swigregister = _pcbnew.WX_FILENAME_swigregister
2184 WX_FILENAME_swigregister(WX_FILENAME)
2185 
2186 
2187 def TimestampDir(aDirPath, aFilespec):
2188  """TimestampDir(wxString aDirPath, wxString aFilespec) -> long long"""
2189  return _pcbnew.TimestampDir(aDirPath, aFilespec)
2191  """Proxy of C++ TITLE_BLOCK class."""
2192 
2193  __swig_setmethods__ = {}
2194  __setattr__ = lambda self, name, value: _swig_setattr(self, TITLE_BLOCK, name, value)
2195  __swig_getmethods__ = {}
2196  __getattr__ = lambda self, name: _swig_getattr(self, TITLE_BLOCK, name)
2197  __repr__ = _swig_repr
2198 
2199  def __init__(self):
2200  """__init__(TITLE_BLOCK self) -> TITLE_BLOCK"""
2201  this = _pcbnew.new_TITLE_BLOCK()
2202  try:
2203  self.this.append(this)
2204  except Exception:
2205  self.this = this
2206  __swig_destroy__ = _pcbnew.delete_TITLE_BLOCK
2207  __del__ = lambda self: None
2208 
2209  def SetTitle(self, aTitle):
2210  """SetTitle(TITLE_BLOCK self, wxString aTitle)"""
2211  return _pcbnew.TITLE_BLOCK_SetTitle(self, aTitle)
2212 
2213 
2214  def GetTitle(self):
2215  """GetTitle(TITLE_BLOCK self) -> wxString"""
2216  return _pcbnew.TITLE_BLOCK_GetTitle(self)
2217 
2218 
2219  def SetDate(self, aDate):
2220  """SetDate(TITLE_BLOCK self, wxString aDate)"""
2221  return _pcbnew.TITLE_BLOCK_SetDate(self, aDate)
2222 
2223 
2224  def GetDate(self):
2225  """GetDate(TITLE_BLOCK self) -> wxString"""
2226  return _pcbnew.TITLE_BLOCK_GetDate(self)
2227 
2228 
2229  def SetRevision(self, aRevision):
2230  """SetRevision(TITLE_BLOCK self, wxString aRevision)"""
2231  return _pcbnew.TITLE_BLOCK_SetRevision(self, aRevision)
2232 
2233 
2234  def GetRevision(self):
2235  """GetRevision(TITLE_BLOCK self) -> wxString"""
2236  return _pcbnew.TITLE_BLOCK_GetRevision(self)
2237 
2238 
2239  def SetCompany(self, aCompany):
2240  """SetCompany(TITLE_BLOCK self, wxString aCompany)"""
2241  return _pcbnew.TITLE_BLOCK_SetCompany(self, aCompany)
2242 
2243 
2244  def GetCompany(self):
2245  """GetCompany(TITLE_BLOCK self) -> wxString"""
2246  return _pcbnew.TITLE_BLOCK_GetCompany(self)
2247 
2248 
2249  def SetComment(self, aIdx, aComment):
2250  """SetComment(TITLE_BLOCK self, int aIdx, wxString aComment)"""
2251  return _pcbnew.TITLE_BLOCK_SetComment(self, aIdx, aComment)
2252 
2253 
2254  def GetComment(self, aIdx):
2255  """GetComment(TITLE_BLOCK self, int aIdx) -> wxString"""
2256  return _pcbnew.TITLE_BLOCK_GetComment(self, aIdx)
2257 
2258 
2259  def SetComment1(self, aComment):
2260  """SetComment1(TITLE_BLOCK self, wxString aComment)"""
2261  return _pcbnew.TITLE_BLOCK_SetComment1(self, aComment)
2262 
2263 
2264  def SetComment2(self, aComment):
2265  """SetComment2(TITLE_BLOCK self, wxString aComment)"""
2266  return _pcbnew.TITLE_BLOCK_SetComment2(self, aComment)
2267 
2268 
2269  def SetComment3(self, aComment):
2270  """SetComment3(TITLE_BLOCK self, wxString aComment)"""
2271  return _pcbnew.TITLE_BLOCK_SetComment3(self, aComment)
2272 
2273 
2274  def SetComment4(self, aComment):
2275  """SetComment4(TITLE_BLOCK self, wxString aComment)"""
2276  return _pcbnew.TITLE_BLOCK_SetComment4(self, aComment)
2277 
2278 
2279  def GetComment1(self):
2280  """GetComment1(TITLE_BLOCK self) -> wxString"""
2281  return _pcbnew.TITLE_BLOCK_GetComment1(self)
2282 
2283 
2284  def GetComment2(self):
2285  """GetComment2(TITLE_BLOCK self) -> wxString"""
2286  return _pcbnew.TITLE_BLOCK_GetComment2(self)
2287 
2288 
2289  def GetComment3(self):
2290  """GetComment3(TITLE_BLOCK self) -> wxString"""
2291  return _pcbnew.TITLE_BLOCK_GetComment3(self)
2292 
2293 
2294  def GetComment4(self):
2295  """GetComment4(TITLE_BLOCK self) -> wxString"""
2296  return _pcbnew.TITLE_BLOCK_GetComment4(self)
2297 
2298 
2299  def Clear(self):
2300  """Clear(TITLE_BLOCK self)"""
2301  return _pcbnew.TITLE_BLOCK_Clear(self)
2302 
2303 
2304  def Format(self, aFormatter, aNestLevel, aControlBits):
2305  """Format(TITLE_BLOCK self, OUTPUTFORMATTER * aFormatter, int aNestLevel, int aControlBits)"""
2306  return _pcbnew.TITLE_BLOCK_Format(self, aFormatter, aNestLevel, aControlBits)
2307 
2308 TITLE_BLOCK_swigregister = _pcbnew.TITLE_BLOCK_swigregister
2309 TITLE_BLOCK_swigregister(TITLE_BLOCK)
2310 
2312  """Proxy of C++ KIGFX::COLOR4D class."""
2313 
2314  __swig_setmethods__ = {}
2315  __setattr__ = lambda self, name, value: _swig_setattr(self, COLOR4D, name, value)
2316  __swig_getmethods__ = {}
2317  __getattr__ = lambda self, name: _swig_getattr(self, COLOR4D, name)
2318  __repr__ = _swig_repr
2319 
2320  def __init__(self, *args):
2321  """
2322  __init__(KIGFX::COLOR4D self) -> COLOR4D
2323  __init__(KIGFX::COLOR4D self, double aRed, double aGreen, double aBlue, double aAlpha) -> COLOR4D
2324  __init__(KIGFX::COLOR4D self, EDA_COLOR_T aColor) -> COLOR4D
2325  __init__(KIGFX::COLOR4D self, wxColour const & aColor) -> COLOR4D
2326  """
2327  this = _pcbnew.new_COLOR4D(*args)
2328  try:
2329  self.this.append(this)
2330  except Exception:
2331  self.this = this
2332 
2333  def SetFromWxString(self, aColorString):
2334  """SetFromWxString(COLOR4D self, wxString aColorString) -> bool"""
2335  return _pcbnew.COLOR4D_SetFromWxString(self, aColorString)
2336 
2337 
2338  def ToWxString(self, flags):
2339  """ToWxString(COLOR4D self, long flags) -> wxString"""
2340  return _pcbnew.COLOR4D_ToWxString(self, flags)
2341 
2342 
2343  def ToColour(self):
2344  """ToColour(COLOR4D self) -> wxColour"""
2345  return _pcbnew.COLOR4D_ToColour(self)
2346 
2347 
2348  def LegacyMix(self, aColor):
2349  """LegacyMix(COLOR4D self, COLOR4D aColor) -> COLOR4D"""
2350  return _pcbnew.COLOR4D_LegacyMix(self, aColor)
2351 
2352 
2354  """SetToLegacyHighlightColor(COLOR4D self) -> COLOR4D"""
2355  return _pcbnew.COLOR4D_SetToLegacyHighlightColor(self)
2356 
2357 
2359  """SetToNearestLegacyColor(COLOR4D self) -> COLOR4D"""
2360  return _pcbnew.COLOR4D_SetToNearestLegacyColor(self)
2361 
2362 
2363  def AsLegacyColor(self):
2364  """AsLegacyColor(COLOR4D self) -> COLOR4D"""
2365  return _pcbnew.COLOR4D_AsLegacyColor(self)
2366 
2367 
2368  def ToU32(self):
2369  """ToU32(COLOR4D self) -> unsigned int"""
2370  return _pcbnew.COLOR4D_ToU32(self)
2371 
2372 
2373  def FromU32(self, aPackedColor):
2374  """FromU32(COLOR4D self, unsigned int aPackedColor)"""
2375  return _pcbnew.COLOR4D_FromU32(self, aPackedColor)
2376 
2377 
2379  """GetNearestLegacyColor(COLOR4D aColor) -> EDA_COLOR_T"""
2380  return _pcbnew.COLOR4D_GetNearestLegacyColor(aColor)
2381 
2382  if _newclass:
2383  GetNearestLegacyColor = staticmethod(GetNearestLegacyColor)
2384  __swig_getmethods__["GetNearestLegacyColor"] = lambda x: GetNearestLegacyColor
2385 
2386  def Brighten(self, aFactor):
2387  """Brighten(COLOR4D self, double aFactor) -> COLOR4D"""
2388  return _pcbnew.COLOR4D_Brighten(self, aFactor)
2389 
2390 
2391  def Darken(self, aFactor):
2392  """Darken(COLOR4D self, double aFactor) -> COLOR4D"""
2393  return _pcbnew.COLOR4D_Darken(self, aFactor)
2394 
2395 
2396  def Invert(self):
2397  """Invert(COLOR4D self) -> COLOR4D"""
2398  return _pcbnew.COLOR4D_Invert(self)
2399 
2400 
2401  def Saturate(self, aFactor):
2402  """Saturate(COLOR4D self, double aFactor) -> COLOR4D"""
2403  return _pcbnew.COLOR4D_Saturate(self, aFactor)
2404 
2405 
2406  def Brightened(self, aFactor):
2407  """Brightened(COLOR4D self, double aFactor) -> COLOR4D"""
2408  return _pcbnew.COLOR4D_Brightened(self, aFactor)
2409 
2410 
2411  def Darkened(self, aFactor):
2412  """Darkened(COLOR4D self, double aFactor) -> COLOR4D"""
2413  return _pcbnew.COLOR4D_Darkened(self, aFactor)
2414 
2415 
2416  def WithAlpha(self, aAlpha):
2417  """WithAlpha(COLOR4D self, double aAlpha) -> COLOR4D"""
2418  return _pcbnew.COLOR4D_WithAlpha(self, aAlpha)
2419 
2420 
2421  def Inverted(self):
2422  """Inverted(COLOR4D self) -> COLOR4D"""
2423  return _pcbnew.COLOR4D_Inverted(self)
2424 
2425 
2426  def GetBrightness(self):
2427  """GetBrightness(COLOR4D self) -> double"""
2428  return _pcbnew.COLOR4D_GetBrightness(self)
2429 
2430 
2431  def ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue=False):
2432  """
2433  ToHSV(COLOR4D self, double & aOutHue, double & aOutSaturation, double & aOutValue, bool aAlwaysDefineHue=False)
2434  ToHSV(COLOR4D self, double & aOutHue, double & aOutSaturation, double & aOutValue)
2435  """
2436  return _pcbnew.COLOR4D_ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue)
2437 
2438 
2439  def FromHSV(self, aInH, aInS, aInV):
2440  """FromHSV(COLOR4D self, double aInH, double aInS, double aInV)"""
2441  return _pcbnew.COLOR4D_FromHSV(self, aInH, aInS, aInV)
2442 
2443  __swig_setmethods__["r"] = _pcbnew.COLOR4D_r_set
2444  __swig_getmethods__["r"] = _pcbnew.COLOR4D_r_get
2445  if _newclass:
2446  r = _swig_property(_pcbnew.COLOR4D_r_get, _pcbnew.COLOR4D_r_set)
2447  __swig_setmethods__["g"] = _pcbnew.COLOR4D_g_set
2448  __swig_getmethods__["g"] = _pcbnew.COLOR4D_g_get
2449  if _newclass:
2450  g = _swig_property(_pcbnew.COLOR4D_g_get, _pcbnew.COLOR4D_g_set)
2451  __swig_setmethods__["b"] = _pcbnew.COLOR4D_b_set
2452  __swig_getmethods__["b"] = _pcbnew.COLOR4D_b_get
2453  if _newclass:
2454  b = _swig_property(_pcbnew.COLOR4D_b_get, _pcbnew.COLOR4D_b_set)
2455  __swig_setmethods__["a"] = _pcbnew.COLOR4D_a_set
2456  __swig_getmethods__["a"] = _pcbnew.COLOR4D_a_get
2457  if _newclass:
2458  a = _swig_property(_pcbnew.COLOR4D_a_get, _pcbnew.COLOR4D_a_set)
2459  __swig_destroy__ = _pcbnew.delete_COLOR4D
2460  __del__ = lambda self: None
2461 COLOR4D_swigregister = _pcbnew.COLOR4D_swigregister
2462 COLOR4D_swigregister(COLOR4D)
2463 
2465  """COLOR4D_GetNearestLegacyColor(COLOR4D aColor) -> EDA_COLOR_T"""
2466  return _pcbnew.COLOR4D_GetNearestLegacyColor(aColor)
2467 COLOR4D.UNSPECIFIED = _pcbnew.cvar.COLOR4D_UNSPECIFIED
2468 COLOR4D.WHITE = _pcbnew.cvar.COLOR4D_WHITE
2469 COLOR4D.BLACK = _pcbnew.cvar.COLOR4D_BLACK
2470 
2471 
2472 def __eq__(lhs, rhs):
2473  """__eq__(COLOR4D lhs, COLOR4D rhs) -> bool const"""
2474  return _pcbnew.__eq__(lhs, rhs)
2475 
2476 def __ne__(lhs, rhs):
2477  """__ne__(COLOR4D lhs, COLOR4D rhs) -> bool const"""
2478  return _pcbnew.__ne__(lhs, rhs)
2479 
2480 def __lshift__(aStream, aColor):
2481  """__lshift__(std::ostream & aStream, COLOR4D aColor) -> std::ostream &"""
2482  return _pcbnew.__lshift__(aStream, aColor)
2484  """Proxy of C++ COLORS_DESIGN_SETTINGS class."""
2485 
2486  __swig_setmethods__ = {}
2487  __setattr__ = lambda self, name, value: _swig_setattr(self, COLORS_DESIGN_SETTINGS, name, value)
2488  __swig_getmethods__ = {}
2489  __getattr__ = lambda self, name: _swig_getattr(self, COLORS_DESIGN_SETTINGS, name)
2490  __repr__ = _swig_repr
2491  __swig_setmethods__["m_LayersColors"] = _pcbnew.COLORS_DESIGN_SETTINGS_m_LayersColors_set
2492  __swig_getmethods__["m_LayersColors"] = _pcbnew.COLORS_DESIGN_SETTINGS_m_LayersColors_get
2493  if _newclass:
2494  m_LayersColors = _swig_property(_pcbnew.COLORS_DESIGN_SETTINGS_m_LayersColors_get, _pcbnew.COLORS_DESIGN_SETTINGS_m_LayersColors_set)
2495 
2496  def __init__(self, aFrameType):
2497  """__init__(COLORS_DESIGN_SETTINGS self, FRAME_T aFrameType) -> COLORS_DESIGN_SETTINGS"""
2498  this = _pcbnew.new_COLORS_DESIGN_SETTINGS(aFrameType)
2499  try:
2500  self.this.append(this)
2501  except Exception:
2502  self.this = this
2503  __swig_destroy__ = _pcbnew.delete_COLORS_DESIGN_SETTINGS
2504  __del__ = lambda self: None
2505 
2506  def Load(self, aConfig):
2507  """Load(COLORS_DESIGN_SETTINGS self, wxConfigBase * aConfig)"""
2508  return _pcbnew.COLORS_DESIGN_SETTINGS_Load(self, aConfig)
2509 
2510 
2511  def Save(self, aConfig):
2512  """Save(COLORS_DESIGN_SETTINGS self, wxConfigBase * aConfig)"""
2513  return _pcbnew.COLORS_DESIGN_SETTINGS_Save(self, aConfig)
2514 
2515 
2516  def GetLayerColor(self, aLayer):
2517  """GetLayerColor(COLORS_DESIGN_SETTINGS self, LAYER_NUM aLayer) -> COLOR4D"""
2518  return _pcbnew.COLORS_DESIGN_SETTINGS_GetLayerColor(self, aLayer)
2519 
2520 
2521  def SetLayerColor(self, aLayer, aColor):
2522  """SetLayerColor(COLORS_DESIGN_SETTINGS self, LAYER_NUM aLayer, COLOR4D aColor)"""
2523  return _pcbnew.COLORS_DESIGN_SETTINGS_SetLayerColor(self, aLayer, aColor)
2524 
2525 
2526  def GetItemColor(self, aItemIdx):
2527  """GetItemColor(COLORS_DESIGN_SETTINGS self, int aItemIdx) -> COLOR4D"""
2528  return _pcbnew.COLORS_DESIGN_SETTINGS_GetItemColor(self, aItemIdx)
2529 
2530 
2531  def SetItemColor(self, aItemIdx, aColor):
2532  """SetItemColor(COLORS_DESIGN_SETTINGS self, int aItemIdx, COLOR4D aColor)"""
2533  return _pcbnew.COLORS_DESIGN_SETTINGS_SetItemColor(self, aItemIdx, aColor)
2534 
2535 
2536  def SetAllColorsAs(self, aColor):
2537  """SetAllColorsAs(COLORS_DESIGN_SETTINGS self, COLOR4D aColor)"""
2538  return _pcbnew.COLORS_DESIGN_SETTINGS_SetAllColorsAs(self, aColor)
2539 
2540 
2541  def SetLegacyMode(self, aMode):
2542  """SetLegacyMode(COLORS_DESIGN_SETTINGS self, bool aMode)"""
2543  return _pcbnew.COLORS_DESIGN_SETTINGS_SetLegacyMode(self, aMode)
2544 
2545 COLORS_DESIGN_SETTINGS_swigregister = _pcbnew.COLORS_DESIGN_SETTINGS_swigregister
2546 COLORS_DESIGN_SETTINGS_swigregister(COLORS_DESIGN_SETTINGS)
2547 
2549  """Proxy of C++ MARKER_BASE class."""
2550 
2551  __swig_setmethods__ = {}
2552  __setattr__ = lambda self, name, value: _swig_setattr(self, MARKER_BASE, name, value)
2553  __swig_getmethods__ = {}
2554  __getattr__ = lambda self, name: _swig_getattr(self, MARKER_BASE, name)
2555  __repr__ = _swig_repr
2556  MARKER_UNSPEC = _pcbnew.MARKER_BASE_MARKER_UNSPEC
2557  MARKER_ERC = _pcbnew.MARKER_BASE_MARKER_ERC
2558  MARKER_PCB = _pcbnew.MARKER_BASE_MARKER_PCB
2559  MARKER_SIMUL = _pcbnew.MARKER_BASE_MARKER_SIMUL
2560  MARKER_SEVERITY_UNSPEC = _pcbnew.MARKER_BASE_MARKER_SEVERITY_UNSPEC
2561  MARKER_SEVERITY_INFO = _pcbnew.MARKER_BASE_MARKER_SEVERITY_INFO
2562  MARKER_SEVERITY_WARNING = _pcbnew.MARKER_BASE_MARKER_SEVERITY_WARNING
2563  MARKER_SEVERITY_ERROR = _pcbnew.MARKER_BASE_MARKER_SEVERITY_ERROR
2564  __swig_setmethods__["m_Pos"] = _pcbnew.MARKER_BASE_m_Pos_set
2565  __swig_getmethods__["m_Pos"] = _pcbnew.MARKER_BASE_m_Pos_get
2566  if _newclass:
2567  m_Pos = _swig_property(_pcbnew.MARKER_BASE_m_Pos_get, _pcbnew.MARKER_BASE_m_Pos_set)
2568  __swig_setmethods__["m_ScalingFactor"] = _pcbnew.MARKER_BASE_m_ScalingFactor_set
2569  __swig_getmethods__["m_ScalingFactor"] = _pcbnew.MARKER_BASE_m_ScalingFactor_get
2570  if _newclass:
2571  m_ScalingFactor = _swig_property(_pcbnew.MARKER_BASE_m_ScalingFactor_get, _pcbnew.MARKER_BASE_m_ScalingFactor_set)
2572 
2573  def __init__(self, *args):
2574  """
2575  __init__(MARKER_BASE self) -> MARKER_BASE
2576  __init__(MARKER_BASE self, EDA_UNITS_T aUnits, int aErrorCode, wxPoint aMarkerPos, EDA_ITEM aItem, wxPoint aPos, EDA_ITEM bItem, wxPoint bPos) -> MARKER_BASE
2577  __init__(MARKER_BASE self, int aErrorCode, wxPoint aMarkerPos, wxString aText, wxPoint aPos, wxString bText, wxPoint bPos) -> MARKER_BASE
2578  __init__(MARKER_BASE self, int aErrorCode, wxPoint aMarkerPos, wxString aText, wxPoint aPos) -> MARKER_BASE
2579  __init__(MARKER_BASE self, MARKER_BASE aMarker) -> MARKER_BASE
2580  """
2581  this = _pcbnew.new_MARKER_BASE(*args)
2582  try:
2583  self.this.append(this)
2584  except Exception:
2585  self.this = this
2586  __swig_destroy__ = _pcbnew.delete_MARKER_BASE
2587  __del__ = lambda self: None
2588 
2589  def DrawMarker(self, aPanel, aDC, aDrawMode, aOffset):
2590  """DrawMarker(MARKER_BASE self, EDA_DRAW_PANEL * aPanel, wxDC * aDC, GR_DRAWMODE aDrawMode, wxPoint aOffset)"""
2591  return _pcbnew.MARKER_BASE_DrawMarker(self, aPanel, aDC, aDrawMode, aOffset)
2592 
2593 
2594  def GetPos(self):
2595  """GetPos(MARKER_BASE self) -> wxPoint"""
2596  return _pcbnew.MARKER_BASE_GetPos(self)
2597 
2598 
2599  def SetColor(self, aColor):
2600  """SetColor(MARKER_BASE self, COLOR4D aColor)"""
2601  return _pcbnew.MARKER_BASE_SetColor(self, aColor)
2602 
2603 
2604  def SetErrorLevel(self, aErrorLevel):
2605  """SetErrorLevel(MARKER_BASE self, MARKER_BASE::MARKER_SEVERITY aErrorLevel)"""
2606  return _pcbnew.MARKER_BASE_SetErrorLevel(self, aErrorLevel)
2607 
2608 
2609  def GetErrorLevel(self):
2610  """GetErrorLevel(MARKER_BASE self) -> MARKER_BASE::MARKER_SEVERITY"""
2611  return _pcbnew.MARKER_BASE_GetErrorLevel(self)
2612 
2613 
2614  def SetMarkerType(self, aMarkerType):
2615  """SetMarkerType(MARKER_BASE self, enum MARKER_BASE::TYPEMARKER aMarkerType)"""
2616  return _pcbnew.MARKER_BASE_SetMarkerType(self, aMarkerType)
2617 
2618 
2619  def GetMarkerType(self):
2620  """GetMarkerType(MARKER_BASE self) -> enum MARKER_BASE::TYPEMARKER"""
2621  return _pcbnew.MARKER_BASE_GetMarkerType(self)
2622 
2623 
2624  def SetData(self, *args):
2625  """
2626  SetData(MARKER_BASE self, EDA_UNITS_T aUnits, int aErrorCode, wxPoint aMarkerPos, EDA_ITEM aItem, wxPoint aPos, EDA_ITEM bItem=None, wxPoint bPos)
2627  SetData(MARKER_BASE self, EDA_UNITS_T aUnits, int aErrorCode, wxPoint aMarkerPos, EDA_ITEM aItem, wxPoint aPos, EDA_ITEM bItem=None)
2628  SetData(MARKER_BASE self, EDA_UNITS_T aUnits, int aErrorCode, wxPoint aMarkerPos, EDA_ITEM aItem, wxPoint aPos)
2629  SetData(MARKER_BASE self, int aErrorCode, wxPoint aMarkerPos, wxString aText, wxPoint aPos, wxString bText, wxPoint bPos)
2630  SetData(MARKER_BASE self, int aErrorCode, wxPoint aMarkerPos, wxString aText, wxPoint aPos, wxString bText)
2631  SetData(MARKER_BASE self, int aErrorCode, wxPoint aMarkerPos, wxString aText, wxPoint aPos)
2632  """
2633  return _pcbnew.MARKER_BASE_SetData(self, *args)
2634 
2635 
2636  def SetAuxiliaryData(self, aAuxiliaryText, aAuxiliaryPos):
2637  """SetAuxiliaryData(MARKER_BASE self, wxString aAuxiliaryText, wxPoint aAuxiliaryPos)"""
2638  return _pcbnew.MARKER_BASE_SetAuxiliaryData(self, aAuxiliaryText, aAuxiliaryPos)
2639 
2640 
2642  """SetShowNoCoordinate(MARKER_BASE self)"""
2643  return _pcbnew.MARKER_BASE_SetShowNoCoordinate(self)
2644 
2645 
2646  def GetReporter(self):
2647  """GetReporter(MARKER_BASE self) -> DRC_ITEM const &"""
2648  return _pcbnew.MARKER_BASE_GetReporter(self)
2649 
2650 
2651  def DisplayMarkerInfo(self, aFrame):
2652  """DisplayMarkerInfo(MARKER_BASE self, EDA_DRAW_FRAME * aFrame)"""
2653  return _pcbnew.MARKER_BASE_DisplayMarkerInfo(self, aFrame)
2654 
2655 
2656  def HitTestMarker(self, ref_pos):
2657  """HitTestMarker(MARKER_BASE self, wxPoint ref_pos) -> bool"""
2658  return _pcbnew.MARKER_BASE_HitTestMarker(self, ref_pos)
2659 
2660 
2662  """GetBoundingBoxMarker(MARKER_BASE self) -> EDA_RECT"""
2663  return _pcbnew.MARKER_BASE_GetBoundingBoxMarker(self)
2664 
2665 MARKER_BASE_swigregister = _pcbnew.MARKER_BASE_swigregister
2666 MARKER_BASE_swigregister(MARKER_BASE)
2667 
2669  """Proxy of C++ UNIQUE_MUTEX class."""
2670 
2671  __swig_setmethods__ = {}
2672  __setattr__ = lambda self, name, value: _swig_setattr(self, UNIQUE_MUTEX, name, value)
2673  __swig_getmethods__ = {}
2674  __getattr__ = lambda self, name: _swig_getattr(self, UNIQUE_MUTEX, name)
2675  __repr__ = _swig_repr
2676 
2677  def __init__(self, *args):
2678  """
2679  __init__(UNIQUE_MUTEX self) -> UNIQUE_MUTEX
2680  __init__(UNIQUE_MUTEX self, UNIQUE_MUTEX arg2) -> UNIQUE_MUTEX
2681  """
2682  this = _pcbnew.new_UNIQUE_MUTEX(*args)
2683  try:
2684  self.this.append(this)
2685  except Exception:
2686  self.this = this
2687  __swig_destroy__ = _pcbnew.delete_UNIQUE_MUTEX
2688  __del__ = lambda self: None
2689 UNIQUE_MUTEX_swigregister = _pcbnew.UNIQUE_MUTEX_swigregister
2690 UNIQUE_MUTEX_swigregister(UNIQUE_MUTEX)
2691 
2692 
2693 _pcbnew.CTL_OMIT_HIDE_swigconstant(_pcbnew)
2694 CTL_OMIT_HIDE = _pcbnew.CTL_OMIT_HIDE
2695 
2696 _pcbnew.GR_TEXT_HJUSTIFY_LEFT_swigconstant(_pcbnew)
2697 GR_TEXT_HJUSTIFY_LEFT = _pcbnew.GR_TEXT_HJUSTIFY_LEFT
2698 
2699 _pcbnew.GR_TEXT_HJUSTIFY_CENTER_swigconstant(_pcbnew)
2700 GR_TEXT_HJUSTIFY_CENTER = _pcbnew.GR_TEXT_HJUSTIFY_CENTER
2701 
2702 _pcbnew.GR_TEXT_HJUSTIFY_RIGHT_swigconstant(_pcbnew)
2703 GR_TEXT_HJUSTIFY_RIGHT = _pcbnew.GR_TEXT_HJUSTIFY_RIGHT
2704 
2705 _pcbnew.GR_TEXT_VJUSTIFY_TOP_swigconstant(_pcbnew)
2706 GR_TEXT_VJUSTIFY_TOP = _pcbnew.GR_TEXT_VJUSTIFY_TOP
2707 
2708 _pcbnew.GR_TEXT_VJUSTIFY_CENTER_swigconstant(_pcbnew)
2709 GR_TEXT_VJUSTIFY_CENTER = _pcbnew.GR_TEXT_VJUSTIFY_CENTER
2710 
2711 _pcbnew.GR_TEXT_VJUSTIFY_BOTTOM_swigconstant(_pcbnew)
2712 GR_TEXT_VJUSTIFY_BOTTOM = _pcbnew.GR_TEXT_VJUSTIFY_BOTTOM
2713 
2714 _pcbnew.FILLED_swigconstant(_pcbnew)
2715 FILLED = _pcbnew.FILLED
2716 
2717 _pcbnew.SKETCH_swigconstant(_pcbnew)
2718 SKETCH = _pcbnew.SKETCH
2719 
2720 _pcbnew.DEFAULT_SIZE_TEXT_swigconstant(_pcbnew)
2721 DEFAULT_SIZE_TEXT = _pcbnew.DEFAULT_SIZE_TEXT
2722 
2723 _pcbnew.DIM_ANCRE_TEXTE_swigconstant(_pcbnew)
2724 DIM_ANCRE_TEXTE = _pcbnew.DIM_ANCRE_TEXTE
2726  """Proxy of C++ TEXT_EFFECTS class."""
2727 
2728  __swig_setmethods__ = {}
2729  __setattr__ = lambda self, name, value: _swig_setattr(self, TEXT_EFFECTS, name, value)
2730  __swig_getmethods__ = {}
2731  __getattr__ = lambda self, name: _swig_getattr(self, TEXT_EFFECTS, name)
2732  __repr__ = _swig_repr
2733 
2734  def __init__(self, aSetOfBits=0):
2735  """
2736  __init__(TEXT_EFFECTS self, int aSetOfBits=0) -> TEXT_EFFECTS
2737  __init__(TEXT_EFFECTS self) -> TEXT_EFFECTS
2738  """
2739  this = _pcbnew.new_TEXT_EFFECTS(aSetOfBits)
2740  try:
2741  self.this.append(this)
2742  except Exception:
2743  self.this = this
2744  __swig_setmethods__["bits"] = _pcbnew.TEXT_EFFECTS_bits_set
2745  __swig_getmethods__["bits"] = _pcbnew.TEXT_EFFECTS_bits_get
2746  if _newclass:
2747  bits = _swig_property(_pcbnew.TEXT_EFFECTS_bits_get, _pcbnew.TEXT_EFFECTS_bits_set)
2748  __swig_setmethods__["hjustify"] = _pcbnew.TEXT_EFFECTS_hjustify_set
2749  __swig_getmethods__["hjustify"] = _pcbnew.TEXT_EFFECTS_hjustify_get
2750  if _newclass:
2751  hjustify = _swig_property(_pcbnew.TEXT_EFFECTS_hjustify_get, _pcbnew.TEXT_EFFECTS_hjustify_set)
2752  __swig_setmethods__["vjustify"] = _pcbnew.TEXT_EFFECTS_vjustify_set
2753  __swig_getmethods__["vjustify"] = _pcbnew.TEXT_EFFECTS_vjustify_get
2754  if _newclass:
2755  vjustify = _swig_property(_pcbnew.TEXT_EFFECTS_vjustify_get, _pcbnew.TEXT_EFFECTS_vjustify_set)
2756  __swig_setmethods__["size"] = _pcbnew.TEXT_EFFECTS_size_set
2757  __swig_getmethods__["size"] = _pcbnew.TEXT_EFFECTS_size_get
2758  if _newclass:
2759  size = _swig_property(_pcbnew.TEXT_EFFECTS_size_get, _pcbnew.TEXT_EFFECTS_size_set)
2760  __swig_setmethods__["penwidth"] = _pcbnew.TEXT_EFFECTS_penwidth_set
2761  __swig_getmethods__["penwidth"] = _pcbnew.TEXT_EFFECTS_penwidth_get
2762  if _newclass:
2763  penwidth = _swig_property(_pcbnew.TEXT_EFFECTS_penwidth_get, _pcbnew.TEXT_EFFECTS_penwidth_set)
2764  __swig_setmethods__["angle"] = _pcbnew.TEXT_EFFECTS_angle_set
2765  __swig_getmethods__["angle"] = _pcbnew.TEXT_EFFECTS_angle_get
2766  if _newclass:
2767  angle = _swig_property(_pcbnew.TEXT_EFFECTS_angle_get, _pcbnew.TEXT_EFFECTS_angle_set)
2768  __swig_setmethods__["pos"] = _pcbnew.TEXT_EFFECTS_pos_set
2769  __swig_getmethods__["pos"] = _pcbnew.TEXT_EFFECTS_pos_get
2770  if _newclass:
2771  pos = _swig_property(_pcbnew.TEXT_EFFECTS_pos_get, _pcbnew.TEXT_EFFECTS_pos_set)
2772 
2773  def Bit(self, *args):
2774  """
2775  Bit(TEXT_EFFECTS self, int aBit, bool aValue)
2776  Bit(TEXT_EFFECTS self, int aBit) -> bool
2777  """
2778  return _pcbnew.TEXT_EFFECTS_Bit(self, *args)
2779 
2780  __swig_destroy__ = _pcbnew.delete_TEXT_EFFECTS
2781  __del__ = lambda self: None
2782 TEXT_EFFECTS_swigregister = _pcbnew.TEXT_EFFECTS_swigregister
2783 TEXT_EFFECTS_swigregister(TEXT_EFFECTS)
2784 
2786  """Proxy of C++ EDA_TEXT class."""
2787 
2788  __swig_setmethods__ = {}
2789  __setattr__ = lambda self, name, value: _swig_setattr(self, EDA_TEXT, name, value)
2790  __swig_getmethods__ = {}
2791  __getattr__ = lambda self, name: _swig_getattr(self, EDA_TEXT, name)
2792  __repr__ = _swig_repr
2793 
2794  def __init__(self, *args):
2795  """
2796  __init__(EDA_TEXT self, wxString text) -> EDA_TEXT
2797  __init__(EDA_TEXT self) -> EDA_TEXT
2798  """
2799  this = _pcbnew.new_EDA_TEXT(*args)
2800  try:
2801  self.this.append(this)
2802  except Exception:
2803  self.this = this
2804  __swig_destroy__ = _pcbnew.delete_EDA_TEXT
2805  __del__ = lambda self: None
2806 
2807  def GetText(self):
2808  """GetText(EDA_TEXT self) -> wxString"""
2809  return _pcbnew.EDA_TEXT_GetText(self)
2810 
2811 
2812  def GetShownText(self):
2813  """GetShownText(EDA_TEXT self) -> wxString"""
2814  return _pcbnew.EDA_TEXT_GetShownText(self)
2815 
2816 
2818  """ShortenedShownText(EDA_TEXT self) -> wxString"""
2819  return _pcbnew.EDA_TEXT_ShortenedShownText(self)
2820 
2821 
2822  def SetText(self, aText):
2823  """SetText(EDA_TEXT self, wxString aText)"""
2824  return _pcbnew.EDA_TEXT_SetText(self, aText)
2825 
2826 
2827  def SetThickness(self, aNewThickness):
2828  """SetThickness(EDA_TEXT self, int aNewThickness)"""
2829  return _pcbnew.EDA_TEXT_SetThickness(self, aNewThickness)
2830 
2831 
2832  def GetThickness(self):
2833  """GetThickness(EDA_TEXT self) -> int"""
2834  return _pcbnew.EDA_TEXT_GetThickness(self)
2835 
2836 
2837  def SetTextAngle(self, aAngle):
2838  """SetTextAngle(EDA_TEXT self, double aAngle)"""
2839  return _pcbnew.EDA_TEXT_SetTextAngle(self, aAngle)
2840 
2841 
2842  def GetTextAngle(self):
2843  """GetTextAngle(EDA_TEXT self) -> double"""
2844  return _pcbnew.EDA_TEXT_GetTextAngle(self)
2845 
2846 
2848  """GetTextAngleDegrees(EDA_TEXT self) -> double"""
2849  return _pcbnew.EDA_TEXT_GetTextAngleDegrees(self)
2850 
2851 
2853  """GetTextAngleRadians(EDA_TEXT self) -> double"""
2854  return _pcbnew.EDA_TEXT_GetTextAngleRadians(self)
2855 
2856 
2857  def SetItalic(self, isItalic):
2858  """SetItalic(EDA_TEXT self, bool isItalic)"""
2859  return _pcbnew.EDA_TEXT_SetItalic(self, isItalic)
2860 
2861 
2862  def IsItalic(self):
2863  """IsItalic(EDA_TEXT self) -> bool"""
2864  return _pcbnew.EDA_TEXT_IsItalic(self)
2865 
2866 
2867  def SetBold(self, aBold):
2868  """SetBold(EDA_TEXT self, bool aBold)"""
2869  return _pcbnew.EDA_TEXT_SetBold(self, aBold)
2870 
2871 
2872  def IsBold(self):
2873  """IsBold(EDA_TEXT self) -> bool"""
2874  return _pcbnew.EDA_TEXT_IsBold(self)
2875 
2876 
2877  def SetVisible(self, aVisible):
2878  """SetVisible(EDA_TEXT self, bool aVisible)"""
2879  return _pcbnew.EDA_TEXT_SetVisible(self, aVisible)
2880 
2881 
2882  def IsVisible(self):
2883  """IsVisible(EDA_TEXT self) -> bool"""
2884  return _pcbnew.EDA_TEXT_IsVisible(self)
2885 
2886 
2887  def SetMirrored(self, isMirrored):
2888  """SetMirrored(EDA_TEXT self, bool isMirrored)"""
2889  return _pcbnew.EDA_TEXT_SetMirrored(self, isMirrored)
2890 
2891 
2892  def IsMirrored(self):
2893  """IsMirrored(EDA_TEXT self) -> bool"""
2894  return _pcbnew.EDA_TEXT_IsMirrored(self)
2895 
2896 
2897  def SetMultilineAllowed(self, aAllow):
2898  """SetMultilineAllowed(EDA_TEXT self, bool aAllow)"""
2899  return _pcbnew.EDA_TEXT_SetMultilineAllowed(self, aAllow)
2900 
2901 
2903  """IsMultilineAllowed(EDA_TEXT self) -> bool"""
2904  return _pcbnew.EDA_TEXT_IsMultilineAllowed(self)
2905 
2906 
2907  def GetHorizJustify(self):
2908  """GetHorizJustify(EDA_TEXT self) -> EDA_TEXT_HJUSTIFY_T"""
2909  return _pcbnew.EDA_TEXT_GetHorizJustify(self)
2910 
2911 
2912  def GetVertJustify(self):
2913  """GetVertJustify(EDA_TEXT self) -> EDA_TEXT_VJUSTIFY_T"""
2914  return _pcbnew.EDA_TEXT_GetVertJustify(self)
2915 
2916 
2917  def SetHorizJustify(self, aType):
2918  """SetHorizJustify(EDA_TEXT self, EDA_TEXT_HJUSTIFY_T aType)"""
2919  return _pcbnew.EDA_TEXT_SetHorizJustify(self, aType)
2920 
2921 
2922  def SetVertJustify(self, aType):
2923  """SetVertJustify(EDA_TEXT self, EDA_TEXT_VJUSTIFY_T aType)"""
2924  return _pcbnew.EDA_TEXT_SetVertJustify(self, aType)
2925 
2926 
2927  def SetEffects(self, aSrc):
2928  """SetEffects(EDA_TEXT self, EDA_TEXT aSrc)"""
2929  return _pcbnew.EDA_TEXT_SetEffects(self, aSrc)
2930 
2931 
2932  def SwapEffects(self, aTradingPartner):
2933  """SwapEffects(EDA_TEXT self, EDA_TEXT aTradingPartner)"""
2934  return _pcbnew.EDA_TEXT_SwapEffects(self, aTradingPartner)
2935 
2936 
2938  """IsDefaultFormatting(EDA_TEXT self) -> bool"""
2939  return _pcbnew.EDA_TEXT_IsDefaultFormatting(self)
2940 
2941 
2942  def SetTextSize(self, aNewSize):
2943  """SetTextSize(EDA_TEXT self, wxSize aNewSize)"""
2944  return _pcbnew.EDA_TEXT_SetTextSize(self, aNewSize)
2945 
2946 
2947  def GetTextSize(self):
2948  """GetTextSize(EDA_TEXT self) -> wxSize"""
2949  return _pcbnew.EDA_TEXT_GetTextSize(self)
2950 
2951 
2952  def SetTextWidth(self, aWidth):
2953  """SetTextWidth(EDA_TEXT self, int aWidth)"""
2954  return _pcbnew.EDA_TEXT_SetTextWidth(self, aWidth)
2955 
2956 
2957  def GetTextWidth(self):
2958  """GetTextWidth(EDA_TEXT self) -> int"""
2959  return _pcbnew.EDA_TEXT_GetTextWidth(self)
2960 
2961 
2962  def SetTextHeight(self, aHeight):
2963  """SetTextHeight(EDA_TEXT self, int aHeight)"""
2964  return _pcbnew.EDA_TEXT_SetTextHeight(self, aHeight)
2965 
2966 
2967  def GetTextHeight(self):
2968  """GetTextHeight(EDA_TEXT self) -> int"""
2969  return _pcbnew.EDA_TEXT_GetTextHeight(self)
2970 
2971 
2972  def SetTextPos(self, aPoint):
2973  """SetTextPos(EDA_TEXT self, wxPoint aPoint)"""
2974  return _pcbnew.EDA_TEXT_SetTextPos(self, aPoint)
2975 
2976 
2977  def GetTextPos(self):
2978  """GetTextPos(EDA_TEXT self) -> wxPoint"""
2979  return _pcbnew.EDA_TEXT_GetTextPos(self)
2980 
2981 
2982  def SetTextX(self, aX):
2983  """SetTextX(EDA_TEXT self, int aX)"""
2984  return _pcbnew.EDA_TEXT_SetTextX(self, aX)
2985 
2986 
2987  def SetTextY(self, aY):
2988  """SetTextY(EDA_TEXT self, int aY)"""
2989  return _pcbnew.EDA_TEXT_SetTextY(self, aY)
2990 
2991 
2992  def Offset(self, aOffset):
2993  """Offset(EDA_TEXT self, wxPoint aOffset)"""
2994  return _pcbnew.EDA_TEXT_Offset(self, aOffset)
2995 
2996 
2997  def Empty(self):
2998  """Empty(EDA_TEXT self)"""
2999  return _pcbnew.EDA_TEXT_Empty(self)
3000 
3001 
3002  def Draw(self, *args):
3003  """
3004  Draw(EDA_TEXT self, EDA_RECT aClipBox, wxDC * aDC, wxPoint aOffset, COLOR4D aColor, GR_DRAWMODE aDrawMode, EDA_DRAW_MODE_T aDisplay_mode=FILLED, COLOR4D aAnchor_color)
3005  Draw(EDA_TEXT self, EDA_RECT aClipBox, wxDC * aDC, wxPoint aOffset, COLOR4D aColor, GR_DRAWMODE aDrawMode, EDA_DRAW_MODE_T aDisplay_mode=FILLED)
3006  Draw(EDA_TEXT self, EDA_RECT aClipBox, wxDC * aDC, wxPoint aOffset, COLOR4D aColor, GR_DRAWMODE aDrawMode)
3007  """
3008  return _pcbnew.EDA_TEXT_Draw(self, *args)
3009 
3010 
3011  def TransformTextShapeToSegmentList(self, aCornerBuffer):
3012  """TransformTextShapeToSegmentList(EDA_TEXT self, wxPoint_Vector aCornerBuffer)"""
3013  return _pcbnew.EDA_TEXT_TransformTextShapeToSegmentList(self, aCornerBuffer)
3014 
3015 
3016  def TransformBoundingBoxWithClearanceToPolygon(self, aCornerBuffer, aClearanceValue):
3017  """TransformBoundingBoxWithClearanceToPolygon(EDA_TEXT self, SHAPE_POLY_SET aCornerBuffer, int aClearanceValue)"""
3018  return _pcbnew.EDA_TEXT_TransformBoundingBoxWithClearanceToPolygon(self, aCornerBuffer, aClearanceValue)
3019 
3020 
3021  def TextHitTest(self, *args):
3022  """
3023  TextHitTest(EDA_TEXT self, wxPoint aPoint, int aAccuracy=0) -> bool
3024  TextHitTest(EDA_TEXT self, wxPoint aPoint) -> bool
3025  TextHitTest(EDA_TEXT self, EDA_RECT aRect, bool aContains=False, int aAccuracy=0) -> bool
3026  TextHitTest(EDA_TEXT self, EDA_RECT aRect, bool aContains=False) -> bool
3027  TextHitTest(EDA_TEXT self, EDA_RECT aRect) -> bool
3028  """
3029  return _pcbnew.EDA_TEXT_TextHitTest(self, *args)
3030 
3031 
3032  def LenSize(self, aLine, aThickness):
3033  """LenSize(EDA_TEXT self, wxString aLine, int aThickness) -> int"""
3034  return _pcbnew.EDA_TEXT_LenSize(self, aLine, aThickness)
3035 
3036 
3037  def GetTextBox(self, aLine=-1, aThickness=-1, aInvertY=False):
3038  """
3039  GetTextBox(EDA_TEXT self, int aLine=-1, int aThickness=-1, bool aInvertY=False) -> EDA_RECT
3040  GetTextBox(EDA_TEXT self, int aLine=-1, int aThickness=-1) -> EDA_RECT
3041  GetTextBox(EDA_TEXT self, int aLine=-1) -> EDA_RECT
3042  GetTextBox(EDA_TEXT self) -> EDA_RECT
3043  """
3044  return _pcbnew.EDA_TEXT_GetTextBox(self, aLine, aThickness, aInvertY)
3045 
3046 
3047  def GetInterline(self, aTextThickness=-1):
3048  """
3049  GetInterline(EDA_TEXT self, int aTextThickness=-1) -> int
3050  GetInterline(EDA_TEXT self) -> int
3051  """
3052  return _pcbnew.EDA_TEXT_GetInterline(self, aTextThickness)
3053 
3054 
3055  def GetTextStyleName(self):
3056  """GetTextStyleName(EDA_TEXT self) -> wxString"""
3057  return _pcbnew.EDA_TEXT_GetTextStyleName(self)
3058 
3059 
3060  def GetPositionsOfLinesOfMultilineText(self, aPositions, aLineCount):
3061  """GetPositionsOfLinesOfMultilineText(EDA_TEXT self, wxPoint_Vector aPositions, int aLineCount)"""
3062  return _pcbnew.EDA_TEXT_GetPositionsOfLinesOfMultilineText(self, aPositions, aLineCount)
3063 
3064 
3065  def Format(self, aFormatter, aNestLevel, aControlBits):
3066  """Format(EDA_TEXT self, OUTPUTFORMATTER * aFormatter, int aNestLevel, int aControlBits)"""
3067  return _pcbnew.EDA_TEXT_Format(self, aFormatter, aNestLevel, aControlBits)
3068 
3069 EDA_TEXT_swigregister = _pcbnew.EDA_TEXT_swigregister
3070 EDA_TEXT_swigregister(EDA_TEXT)
3071 
3073  """Proxy of C++ std::vector<(int)> class."""
3074 
3075  __swig_setmethods__ = {}
3076  __setattr__ = lambda self, name, value: _swig_setattr(self, intVector, name, value)
3077  __swig_getmethods__ = {}
3078  __getattr__ = lambda self, name: _swig_getattr(self, intVector, name)
3079  __repr__ = _swig_repr
3080 
3081  def iterator(self):
3082  """iterator(intVector self) -> SwigPyIterator"""
3083  return _pcbnew.intVector_iterator(self)
3084 
3085  def __iter__(self):
3086  return self.iterator()
3087 
3088  def __nonzero__(self):
3089  """__nonzero__(intVector self) -> bool"""
3090  return _pcbnew.intVector___nonzero__(self)
3091 
3092 
3093  def __bool__(self):
3094  """__bool__(intVector self) -> bool"""
3095  return _pcbnew.intVector___bool__(self)
3096 
3097 
3098  def __len__(self):
3099  """__len__(intVector self) -> std::vector< int >::size_type"""
3100  return _pcbnew.intVector___len__(self)
3101 
3102 
3103  def __getslice__(self, i, j):
3104  """__getslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j) -> intVector"""
3105  return _pcbnew.intVector___getslice__(self, i, j)
3106 
3107 
3108  def __setslice__(self, *args):
3109  """
3110  __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)
3111  __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j, intVector v)
3112  """
3113  return _pcbnew.intVector___setslice__(self, *args)
3114 
3115 
3116  def __delslice__(self, i, j):
3117  """__delslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)"""
3118  return _pcbnew.intVector___delslice__(self, i, j)
3119 
3120 
3121  def __delitem__(self, *args):
3122  """
3123  __delitem__(intVector self, std::vector< int >::difference_type i)
3124  __delitem__(intVector self, PySliceObject * slice)
3125  """
3126  return _pcbnew.intVector___delitem__(self, *args)
3127 
3128 
3129  def __getitem__(self, *args):
3130  """
3131  __getitem__(intVector self, PySliceObject * slice) -> intVector
3132  __getitem__(intVector self, std::vector< int >::difference_type i) -> std::vector< int >::value_type const &
3133  """
3134  return _pcbnew.intVector___getitem__(self, *args)
3135 
3136 
3137  def __setitem__(self, *args):
3138  """
3139  __setitem__(intVector self, PySliceObject * slice, intVector v)
3140  __setitem__(intVector self, PySliceObject * slice)
3141  __setitem__(intVector self, std::vector< int >::difference_type i, std::vector< int >::value_type const & x)
3142  """
3143  return _pcbnew.intVector___setitem__(self, *args)
3144 
3145 
3146  def pop(self):
3147  """pop(intVector self) -> std::vector< int >::value_type"""
3148  return _pcbnew.intVector_pop(self)
3149 
3150 
3151  def append(self, x):
3152  """append(intVector self, std::vector< int >::value_type const & x)"""
3153  return _pcbnew.intVector_append(self, x)
3154 
3155 
3156  def empty(self):
3157  """empty(intVector self) -> bool"""
3158  return _pcbnew.intVector_empty(self)
3159 
3160 
3161  def size(self):
3162  """size(intVector self) -> std::vector< int >::size_type"""
3163  return _pcbnew.intVector_size(self)
3164 
3165 
3166  def swap(self, v):
3167  """swap(intVector self, intVector v)"""
3168  return _pcbnew.intVector_swap(self, v)
3169 
3170 
3171  def begin(self):
3172  """begin(intVector self) -> std::vector< int >::iterator"""
3173  return _pcbnew.intVector_begin(self)
3174 
3175 
3176  def end(self):
3177  """end(intVector self) -> std::vector< int >::iterator"""
3178  return _pcbnew.intVector_end(self)
3179 
3180 
3181  def rbegin(self):
3182  """rbegin(intVector self) -> std::vector< int >::reverse_iterator"""
3183  return _pcbnew.intVector_rbegin(self)
3184 
3185 
3186  def rend(self):
3187  """rend(intVector self) -> std::vector< int >::reverse_iterator"""
3188  return _pcbnew.intVector_rend(self)
3189 
3190 
3191  def clear(self):
3192  """clear(intVector self)"""
3193  return _pcbnew.intVector_clear(self)
3194 
3195 
3196  def get_allocator(self):
3197  """get_allocator(intVector self) -> std::vector< int >::allocator_type"""
3198  return _pcbnew.intVector_get_allocator(self)
3199 
3200 
3201  def pop_back(self):
3202  """pop_back(intVector self)"""
3203  return _pcbnew.intVector_pop_back(self)
3204 
3205 
3206  def erase(self, *args):
3207  """
3208  erase(intVector self, std::vector< int >::iterator pos) -> std::vector< int >::iterator
3209  erase(intVector self, std::vector< int >::iterator first, std::vector< int >::iterator last) -> std::vector< int >::iterator
3210  """
3211  return _pcbnew.intVector_erase(self, *args)
3212 
3213 
3214  def __init__(self, *args):
3215  """
3216  __init__(std::vector<(int)> self) -> intVector
3217  __init__(std::vector<(int)> self, intVector arg2) -> intVector
3218  __init__(std::vector<(int)> self, std::vector< int >::size_type size) -> intVector
3219  __init__(std::vector<(int)> self, std::vector< int >::size_type size, std::vector< int >::value_type const & value) -> intVector
3220  """
3221  this = _pcbnew.new_intVector(*args)
3222  try:
3223  self.this.append(this)
3224  except Exception:
3225  self.this = this
3226 
3227  def push_back(self, x):
3228  """push_back(intVector self, std::vector< int >::value_type const & x)"""
3229  return _pcbnew.intVector_push_back(self, x)
3230 
3231 
3232  def front(self):
3233  """front(intVector self) -> std::vector< int >::value_type const &"""
3234  return _pcbnew.intVector_front(self)
3235 
3236 
3237  def back(self):
3238  """back(intVector self) -> std::vector< int >::value_type const &"""
3239  return _pcbnew.intVector_back(self)
3240 
3241 
3242  def assign(self, n, x):
3243  """assign(intVector self, std::vector< int >::size_type n, std::vector< int >::value_type const & x)"""
3244  return _pcbnew.intVector_assign(self, n, x)
3245 
3246 
3247  def resize(self, *args):
3248  """
3249  resize(intVector self, std::vector< int >::size_type new_size)
3250  resize(intVector self, std::vector< int >::size_type new_size, std::vector< int >::value_type const & x)
3251  """
3252  return _pcbnew.intVector_resize(self, *args)
3253 
3254 
3255  def insert(self, *args):
3256  """
3257  insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::value_type const & x) -> std::vector< int >::iterator
3258  insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::size_type n, std::vector< int >::value_type const & x)
3259  """
3260  return _pcbnew.intVector_insert(self, *args)
3261 
3262 
3263  def reserve(self, n):
3264  """reserve(intVector self, std::vector< int >::size_type n)"""
3265  return _pcbnew.intVector_reserve(self, n)
3266 
3267 
3268  def capacity(self):
3269  """capacity(intVector self) -> std::vector< int >::size_type"""
3270  return _pcbnew.intVector_capacity(self)
3271 
3272  __swig_destroy__ = _pcbnew.delete_intVector
3273  __del__ = lambda self: None
3274 intVector_swigregister = _pcbnew.intVector_swigregister
3275 intVector_swigregister(intVector)
3276 
3278  """Proxy of C++ std::map<(std::string,UTF8)> class."""
3279 
3280  __swig_setmethods__ = {}
3281  __setattr__ = lambda self, name, value: _swig_setattr(self, str_utf8_Map, name, value)
3282  __swig_getmethods__ = {}
3283  __getattr__ = lambda self, name: _swig_getattr(self, str_utf8_Map, name)
3284  __repr__ = _swig_repr
3285 
3286  def iterator(self):
3287  """iterator(str_utf8_Map self) -> SwigPyIterator"""
3288  return _pcbnew.str_utf8_Map_iterator(self)
3289 
3290  def __iter__(self):
3291  return self.iterator()
3292 
3293  def __nonzero__(self):
3294  """__nonzero__(str_utf8_Map self) -> bool"""
3295  return _pcbnew.str_utf8_Map___nonzero__(self)
3296 
3297 
3298  def __bool__(self):
3299  """__bool__(str_utf8_Map self) -> bool"""
3300  return _pcbnew.str_utf8_Map___bool__(self)
3301 
3302 
3303  def __len__(self):
3304  """__len__(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
3305  return _pcbnew.str_utf8_Map___len__(self)
3306 
3307  def __iter__(self):
3308  return self.key_iterator()
3309  def iterkeys(self):
3310  return self.key_iterator()
3311  def itervalues(self):
3312  return self.value_iterator()
3313  def iteritems(self):
3314  return self.iterator()
3315 
3316  def __getitem__(self, key):
3317  """__getitem__(str_utf8_Map self, string key) -> UTF8"""
3318  return _pcbnew.str_utf8_Map___getitem__(self, key)
3319 
3320 
3321  def __delitem__(self, key):
3322  """__delitem__(str_utf8_Map self, string key)"""
3323  return _pcbnew.str_utf8_Map___delitem__(self, key)
3324 
3325 
3326  def has_key(self, key):
3327  """has_key(str_utf8_Map self, string key) -> bool"""
3328  return _pcbnew.str_utf8_Map_has_key(self, key)
3329 
3330 
3331  def keys(self):
3332  """keys(str_utf8_Map self) -> PyObject *"""
3333  return _pcbnew.str_utf8_Map_keys(self)
3334 
3335 
3336  def values(self):
3337  """values(str_utf8_Map self) -> PyObject *"""
3338  return _pcbnew.str_utf8_Map_values(self)
3339 
3340 
3341  def items(self):
3342  """items(str_utf8_Map self) -> PyObject *"""
3343  return _pcbnew.str_utf8_Map_items(self)
3344 
3345 
3346  def __contains__(self, key):
3347  """__contains__(str_utf8_Map self, string key) -> bool"""
3348  return _pcbnew.str_utf8_Map___contains__(self, key)
3349 
3350 
3351  def key_iterator(self):
3352  """key_iterator(str_utf8_Map self) -> SwigPyIterator"""
3353  return _pcbnew.str_utf8_Map_key_iterator(self)
3354 
3355 
3356  def value_iterator(self):
3357  """value_iterator(str_utf8_Map self) -> SwigPyIterator"""
3358  return _pcbnew.str_utf8_Map_value_iterator(self)
3359 
3360 
3361  def __setitem__(self, *args):
3362  """
3363  __setitem__(str_utf8_Map self, string key)
3364  __setitem__(str_utf8_Map self, string key, UTF8 x)
3365  """
3366  return _pcbnew.str_utf8_Map___setitem__(self, *args)
3367 
3368 
3369  def asdict(self):
3370  """asdict(str_utf8_Map self) -> PyObject *"""
3371  return _pcbnew.str_utf8_Map_asdict(self)
3372 
3373 
3374  def __init__(self, *args):
3375  """
3376  __init__(std::map<(std::string,UTF8)> self, std::less< std::basic_string< char,std::char_traits< char >,std::allocator< char > > > const & arg2) -> str_utf8_Map
3377  __init__(std::map<(std::string,UTF8)> self) -> str_utf8_Map
3378  __init__(std::map<(std::string,UTF8)> self, str_utf8_Map arg2) -> str_utf8_Map
3379  """
3380  this = _pcbnew.new_str_utf8_Map(*args)
3381  try:
3382  self.this.append(this)
3383  except Exception:
3384  self.this = this
3385 
3386  def empty(self):
3387  """empty(str_utf8_Map self) -> bool"""
3388  return _pcbnew.str_utf8_Map_empty(self)
3389 
3390 
3391  def size(self):
3392  """size(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
3393  return _pcbnew.str_utf8_Map_size(self)
3394 
3395 
3396  def swap(self, v):
3397  """swap(str_utf8_Map self, str_utf8_Map v)"""
3398  return _pcbnew.str_utf8_Map_swap(self, v)
3399 
3400 
3401  def begin(self):
3402  """begin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
3403  return _pcbnew.str_utf8_Map_begin(self)
3404 
3405 
3406  def end(self):
3407  """end(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
3408  return _pcbnew.str_utf8_Map_end(self)
3409 
3410 
3411  def rbegin(self):
3412  """rbegin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
3413  return _pcbnew.str_utf8_Map_rbegin(self)
3414 
3415 
3416  def rend(self):
3417  """rend(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
3418  return _pcbnew.str_utf8_Map_rend(self)
3419 
3420 
3421  def clear(self):
3422  """clear(str_utf8_Map self)"""
3423  return _pcbnew.str_utf8_Map_clear(self)
3424 
3425 
3426  def get_allocator(self):
3427  """get_allocator(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::allocator_type"""
3428  return _pcbnew.str_utf8_Map_get_allocator(self)
3429 
3430 
3431  def count(self, x):
3432  """count(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
3433  return _pcbnew.str_utf8_Map_count(self, x)
3434 
3435 
3436  def erase(self, *args):
3437  """
3438  erase(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type
3439  erase(str_utf8_Map self, std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator position)
3440  erase(str_utf8_Map self, std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator first, std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator last)
3441  """
3442  return _pcbnew.str_utf8_Map_erase(self, *args)
3443 
3444 
3445  def find(self, x):
3446  """find(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
3447  return _pcbnew.str_utf8_Map_find(self, x)
3448 
3449 
3450  def lower_bound(self, x):
3451  """lower_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
3452  return _pcbnew.str_utf8_Map_lower_bound(self, x)
3453 
3454 
3455  def upper_bound(self, x):
3456  """upper_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
3457  return _pcbnew.str_utf8_Map_upper_bound(self, x)
3458 
3459  __swig_destroy__ = _pcbnew.delete_str_utf8_Map
3460  __del__ = lambda self: None
3461 str_utf8_Map_swigregister = _pcbnew.str_utf8_Map_swigregister
3462 str_utf8_Map_swigregister(str_utf8_Map)
3463 
3465  """Proxy of C++ std::vector<(enum PCB_LAYER_ID)> class."""
3466 
3467  __swig_setmethods__ = {}
3468  __setattr__ = lambda self, name, value: _swig_setattr(self, base_seqVect, name, value)
3469  __swig_getmethods__ = {}
3470  __getattr__ = lambda self, name: _swig_getattr(self, base_seqVect, name)
3471  __repr__ = _swig_repr
3472 
3473  def iterator(self):
3474  """iterator(base_seqVect self) -> SwigPyIterator"""
3475  return _pcbnew.base_seqVect_iterator(self)
3476 
3477  def __iter__(self):
3478  return self.iterator()
3479 
3480  def __nonzero__(self):
3481  """__nonzero__(base_seqVect self) -> bool"""
3482  return _pcbnew.base_seqVect___nonzero__(self)
3483 
3484 
3485  def __bool__(self):
3486  """__bool__(base_seqVect self) -> bool"""
3487  return _pcbnew.base_seqVect___bool__(self)
3488 
3489 
3490  def __len__(self):
3491  """__len__(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
3492  return _pcbnew.base_seqVect___len__(self)
3493 
3494 
3495  def __getslice__(self, i, j):
3496  """__getslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j) -> base_seqVect"""
3497  return _pcbnew.base_seqVect___getslice__(self, i, j)
3498 
3499 
3500  def __setslice__(self, *args):
3501  """
3502  __setslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j)
3503  __setslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j, base_seqVect v)
3504  """
3505  return _pcbnew.base_seqVect___setslice__(self, *args)
3506 
3507 
3508  def __delslice__(self, i, j):
3509  """__delslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j)"""
3510  return _pcbnew.base_seqVect___delslice__(self, i, j)
3511 
3512 
3513  def __delitem__(self, *args):
3514  """
3515  __delitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i)
3516  __delitem__(base_seqVect self, PySliceObject * slice)
3517  """
3518  return _pcbnew.base_seqVect___delitem__(self, *args)
3519 
3520 
3521  def __getitem__(self, *args):
3522  """
3523  __getitem__(base_seqVect self, PySliceObject * slice) -> base_seqVect
3524  __getitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i) -> std::vector< enum PCB_LAYER_ID >::value_type const &
3525  """
3526  return _pcbnew.base_seqVect___getitem__(self, *args)
3527 
3528 
3529  def __setitem__(self, *args):
3530  """
3531  __setitem__(base_seqVect self, PySliceObject * slice, base_seqVect v)
3532  __setitem__(base_seqVect self, PySliceObject * slice)
3533  __setitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::value_type const & x)
3534  """
3535  return _pcbnew.base_seqVect___setitem__(self, *args)
3536 
3537 
3538  def pop(self):
3539  """pop(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type"""
3540  return _pcbnew.base_seqVect_pop(self)
3541 
3542 
3543  def append(self, x):
3544  """append(base_seqVect self, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
3545  return _pcbnew.base_seqVect_append(self, x)
3546 
3547 
3548  def empty(self):
3549  """empty(base_seqVect self) -> bool"""
3550  return _pcbnew.base_seqVect_empty(self)
3551 
3552 
3553  def size(self):
3554  """size(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
3555  return _pcbnew.base_seqVect_size(self)
3556 
3557 
3558  def swap(self, v):
3559  """swap(base_seqVect self, base_seqVect v)"""
3560  return _pcbnew.base_seqVect_swap(self, v)
3561 
3562 
3563  def begin(self):
3564  """begin(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::iterator"""
3565  return _pcbnew.base_seqVect_begin(self)
3566 
3567 
3568  def end(self):
3569  """end(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::iterator"""
3570  return _pcbnew.base_seqVect_end(self)
3571 
3572 
3573  def rbegin(self):
3574  """rbegin(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::reverse_iterator"""
3575  return _pcbnew.base_seqVect_rbegin(self)
3576 
3577 
3578  def rend(self):
3579  """rend(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::reverse_iterator"""
3580  return _pcbnew.base_seqVect_rend(self)
3581 
3582 
3583  def clear(self):
3584  """clear(base_seqVect self)"""
3585  return _pcbnew.base_seqVect_clear(self)
3586 
3587 
3588  def get_allocator(self):
3589  """get_allocator(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::allocator_type"""
3590  return _pcbnew.base_seqVect_get_allocator(self)
3591 
3592 
3593  def pop_back(self):
3594  """pop_back(base_seqVect self)"""
3595  return _pcbnew.base_seqVect_pop_back(self)
3596 
3597 
3598  def erase(self, *args):
3599  """
3600  erase(base_seqVect self, std::vector< enum PCB_LAYER_ID >::iterator pos) -> std::vector< enum PCB_LAYER_ID >::iterator
3601  erase(base_seqVect self, std::vector< enum PCB_LAYER_ID >::iterator first, std::vector< enum PCB_LAYER_ID >::iterator last) -> std::vector< enum PCB_LAYER_ID >::iterator
3602  """
3603  return _pcbnew.base_seqVect_erase(self, *args)
3604 
3605 
3606  def __init__(self, *args):
3607  """
3608  __init__(std::vector<(enum PCB_LAYER_ID)> self) -> base_seqVect
3609  __init__(std::vector<(enum PCB_LAYER_ID)> self, base_seqVect arg2) -> base_seqVect
3610  __init__(std::vector<(enum PCB_LAYER_ID)> self, std::vector< enum PCB_LAYER_ID >::size_type size) -> base_seqVect
3611  __init__(std::vector<(enum PCB_LAYER_ID)> self, std::vector< enum PCB_LAYER_ID >::size_type size, std::vector< enum PCB_LAYER_ID >::value_type const & value) -> base_seqVect
3612  """
3613  this = _pcbnew.new_base_seqVect(*args)
3614  try:
3615  self.this.append(this)
3616  except Exception:
3617  self.this = this
3618 
3619  def push_back(self, x):
3620  """push_back(base_seqVect self, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
3621  return _pcbnew.base_seqVect_push_back(self, x)
3622 
3623 
3624  def front(self):
3625  """front(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type const &"""
3626  return _pcbnew.base_seqVect_front(self)
3627 
3628 
3629  def back(self):
3630  """back(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type const &"""
3631  return _pcbnew.base_seqVect_back(self)
3632 
3633 
3634  def assign(self, n, x):
3635  """assign(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type n, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
3636  return _pcbnew.base_seqVect_assign(self, n, x)
3637 
3638 
3639  def resize(self, *args):
3640  """
3641  resize(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type new_size)
3642  resize(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type new_size, std::vector< enum PCB_LAYER_ID >::value_type const & x)
3643  """
3644  return _pcbnew.base_seqVect_resize(self, *args)
3645 
3646 
3647  def insert(self, *args):
3648  """
3649  insert(base_seqVect self, std::vector< enum PCB_LAYER_ID >::iterator pos, std::vector< enum PCB_LAYER_ID >::value_type const & x) -> std::vector< enum PCB_LAYER_ID >::iterator
3650  insert(base_seqVect self, std::vector< enum PCB_LAYER_ID >::iterator pos, std::vector< enum PCB_LAYER_ID >::size_type n, std::vector< enum PCB_LAYER_ID >::value_type const & x)
3651  """
3652  return _pcbnew.base_seqVect_insert(self, *args)
3653 
3654 
3655  def reserve(self, n):
3656  """reserve(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type n)"""
3657  return _pcbnew.base_seqVect_reserve(self, n)
3658 
3659 
3660  def capacity(self):
3661  """capacity(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
3662  return _pcbnew.base_seqVect_capacity(self)
3663 
3664  __swig_destroy__ = _pcbnew.delete_base_seqVect
3665  __del__ = lambda self: None
3666 base_seqVect_swigregister = _pcbnew.base_seqVect_swigregister
3667 base_seqVect_swigregister(base_seqVect)
3668 
3669 
3670 
3671 KICAD_PLUGINS={} # the list of loaded footprint wizards
3672 
3673 """ the list of not loaded python scripts
3674  (usually because there is a syntax error in python script)
3675  this is the python script full filenames list.
3676  filenames are separated by '\n'
3677 """
3678 NOT_LOADED_WIZARDS=""
3679 
3680 """ the list of paths used to search python scripts.
3681  Stored here to be displayed on request in Pcbnew
3682  paths are separated by '\n'
3683 """
3684 PLUGIN_DIRECTORIES_SEARCH=""
3685 
3686 """ the trace of errors during execution of footprint wizards scripts
3687 """
3688 FULL_BACK_TRACE=""
3689 
3691  global NOT_LOADED_WIZARDS
3692  return NOT_LOADED_WIZARDS
3693 
3695  global PLUGIN_DIRECTORIES_SEARCH
3696  return PLUGIN_DIRECTORIES_SEARCH
3697 
3699  global FULL_BACK_TRACE
3700  return FULL_BACK_TRACE
3701 
3702 
3703 def LoadOnePlugin(Dirname, ModuleName):
3704  """
3705  Load the plugin file ModuleName found in folder Dirname.
3706  If this file cannot be loaded, its name is stored in failed_wizards_list
3707  and the error trace is stored in FULL_BACK_TRACE
3708  """
3709  import os
3710  import sys
3711  import traceback
3712 
3713  global NOT_LOADED_WIZARDS
3714  global FULL_BACK_TRACE
3715 
3716  module_filename = os.path.join(Dirname, ModuleName)
3717 
3718  try: # If there is an error loading the script, skip it
3719  mtime = os.path.getmtime(module_filename)
3720 
3721  if ModuleName in KICAD_PLUGINS:
3722  plugin = KICAD_PLUGINS[ModuleName]
3723 
3724  if not plugin["modification_time"] == mtime:
3725  mod = reload(plugin["ModuleName"])
3726  plugin["modification_time"] = mtime
3727  else:
3728  mod = plugin["ModuleName"]
3729  else:
3730  mod = __import__(ModuleName[:-3], locals(), globals() )
3731 
3732  KICAD_PLUGINS[ModuleName]={ "filename":module_filename,
3733  "modification_time":mtime,
3734  "ModuleName":mod }
3735 
3736  except:
3737  if NOT_LOADED_WIZARDS != "" :
3738  NOT_LOADED_WIZARDS += "\n"
3739  NOT_LOADED_WIZARDS += module_filename
3740  FULL_BACK_TRACE += traceback.format_exc()
3741 
3742 
3743 
3744 def LoadOneSubdirPlugin(Dirname, SubDirname):
3745  """
3746  Load the plugins found in folder Dirname/SubDirname, by loading __ini__.py file.
3747  If files cannot be loaded, its name is stored in failed_wizards_list
3748  and the error trace is stored in FULL_BACK_TRACE
3749  """
3750  import os
3751  import sys
3752  import traceback
3753 
3754  global NOT_LOADED_WIZARDS
3755  global FULL_BACK_TRACE
3756 
3757  fullPath = os.path.join(Dirname,SubDirname)
3758 
3759  if os.path.isdir(fullPath):
3760  """
3761  Skip subdir which does not contain __init__.py, becuase if can be
3762  a non python subdir (can be a subdir for .xsl plugins for instance)
3763  """
3764  if os.path.exists( os.path.join(fullPath, '__init__.py') ):
3765  try: # If there is an error loading the script, skip it
3766  __import__(SubDirname, locals(), globals())
3767 
3768  except:
3769  if NOT_LOADED_WIZARDS != "" :
3770  NOT_LOADED_WIZARDS += "\n"
3771  NOT_LOADED_WIZARDS += fullPath
3772  FULL_BACK_TRACE += traceback.format_exc()
3773 
3774  else:
3775  if NOT_LOADED_WIZARDS != "" :
3776  NOT_LOADED_WIZARDS += "\n"
3777  NOT_LOADED_WIZARDS += 'Skip subdir ' + fullPath
3778 
3779 
3780 def LoadPlugins(bundlepath=None):
3781  """
3782  Initialise Scripting/Plugin python environment and load plugins.
3783 
3784  Arguments:
3785  bundlepath -- The path to the bundled scripts.
3786  The bundled Plugins are relative to this path, in the
3787  "plugins" subdirectory.
3788  WARNING: bundlepath must use '/' as path separator, and not '\'
3789  because it creates issues:
3790  \n and \r are seen as a escaped seq when passing this string to this method
3791  I am thinking this is due to the fact LoadPlugins is called from C++ code by
3792  PyRun_SimpleString()
3793 
3794  NOTE: These are all of the possible "default" search paths for kicad
3795  python scripts. These paths will ONLY be added to the python
3796  search path ONLY IF they already exist.
3797 
3798  The Scripts bundled with the KiCad installation:
3799  <bundlepath>/
3800  <bundlepath>/plugins/
3801 
3802  The Scripts relative to the KiCad search path environment variable:
3803  [KICAD_PATH]/scripting/
3804  [KICAD_PATH]/scripting/plugins/
3805 
3806  The Scripts relative to the KiCad Users configuration:
3807  <kicad_config_path>/scripting/
3808  <kicad_config_path>/scripting/plugins/
3809 
3810  And on Linux ONLY, extra paths relative to the users home directory:
3811  ~/.kicad_plugins/
3812  ~/.kicad/scripting/
3813  ~/.kicad/scripting/plugins/
3814  """
3815  import os
3816  import sys
3817  import traceback
3818  import pcbnew
3819 
3820  kicad_path = os.environ.get('KICAD_PATH')
3821  config_path = pcbnew.GetKicadConfigPath()
3822  plugin_directories=[]
3823 
3824  """
3825  To be consistent with others paths, on windows, convert the unix '/' separator
3826  to the windows separator, although using '/' works
3827  """
3828  if sys.platform.startswith('win32'):
3829  bundlepath = bundlepath.replace("/","\\")
3830 
3831  if bundlepath:
3832  plugin_directories.append(bundlepath)
3833  plugin_directories.append(os.path.join(bundlepath, 'plugins'))
3834 
3835  if kicad_path:
3836  plugin_directories.append(os.path.join(kicad_path, 'scripting'))
3837  plugin_directories.append(os.path.join(kicad_path, 'scripting', 'plugins'))
3838 
3839  if config_path:
3840  plugin_directories.append(os.path.join(config_path, 'scripting'))
3841  plugin_directories.append(os.path.join(config_path, 'scripting', 'plugins'))
3842 
3843  if sys.platform.startswith('linux'):
3844  plugin_directories.append(os.path.join(os.environ['HOME'],'.kicad_plugins'))
3845  plugin_directories.append(os.path.join(os.environ['HOME'],'.kicad','scripting'))
3846  plugin_directories.append(os.path.join(os.environ['HOME'],'.kicad','scripting','plugins'))
3847 
3848  global PLUGIN_DIRECTORIES_SEARCH
3849  PLUGIN_DIRECTORIES_SEARCH=""
3850  for plugins_dir in plugin_directories: # save search path list for later use
3851  if PLUGIN_DIRECTORIES_SEARCH != "" :
3852  PLUGIN_DIRECTORIES_SEARCH += "\n"
3853  PLUGIN_DIRECTORIES_SEARCH += plugins_dir
3854 
3855  global FULL_BACK_TRACE
3856  FULL_BACK_TRACE="" # clear any existing trace
3857 
3858  global NOT_LOADED_WIZARDS
3859  NOT_LOADED_WIZARDS = "" # save not loaded wizards names list for later use
3860 
3861  global KICAD_PLUGINS
3862 
3863  for plugins_dir in plugin_directories:
3864  if not os.path.isdir(plugins_dir):
3865  continue
3866 
3867  sys.path.append(plugins_dir)
3868 
3869  for module in os.listdir(plugins_dir):
3870  if os.path.isdir(os.path.join(plugins_dir,module)):
3871  LoadOneSubdirPlugin(plugins_dir, module)
3872  continue
3873 
3874  if module == '__init__.py' or module[-3:] != '.py':
3875  continue
3876 
3877  LoadOnePlugin(plugins_dir, module)
3878 
3879 
3881  def __init__(self):
3882  pass
3883 
3884  def register(self):
3885  import inspect
3886  import os
3887 
3888  if isinstance(self,FilePlugin):
3889  pass # register to file plugins in C++
3890 
3891  if isinstance(self,FootprintWizardPlugin):
3892  PYTHON_FOOTPRINT_WIZARD_LIST.register_wizard(self)
3893  return
3894 
3895  if isinstance(self,ActionPlugin):
3896  """
3897  Get path to .py or .pyc that has definition of plugin class.
3898  If path is binary but source also exists, assume definition is in source.
3899  """
3900  self.__plugin_path = inspect.getfile(self.__class__)
3901  if self.__plugin_path.endswith('.pyc') and os.path.isfile(self.__plugin_path[:-1]):
3902  self.__plugin_path = self.__plugin_path[:-1]
3903  self.__plugin_path = self.__plugin_path + '/' + self.__class__.__name__
3904  PYTHON_ACTION_PLUGINS.register_action(self)
3905  return
3906 
3907  return
3908 
3909  def deregister(self):
3910  if isinstance(self,FilePlugin):
3911  pass # deregister to file plugins in C++
3912 
3913  if isinstance(self,FootprintWizardPlugin):
3914  PYTHON_FOOTPRINT_WIZARD_LIST.deregister_wizard(self)
3915  return
3916 
3917  if isinstance(self,ActionPlugin):
3918  PYTHON_ACTION_PLUGINS.deregister_action(self)
3919  return
3920 
3921  return
3922 
3923  def GetPluginPath( self ):
3924  return self.__plugin_path
3925 
3926 
3928  def __init__(self):
3929  KiCadPlugin.__init__(self)
3930 
3931 
3932 from math import ceil, floor, sqrt
3933 
3934 uMM = "mm" # Millimetres
3935 uMils = "mils" # Mils
3936 uFloat = "float" # Natural number units (dimensionless)
3937 uInteger = "integer" # Integer (no decimals, numeric, dimensionless)
3938 uBool = "bool" # Boolean value
3939 uRadians = "radians" # Angular units (radians)
3940 uDegrees = "degrees" # Angular units (degrees)
3941 uPercent = "%" # Percent (0% -> 100%)
3942 uString = "string" # Raw string
3943 
3944 uNumeric = [uMM, uMils, uFloat, uInteger, uDegrees, uRadians, uPercent] # List of numeric types
3945 uUnits = [uMM, uMils, uFloat, uInteger, uBool, uDegrees, uRadians, uPercent, uString] # List of allowable types
3946 
3948  _true = ['true','t','y','yes','on','1',1,]
3949  _false = ['false','f','n','no','off','0',0,'',None]
3950 
3951  _bools = _true + _false
3952 
3953  def __init__(self, page, name, units, default, **kwarg):
3954  self.page = page
3955  self.name = name
3956  self.hint = kwarg.get('hint','') # Parameter hint (shown as mouse-over text)
3957  self.designator = kwarg.get('designator',' ') # Parameter designator such as "e, D, p" (etc)
3958 
3959  if units.lower() in uUnits:
3960  self.units = units.lower()
3961  elif units.lower() == 'percent':
3962  self.units = uPercent
3963  elif type(units) in [list, tuple]: # Convert a list of options into a single string
3964  self.units = ",".join([str(el).strip() for el in units])
3965  else:
3966  self.units = units
3967 
3968  self.multiple = int(kwarg.get('multiple',1)) # Check integer values are multiples of this number
3969  self.min_value = kwarg.get('min_value',None) # Check numeric values are above or equal to this number
3970  self.max_value = kwarg.get('max_value',None) # Check numeric values are below or equal to this number
3971 
3972  self.SetValue(default)
3973  self.default = self.raw_value # Save value as default
3974 
3975  def ClearErrors(self):
3976  self.error_list = []
3977 
3978  def AddError(self, err, info=None):
3979 
3980  if err in self.error_list: # prevent duplicate error messages
3981  return
3982  if info is not None:
3983  err = err + " (" + str(info) + ")"
3984 
3985  self.error_list.append(err)
3986 
3987  def Check(self, min_value=None, max_value=None, multiple=None, info=None):
3988 
3989  if min_value is None:
3990  min_value = self.min_value
3991  if max_value is None:
3992  max_value = self.max_value
3993  if multiple is None:
3994  multiple = self.multiple
3995 
3996  if self.units not in uUnits and ',' not in self.units: # Allow either valid units or a list of strings
3997  self.AddError("type '{t}' unknown".format(t=self.units),info)
3998  self.AddError("Allowable types: " + str(self.units),info)
3999 
4000  if self.units in uNumeric:
4001  try:
4002  to_num = float(self.raw_value)
4003 
4004  if min_value is not None: # Check minimum value if it is present
4005  if to_num < min_value:
4006  self.AddError("value '{v}' is below minimum ({m})".format(v=self.raw_value,m=min_value),info)
4007 
4008  if max_value is not None: # Check maximum value if it is present
4009  if to_num > max_value:
4010  self.AddError("value '{v}' is above maximum ({m})".format(v=self.raw_value,m=max_value),info)
4011 
4012  except:
4013  self.AddError("value '{v}' is not of type '{t}'".format(v = self.raw_value, t=self.units),info)
4014 
4015  if self.units == uInteger: # Perform integer specific checks
4016  try:
4017  to_int = int(self.raw_value)
4018 
4019  if multiple is not None and multiple > 1:
4020  if (to_int % multiple) > 0:
4021  self.AddError("value '{v}' is not a multiple of {m}".format(v=self.raw_value,m=multiple),info)
4022  except:
4023  self.AddError("value '{v}' is not an integer".format(v=self.raw_value),info)
4024 
4025  if self.units == uBool: # Check that the value is of a correct boolean format
4026  if self.raw_value in [True,False] or str(self.raw_value).lower() in self._bools:
4027  pass
4028  else:
4029  self.AddError("value '{v}' is not a boolean value".format(v = self.raw_value),info)
4030 
4031  @property
4032  def value(self): # Return the current value, converted to appropriate units (from string representation) if required
4033  v = str(self.raw_value) # Enforce string type for known starting point
4034 
4035  if self.units == uInteger: # Integer values
4036  return int(v)
4037  elif self.units in uNumeric: # Any values that use floating points
4038  v = v.replace(",",".") # Replace "," separators with "."
4039  v = float(v)
4040 
4041  if self.units == uMM: # Convert from millimetres to nanometres
4042  return FromMM(v)
4043 
4044  elif self.units == uMils: # Convert from mils to nanometres
4045  return FromMils(v)
4046 
4047  else: # Any other floating-point values
4048  return v
4049 
4050  elif self.units == uBool:
4051  if v.lower() in self._true:
4052  return True
4053  else:
4054  return False
4055  else:
4056  return v
4057 
4058  def DefaultValue(self): # Reset the value of the parameter to its default
4059  self.raw_value = str(self.default)
4060 
4061  def SetValue(self, new_value): # Update the value
4062  new_value = str(new_value)
4063 
4064  if len(new_value.strip()) == 0:
4065  if not self.units in [uString, uBool]:
4066  return # Ignore empty values unless for strings or bools
4067 
4068  if self.units == uBool: # Enforce the same boolean representation as is used in KiCad
4069  new_value = "1" if new_value.lower() in self._true else "0"
4070  elif self.units in uNumeric:
4071  new_value = new_value.replace(",", ".") # Enforce decimal point separators
4072  elif ',' in self.units: # Select from a list of values
4073  if new_value not in self.units.split(','):
4074  new_value = self.units.split(',')[0]
4075 
4076  self.raw_value = new_value
4077 
4078  def __str__(self): # pretty-print the parameter
4079 
4080  s = self.name + ": " + str(self.raw_value)
4081 
4082  if self.units in [uMM, uMils, uPercent, uRadians, uDegrees]:
4083  s += self.units
4084  elif self.units == uBool: # Special case for Boolean values
4085  s = self.name + ": {b}".format(b = "True" if self.value else "False")
4086  elif self.units == uString:
4087  s = self.name + ": '" + self.raw_value + "'"
4088 
4089  return s
4090 
4091 
4093  def __init__(self):
4094  KiCadPlugin.__init__(self)
4095  self.defaults()
4096 
4097  def defaults(self):
4098  self.module = None
4099  self.params = [] # List of added parameters that observes addition order
4100 
4101  self.name = "KiCad FP Wizard"
4102  self.description = "Undefined Footprint Wizard plugin"
4103  self.image = ""
4104  self.buildmessages = ""
4105 
4106  def AddParam(self, page, name, unit, default, **kwarg):
4107 
4108  if self.GetParam(page,name) is not None: # Param already exists!
4109  return
4110 
4111  param = FootprintWizardParameter(page, name, unit, default, **kwarg) # Create a new parameter
4112  self.params.append(param)
4113 
4114  @property
4115  def parameters(self): # This is a helper function that returns a nested (unordered) dict of the VALUES of parameters
4116  pages = {} # Page dict
4117  for p in self.params:
4118  if p.page not in pages:
4119  pages[p.page] = {}
4120 
4121  pages[p.page][p.name] = p.value # Return the 'converted' value (convert from string to actual useful units)
4122 
4123  return pages
4124 
4125  @property
4126  def values(self): # Same as above
4127  return self.parameters
4128 
4129  def ResetWizard(self): # Reset all parameters to default values
4130  for p in self.params:
4131  p.DefaultValue()
4132 
4133  def GetName(self): # Return the name of this wizard
4134  return self.name
4135 
4136  def GetImage(self): # Return the filename of the preview image associated with this wizard
4137  return self.image
4138 
4139  def GetDescription(self): # Return the description text
4140  return self.description
4141 
4142  def GetValue(self):
4143  raise NotImplementedError
4144 
4146  return "REF" # Default reference prefix for any footprint
4147 
4148  def GetParam(self, page, name): # Grab a parameter
4149  for p in self.params:
4150  if p.page == page and p.name == name:
4151  return p
4152 
4153  return None
4154 
4155  def CheckParam(self, page, name, **kwarg):
4156  self.GetParam(page,name).Check(**kwarg)
4157 
4158  def AnyErrors(self):
4159  return any([len(p.error_list) > 0 for p in self.params])
4160 
4161  @property
4162  def pages(self): # Return an (ordered) list of the available page names
4163  page_list = []
4164  for p in self.params:
4165  if p.page not in page_list:
4166  page_list.append(p.page)
4167 
4168  return page_list
4169 
4170  def GetNumParameterPages(self): # Return the number of parameter pages
4171  return len(self.pages)
4172 
4173  def GetParameterPageName(self,page_n): # Return the name of a page at a given index
4174  return self.pages[page_n]
4175 
4176  def GetParametersByPageName(self, page_name): # Return a list of parameters on a given page
4177  params = []
4178 
4179  for p in self.params:
4180  if p.page == page_name:
4181  params.append(p)
4182 
4183  return params
4184 
4185  def GetParametersByPageIndex(self, page_index): # Return an ordered list of parameters on a given page
4186  return self.GetParametersByPageName(self.GetParameterPageName(page_index))
4187 
4188  def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
4189  params = self.GetParametersByPageIndex(page_index)
4190  return [p.designator for p in params]
4191 
4192  def GetParameterNames(self,page_index): # Return the list of names associated with a given page
4193  params = self.GetParametersByPageIndex(page_index)
4194  return [p.name for p in params]
4195 
4196  def GetParameterValues(self,page_index): # Return the list of values associated with a given page
4197  params = self.GetParametersByPageIndex(page_index)
4198  return [str(p.raw_value) for p in params]
4199 
4200  def GetParameterErrors(self,page_index): # Return list of errors associated with a given page
4201  params = self.GetParametersByPageIndex(page_index)
4202  return [str("\n".join(p.error_list)) for p in params]
4203 
4204  def GetParameterTypes(self, page_index): # Return list of units associated with a given page
4205  params = self.GetParametersByPageIndex(page_index)
4206  return [str(p.units) for p in params]
4207 
4208  def GetParameterHints(self, page_index): # Return a list of units associated with a given page
4209  params = self.GetParametersByPageIndex(page_index)
4210  return [str(p.hint) for p in params]
4211 
4212  def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
4213  params = self.GetParametersByPageIndex(page_index)
4214  return [str(p.designator) for p in params]
4215 
4216  def SetParameterValues(self, page_index, list_of_values): # Update values on a given page
4217 
4218  params = self.GetParametersByPageIndex(page_index)
4219 
4220  for i, param in enumerate(params):
4221  if i >= len(list_of_values):
4222  break
4223  param.SetValue(list_of_values[i])
4224 
4225  def GetFootprint( self ):
4226  self.BuildFootprint()
4227  return self.module
4228 
4229  def BuildFootprint(self):
4230  return
4231 
4232  def GetBuildMessages( self ):
4233  return self.buildmessages
4234 
4235  def Show(self):
4236  text = "Footprint Wizard Name: {name}\n".format(name=self.GetName())
4237  text += "Footprint Wizard Description: {desc}\n".format(desc=self.GetDescription())
4238 
4239  n_pages = self.GetNumParameterPages()
4240 
4241  text += "Pages: {n}\n".format(n=n_pages)
4242 
4243  for i in range(n_pages):
4244  name = self.GetParameterPageName(i)
4245 
4246  params = self.GetParametersByPageName(name)
4247 
4248  text += "{name}\n".format(name=name)
4249 
4250  for j in range(len(params)):
4251  text += ("\t{param}{err}\n".format(
4252  param = str(params[j]),
4253  err = ' *' if len(params[j].error_list) > 0 else ''
4254  ))
4255 
4256  if self.AnyErrors():
4257  text += " * Errors exist for these parameters"
4258 
4259  return text
4260 
4262  def __init__( self ):
4263  KiCadPlugin.__init__( self )
4264  self.icon_file_name = ""
4265  self.show_toolbar_button = False
4266  self.defaults()
4267 
4268  def defaults( self ):
4269  self.name = "Undefined Action plugin"
4270  self.category = "Undefined"
4271  self.description = ""
4272 
4273  def GetName( self ):
4274  return self.name
4275 
4276  def GetCategoryName( self ):
4277  return self.category
4278 
4279  def GetDescription( self ):
4280  return self.description
4281 
4283  return self.show_toolbar_button
4284 
4285  def GetIconFileName( self ):
4286  return self.icon_file_name
4287 
4288  def Run(self):
4289  return
4290 
4291 
4292 class CSegment(_object):
4293  """Proxy of C++ CSegment class."""
4294 
4295  __swig_setmethods__ = {}
4296  __setattr__ = lambda self, name, value: _swig_setattr(self, CSegment, name, value)
4297  __swig_getmethods__ = {}
4298  __getattr__ = lambda self, name: _swig_getattr(self, CSegment, name)
4299  __repr__ = _swig_repr
4300  __swig_setmethods__["m_Start"] = _pcbnew.CSegment_m_Start_set
4301  __swig_getmethods__["m_Start"] = _pcbnew.CSegment_m_Start_get
4302  if _newclass:
4303  m_Start = _swig_property(_pcbnew.CSegment_m_Start_get, _pcbnew.CSegment_m_Start_set)
4304  __swig_setmethods__["m_End"] = _pcbnew.CSegment_m_End_set
4305  __swig_getmethods__["m_End"] = _pcbnew.CSegment_m_End_get
4306  if _newclass:
4307  m_End = _swig_property(_pcbnew.CSegment_m_End_get, _pcbnew.CSegment_m_End_set)
4308 
4309  def __init__(self, *args):
4310  """
4311  __init__(CSegment self) -> CSegment
4312  __init__(CSegment self, wxPoint aStart, wxPoint aEnd) -> CSegment
4313  __init__(CSegment self, int x0, int y0, int x1, int y1) -> CSegment
4314  """
4315  this = _pcbnew.new_CSegment(*args)
4316  try:
4317  self.this.append(this)
4318  except Exception:
4319  self.this = this
4320  __swig_destroy__ = _pcbnew.delete_CSegment
4321  __del__ = lambda self: None
4322 CSegment_swigregister = _pcbnew.CSegment_swigregister
4323 CSegment_swigregister(CSegment)
4324 
4326  """Proxy of C++ CPolyPt class."""
4327 
4328  __swig_setmethods__ = {}
4329  for _s in [wxPoint]:
4330  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
4331  __setattr__ = lambda self, name, value: _swig_setattr(self, CPolyPt, name, value)
4332  __swig_getmethods__ = {}
4333  for _s in [wxPoint]:
4334  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
4335  __getattr__ = lambda self, name: _swig_getattr(self, CPolyPt, name)
4336  __repr__ = _swig_repr
4337 
4338  def __init__(self, *args):
4339  """
4340  __init__(CPolyPt self, int aX=0, int aY=0, bool aEnd=False, int aUtility=0) -> CPolyPt
4341  __init__(CPolyPt self, int aX=0, int aY=0, bool aEnd=False) -> CPolyPt
4342  __init__(CPolyPt self, int aX=0, int aY=0) -> CPolyPt
4343  __init__(CPolyPt self, int aX=0) -> CPolyPt
4344  __init__(CPolyPt self) -> CPolyPt
4345  __init__(CPolyPt self, CPolyPt aPt) -> CPolyPt
4346  __init__(CPolyPt self, wxPoint aPoint) -> CPolyPt
4347  """
4348  this = _pcbnew.new_CPolyPt(*args)
4349  try:
4350  self.this.append(this)
4351  except Exception:
4352  self.this = this
4353  __swig_setmethods__["end_contour"] = _pcbnew.CPolyPt_end_contour_set
4354  __swig_getmethods__["end_contour"] = _pcbnew.CPolyPt_end_contour_get
4355  if _newclass:
4356  end_contour = _swig_property(_pcbnew.CPolyPt_end_contour_get, _pcbnew.CPolyPt_end_contour_set)
4357  __swig_setmethods__["m_flags"] = _pcbnew.CPolyPt_m_flags_set
4358  __swig_getmethods__["m_flags"] = _pcbnew.CPolyPt_m_flags_get
4359  if _newclass:
4360  m_flags = _swig_property(_pcbnew.CPolyPt_m_flags_get, _pcbnew.CPolyPt_m_flags_set)
4361 
4362  def __eq__(self, cpt2):
4363  """__eq__(CPolyPt self, CPolyPt cpt2) -> bool"""
4364  return _pcbnew.CPolyPt___eq__(self, cpt2)
4365 
4366 
4367  def __ne__(self, cpt2):
4368  """__ne__(CPolyPt self, CPolyPt cpt2) -> bool"""
4369  return _pcbnew.CPolyPt___ne__(self, cpt2)
4370 
4371  __swig_destroy__ = _pcbnew.delete_CPolyPt
4372  __del__ = lambda self: None
4373 CPolyPt_swigregister = _pcbnew.CPolyPt_swigregister
4374 CPolyPt_swigregister(CPolyPt)
4375 
4377  """Proxy of C++ CPolyLine class."""
4378 
4379  __swig_setmethods__ = {}
4380  __setattr__ = lambda self, name, value: _swig_setattr(self, CPolyLine, name, value)
4381  __swig_getmethods__ = {}
4382  __getattr__ = lambda self, name: _swig_getattr(self, CPolyLine, name)
4383  __repr__ = _swig_repr
4384  NO_HATCH = _pcbnew.CPolyLine_NO_HATCH
4385  DIAGONAL_FULL = _pcbnew.CPolyLine_DIAGONAL_FULL
4386  DIAGONAL_EDGE = _pcbnew.CPolyLine_DIAGONAL_EDGE
4387 
4388  def __init__(self, *args):
4389  """
4390  __init__(CPolyLine self) -> CPolyLine
4391  __init__(CPolyLine self, CPolyLine aCPolyLine) -> CPolyLine
4392  """
4393  this = _pcbnew.new_CPolyLine(*args)
4394  try:
4395  self.this.append(this)
4396  except Exception:
4397  self.this = this
4398  __swig_destroy__ = _pcbnew.delete_CPolyLine
4399  __del__ = lambda self: None
4400 
4401  def ImportSettings(self, aPoly):
4402  """ImportSettings(CPolyLine self, CPolyLine aPoly)"""
4403  return _pcbnew.CPolyLine_ImportSettings(self, aPoly)
4404 
4405 
4406  def Start(self, layer, x, y, hatch):
4407  """Start(CPolyLine self, LAYER_NUM layer, int x, int y, int hatch)"""
4408  return _pcbnew.CPolyLine_Start(self, layer, x, y, hatch)
4409 
4410 
4411  def AppendCorner(self, x, y):
4412  """AppendCorner(CPolyLine self, int x, int y)"""
4413  return _pcbnew.CPolyLine_AppendCorner(self, x, y)
4414 
4415 
4416  def InsertCorner(self, ic, x, y):
4417  """InsertCorner(CPolyLine self, int ic, int x, int y)"""
4418  return _pcbnew.CPolyLine_InsertCorner(self, ic, x, y)
4419 
4420 
4421  def DeleteCorner(self, ic):
4422  """DeleteCorner(CPolyLine self, int ic)"""
4423  return _pcbnew.CPolyLine_DeleteCorner(self, ic)
4424 
4425 
4426  def MoveCorner(self, ic, x, y):
4427  """MoveCorner(CPolyLine self, int ic, int x, int y)"""
4428  return _pcbnew.CPolyLine_MoveCorner(self, ic, x, y)
4429 
4430 
4431  def CloseLastContour(self):
4432  """CloseLastContour(CPolyLine self)"""
4433  return _pcbnew.CPolyLine_CloseLastContour(self)
4434 
4435 
4436  def RemoveContour(self, icont):
4437  """RemoveContour(CPolyLine self, int icont)"""
4438  return _pcbnew.CPolyLine_RemoveContour(self, icont)
4439 
4440 
4442  """IsPolygonSelfIntersecting(CPolyLine self) -> bool"""
4443  return _pcbnew.CPolyLine_IsPolygonSelfIntersecting(self)
4444 
4445 
4446  def Chamfer(self, aDistance):
4447  """Chamfer(CPolyLine self, unsigned int aDistance) -> CPolyLine"""
4448  return _pcbnew.CPolyLine_Chamfer(self, aDistance)
4449 
4450 
4451  def Fillet(self, aRadius, aSegments):
4452  """Fillet(CPolyLine self, unsigned int aRadius, unsigned int aSegments) -> CPolyLine"""
4453  return _pcbnew.CPolyLine_Fillet(self, aRadius, aSegments)
4454 
4455 
4457  """RemoveNullSegments(CPolyLine self) -> int"""
4458  return _pcbnew.CPolyLine_RemoveNullSegments(self)
4459 
4460 
4462  """RemoveAllContours(CPolyLine self)"""
4463  return _pcbnew.CPolyLine_RemoveAllContours(self)
4464 
4465 
4466  def UnHatch(self):
4467  """UnHatch(CPolyLine self)"""
4468  return _pcbnew.CPolyLine_UnHatch(self)
4469 
4470 
4471  def Hatch(self):
4472  """Hatch(CPolyLine self)"""
4473  return _pcbnew.CPolyLine_Hatch(self)
4474 
4475 
4476  def MoveOrigin(self, x_off, y_off):
4477  """MoveOrigin(CPolyLine self, int x_off, int y_off)"""
4478  return _pcbnew.CPolyLine_MoveOrigin(self, x_off, y_off)
4479 
4480 
4481  def GetBoundingBox(self, *args):
4482  """
4483  GetBoundingBox(CPolyLine self) -> EDA_RECT
4484  GetBoundingBox(CPolyLine self, int icont) -> EDA_RECT
4485  """
4486  return _pcbnew.CPolyLine_GetBoundingBox(self, *args)
4487 
4488 
4489  def Copy(self, src):
4490  """Copy(CPolyLine self, CPolyLine src)"""
4491  return _pcbnew.CPolyLine_Copy(self, src)
4492 
4493 
4494  def TestPointInside(self, x, y):
4495  """TestPointInside(CPolyLine self, int x, int y) -> bool"""
4496  return _pcbnew.CPolyLine_TestPointInside(self, x, y)
4497 
4498 
4499  def IsCutoutContour(self, aCornerIdx):
4500  """IsCutoutContour(CPolyLine self, int aCornerIdx) -> bool"""
4501  return _pcbnew.CPolyLine_IsCutoutContour(self, aCornerIdx)
4502 
4503 
4504  def AppendArc(self, xi, yi, xf, yf, xc, yc, num):
4505  """AppendArc(CPolyLine self, int xi, int yi, int xf, int yf, int xc, int yc, int num)"""
4506  return _pcbnew.CPolyLine_AppendArc(self, xi, yi, xf, yf, xc, yc, num)
4507 
4508 
4509  def SetLayer(self, aLayer):
4510  """SetLayer(CPolyLine self, LAYER_NUM aLayer)"""
4511  return _pcbnew.CPolyLine_SetLayer(self, aLayer)
4512 
4513 
4514  def GetLayer(self):
4515  """GetLayer(CPolyLine self) -> LAYER_NUM"""
4516  return _pcbnew.CPolyLine_GetLayer(self)
4517 
4518 
4519  def GetCornersCount(self):
4520  """GetCornersCount(CPolyLine self) -> int"""
4521  return _pcbnew.CPolyLine_GetCornersCount(self)
4522 
4523 
4524  def GetClosed(self):
4525  """GetClosed(CPolyLine self) -> bool"""
4526  return _pcbnew.CPolyLine_GetClosed(self)
4527 
4528 
4529  def GetContoursCount(self):
4530  """GetContoursCount(CPolyLine self) -> int"""
4531  return _pcbnew.CPolyLine_GetContoursCount(self)
4532 
4533 
4534  def GetContour(self, ic):
4535  """GetContour(CPolyLine self, int ic) -> int"""
4536  return _pcbnew.CPolyLine_GetContour(self, ic)
4537 
4538 
4539  def GetContourStart(self, icont):
4540  """GetContourStart(CPolyLine self, int icont) -> int"""
4541  return _pcbnew.CPolyLine_GetContourStart(self, icont)
4542 
4543 
4544  def GetContourEnd(self, icont):
4545  """GetContourEnd(CPolyLine self, int icont) -> int"""
4546  return _pcbnew.CPolyLine_GetContourEnd(self, icont)
4547 
4548 
4549  def GetContourSize(self, icont):
4550  """GetContourSize(CPolyLine self, int icont) -> int"""
4551  return _pcbnew.CPolyLine_GetContourSize(self, icont)
4552 
4553 
4554  def GetX(self, ic):
4555  """GetX(CPolyLine self, int ic) -> int"""
4556  return _pcbnew.CPolyLine_GetX(self, ic)
4557 
4558 
4559  def GetY(self, ic):
4560  """GetY(CPolyLine self, int ic) -> int"""
4561  return _pcbnew.CPolyLine_GetY(self, ic)
4562 
4563 
4564  def IsEndContour(self, ic):
4565  """IsEndContour(CPolyLine self, int ic) -> bool"""
4566  return _pcbnew.CPolyLine_IsEndContour(self, ic)
4567 
4568 
4569  def GetPos(self, ic):
4570  """GetPos(CPolyLine self, int ic) -> wxPoint"""
4571  return _pcbnew.CPolyLine_GetPos(self, ic)
4572 
4573 
4574  def GetHatchPitch(self):
4575  """GetHatchPitch(CPolyLine self) -> int"""
4576  return _pcbnew.CPolyLine_GetHatchPitch(self)
4577 
4578 
4580  """GetDefaultHatchPitchMils() -> int"""
4581  return _pcbnew.CPolyLine_GetDefaultHatchPitchMils()
4582 
4583  if _newclass:
4584  GetDefaultHatchPitchMils = staticmethod(GetDefaultHatchPitchMils)
4585  __swig_getmethods__["GetDefaultHatchPitchMils"] = lambda x: GetDefaultHatchPitchMils
4586 
4587  def GetHatchStyle(self):
4588  """GetHatchStyle(CPolyLine self) -> enum CPolyLine::HATCH_STYLE"""
4589  return _pcbnew.CPolyLine_GetHatchStyle(self)
4590 
4591 
4592  def SetHatch(self, aHatchStyle, aHatchPitch, aRebuildHatch):
4593  """SetHatch(CPolyLine self, int aHatchStyle, int aHatchPitch, bool aRebuildHatch)"""
4594  return _pcbnew.CPolyLine_SetHatch(self, aHatchStyle, aHatchPitch, aRebuildHatch)
4595 
4596 
4597  def SetX(self, ic, x):
4598  """SetX(CPolyLine self, int ic, int x)"""
4599  return _pcbnew.CPolyLine_SetX(self, ic, x)
4600 
4601 
4602  def SetY(self, ic, y):
4603  """SetY(CPolyLine self, int ic, int y)"""
4604  return _pcbnew.CPolyLine_SetY(self, ic, y)
4605 
4606 
4607  def SetHatchStyle(self, style):
4608  """SetHatchStyle(CPolyLine self, enum CPolyLine::HATCH_STYLE style)"""
4609  return _pcbnew.CPolyLine_SetHatchStyle(self, style)
4610 
4611 
4612  def SetHatchPitch(self, pitch):
4613  """SetHatchPitch(CPolyLine self, int pitch)"""
4614  return _pcbnew.CPolyLine_SetHatchPitch(self, pitch)
4615 
4616 
4617  def NormalizeAreaOutlines(self, aNewPolygonList):
4618  """NormalizeAreaOutlines(CPolyLine self, std::vector< CPolyLine *,std::allocator< CPolyLine * > > * aNewPolygonList) -> int"""
4619  return _pcbnew.CPolyLine_NormalizeAreaOutlines(self, aNewPolygonList)
4620 
4621 
4622  def AppendBezier(self, *args):
4623  """
4624  AppendBezier(CPolyLine self, int x1, int y1, int x2, int y2, int x3, int y3)
4625  AppendBezier(CPolyLine self, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)
4626  """
4627  return _pcbnew.CPolyLine_AppendBezier(self, *args)
4628 
4629 
4630  def Distance(self, *args):
4631  """
4632  Distance(CPolyLine self, wxPoint aPoint) -> int
4633  Distance(CPolyLine self, wxPoint aStart, wxPoint aEnd, int aWidth) -> int
4634  """
4635  return _pcbnew.CPolyLine_Distance(self, *args)
4636 
4637 
4638  def HitTestForEdge(self, aPos, aDistMax):
4639  """HitTestForEdge(CPolyLine self, wxPoint aPos, int aDistMax) -> int"""
4640  return _pcbnew.CPolyLine_HitTestForEdge(self, aPos, aDistMax)
4641 
4642 
4643  def HitTestForCorner(self, aPos, aDistMax):
4644  """HitTestForCorner(CPolyLine self, wxPoint aPos, int aDistMax) -> int"""
4645  return _pcbnew.CPolyLine_HitTestForCorner(self, aPos, aDistMax)
4646 
4647  __swig_setmethods__["m_CornersList"] = _pcbnew.CPolyLine_m_CornersList_set
4648  __swig_getmethods__["m_CornersList"] = _pcbnew.CPolyLine_m_CornersList_get
4649  if _newclass:
4650  m_CornersList = _swig_property(_pcbnew.CPolyLine_m_CornersList_get, _pcbnew.CPolyLine_m_CornersList_set)
4651  __swig_setmethods__["m_HatchLines"] = _pcbnew.CPolyLine_m_HatchLines_set
4652  __swig_getmethods__["m_HatchLines"] = _pcbnew.CPolyLine_m_HatchLines_get
4653  if _newclass:
4654  m_HatchLines = _swig_property(_pcbnew.CPolyLine_m_HatchLines_get, _pcbnew.CPolyLine_m_HatchLines_set)
4655 CPolyLine_swigregister = _pcbnew.CPolyLine_swigregister
4656 CPolyLine_swigregister(CPolyLine)
4657 
4659  """CPolyLine_GetDefaultHatchPitchMils() -> int"""
4660  return _pcbnew.CPolyLine_GetDefaultHatchPitchMils()
4661 
4662 
4664  """ConvertPolyListToPolySet(CPOLYGONS_LIST const & aList) -> SHAPE_POLY_SET"""
4665  return _pcbnew.ConvertPolyListToPolySet(aList)
4666 
4668  """ConvertPolySetToPolyList(SHAPE_POLY_SET aPolyset) -> CPOLYGONS_LIST const"""
4669  return _pcbnew.ConvertPolySetToPolyList(aPolyset)
4670 
4671 _pcbnew.SH_RECT_swigconstant(_pcbnew)
4672 SH_RECT = _pcbnew.SH_RECT
4673 
4674 _pcbnew.SH_SEGMENT_swigconstant(_pcbnew)
4675 SH_SEGMENT = _pcbnew.SH_SEGMENT
4676 
4677 _pcbnew.SH_LINE_CHAIN_swigconstant(_pcbnew)
4678 SH_LINE_CHAIN = _pcbnew.SH_LINE_CHAIN
4679 
4680 _pcbnew.SH_CIRCLE_swigconstant(_pcbnew)
4681 SH_CIRCLE = _pcbnew.SH_CIRCLE
4682 
4683 _pcbnew.SH_SIMPLE_swigconstant(_pcbnew)
4684 SH_SIMPLE = _pcbnew.SH_SIMPLE
4685 
4686 _pcbnew.SH_POLY_SET_swigconstant(_pcbnew)
4687 SH_POLY_SET = _pcbnew.SH_POLY_SET
4688 
4689 _pcbnew.SH_COMPOUND_swigconstant(_pcbnew)
4690 SH_COMPOUND = _pcbnew.SH_COMPOUND
4691 
4692 _pcbnew.SH_ARC_swigconstant(_pcbnew)
4693 SH_ARC = _pcbnew.SH_ARC
4695  """Proxy of C++ SHAPE class."""
4696 
4697  __swig_setmethods__ = {}
4698  __setattr__ = lambda self, name, value: _swig_setattr(self, SHAPE, name, value)
4699  __swig_getmethods__ = {}
4700  __getattr__ = lambda self, name: _swig_getattr(self, SHAPE, name)
4701 
4702  def __init__(self, *args, **kwargs):
4703  raise AttributeError("No constructor defined - class is abstract")
4704  __repr__ = _swig_repr
4705  __swig_destroy__ = _pcbnew.delete_SHAPE
4706  __del__ = lambda self: None
4707 
4708  def Type(self):
4709  """Type(SHAPE self) -> SHAPE_TYPE"""
4710  return _pcbnew.SHAPE_Type(self)
4711 
4712 
4713  def Clone(self):
4714  """Clone(SHAPE self) -> SHAPE"""
4715  return _pcbnew.SHAPE_Clone(self)
4716 
4717 
4718  def Collide(self, *args):
4719  """
4720  Collide(SHAPE self, VECTOR2I aP, int aClearance=0) -> bool
4721  Collide(SHAPE self, VECTOR2I aP) -> bool
4722  Collide(SHAPE self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
4723  Collide(SHAPE self, SHAPE aShape, int aClearance=0) -> bool
4724  Collide(SHAPE self, SHAPE aShape) -> bool
4725  Collide(SHAPE self, SEG const & aSeg, int aClearance=0) -> bool
4726  Collide(SHAPE self, SEG const & aSeg) -> bool
4727  """
4728  return _pcbnew.SHAPE_Collide(self, *args)
4729 
4730 
4731  def BBox(self, aClearance=0):
4732  """
4733  BBox(SHAPE self, int aClearance=0) -> BOX2I const
4734  BBox(SHAPE self) -> BOX2I const
4735  """
4736  return _pcbnew.SHAPE_BBox(self, aClearance)
4737 
4738 
4739  def Centre(self):
4740  """Centre(SHAPE self) -> VECTOR2I"""
4741  return _pcbnew.SHAPE_Centre(self)
4742 
4743 
4744  def Move(self, aVector):
4745  """Move(SHAPE self, VECTOR2I aVector)"""
4746  return _pcbnew.SHAPE_Move(self, aVector)
4747 
4748 
4749  def IsSolid(self):
4750  """IsSolid(SHAPE self) -> bool"""
4751  return _pcbnew.SHAPE_IsSolid(self)
4752 
4753 
4754  def Parse(self, aStream):
4755  """Parse(SHAPE self, std::stringstream & aStream) -> bool"""
4756  return _pcbnew.SHAPE_Parse(self, aStream)
4757 
4758 
4759  def Format(self):
4760  """Format(SHAPE self) -> string"""
4761  return _pcbnew.SHAPE_Format(self)
4762 
4763 SHAPE_swigregister = _pcbnew.SHAPE_swigregister
4764 SHAPE_swigregister(SHAPE)
4765 
4766 
4767 def CollideShapes(aA, aB, aClearance, aNeedMTV, aMTV):
4768  """CollideShapes(SHAPE aA, SHAPE aB, int aClearance, bool aNeedMTV, VECTOR2I aMTV) -> bool"""
4769  return _pcbnew.CollideShapes(aA, aB, aClearance, aNeedMTV, aMTV)
4771  """Proxy of C++ VECTOR2<(int)> class."""
4772 
4773  __swig_setmethods__ = {}
4774  __setattr__ = lambda self, name, value: _swig_setattr(self, VECTOR2I, name, value)
4775  __swig_getmethods__ = {}
4776  __getattr__ = lambda self, name: _swig_getattr(self, VECTOR2I, name)
4777  __repr__ = _swig_repr
4778  __swig_setmethods__["x"] = _pcbnew.VECTOR2I_x_set
4779  __swig_getmethods__["x"] = _pcbnew.VECTOR2I_x_get
4780  if _newclass:
4781  x = _swig_property(_pcbnew.VECTOR2I_x_get, _pcbnew.VECTOR2I_x_set)
4782  __swig_setmethods__["y"] = _pcbnew.VECTOR2I_y_set
4783  __swig_getmethods__["y"] = _pcbnew.VECTOR2I_y_get
4784  if _newclass:
4785  y = _swig_property(_pcbnew.VECTOR2I_y_get, _pcbnew.VECTOR2I_y_set)
4786 
4787  def __init__(self, *args):
4788  """
4789  __init__(VECTOR2<(int)> self) -> VECTOR2I
4790  __init__(VECTOR2<(int)> self, wxPoint aPoint) -> VECTOR2I
4791  __init__(VECTOR2<(int)> self, wxSize aSize) -> VECTOR2I
4792  __init__(VECTOR2<(int)> self, int x, int y) -> VECTOR2I
4793  """
4794  this = _pcbnew.new_VECTOR2I(*args)
4795  try:
4796  self.this.append(this)
4797  except Exception:
4798  self.this = this
4799 
4800  def EuclideanNorm(self):
4801  """EuclideanNorm(VECTOR2I self) -> int"""
4802  return _pcbnew.VECTOR2I_EuclideanNorm(self)
4803 
4804 
4806  """SquaredEuclideanNorm(VECTOR2I self) -> VECTOR2< int >::extended_type"""
4807  return _pcbnew.VECTOR2I_SquaredEuclideanNorm(self)
4808 
4809 
4810  def Perpendicular(self):
4811  """Perpendicular(VECTOR2I self) -> VECTOR2I"""
4812  return _pcbnew.VECTOR2I_Perpendicular(self)
4813 
4814 
4815  def Resize(self, aNewLength):
4816  """Resize(VECTOR2I self, int aNewLength) -> VECTOR2I"""
4817  return _pcbnew.VECTOR2I_Resize(self, aNewLength)
4818 
4819 
4820  def Angle(self):
4821  """Angle(VECTOR2I self) -> double"""
4822  return _pcbnew.VECTOR2I_Angle(self)
4823 
4824 
4825  def Rotate(self, aAngle):
4826  """Rotate(VECTOR2I self, double aAngle) -> VECTOR2I"""
4827  return _pcbnew.VECTOR2I_Rotate(self, aAngle)
4828 
4829 
4830  def Format(self):
4831  """Format(VECTOR2I self) -> string"""
4832  return _pcbnew.VECTOR2I_Format(self)
4833 
4834 
4835  def Cross(self, aVector):
4836  """Cross(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
4837  return _pcbnew.VECTOR2I_Cross(self, aVector)
4838 
4839 
4840  def Dot(self, aVector):
4841  """Dot(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
4842  return _pcbnew.VECTOR2I_Dot(self, aVector)
4843 
4844 
4845  def __add__(self, *args):
4846  """
4847  __add__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
4848  __add__(VECTOR2I self, int const & aScalar) -> VECTOR2I
4849  """
4850  return _pcbnew.VECTOR2I___add__(self, *args)
4851 
4852 
4853  def __iadd__(self, *args):
4854  """
4855  __iadd__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
4856  __iadd__(VECTOR2I self, int const & aScalar) -> VECTOR2I
4857  """
4858  return _pcbnew.VECTOR2I___iadd__(self, *args)
4859 
4860 
4861  def __sub__(self, *args):
4862  """
4863  __sub__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
4864  __sub__(VECTOR2I self, int const & aScalar) -> VECTOR2I
4865  """
4866  return _pcbnew.VECTOR2I___sub__(self, *args)
4867 
4868 
4869  def __isub__(self, *args):
4870  """
4871  __isub__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
4872  __isub__(VECTOR2I self, int const & aScalar) -> VECTOR2I
4873  """
4874  return _pcbnew.VECTOR2I___isub__(self, *args)
4875 
4876 
4877  def __neg__(self):
4878  """__neg__(VECTOR2I self) -> VECTOR2I"""
4879  return _pcbnew.VECTOR2I___neg__(self)
4880 
4881 
4882  def __mul__(self, *args):
4883  """
4884  __mul__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type
4885  __mul__(VECTOR2I self, int const & aFactor) -> VECTOR2I
4886  """
4887  return _pcbnew.VECTOR2I___mul__(self, *args)
4888 
4889 
4890  def __div__(self, aFactor):
4891  """__div__(VECTOR2I self, int const & aFactor) -> VECTOR2I"""
4892  return _pcbnew.VECTOR2I___div__(self, aFactor)
4893 
4894 
4895  def __eq__(self, aVector):
4896  """__eq__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4897  return _pcbnew.VECTOR2I___eq__(self, aVector)
4898 
4899 
4900  def __ne__(self, aVector):
4901  """__ne__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4902  return _pcbnew.VECTOR2I___ne__(self, aVector)
4903 
4904 
4905  def __lt__(self, aVector):
4906  """__lt__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4907  return _pcbnew.VECTOR2I___lt__(self, aVector)
4908 
4909 
4910  def __le__(self, aVector):
4911  """__le__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4912  return _pcbnew.VECTOR2I___le__(self, aVector)
4913 
4914 
4915  def __gt__(self, aVector):
4916  """__gt__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4917  return _pcbnew.VECTOR2I___gt__(self, aVector)
4918 
4919 
4920  def __ge__(self, aVector):
4921  """__ge__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4922  return _pcbnew.VECTOR2I___ge__(self, aVector)
4923 
4924  __swig_destroy__ = _pcbnew.delete_VECTOR2I
4925  __del__ = lambda self: None
4926 VECTOR2I_swigregister = _pcbnew.VECTOR2I_swigregister
4927 VECTOR2I_swigregister(VECTOR2I)
4928 
4930  """Proxy of C++ SHAPE_LINE_CHAIN class."""
4931 
4932  __swig_setmethods__ = {}
4933  for _s in [SHAPE]:
4934  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
4935  __setattr__ = lambda self, name, value: _swig_setattr(self, SHAPE_LINE_CHAIN, name, value)
4936  __swig_getmethods__ = {}
4937  for _s in [SHAPE]:
4938  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
4939  __getattr__ = lambda self, name: _swig_getattr(self, SHAPE_LINE_CHAIN, name)
4940  __repr__ = _swig_repr
4941 
4942  def __init__(self, *args):
4943  """
4944  __init__(SHAPE_LINE_CHAIN self) -> SHAPE_LINE_CHAIN
4945  __init__(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aShape) -> SHAPE_LINE_CHAIN
4946  __init__(SHAPE_LINE_CHAIN self, VECTOR2I aA, VECTOR2I aB) -> SHAPE_LINE_CHAIN
4947  __init__(SHAPE_LINE_CHAIN self, VECTOR2I aA, VECTOR2I aB, VECTOR2I aC) -> SHAPE_LINE_CHAIN
4948  __init__(SHAPE_LINE_CHAIN self, VECTOR2I aA, VECTOR2I aB, VECTOR2I aC, VECTOR2I aD) -> SHAPE_LINE_CHAIN
4949  __init__(SHAPE_LINE_CHAIN self, VECTOR2I aV, int aCount) -> SHAPE_LINE_CHAIN
4950  __init__(SHAPE_LINE_CHAIN self, ClipperLib::Path const & aPath) -> SHAPE_LINE_CHAIN
4951  """
4952  this = _pcbnew.new_SHAPE_LINE_CHAIN(*args)
4953  try:
4954  self.this.append(this)
4955  except Exception:
4956  self.this = this
4957  __swig_destroy__ = _pcbnew.delete_SHAPE_LINE_CHAIN
4958  __del__ = lambda self: None
4959 
4960  def Clone(self):
4961  """Clone(SHAPE_LINE_CHAIN self) -> SHAPE"""
4962  return _pcbnew.SHAPE_LINE_CHAIN_Clone(self)
4963 
4964 
4965  def Clear(self):
4966  """Clear(SHAPE_LINE_CHAIN self)"""
4967  return _pcbnew.SHAPE_LINE_CHAIN_Clear(self)
4968 
4969 
4970  def SetClosed(self, aClosed):
4971  """SetClosed(SHAPE_LINE_CHAIN self, bool aClosed)"""
4972  return _pcbnew.SHAPE_LINE_CHAIN_SetClosed(self, aClosed)
4973 
4974 
4975  def IsClosed(self):
4976  """IsClosed(SHAPE_LINE_CHAIN self) -> bool"""
4977  return _pcbnew.SHAPE_LINE_CHAIN_IsClosed(self)
4978 
4979 
4980  def SegmentCount(self):
4981  """SegmentCount(SHAPE_LINE_CHAIN self) -> int"""
4982  return _pcbnew.SHAPE_LINE_CHAIN_SegmentCount(self)
4983 
4984 
4985  def PointCount(self):
4986  """PointCount(SHAPE_LINE_CHAIN self) -> int"""
4987  return _pcbnew.SHAPE_LINE_CHAIN_PointCount(self)
4988 
4989 
4990  def Segment(self, aIndex):
4991  """Segment(SHAPE_LINE_CHAIN self, int aIndex) -> SEG"""
4992  return _pcbnew.SHAPE_LINE_CHAIN_Segment(self, aIndex)
4993 
4994 
4995  def CSegment(self, aIndex):
4996  """CSegment(SHAPE_LINE_CHAIN self, int aIndex) -> SEG const"""
4997  return _pcbnew.SHAPE_LINE_CHAIN_CSegment(self, aIndex)
4998 
4999 
5000  def Point(self, aIndex):
5001  """Point(SHAPE_LINE_CHAIN self, int aIndex) -> VECTOR2I"""
5002  return _pcbnew.SHAPE_LINE_CHAIN_Point(self, aIndex)
5003 
5004 
5005  def CPoint(self, aIndex):
5006  """CPoint(SHAPE_LINE_CHAIN self, int aIndex) -> VECTOR2I"""
5007  return _pcbnew.SHAPE_LINE_CHAIN_CPoint(self, aIndex)
5008 
5009 
5010  def CPoints(self):
5011  """CPoints(SHAPE_LINE_CHAIN self) -> std::vector< VECTOR2I,std::allocator< VECTOR2I > > const &"""
5012  return _pcbnew.SHAPE_LINE_CHAIN_CPoints(self)
5013 
5014 
5015  def LastPoint(self):
5016  """LastPoint(SHAPE_LINE_CHAIN self) -> VECTOR2I"""
5017  return _pcbnew.SHAPE_LINE_CHAIN_LastPoint(self)
5018 
5019 
5020  def CLastPoint(self):
5021  """CLastPoint(SHAPE_LINE_CHAIN self) -> VECTOR2I"""
5022  return _pcbnew.SHAPE_LINE_CHAIN_CLastPoint(self)
5023 
5024 
5025  def BBox(self, aClearance=0):
5026  """
5027  BBox(SHAPE_LINE_CHAIN self, int aClearance=0) -> BOX2I const
5028  BBox(SHAPE_LINE_CHAIN self) -> BOX2I const
5029  """
5030  return _pcbnew.SHAPE_LINE_CHAIN_BBox(self, aClearance)
5031 
5032 
5033  def Collide(self, *args):
5034  """
5035  Collide(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aClearance=0) -> bool
5036  Collide(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> bool
5037  Collide(SHAPE_LINE_CHAIN self, SEG const & aSeg, int aClearance=0) -> bool
5038  Collide(SHAPE_LINE_CHAIN self, SEG const & aSeg) -> bool
5039  """
5040  return _pcbnew.SHAPE_LINE_CHAIN_Collide(self, *args)
5041 
5042 
5043  def Distance(self, aP, aOutlineOnly=False):
5044  """
5045  Distance(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aOutlineOnly=False) -> int
5046  Distance(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int
5047  """
5048  return _pcbnew.SHAPE_LINE_CHAIN_Distance(self, aP, aOutlineOnly)
5049 
5050 
5051  def Reverse(self):
5052  """Reverse(SHAPE_LINE_CHAIN self) -> SHAPE_LINE_CHAIN"""
5053  return _pcbnew.SHAPE_LINE_CHAIN_Reverse(self)
5054 
5055 
5056  def Length(self):
5057  """Length(SHAPE_LINE_CHAIN self) -> int"""
5058  return _pcbnew.SHAPE_LINE_CHAIN_Length(self)
5059 
5060 
5061  def Append(self, *args):
5062  """
5063  Append(SHAPE_LINE_CHAIN self, int aX, int aY, bool aAllowDuplication=False)
5064  Append(SHAPE_LINE_CHAIN self, int aX, int aY)
5065  Append(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aAllowDuplication=False)
5066  Append(SHAPE_LINE_CHAIN self, VECTOR2I aP)
5067  Append(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aOtherLine)
5068  """
5069  return _pcbnew.SHAPE_LINE_CHAIN_Append(self, *args)
5070 
5071 
5072  def Insert(self, aVertex, aP):
5073  """Insert(SHAPE_LINE_CHAIN self, int aVertex, VECTOR2I aP)"""
5074  return _pcbnew.SHAPE_LINE_CHAIN_Insert(self, aVertex, aP)
5075 
5076 
5077  def Replace(self, *args):
5078  """
5079  Replace(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex, VECTOR2I aP)
5080  Replace(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex, SHAPE_LINE_CHAIN aLine)
5081  """
5082  return _pcbnew.SHAPE_LINE_CHAIN_Replace(self, *args)
5083 
5084 
5085  def Remove(self, *args):
5086  """
5087  Remove(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex)
5088  Remove(SHAPE_LINE_CHAIN self, int aIndex)
5089  """
5090  return _pcbnew.SHAPE_LINE_CHAIN_Remove(self, *args)
5091 
5092 
5093  def Split(self, aP):
5094  """Split(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int"""
5095  return _pcbnew.SHAPE_LINE_CHAIN_Split(self, aP)
5096 
5097 
5098  def Find(self, aP):
5099  """Find(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int"""
5100  return _pcbnew.SHAPE_LINE_CHAIN_Find(self, aP)
5101 
5102 
5103  def FindSegment(self, aP):
5104  """FindSegment(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int"""
5105  return _pcbnew.SHAPE_LINE_CHAIN_FindSegment(self, aP)
5106 
5107 
5108  def Slice(self, aStartIndex, aEndIndex=-1):
5109  """
5110  Slice(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex=-1) -> SHAPE_LINE_CHAIN
5111  Slice(SHAPE_LINE_CHAIN self, int aStartIndex) -> SHAPE_LINE_CHAIN
5112  """
5113  return _pcbnew.SHAPE_LINE_CHAIN_Slice(self, aStartIndex, aEndIndex)
5114 
5115 
5116  def Intersects(self, aChain):
5117  """Intersects(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aChain) -> bool"""
5118  return _pcbnew.SHAPE_LINE_CHAIN_Intersects(self, aChain)
5119 
5120 
5121  def Intersect(self, *args):
5122  """
5123  Intersect(SHAPE_LINE_CHAIN self, SEG const & aSeg, SHAPE_LINE_CHAIN::INTERSECTIONS & aIp) -> int
5124  Intersect(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aChain, SHAPE_LINE_CHAIN::INTERSECTIONS & aIp) -> int
5125  """
5126  return _pcbnew.SHAPE_LINE_CHAIN_Intersect(self, *args)
5127 
5128 
5129  def PathLength(self, aP):
5130  """PathLength(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int"""
5131  return _pcbnew.SHAPE_LINE_CHAIN_PathLength(self, aP)
5132 
5133 
5134  def PointInside(self, aP):
5135  """PointInside(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> bool"""
5136  return _pcbnew.SHAPE_LINE_CHAIN_PointInside(self, aP)
5137 
5138 
5139  def PointOnEdge(self, aP):
5140  """PointOnEdge(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> bool"""
5141  return _pcbnew.SHAPE_LINE_CHAIN_PointOnEdge(self, aP)
5142 
5143 
5144  def CheckClearance(self, aP, aDist):
5145  """CheckClearance(SHAPE_LINE_CHAIN self, VECTOR2I aP, int const aDist) -> bool"""
5146  return _pcbnew.SHAPE_LINE_CHAIN_CheckClearance(self, aP, aDist)
5147 
5148 
5149  def SelfIntersecting(self):
5150  """SelfIntersecting(SHAPE_LINE_CHAIN self) -> OPT< SHAPE_LINE_CHAIN::INTERSECTION > const"""
5151  return _pcbnew.SHAPE_LINE_CHAIN_SelfIntersecting(self)
5152 
5153 
5154  def Simplify(self):
5155  """Simplify(SHAPE_LINE_CHAIN self) -> SHAPE_LINE_CHAIN"""
5156  return _pcbnew.SHAPE_LINE_CHAIN_Simplify(self)
5157 
5158 
5159  def convertToClipper(self, aRequiredOrientation):
5160  """convertToClipper(SHAPE_LINE_CHAIN self, bool aRequiredOrientation) -> ClipperLib::Path"""
5161  return _pcbnew.SHAPE_LINE_CHAIN_convertToClipper(self, aRequiredOrientation)
5162 
5163 
5164  def NearestPoint(self, *args):
5165  """
5166  NearestPoint(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> VECTOR2I
5167  NearestPoint(SHAPE_LINE_CHAIN self, SEG const & aSeg, int & dist) -> VECTOR2I
5168  """
5169  return _pcbnew.SHAPE_LINE_CHAIN_NearestPoint(self, *args)
5170 
5171 
5172  def Format(self):
5173  """Format(SHAPE_LINE_CHAIN self) -> string"""
5174  return _pcbnew.SHAPE_LINE_CHAIN_Format(self)
5175 
5176 
5177  def Parse(self, aStream):
5178  """Parse(SHAPE_LINE_CHAIN self, std::stringstream & aStream) -> bool"""
5179  return _pcbnew.SHAPE_LINE_CHAIN_Parse(self, aStream)
5180 
5181 
5182  def __ne__(self, aRhs):
5183  """__ne__(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aRhs) -> bool"""
5184  return _pcbnew.SHAPE_LINE_CHAIN___ne__(self, aRhs)
5185 
5186 
5187  def CompareGeometry(self, aOther):
5188  """CompareGeometry(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aOther) -> bool"""
5189  return _pcbnew.SHAPE_LINE_CHAIN_CompareGeometry(self, aOther)
5190 
5191 
5192  def Move(self, aVector):
5193  """Move(SHAPE_LINE_CHAIN self, VECTOR2I aVector)"""
5194  return _pcbnew.SHAPE_LINE_CHAIN_Move(self, aVector)
5195 
5196 
5197  def Rotate(self, aAngle, aCenter):
5198  """Rotate(SHAPE_LINE_CHAIN self, double aAngle, VECTOR2I aCenter)"""
5199  return _pcbnew.SHAPE_LINE_CHAIN_Rotate(self, aAngle, aCenter)
5200 
5201 
5202  def IsSolid(self):
5203  """IsSolid(SHAPE_LINE_CHAIN self) -> bool"""
5204  return _pcbnew.SHAPE_LINE_CHAIN_IsSolid(self)
5205 
5206 
5207  def PointAlong(self, aPathLength):
5208  """PointAlong(SHAPE_LINE_CHAIN self, int aPathLength) -> VECTOR2I"""
5209  return _pcbnew.SHAPE_LINE_CHAIN_PointAlong(self, aPathLength)
5210 
5211 
5212  def Area(self):
5213  """Area(SHAPE_LINE_CHAIN self) -> double"""
5214  return _pcbnew.SHAPE_LINE_CHAIN_Area(self)
5215 
5216 SHAPE_LINE_CHAIN_swigregister = _pcbnew.SHAPE_LINE_CHAIN_swigregister
5217 SHAPE_LINE_CHAIN_swigregister(SHAPE_LINE_CHAIN)
5218 
5220  """Proxy of C++ SHAPE_POLY_SET class."""
5221 
5222  __swig_setmethods__ = {}
5223  for _s in [SHAPE]:
5224  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
5225  __setattr__ = lambda self, name, value: _swig_setattr(self, SHAPE_POLY_SET, name, value)
5226  __swig_getmethods__ = {}
5227  for _s in [SHAPE]:
5228  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
5229  __getattr__ = lambda self, name: _swig_getattr(self, SHAPE_POLY_SET, name)
5230  __repr__ = _swig_repr
5231 
5232  def __init__(self, *args):
5233  """
5234  __init__(SHAPE_POLY_SET self) -> SHAPE_POLY_SET
5235  __init__(SHAPE_POLY_SET self, SHAPE_POLY_SET aOther, bool aDeepCopy=False) -> SHAPE_POLY_SET
5236  __init__(SHAPE_POLY_SET self, SHAPE_POLY_SET aOther) -> SHAPE_POLY_SET
5237  """
5238  this = _pcbnew.new_SHAPE_POLY_SET(*args)
5239  try:
5240  self.this.append(this)
5241  except Exception:
5242  self.this = this
5243  __swig_destroy__ = _pcbnew.delete_SHAPE_POLY_SET
5244  __del__ = lambda self: None
5245 
5246  def GetRelativeIndices(self, aGlobalIdx, aRelativeIndices):
5247  """GetRelativeIndices(SHAPE_POLY_SET self, int aGlobalIdx, SHAPE_POLY_SET::VERTEX_INDEX * aRelativeIndices) -> bool"""
5248  return _pcbnew.SHAPE_POLY_SET_GetRelativeIndices(self, aGlobalIdx, aRelativeIndices)
5249 
5250 
5251  def GetGlobalIndex(self, aRelativeIndices, aGlobalIdx):
5252  """GetGlobalIndex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices, int & aGlobalIdx) -> bool"""
5253  return _pcbnew.SHAPE_POLY_SET_GetGlobalIndex(self, aRelativeIndices, aGlobalIdx)
5254 
5255 
5256  def Clone(self):
5257  """Clone(SHAPE_POLY_SET self) -> SHAPE"""
5258  return _pcbnew.SHAPE_POLY_SET_Clone(self)
5259 
5260 
5261  def NewOutline(self):
5262  """NewOutline(SHAPE_POLY_SET self) -> int"""
5263  return _pcbnew.SHAPE_POLY_SET_NewOutline(self)
5264 
5265 
5266  def NewHole(self, aOutline=-1):
5267  """
5268  NewHole(SHAPE_POLY_SET self, int aOutline=-1) -> int
5269  NewHole(SHAPE_POLY_SET self) -> int
5270  """
5271  return _pcbnew.SHAPE_POLY_SET_NewHole(self, aOutline)
5272 
5273 
5274  def AddOutline(self, aOutline):
5275  """AddOutline(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aOutline) -> int"""
5276  return _pcbnew.SHAPE_POLY_SET_AddOutline(self, aOutline)
5277 
5278 
5279  def AddHole(self, aHole, aOutline=-1):
5280  """
5281  AddHole(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aHole, int aOutline=-1) -> int
5282  AddHole(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aHole) -> int
5283  """
5284  return _pcbnew.SHAPE_POLY_SET_AddHole(self, aHole, aOutline)
5285 
5286 
5287  def Append(self, *args):
5288  """
5289  Append(SHAPE_POLY_SET self, int x, int y, int aOutline=-1, int aHole=-1, bool aAllowDuplication=False) -> int
5290  Append(SHAPE_POLY_SET self, int x, int y, int aOutline=-1, int aHole=-1) -> int
5291  Append(SHAPE_POLY_SET self, int x, int y, int aOutline=-1) -> int
5292  Append(SHAPE_POLY_SET self, int x, int y) -> int
5293  Append(SHAPE_POLY_SET self, SHAPE_POLY_SET aSet)
5294  Append(SHAPE_POLY_SET self, VECTOR2I aP, int aOutline=-1, int aHole=-1)
5295  Append(SHAPE_POLY_SET self, VECTOR2I aP, int aOutline=-1)
5296  Append(SHAPE_POLY_SET self, VECTOR2I aP)
5297  """
5298  return _pcbnew.SHAPE_POLY_SET_Append(self, *args)
5299 
5300 
5301  def InsertVertex(self, aGlobalIndex, aNewVertex):
5302  """InsertVertex(SHAPE_POLY_SET self, int aGlobalIndex, VECTOR2I aNewVertex)"""
5303  return _pcbnew.SHAPE_POLY_SET_InsertVertex(self, aGlobalIndex, aNewVertex)
5304 
5305 
5306  def Vertex(self, *args):
5307  """
5308  Vertex(SHAPE_POLY_SET self, int aIndex, int aOutline, int aHole) -> VECTOR2I
5309  Vertex(SHAPE_POLY_SET self, int aGlobalIndex) -> VECTOR2I
5310  Vertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aIndex) -> VECTOR2I
5311  """
5312  return _pcbnew.SHAPE_POLY_SET_Vertex(self, *args)
5313 
5314 
5315  def CVertex(self, *args):
5316  """
5317  CVertex(SHAPE_POLY_SET self, int aIndex, int aOutline, int aHole) -> VECTOR2I
5318  CVertex(SHAPE_POLY_SET self, int aGlobalIndex) -> VECTOR2I
5319  CVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aIndex) -> VECTOR2I
5320  """
5321  return _pcbnew.SHAPE_POLY_SET_CVertex(self, *args)
5322 
5323 
5324  def GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext):
5325  """GetNeighbourIndexes(SHAPE_POLY_SET self, int aGlobalIndex, int * aPrevious, int * aNext) -> bool"""
5326  return _pcbnew.SHAPE_POLY_SET_GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext)
5327 
5328 
5329  def IsPolygonSelfIntersecting(self, aPolygonIndex):
5330  """IsPolygonSelfIntersecting(SHAPE_POLY_SET self, int aPolygonIndex) -> bool"""
5331  return _pcbnew.SHAPE_POLY_SET_IsPolygonSelfIntersecting(self, aPolygonIndex)
5332 
5333 
5335  """IsSelfIntersecting(SHAPE_POLY_SET self) -> bool"""
5336  return _pcbnew.SHAPE_POLY_SET_IsSelfIntersecting(self)
5337 
5338 
5340  """TriangulatedPolyCount(SHAPE_POLY_SET self) -> unsigned int"""
5341  return _pcbnew.SHAPE_POLY_SET_TriangulatedPolyCount(self)
5342 
5343 
5344  def OutlineCount(self):
5345  """OutlineCount(SHAPE_POLY_SET self) -> int"""
5346  return _pcbnew.SHAPE_POLY_SET_OutlineCount(self)
5347 
5348 
5349  def VertexCount(self, aOutline=-1, aHole=-1):
5350  """
5351  VertexCount(SHAPE_POLY_SET self, int aOutline=-1, int aHole=-1) -> int
5352  VertexCount(SHAPE_POLY_SET self, int aOutline=-1) -> int
5353  VertexCount(SHAPE_POLY_SET self) -> int
5354  """
5355  return _pcbnew.SHAPE_POLY_SET_VertexCount(self, aOutline, aHole)
5356 
5357 
5358  def HoleCount(self, aOutline):
5359  """HoleCount(SHAPE_POLY_SET self, int aOutline) -> int"""
5360  return _pcbnew.SHAPE_POLY_SET_HoleCount(self, aOutline)
5361 
5362 
5363  def Outline(self, aIndex):
5364  """Outline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN"""
5365  return _pcbnew.SHAPE_POLY_SET_Outline(self, aIndex)
5366 
5367 
5368  def Subset(self, aFirstPolygon, aLastPolygon):
5369  """Subset(SHAPE_POLY_SET self, int aFirstPolygon, int aLastPolygon) -> SHAPE_POLY_SET"""
5370  return _pcbnew.SHAPE_POLY_SET_Subset(self, aFirstPolygon, aLastPolygon)
5371 
5372 
5373  def UnitSet(self, aPolygonIndex):
5374  """UnitSet(SHAPE_POLY_SET self, int aPolygonIndex) -> SHAPE_POLY_SET"""
5375  return _pcbnew.SHAPE_POLY_SET_UnitSet(self, aPolygonIndex)
5376 
5377 
5378  def Hole(self, aOutline, aHole):
5379  """Hole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN"""
5380  return _pcbnew.SHAPE_POLY_SET_Hole(self, aOutline, aHole)
5381 
5382 
5383  def Polygon(self, *args):
5384  """
5385  Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON
5386  Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &
5387  """
5388  return _pcbnew.SHAPE_POLY_SET_Polygon(self, *args)
5389 
5390 
5391  def TriangulatedPolygon(self, aIndex):
5392  """TriangulatedPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::TRIANGULATED_POLYGON const *"""
5393  return _pcbnew.SHAPE_POLY_SET_TriangulatedPolygon(self, aIndex)
5394 
5395 
5396  def COutline(self, aIndex):
5397  """COutline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN"""
5398  return _pcbnew.SHAPE_POLY_SET_COutline(self, aIndex)
5399 
5400 
5401  def CHole(self, aOutline, aHole):
5402  """CHole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN"""
5403  return _pcbnew.SHAPE_POLY_SET_CHole(self, aOutline, aHole)
5404 
5405 
5406  def CPolygon(self, aIndex):
5407  """CPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &"""
5408  return _pcbnew.SHAPE_POLY_SET_CPolygon(self, aIndex)
5409 
5410 
5411  def Iterate(self, *args):
5412  """
5413  Iterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::ITERATOR
5414  Iterate(SHAPE_POLY_SET self, int aFirst, int aLast) -> SHAPE_POLY_SET::ITERATOR
5415  Iterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
5416  Iterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR
5417  """
5418  return _pcbnew.SHAPE_POLY_SET_Iterate(self, *args)
5419 
5420 
5421  def IterateWithHoles(self, *args):
5422  """
5423  IterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
5424  IterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR
5425  """
5426  return _pcbnew.SHAPE_POLY_SET_IterateWithHoles(self, *args)
5427 
5428 
5429  def CIterate(self, *args):
5430  """
5431  CIterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::CONST_ITERATOR
5432  CIterate(SHAPE_POLY_SET self, int aFirst, int aLast) -> SHAPE_POLY_SET::CONST_ITERATOR
5433  CIterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
5434  CIterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR
5435  """
5436  return _pcbnew.SHAPE_POLY_SET_CIterate(self, *args)
5437 
5438 
5439  def CIterateWithHoles(self, *args):
5440  """
5441  CIterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
5442  CIterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR
5443  """
5444  return _pcbnew.SHAPE_POLY_SET_CIterateWithHoles(self, *args)
5445 
5446 
5447  def IterateFromVertexWithHoles(self, aGlobalIdx):
5448  """IterateFromVertexWithHoles(SHAPE_POLY_SET self, int aGlobalIdx) -> SHAPE_POLY_SET::ITERATOR"""
5449  return _pcbnew.SHAPE_POLY_SET_IterateFromVertexWithHoles(self, aGlobalIdx)
5450 
5451 
5452  def IterateSegments(self, *args):
5453  """
5454  IterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
5455  IterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
5456  IterateSegments(SHAPE_POLY_SET self, int aPolygonIdx) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
5457  IterateSegments(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
5458  """
5459  return _pcbnew.SHAPE_POLY_SET_IterateSegments(self, *args)
5460 
5461 
5462  def IterateSegmentsWithHoles(self, *args):
5463  """
5464  IterateSegmentsWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
5465  IterateSegmentsWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
5466  """
5467  return _pcbnew.SHAPE_POLY_SET_IterateSegmentsWithHoles(self, *args)
5468 
5469  PM_FAST = _pcbnew.SHAPE_POLY_SET_PM_FAST
5470  PM_STRICTLY_SIMPLE = _pcbnew.SHAPE_POLY_SET_PM_STRICTLY_SIMPLE
5471 
5472  def BooleanAdd(self, *args):
5473  """
5474  BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
5475  BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
5476  """
5477  return _pcbnew.SHAPE_POLY_SET_BooleanAdd(self, *args)
5478 
5479 
5480  def BooleanSubtract(self, *args):
5481  """
5482  BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
5483  BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
5484  """
5485  return _pcbnew.SHAPE_POLY_SET_BooleanSubtract(self, *args)
5486 
5487 
5488  def BooleanIntersection(self, *args):
5489  """
5490  BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
5491  BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
5492  """
5493  return _pcbnew.SHAPE_POLY_SET_BooleanIntersection(self, *args)
5494 
5495 
5496  def Inflate(self, aFactor, aCircleSegmentsCount):
5497  """Inflate(SHAPE_POLY_SET self, int aFactor, int aCircleSegmentsCount)"""
5498  return _pcbnew.SHAPE_POLY_SET_Inflate(self, aFactor, aCircleSegmentsCount)
5499 
5500 
5501  def Fracture(self, aFastMode):
5502  """Fracture(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
5503  return _pcbnew.SHAPE_POLY_SET_Fracture(self, aFastMode)
5504 
5505 
5506  def Unfracture(self, aFastMode):
5507  """Unfracture(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
5508  return _pcbnew.SHAPE_POLY_SET_Unfracture(self, aFastMode)
5509 
5510 
5511  def HasHoles(self):
5512  """HasHoles(SHAPE_POLY_SET self) -> bool"""
5513  return _pcbnew.SHAPE_POLY_SET_HasHoles(self)
5514 
5515 
5516  def HasTouchingHoles(self):
5517  """HasTouchingHoles(SHAPE_POLY_SET self) -> bool"""
5518  return _pcbnew.SHAPE_POLY_SET_HasTouchingHoles(self)
5519 
5520 
5521  def Simplify(self, aFastMode):
5522  """Simplify(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
5523  return _pcbnew.SHAPE_POLY_SET_Simplify(self, aFastMode)
5524 
5525 
5527  """NormalizeAreaOutlines(SHAPE_POLY_SET self) -> int"""
5528  return _pcbnew.SHAPE_POLY_SET_NormalizeAreaOutlines(self)
5529 
5530 
5531  def Format(self):
5532  """Format(SHAPE_POLY_SET self) -> string"""
5533  return _pcbnew.SHAPE_POLY_SET_Format(self)
5534 
5535 
5536  def Parse(self, aStream):
5537  """Parse(SHAPE_POLY_SET self, std::stringstream & aStream) -> bool"""
5538  return _pcbnew.SHAPE_POLY_SET_Parse(self, aStream)
5539 
5540 
5541  def Move(self, aVector):
5542  """Move(SHAPE_POLY_SET self, VECTOR2I aVector)"""
5543  return _pcbnew.SHAPE_POLY_SET_Move(self, aVector)
5544 
5545 
5546  def Rotate(self, aAngle, aCenter):
5547  """Rotate(SHAPE_POLY_SET self, double aAngle, VECTOR2I aCenter)"""
5548  return _pcbnew.SHAPE_POLY_SET_Rotate(self, aAngle, aCenter)
5549 
5550 
5551  def IsSolid(self):
5552  """IsSolid(SHAPE_POLY_SET self) -> bool"""
5553  return _pcbnew.SHAPE_POLY_SET_IsSolid(self)
5554 
5555 
5556  def BBox(self, aClearance=0):
5557  """
5558  BBox(SHAPE_POLY_SET self, int aClearance=0) -> BOX2I const
5559  BBox(SHAPE_POLY_SET self) -> BOX2I const
5560  """
5561  return _pcbnew.SHAPE_POLY_SET_BBox(self, aClearance)
5562 
5563 
5564  def PointOnEdge(self, aP):
5565  """PointOnEdge(SHAPE_POLY_SET self, VECTOR2I aP) -> bool"""
5566  return _pcbnew.SHAPE_POLY_SET_PointOnEdge(self, aP)
5567 
5568 
5569  def Collide(self, *args):
5570  """
5571  Collide(SHAPE_POLY_SET self, VECTOR2I aP, int aClearance=0) -> bool
5572  Collide(SHAPE_POLY_SET self, VECTOR2I aP) -> bool
5573  Collide(SHAPE_POLY_SET self, SEG const & aSeg, int aClearance=0) -> bool
5574  Collide(SHAPE_POLY_SET self, SEG const & aSeg) -> bool
5575  """
5576  return _pcbnew.SHAPE_POLY_SET_Collide(self, *args)
5577 
5578 
5579  def CollideVertex(self, aPoint, aClosestVertex, aClearance=0):
5580  """
5581  CollideVertex(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX & aClosestVertex, int aClearance=0) -> bool
5582  CollideVertex(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX & aClosestVertex) -> bool
5583  """
5584  return _pcbnew.SHAPE_POLY_SET_CollideVertex(self, aPoint, aClosestVertex, aClearance)
5585 
5586 
5587  def CollideEdge(self, aPoint, aClosestVertex, aClearance=0):
5588  """
5589  CollideEdge(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX & aClosestVertex, int aClearance=0) -> bool
5590  CollideEdge(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX & aClosestVertex) -> bool
5591  """
5592  return _pcbnew.SHAPE_POLY_SET_CollideEdge(self, aPoint, aClosestVertex, aClearance)
5593 
5594 
5595  def Contains(self, aP, aSubpolyIndex=-1, aIgnoreHoles=False):
5596  """
5597  Contains(SHAPE_POLY_SET self, VECTOR2I aP, int aSubpolyIndex=-1, bool aIgnoreHoles=False) -> bool
5598  Contains(SHAPE_POLY_SET self, VECTOR2I aP, int aSubpolyIndex=-1) -> bool
5599  Contains(SHAPE_POLY_SET self, VECTOR2I aP) -> bool
5600  """
5601  return _pcbnew.SHAPE_POLY_SET_Contains(self, aP, aSubpolyIndex, aIgnoreHoles)
5602 
5603 
5604  def IsEmpty(self):
5605  """IsEmpty(SHAPE_POLY_SET self) -> bool"""
5606  return _pcbnew.SHAPE_POLY_SET_IsEmpty(self)
5607 
5608 
5609  def RemoveVertex(self, *args):
5610  """
5611  RemoveVertex(SHAPE_POLY_SET self, int aGlobalIndex)
5612  RemoveVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices)
5613  """
5614  return _pcbnew.SHAPE_POLY_SET_RemoveVertex(self, *args)
5615 
5616 
5618  """RemoveAllContours(SHAPE_POLY_SET self)"""
5619  return _pcbnew.SHAPE_POLY_SET_RemoveAllContours(self)
5620 
5621 
5622  def RemoveContour(self, aContourIdx, aPolygonIdx=-1):
5623  """
5624  RemoveContour(SHAPE_POLY_SET self, int aContourIdx, int aPolygonIdx=-1)
5625  RemoveContour(SHAPE_POLY_SET self, int aContourIdx)
5626  """
5627  return _pcbnew.SHAPE_POLY_SET_RemoveContour(self, aContourIdx, aPolygonIdx)
5628 
5629 
5631  """RemoveNullSegments(SHAPE_POLY_SET self) -> int"""
5632  return _pcbnew.SHAPE_POLY_SET_RemoveNullSegments(self)
5633 
5634 
5635  def TotalVertices(self):
5636  """TotalVertices(SHAPE_POLY_SET self) -> int"""
5637  return _pcbnew.SHAPE_POLY_SET_TotalVertices(self)
5638 
5639 
5640  def DeletePolygon(self, aIdx):
5641  """DeletePolygon(SHAPE_POLY_SET self, int aIdx)"""
5642  return _pcbnew.SHAPE_POLY_SET_DeletePolygon(self, aIdx)
5643 
5644 
5645  def ChamferPolygon(self, aDistance, aIndex=0):
5646  """
5647  ChamferPolygon(SHAPE_POLY_SET self, unsigned int aDistance, int aIndex=0) -> SHAPE_POLY_SET::POLYGON
5648  ChamferPolygon(SHAPE_POLY_SET self, unsigned int aDistance) -> SHAPE_POLY_SET::POLYGON
5649  """
5650  return _pcbnew.SHAPE_POLY_SET_ChamferPolygon(self, aDistance, aIndex)
5651 
5652 
5653  def FilletPolygon(self, aRadius, aErrorMax, aIndex=0):
5654  """
5655  FilletPolygon(SHAPE_POLY_SET self, unsigned int aRadius, int aErrorMax, int aIndex=0) -> SHAPE_POLY_SET::POLYGON
5656  FilletPolygon(SHAPE_POLY_SET self, unsigned int aRadius, int aErrorMax) -> SHAPE_POLY_SET::POLYGON
5657  """
5658  return _pcbnew.SHAPE_POLY_SET_FilletPolygon(self, aRadius, aErrorMax, aIndex)
5659 
5660 
5661  def Chamfer(self, aDistance):
5662  """Chamfer(SHAPE_POLY_SET self, int aDistance) -> SHAPE_POLY_SET"""
5663  return _pcbnew.SHAPE_POLY_SET_Chamfer(self, aDistance)
5664 
5665 
5666  def Fillet(self, aRadius, aErrorMax):
5667  """Fillet(SHAPE_POLY_SET self, int aRadius, int aErrorMax) -> SHAPE_POLY_SET"""
5668  return _pcbnew.SHAPE_POLY_SET_Fillet(self, aRadius, aErrorMax)
5669 
5670 
5671  def DistanceToPolygon(self, *args):
5672  """
5673  DistanceToPolygon(SHAPE_POLY_SET self, VECTOR2I aPoint, int aIndex) -> int
5674  DistanceToPolygon(SHAPE_POLY_SET self, SEG aSegment, int aIndex, int aSegmentWidth=0) -> int
5675  DistanceToPolygon(SHAPE_POLY_SET self, SEG aSegment, int aIndex) -> int
5676  """
5677  return _pcbnew.SHAPE_POLY_SET_DistanceToPolygon(self, *args)
5678 
5679 
5680  def Distance(self, *args):
5681  """
5682  Distance(SHAPE_POLY_SET self, VECTOR2I aPoint) -> int
5683  Distance(SHAPE_POLY_SET self, SEG const & aSegment, int aSegmentWidth=0) -> int
5684  Distance(SHAPE_POLY_SET self, SEG const & aSegment) -> int
5685  """
5686  return _pcbnew.SHAPE_POLY_SET_Distance(self, *args)
5687 
5688 
5689  def IsVertexInHole(self, aGlobalIdx):
5690  """IsVertexInHole(SHAPE_POLY_SET self, int aGlobalIdx) -> bool"""
5691  return _pcbnew.SHAPE_POLY_SET_IsVertexInHole(self, aGlobalIdx)
5692 
5693 
5695  """CacheTriangulation(SHAPE_POLY_SET self)"""
5696  return _pcbnew.SHAPE_POLY_SET_CacheTriangulation(self)
5697 
5698 
5700  """IsTriangulationUpToDate(SHAPE_POLY_SET self) -> bool"""
5701  return _pcbnew.SHAPE_POLY_SET_IsTriangulationUpToDate(self)
5702 
5703 
5704  def GetHash(self):
5705  """GetHash(SHAPE_POLY_SET self) -> MD5_HASH"""
5706  return _pcbnew.SHAPE_POLY_SET_GetHash(self)
5707 
5708 SHAPE_POLY_SET_swigregister = _pcbnew.SHAPE_POLY_SET_swigregister
5709 SHAPE_POLY_SET_swigregister(SHAPE_POLY_SET)
5710 
5711 
5712 def IsUTF8(aString):
5713  """IsUTF8(char const * aString) -> bool"""
5714  return _pcbnew.IsUTF8(aString)
5715 class UTF8(_object):
5716  """Proxy of C++ UTF8 class."""
5717 
5718  __swig_setmethods__ = {}
5719  __setattr__ = lambda self, name, value: _swig_setattr(self, UTF8, name, value)
5720  __swig_getmethods__ = {}
5721  __getattr__ = lambda self, name: _swig_getattr(self, UTF8, name)
5722  __repr__ = _swig_repr
5723 
5724  def __init__(self, *args):
5725  """
5726  __init__(UTF8 self, wxString o) -> UTF8
5727  __init__(UTF8 self, char const * txt) -> UTF8
5728  __init__(UTF8 self, wchar_t const * txt) -> UTF8
5729  __init__(UTF8 self, string o) -> UTF8
5730  __init__(UTF8 self) -> UTF8
5731  """
5732  this = _pcbnew.new_UTF8(*args)
5733  try:
5734  self.this.append(this)
5735  except Exception:
5736  self.this = this
5737  __swig_destroy__ = _pcbnew.delete_UTF8
5738  __del__ = lambda self: None
5739 
5740  def c_str(self):
5741  """c_str(UTF8 self) -> char const *"""
5742  return _pcbnew.UTF8_c_str(self)
5743 
5744 
5745  def empty(self):
5746  """empty(UTF8 self) -> bool"""
5747  return _pcbnew.UTF8_empty(self)
5748 
5749 
5750  def find(self, *args):
5751  """
5752  find(UTF8 self, char c) -> std::string::size_type
5753  find(UTF8 self, char c, size_t & s) -> std::string::size_type
5754  """
5755  return _pcbnew.UTF8_find(self, *args)
5756 
5757 
5758  def clear(self):
5759  """clear(UTF8 self)"""
5760  return _pcbnew.UTF8_clear(self)
5761 
5762 
5763  def length(self):
5764  """length(UTF8 self) -> std::string::size_type"""
5765  return _pcbnew.UTF8_length(self)
5766 
5767 
5768  def size(self):
5769  """size(UTF8 self) -> std::string::size_type"""
5770  return _pcbnew.UTF8_size(self)
5771 
5772 
5773  def compare(self, s):
5774  """compare(UTF8 self, string s) -> int"""
5775  return _pcbnew.UTF8_compare(self, s)
5776 
5777 
5778  def __eq__(self, *args):
5779  """
5780  __eq__(UTF8 self, UTF8 rhs) -> bool
5781  __eq__(UTF8 self, string rhs) -> bool
5782  __eq__(UTF8 self, char const * s) -> bool
5783  """
5784  return _pcbnew.UTF8___eq__(self, *args)
5785 
5786 
5787  def find_first_of(self, str, pos=0):
5788  """
5789  find_first_of(UTF8 self, string str, std::string::size_type pos=0) -> std::string::size_type
5790  find_first_of(UTF8 self, string str) -> std::string::size_type
5791  """
5792  return _pcbnew.UTF8_find_first_of(self, str, pos)
5793 
5794 
5795  def __iadd__(self, *args):
5796  """
5797  __iadd__(UTF8 self, UTF8 str) -> UTF8
5798  __iadd__(UTF8 self, char ch) -> UTF8
5799  __iadd__(UTF8 self, char const * s) -> UTF8
5800  __iadd__(UTF8 self, unsigned int w_ch) -> UTF8
5801  """
5802  return _pcbnew.UTF8___iadd__(self, *args)
5803 
5804  npos = _pcbnew.UTF8_npos
5805 
5806  def substr(self, *args):
5807  """
5808  substr(UTF8 self, size_t pos=0, size_t len) -> string
5809  substr(UTF8 self, size_t pos=0) -> string
5810  substr(UTF8 self) -> string
5811  """
5812  return _pcbnew.UTF8_substr(self, *args)
5813 
5814 
5815  def wx_str(self):
5816  """wx_str(UTF8 self) -> wxString"""
5817  return _pcbnew.UTF8_wx_str(self)
5818 
5819 
5820  def utf8_to_wxstring(self):
5821  """utf8_to_wxstring(UTF8 self) -> wxString"""
5822  return _pcbnew.UTF8_utf8_to_wxstring(self)
5823 
5824 
5825  def begin(self):
5826  """begin(UTF8 self) -> std::string::const_iterator"""
5827  return _pcbnew.UTF8_begin(self)
5828 
5829 
5830  def end(self):
5831  """end(UTF8 self) -> std::string::const_iterator"""
5832  return _pcbnew.UTF8_end(self)
5833 
5834 
5835  def Cast_to_CChar(self):
5836  """Cast_to_CChar(UTF8 self) -> char const *"""
5837  return _pcbnew.UTF8_Cast_to_CChar(self)
5838 
5839 
5840 
5841  # Get the char buffer of the UTF8 string
5842  def GetChars(self):
5843  return self.Cast_to_CChar()
5844 
5845  # Convert the UTF8 string to a python string
5846  # Same as GetChars(), but more easy to use in print command
5847  def __str__(self):
5848  return self.GetChars()
5849 
5850 
5851 UTF8_swigregister = _pcbnew.UTF8_swigregister
5852 UTF8_swigregister(UTF8)
5853 
5854 
5855 def Mils2iu(mils):
5856  """Mils2iu(int mils) -> int"""
5857  return _pcbnew.Mils2iu(mils)
5858 
5860  """Millimeter2iu(double mm) -> int"""
5861  return _pcbnew.Millimeter2iu(mm)
5862 
5864  """Iu2Millimeter(int iu) -> double"""
5865  return _pcbnew.Iu2Millimeter(iu)
5866 
5867 def Iu2Mils(iu):
5868  """Iu2Mils(int iu) -> double"""
5869  return _pcbnew.Iu2Mils(iu)
5870 class