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