KiCad Pcbnew Python Scripting
Loading...
Searching...
No Matches
pcbnew.py
Go to the documentation of this file.
1# This file was automatically generated by SWIG (http://www.swig.org).
2# Version 4.0.2
3#
4# Do not make changes to this file unless you know what you are doing--modify
5# the SWIG interface file instead.
6
7from sys import version_info as _swig_python_version_info
8if _swig_python_version_info < (2, 7, 0):
9 raise RuntimeError("Python 2.7 or later required")
10
11# Import the low-level C/C++ module
12if __package__ or "." in __name__:
13 from . import _pcbnew
14else:
15 import _pcbnew
16
17try:
18 import builtins as __builtin__
19except ImportError:
20 import __builtin__
21
22def _swig_repr(self):
23 try:
24 strthis = "proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
26 strthis = ""
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
28
29
30def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
32 if name == "thisown":
33 self.this.own(value)
34 elif name == "this":
35 set(self, name, value)
36 elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
38 else:
39 raise AttributeError("You cannot add instance attributes to %s" % self)
40 return set_instance_attr
41
42
43def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
46 set(cls, name, value)
47 else:
48 raise AttributeError("You cannot add class attributes to %s" % cls)
49 return set_class_attr
50
51
52def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
54 def wrapper(cls):
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
56 return wrapper
57
58
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
62
63
64class SwigPyIterator(object):
65 r"""Proxy of C++ swig::SwigPyIterator class."""
66
67 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
68
69 def __init__(self, *args, **kwargs):
70 raise AttributeError("No constructor defined - class is abstract")
71 __repr__ = _swig_repr
72 __swig_destroy__ = _pcbnew.delete_SwigPyIterator
73
74 def value(self):
75 r"""value(SwigPyIterator self) -> PyObject *"""
76 return _pcbnew.SwigPyIterator_value(self)
77
78 def incr(self, n=1):
79 r"""incr(SwigPyIterator self, size_t n=1) -> SwigPyIterator"""
80 return _pcbnew.SwigPyIterator_incr(self, n)
81
82 def decr(self, n=1):
83 r"""decr(SwigPyIterator self, size_t n=1) -> SwigPyIterator"""
84 return _pcbnew.SwigPyIterator_decr(self, n)
85
86 def distance(self, x):
87 r"""distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"""
88 return _pcbnew.SwigPyIterator_distance(self, x)
89
90 def equal(self, x):
91 r"""equal(SwigPyIterator self, SwigPyIterator x) -> bool"""
92 return _pcbnew.SwigPyIterator_equal(self, x)
93
94 def copy(self):
95 r"""copy(SwigPyIterator self) -> SwigPyIterator"""
96 return _pcbnew.SwigPyIterator_copy(self)
97
98 def next(self):
99 r"""next(SwigPyIterator self) -> PyObject *"""
100 return _pcbnew.SwigPyIterator_next(self)
101
102 def __next__(self):
103 r"""__next__(SwigPyIterator self) -> PyObject *"""
104 return _pcbnew.SwigPyIterator___next__(self)
105
106 def previous(self):
107 r"""previous(SwigPyIterator self) -> PyObject *"""
108 return _pcbnew.SwigPyIterator_previous(self)
109
110 def advance(self, n):
111 r"""advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
112 return _pcbnew.SwigPyIterator_advance(self, n)
113
114 def __eq__(self, x):
115 r"""__eq__(SwigPyIterator self, SwigPyIterator x) -> bool"""
116 return _pcbnew.SwigPyIterator___eq__(self, x)
117
118 def __ne__(self, x):
119 r"""__ne__(SwigPyIterator self, SwigPyIterator x) -> bool"""
120 return _pcbnew.SwigPyIterator___ne__(self, x)
121
122 def __iadd__(self, n):
123 r"""__iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
124 return _pcbnew.SwigPyIterator___iadd__(self, n)
125
126 def __isub__(self, n):
127 r"""__isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
128 return _pcbnew.SwigPyIterator___isub__(self, n)
129
130 def __add__(self, n):
131 r"""__add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
132 return _pcbnew.SwigPyIterator___add__(self, n)
133
134 def __sub__(self, *args):
135 r"""
136 __sub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator
137 __sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t
138 """
139 return _pcbnew.SwigPyIterator___sub__(self, *args)
140 def __iter__(self):
141 return self
142
143# Register SwigPyIterator in _pcbnew:
144_pcbnew.SwigPyIterator_swigregister(SwigPyIterator)
145
147 r"""Proxy of C++ std::basic_string< char > class."""
148
149 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
150 __repr__ = _swig_repr
151
152 def length(self):
153 r"""length(string self) -> std::basic_string< char >::size_type"""
154 return _pcbnew.string_length(self)
155
156 def max_size(self):
157 r"""max_size(string self) -> std::basic_string< char >::size_type"""
158 return _pcbnew.string_max_size(self)
159
160 def capacity(self):
161 r"""capacity(string self) -> std::basic_string< char >::size_type"""
162 return _pcbnew.string_capacity(self)
163
164 def reserve(self, __res_arg=0):
165 r"""reserve(string self, std::basic_string< char >::size_type __res_arg=0)"""
166 return _pcbnew.string_reserve(self, __res_arg)
167
168 def copy(self, __s, __n, __pos=0):
169 r"""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"""
170 return _pcbnew.string_copy(self, __s, __n, __pos)
171
172 def c_str(self):
173 r"""c_str(string self) -> char const *"""
174 return _pcbnew.string_c_str(self)
175
176 def find(self, *args):
177 r"""
178 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
179 find(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
180 find(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
181 """
182 return _pcbnew.string_find(self, *args)
183
184 def rfind(self, *args):
185 r"""
186 rfind(string self, string __str, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
187 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
188 rfind(string self, char __c, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
189 """
190 return _pcbnew.string_rfind(self, *args)
191
192 def find_first_of(self, *args):
193 r"""
194 find_first_of(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
195 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
196 find_first_of(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
197 """
198 return _pcbnew.string_find_first_of(self, *args)
199
200 def find_last_of(self, *args):
201 r"""
202 find_last_of(string self, string __str, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
203 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
204 find_last_of(string self, char __c, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
205 """
206 return _pcbnew.string_find_last_of(self, *args)
207
208 def find_first_not_of(self, *args):
209 r"""
210 find_first_not_of(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
211 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
212 find_first_not_of(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
213 """
214 return _pcbnew.string_find_first_not_of(self, *args)
215
216 def find_last_not_of(self, *args):
217 r"""
218 find_last_not_of(string self, string __str, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
219 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
220 find_last_not_of(string self, char __c, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
221 """
222 return _pcbnew.string_find_last_not_of(self, *args)
223
224 def substr(self, *args):
225 r"""substr(string self, std::basic_string< char >::size_type __pos=0, std::basic_string< char >::size_type __n=std::basic_string< char >::npos) -> string"""
226 return _pcbnew.string_substr(self, *args)
227
228 def empty(self):
229 r"""empty(string self) -> bool"""
230 return _pcbnew.string_empty(self)
231
232 def size(self):
233 r"""size(string self) -> std::basic_string< char >::size_type"""
234 return _pcbnew.string_size(self)
235
236 def swap(self, v):
237 r"""swap(string self, string v)"""
238 return _pcbnew.string_swap(self, v)
239
240 def begin(self):
241 r"""begin(string self) -> std::basic_string< char >::iterator"""
242 return _pcbnew.string_begin(self)
243
244 def end(self):
245 r"""end(string self) -> std::basic_string< char >::iterator"""
246 return _pcbnew.string_end(self)
247
248 def rbegin(self):
249 r"""rbegin(string self) -> std::basic_string< char >::reverse_iterator"""
250 return _pcbnew.string_rbegin(self)
251
252 def rend(self):
253 r"""rend(string self) -> std::basic_string< char >::reverse_iterator"""
254 return _pcbnew.string_rend(self)
255
256 def get_allocator(self):
257 r"""get_allocator(string self) -> std::basic_string< char >::allocator_type"""
258 return _pcbnew.string_get_allocator(self)
259
260 def erase(self, *args):
261 r"""
262 erase(string self, std::basic_string< char >::size_type __pos=0, std::basic_string< char >::size_type __n=std::basic_string< char >::npos) -> string
263 erase(string self, std::basic_string< char >::iterator pos) -> std::basic_string< char >::iterator
264 erase(string self, std::basic_string< char >::iterator first, std::basic_string< char >::iterator last) -> std::basic_string< char >::iterator
265 """
266 return _pcbnew.string_erase(self, *args)
267
268 def __init__(self, *args):
269 r"""
270 __init__(string self, char const * __s, std::basic_string< char >::size_type __n) -> string
271 __init__(string self) -> string
272 __init__(string self, string other) -> string
273 __init__(string self, std::basic_string< char >::size_type size, std::basic_string< char >::value_type value) -> string
274 """
275 _pcbnew.string_swiginit(self, _pcbnew.new_string(*args))
276
277 def assign(self, *args):
278 r"""
279 assign(string self, string __str) -> string
280 assign(string self, string __str, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> string
281 assign(string self, char const * __s, std::basic_string< char >::size_type __n) -> string
282 assign(string self, std::basic_string< char >::size_type n, std::basic_string< char >::value_type x)
283 """
284 return _pcbnew.string_assign(self, *args)
285
286 def resize(self, *args):
287 r"""
288 resize(string self, std::basic_string< char >::size_type new_size)
289 resize(string self, std::basic_string< char >::size_type new_size, std::basic_string< char >::value_type x)
290 """
291 return _pcbnew.string_resize(self, *args)
292
293 def iterator(self):
294 r"""iterator(string self) -> SwigPyIterator"""
295 return _pcbnew.string_iterator(self)
296 def __iter__(self):
297 return self.iterator()
298
299 def __nonzero__(self):
300 r"""__nonzero__(string self) -> bool"""
301 return _pcbnew.string___nonzero__(self)
302
303 def __bool__(self):
304 r"""__bool__(string self) -> bool"""
305 return _pcbnew.string___bool__(self)
306
307 def __len__(self):
308 r"""__len__(string self) -> std::basic_string< char >::size_type"""
309 return _pcbnew.string___len__(self)
310
311 def __getslice__(self, i, j):
312 r"""__getslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j) -> string"""
313 return _pcbnew.string___getslice__(self, i, j)
314
315 def __setslice__(self, *args):
316 r"""
317 __setslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j)
318 __setslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j, string v)
319 """
320 return _pcbnew.string___setslice__(self, *args)
321
322 def __delslice__(self, i, j):
323 r"""__delslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j)"""
324 return _pcbnew.string___delslice__(self, i, j)
325
326 def __delitem__(self, *args):
327 r"""
328 __delitem__(string self, std::basic_string< char >::difference_type i)
329 __delitem__(string self, PySliceObject * slice)
330 """
331 return _pcbnew.string___delitem__(self, *args)
332
333 def __getitem__(self, *args):
334 r"""
335 __getitem__(string self, PySliceObject * slice) -> string
336 __getitem__(string self, std::basic_string< char >::difference_type i) -> std::basic_string< char >::value_type
337 """
338 return _pcbnew.string___getitem__(self, *args)
339
340 def __setitem__(self, *args):
341 r"""
342 __setitem__(string self, PySliceObject * slice, string v)
343 __setitem__(string self, PySliceObject * slice)
344 __setitem__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::value_type x)
345 """
346 return _pcbnew.string___setitem__(self, *args)
347
348 def insert(self, *args):
349 r"""
350 insert(string self, std::basic_string< char >::size_type __pos1, string __str) -> string
351 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
352 insert(string self, std::basic_string< char >::size_type __pos, char const * __s, std::basic_string< char >::size_type __n) -> string
353 insert(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n, char __c) -> string
354 insert(string self, std::basic_string< char >::iterator pos, std::basic_string< char >::value_type x) -> std::basic_string< char >::iterator
355 insert(string self, std::basic_string< char >::iterator pos, std::basic_string< char >::size_type n, std::basic_string< char >::value_type x)
356 insert(string self, std::basic_string< char >::iterator __p, std::basic_string< char >::size_type __n, char __c)
357 """
358 return _pcbnew.string_insert(self, *args)
359
360 def replace(self, *args):
361 r"""
362 replace(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n, string __str) -> string
363 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
364 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
365 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
366 replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, string __str) -> string
367 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
368 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
369 replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, char const * __k1, char const * __k2) -> string
370 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
371 """
372 return _pcbnew.string_replace(self, *args)
373
374 def __iadd__(self, v):
375 r"""__iadd__(string self, string v) -> string"""
376 return _pcbnew.string___iadd__(self, v)
377
378 def __add__(self, v):
379 r"""__add__(string self, string v) -> string"""
380 return _pcbnew.string___add__(self, v)
381
382 def __radd__(self, v):
383 r"""__radd__(string self, string v) -> string"""
384 return _pcbnew.string___radd__(self, v)
385
386 def __str__(self):
387 r"""__str__(string self) -> string"""
388 return _pcbnew.string___str__(self)
389
390 def __rlshift__(self, out):
391 r"""__rlshift__(string self, std::basic_ostream< char,std::char_traits< char > > & out) -> std::basic_ostream< char,std::char_traits< char > > &"""
392 return _pcbnew.string___rlshift__(self, out)
393
394 def __eq__(self, v):
395 r"""__eq__(string self, string v) -> bool"""
396 return _pcbnew.string___eq__(self, v)
397
398 def __ne__(self, v):
399 r"""__ne__(string self, string v) -> bool"""
400 return _pcbnew.string___ne__(self, v)
401
402 def __gt__(self, v):
403 r"""__gt__(string self, string v) -> bool"""
404 return _pcbnew.string___gt__(self, v)
405
406 def __lt__(self, v):
407 r"""__lt__(string self, string v) -> bool"""
408 return _pcbnew.string___lt__(self, v)
409
410 def __ge__(self, v):
411 r"""__ge__(string self, string v) -> bool"""
412 return _pcbnew.string___ge__(self, v)
413
414 def __le__(self, v):
415 r"""__le__(string self, string v) -> bool"""
416 return _pcbnew.string___le__(self, v)
417 __swig_destroy__ = _pcbnew.delete_string
418
419# Register string in _pcbnew:
420_pcbnew.string_swigregister(string)
421cvar = _pcbnew.cvar
422string.npos = _pcbnew.cvar.string_npos
423
424SHARED_PTR_DISOWN = _pcbnew.SHARED_PTR_DISOWN
425
427 r"""Proxy of C++ KI_PARAM_ERROR class."""
428
429 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
430 __repr__ = _swig_repr
431
432 def __init__(self, *args):
433 r"""
434 __init__(KI_PARAM_ERROR self, wxString aMessage) -> KI_PARAM_ERROR
435 __init__(KI_PARAM_ERROR self) -> KI_PARAM_ERROR
436 """
437 _pcbnew.KI_PARAM_ERROR_swiginit(self, _pcbnew.new_KI_PARAM_ERROR(*args))
438
439 def What(self):
440 r"""What(KI_PARAM_ERROR self) -> wxString"""
441 return _pcbnew.KI_PARAM_ERROR_What(self)
442 __swig_destroy__ = _pcbnew.delete_KI_PARAM_ERROR
443
444# Register KI_PARAM_ERROR in _pcbnew:
445_pcbnew.KI_PARAM_ERROR_swigregister(KI_PARAM_ERROR)
446
448 r"""Proxy of C++ IO_ERROR class."""
449
450 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
451 __repr__ = _swig_repr
452
453 def __init__(self, *args):
454 r"""
455 __init__(IO_ERROR self, wxString aProblem, char const * aThrowersFile, char const * aThrowersFunction, int aThrowersLineNumber) -> IO_ERROR
456 __init__(IO_ERROR self) -> IO_ERROR
457 """
458 _pcbnew.IO_ERROR_swiginit(self, _pcbnew.new_IO_ERROR(*args))
459
460 def init(self, aProblem, aThrowersFile, aThrowersFunction, aThrowersLineNumber):
461 r"""init(IO_ERROR self, wxString aProblem, char const * aThrowersFile, char const * aThrowersFunction, int aThrowersLineNumber)"""
462 return _pcbnew.IO_ERROR_init(self, aProblem, aThrowersFile, aThrowersFunction, aThrowersLineNumber)
463
464 def Problem(self):
465 r"""Problem(IO_ERROR self) -> wxString"""
466 return _pcbnew.IO_ERROR_Problem(self)
467
468 def Where(self):
469 r"""Where(IO_ERROR self) -> wxString"""
470 return _pcbnew.IO_ERROR_Where(self)
471
472 def What(self):
473 r"""What(IO_ERROR self) -> wxString"""
474 return _pcbnew.IO_ERROR_What(self)
475 __swig_destroy__ = _pcbnew.delete_IO_ERROR
476
477# Register IO_ERROR in _pcbnew:
478_pcbnew.IO_ERROR_swigregister(IO_ERROR)
479
480
482 r"""wxSetDefaultPyEncoding(char const * encoding)"""
483 return _pcbnew.wxSetDefaultPyEncoding(encoding)
484
486 r"""wxGetDefaultPyEncoding() -> char const *"""
487 return _pcbnew.wxGetDefaultPyEncoding()
489 r"""Proxy of C++ wxRect class."""
490
491 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
492 __repr__ = _swig_repr
493
494 def __init__(self, *args):
495 r"""
496 __init__(wxRect self) -> wxRect
497 __init__(wxRect self, int xx, int yy, int ww, int hh) -> wxRect
498 __init__(wxRect self, wxPoint topLeft, wxPoint bottomRight) -> wxRect
499 __init__(wxRect self, wxPoint pt, wxSize size) -> wxRect
500 __init__(wxRect self, wxSize size) -> wxRect
501 """
502 _pcbnew.wxRect_swiginit(self, _pcbnew.new_wxRect(*args))
503
504 def GetX(self):
505 r"""GetX(wxRect self) -> int"""
506 return _pcbnew.wxRect_GetX(self)
507
508 def SetX(self, xx):
509 r"""SetX(wxRect self, int xx)"""
510 return _pcbnew.wxRect_SetX(self, xx)
511
512 def GetY(self):
513 r"""GetY(wxRect self) -> int"""
514 return _pcbnew.wxRect_GetY(self)
515
516 def SetY(self, yy):
517 r"""SetY(wxRect self, int yy)"""
518 return _pcbnew.wxRect_SetY(self, yy)
519
520 def GetWidth(self):
521 r"""GetWidth(wxRect self) -> int"""
522 return _pcbnew.wxRect_GetWidth(self)
523
524 def SetWidth(self, w):
525 r"""SetWidth(wxRect self, int w)"""
526 return _pcbnew.wxRect_SetWidth(self, w)
527
528 def GetHeight(self):
529 r"""GetHeight(wxRect self) -> int"""
530 return _pcbnew.wxRect_GetHeight(self)
531
532 def SetHeight(self, h):
533 r"""SetHeight(wxRect self, int h)"""
534 return _pcbnew.wxRect_SetHeight(self, h)
535
536 def GetPosition(self):
537 r"""GetPosition(wxRect self) -> wxPoint"""
538 return _pcbnew.wxRect_GetPosition(self)
539
540 def SetPosition(self, p):
541 r"""SetPosition(wxRect self, wxPoint p)"""
542 return _pcbnew.wxRect_SetPosition(self, p)
543 x = property(_pcbnew.wxRect_x_get, _pcbnew.wxRect_x_set, doc=r"""x : int""")
544 y = property(_pcbnew.wxRect_y_get, _pcbnew.wxRect_y_set, doc=r"""y : int""")
545 width = property(_pcbnew.wxRect_width_get, _pcbnew.wxRect_width_set, doc=r"""width : int""")
546 height = property(_pcbnew.wxRect_height_get, _pcbnew.wxRect_height_set, doc=r"""height : int""")
547
548 def Get(self):
549 r"""Get(wxRect self) -> PyObject *"""
550 return _pcbnew.wxRect_Get(self)
551
552
553 def __eq__(self,other):
554 return self.x==other.x and self.y==other.y and self.width==other.width and self.height==other.height
555 def __str__(self): return str(self.Get())
556 def __repr__(self): return 'wxRect'+str(self.Get())
557 def __len__(self): return len(self.Get())
558 def __getitem__(self, index): return self.Get()[index]
559 def __setitem__(self, index, val):
560 if index == 0: self.SetX(val)
561 elif index == 1: self.SetY(val)
562 elif index == 2: self.SetWidth(val)
563 elif index == 3: self.SetHeight(val)
564 else: raise IndexError
565 def __nonzero__(self): return self.Get() != (0,0,0,0)
566 __safe_for_unpickling__ = True
567
568 __swig_destroy__ = _pcbnew.delete_wxRect
569
570# Register wxRect in _pcbnew:
571_pcbnew.wxRect_swigregister(wxRect)
572
574 r"""Proxy of C++ wxSize class."""
575
576 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
577 __repr__ = _swig_repr
578 x = property(_pcbnew.wxSize_x_get, _pcbnew.wxSize_x_set, doc=r"""x : int""")
579 y = property(_pcbnew.wxSize_y_get, _pcbnew.wxSize_y_set, doc=r"""y : int""")
580
581 def __init__(self, *args):
582 r"""
583 __init__(wxSize self, int xx, int yy) -> wxSize
584 __init__(wxSize self, double xx, double yy) -> wxSize
585 """
586 _pcbnew.wxSize_swiginit(self, _pcbnew.new_wxSize(*args))
587
588 def Get(self):
589 r"""Get(wxSize self) -> PyObject *"""
590 return _pcbnew.wxSize_Get(self)
591 __swig_destroy__ = _pcbnew.delete_wxSize
592
593 def SetWidth(self, w):
594 r"""SetWidth(wxSize self, int w)"""
595 return _pcbnew.wxSize_SetWidth(self, w)
596
597 def SetHeight(self, h):
598 r"""SetHeight(wxSize self, int h)"""
599 return _pcbnew.wxSize_SetHeight(self, h)
600
601 def GetWidth(self):
602 r"""GetWidth(wxSize self) -> int"""
603 return _pcbnew.wxSize_GetWidth(self)
604
605 def GetHeight(self):
606 r"""GetHeight(wxSize self) -> int"""
607 return _pcbnew.wxSize_GetHeight(self)
608
609 def Scale(self,xscale,yscale):
610 return wxSize(self.x*xscale,self.y*yscale)
611 def __eq__(self,other):
612 return self.GetWidth()==other.GetWidth() and self.GetHeight()==other.GetHeight()
613 def __str__(self): return str(self.Get())
614 def __repr__(self): return 'wxSize'+str(self.Get())
615 def __len__(self): return len(self.Get())
616 def __getitem__(self, index): return self.Get()[index]
617 def __setitem__(self, index, val):
618 if index == 0: self.SetWidth(val)
619 elif index == 1: self.SetHeight(val)
620 else: raise IndexError
621 def __nonzero__(self): return self.Get() != (0,0)
622 __safe_for_unpickling__ = True
623
624
625
626# Register wxSize in _pcbnew:
627_pcbnew.wxSize_swigregister(wxSize)
628
630 r"""Proxy of C++ wxPoint class."""
631
632 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
633 __repr__ = _swig_repr
634 x = property(_pcbnew.wxPoint_x_get, _pcbnew.wxPoint_x_set, doc=r"""x : int""")
635 y = property(_pcbnew.wxPoint_y_get, _pcbnew.wxPoint_y_set, doc=r"""y : int""")
636
637 def __init__(self, *args):
638 r"""
639 __init__(wxPoint self, int xx, int yy) -> wxPoint
640 __init__(wxPoint self, double xx, double yy) -> wxPoint
641 """
642 _pcbnew.wxPoint_swiginit(self, _pcbnew.new_wxPoint(*args))
643 __swig_destroy__ = _pcbnew.delete_wxPoint
644
645 def __add__(self, pt):
646 r"""__add__(wxPoint self, wxPoint pt) -> wxPoint"""
647 return _pcbnew.wxPoint___add__(self, pt)
648
649 def __sub__(self, pt):
650 r"""__sub__(wxPoint self, wxPoint pt) -> wxPoint"""
651 return _pcbnew.wxPoint___sub__(self, pt)
652
653 def Set(self, x, y):
654 r"""Set(wxPoint self, long x, long y)"""
655 return _pcbnew.wxPoint_Set(self, x, y)
656
657 def Get(self):
658 r"""Get(wxPoint self) -> PyObject *"""
659 return _pcbnew.wxPoint_Get(self)
660
661 def __eq__(self,other): return (self.x==other.x and self.y==other.y)
662 def __ne__(self,other): return not (self==other)
663 def __str__(self): return str(self.Get())
664 def __repr__(self): return 'wxPoint'+str(self.Get())
665 def __len__(self): return len(self.Get())
666 def __getitem__(self, index): return self.Get()[index]
667 def __setitem__(self, index, val):
668 if index == 0:
669 self.x = val
670 elif index == 1:
671 self.y = val
672 else:
673 raise IndexError
674 def __nonzero__(self): return self.Get() != (0,0)
675
676
677
678# Register wxPoint in _pcbnew:
679_pcbnew.wxPoint_swigregister(wxPoint)
680
682 r"""Proxy of C++ wxString class."""
683
684 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
685 __repr__ = _swig_repr
686 __swig_destroy__ = _pcbnew.delete_wxString
687
688 def __str__(self):
689 r"""__str__(wxString self) -> PyObject *"""
690 return _pcbnew.wxString___str__(self)
691
692 def __repr__(self): return 'wxString(\'' + self.__str__() + '\')'
693
694
695 def __init__(self):
696 r"""__init__(wxString self) -> wxString"""
697 _pcbnew.wxString_swiginit(self, _pcbnew.new_wxString())
698
699# Register wxString in _pcbnew:
700_pcbnew.wxString_swigregister(wxString)
701
703 r"""Proxy of C++ std::vector< wxPoint > class."""
704
705 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
706 __repr__ = _swig_repr
707
708 def iterator(self):
709 r"""iterator(wxPoint_Vector self) -> SwigPyIterator"""
710 return _pcbnew.wxPoint_Vector_iterator(self)
711 def __iter__(self):
712 return self.iterator()
713
714 def __nonzero__(self):
715 r"""__nonzero__(wxPoint_Vector self) -> bool"""
716 return _pcbnew.wxPoint_Vector___nonzero__(self)
717
718 def __bool__(self):
719 r"""__bool__(wxPoint_Vector self) -> bool"""
720 return _pcbnew.wxPoint_Vector___bool__(self)
721
722 def __len__(self):
723 r"""__len__(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
724 return _pcbnew.wxPoint_Vector___len__(self)
725
726 def __getslice__(self, i, j):
727 r"""__getslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j) -> wxPoint_Vector"""
728 return _pcbnew.wxPoint_Vector___getslice__(self, i, j)
729
730 def __setslice__(self, *args):
731 r"""
732 __setslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j)
733 __setslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j, wxPoint_Vector v)
734 """
735 return _pcbnew.wxPoint_Vector___setslice__(self, *args)
736
737 def __delslice__(self, i, j):
738 r"""__delslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j)"""
739 return _pcbnew.wxPoint_Vector___delslice__(self, i, j)
740
741 def __delitem__(self, *args):
742 r"""
743 __delitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i)
744 __delitem__(wxPoint_Vector self, PySliceObject * slice)
745 """
746 return _pcbnew.wxPoint_Vector___delitem__(self, *args)
747
748 def __getitem__(self, *args):
749 r"""
750 __getitem__(wxPoint_Vector self, PySliceObject * slice) -> wxPoint_Vector
751 __getitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i) -> wxPoint
752 """
753 return _pcbnew.wxPoint_Vector___getitem__(self, *args)
754
755 def __setitem__(self, *args):
756 r"""
757 __setitem__(wxPoint_Vector self, PySliceObject * slice, wxPoint_Vector v)
758 __setitem__(wxPoint_Vector self, PySliceObject * slice)
759 __setitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, wxPoint x)
760 """
761 return _pcbnew.wxPoint_Vector___setitem__(self, *args)
762
763 def pop(self):
764 r"""pop(wxPoint_Vector self) -> wxPoint"""
765 return _pcbnew.wxPoint_Vector_pop(self)
766
767 def append(self, x):
768 r"""append(wxPoint_Vector self, wxPoint x)"""
769 return _pcbnew.wxPoint_Vector_append(self, x)
770
771 def empty(self):
772 r"""empty(wxPoint_Vector self) -> bool"""
773 return _pcbnew.wxPoint_Vector_empty(self)
774
775 def size(self):
776 r"""size(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
777 return _pcbnew.wxPoint_Vector_size(self)
778
779 def swap(self, v):
780 r"""swap(wxPoint_Vector self, wxPoint_Vector v)"""
781 return _pcbnew.wxPoint_Vector_swap(self, v)
782
783 def begin(self):
784 r"""begin(wxPoint_Vector self) -> std::vector< wxPoint >::iterator"""
785 return _pcbnew.wxPoint_Vector_begin(self)
786
787 def end(self):
788 r"""end(wxPoint_Vector self) -> std::vector< wxPoint >::iterator"""
789 return _pcbnew.wxPoint_Vector_end(self)
790
791 def rbegin(self):
792 r"""rbegin(wxPoint_Vector self) -> std::vector< wxPoint >::reverse_iterator"""
793 return _pcbnew.wxPoint_Vector_rbegin(self)
794
795 def rend(self):
796 r"""rend(wxPoint_Vector self) -> std::vector< wxPoint >::reverse_iterator"""
797 return _pcbnew.wxPoint_Vector_rend(self)
798
799 def clear(self):
800 r"""clear(wxPoint_Vector self)"""
801 return _pcbnew.wxPoint_Vector_clear(self)
802
803 def get_allocator(self):
804 r"""get_allocator(wxPoint_Vector self) -> std::vector< wxPoint >::allocator_type"""
805 return _pcbnew.wxPoint_Vector_get_allocator(self)
806
807 def pop_back(self):
808 r"""pop_back(wxPoint_Vector self)"""
809 return _pcbnew.wxPoint_Vector_pop_back(self)
810
811 def erase(self, *args):
812 r"""
813 erase(wxPoint_Vector self, std::vector< wxPoint >::iterator pos) -> std::vector< wxPoint >::iterator
814 erase(wxPoint_Vector self, std::vector< wxPoint >::iterator first, std::vector< wxPoint >::iterator last) -> std::vector< wxPoint >::iterator
815 """
816 return _pcbnew.wxPoint_Vector_erase(self, *args)
817
818 def __init__(self, *args):
819 r"""
820 __init__(wxPoint_Vector self) -> wxPoint_Vector
821 __init__(wxPoint_Vector self, wxPoint_Vector other) -> wxPoint_Vector
822 __init__(wxPoint_Vector self, std::vector< wxPoint >::size_type size) -> wxPoint_Vector
823 __init__(wxPoint_Vector self, std::vector< wxPoint >::size_type size, wxPoint value) -> wxPoint_Vector
824 """
825 _pcbnew.wxPoint_Vector_swiginit(self, _pcbnew.new_wxPoint_Vector(*args))
826
827 def push_back(self, x):
828 r"""push_back(wxPoint_Vector self, wxPoint x)"""
829 return _pcbnew.wxPoint_Vector_push_back(self, x)
830
831 def front(self):
832 r"""front(wxPoint_Vector self) -> wxPoint"""
833 return _pcbnew.wxPoint_Vector_front(self)
834
835 def back(self):
836 r"""back(wxPoint_Vector self) -> wxPoint"""
837 return _pcbnew.wxPoint_Vector_back(self)
838
839 def assign(self, n, x):
840 r"""assign(wxPoint_Vector self, std::vector< wxPoint >::size_type n, wxPoint x)"""
841 return _pcbnew.wxPoint_Vector_assign(self, n, x)
842
843 def resize(self, *args):
844 r"""
845 resize(wxPoint_Vector self, std::vector< wxPoint >::size_type new_size)
846 resize(wxPoint_Vector self, std::vector< wxPoint >::size_type new_size, wxPoint x)
847 """
848 return _pcbnew.wxPoint_Vector_resize(self, *args)
849
850 def insert(self, *args):
851 r"""
852 insert(wxPoint_Vector self, std::vector< wxPoint >::iterator pos, wxPoint x) -> std::vector< wxPoint >::iterator
853 insert(wxPoint_Vector self, std::vector< wxPoint >::iterator pos, std::vector< wxPoint >::size_type n, wxPoint x)
854 """
855 return _pcbnew.wxPoint_Vector_insert(self, *args)
856
857 def reserve(self, n):
858 r"""reserve(wxPoint_Vector self, std::vector< wxPoint >::size_type n)"""
859 return _pcbnew.wxPoint_Vector_reserve(self, n)
860
861 def capacity(self):
862 r"""capacity(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
863 return _pcbnew.wxPoint_Vector_capacity(self)
864 __swig_destroy__ = _pcbnew.delete_wxPoint_Vector
865
866# Register wxPoint_Vector in _pcbnew:
867_pcbnew.wxPoint_Vector_swigregister(wxPoint_Vector)
868
870 r"""Proxy of C++ std::vector< enum PCB_LAYER_ID > class."""
871
872 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
873 __repr__ = _swig_repr
874
875 def iterator(self):
876 r"""iterator(base_seqVect self) -> SwigPyIterator"""
877 return _pcbnew.base_seqVect_iterator(self)
878 def __iter__(self):
879 return self.iterator()
880
881 def __nonzero__(self):
882 r"""__nonzero__(base_seqVect self) -> bool"""
883 return _pcbnew.base_seqVect___nonzero__(self)
884
885 def __bool__(self):
886 r"""__bool__(base_seqVect self) -> bool"""
887 return _pcbnew.base_seqVect___bool__(self)
888
889 def __len__(self):
890 r"""__len__(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
891 return _pcbnew.base_seqVect___len__(self)
892
893 def __getslice__(self, i, j):
894 r"""__getslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j) -> base_seqVect"""
895 return _pcbnew.base_seqVect___getslice__(self, i, j)
896
897 def __setslice__(self, *args):
898 r"""
899 __setslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j)
900 __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)
901 """
902 return _pcbnew.base_seqVect___setslice__(self, *args)
903
904 def __delslice__(self, i, j):
905 r"""__delslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j)"""
906 return _pcbnew.base_seqVect___delslice__(self, i, j)
907
908 def __delitem__(self, *args):
909 r"""
910 __delitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i)
911 __delitem__(base_seqVect self, PySliceObject * slice)
912 """
913 return _pcbnew.base_seqVect___delitem__(self, *args)
914
915 def __getitem__(self, *args):
916 r"""
917 __getitem__(base_seqVect self, PySliceObject * slice) -> base_seqVect
918 __getitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i) -> std::vector< enum PCB_LAYER_ID >::value_type const &
919 """
920 return _pcbnew.base_seqVect___getitem__(self, *args)
921
922 def __setitem__(self, *args):
923 r"""
924 __setitem__(base_seqVect self, PySliceObject * slice, base_seqVect v)
925 __setitem__(base_seqVect self, PySliceObject * slice)
926 __setitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::value_type const & x)
927 """
928 return _pcbnew.base_seqVect___setitem__(self, *args)
929
930 def pop(self):
931 r"""pop(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type"""
932 return _pcbnew.base_seqVect_pop(self)
933
934 def append(self, x):
935 r"""append(base_seqVect self, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
936 return _pcbnew.base_seqVect_append(self, x)
937
938 def empty(self):
939 r"""empty(base_seqVect self) -> bool"""
940 return _pcbnew.base_seqVect_empty(self)
941
942 def size(self):
943 r"""size(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
944 return _pcbnew.base_seqVect_size(self)
945
946 def swap(self, v):
947 r"""swap(base_seqVect self, base_seqVect v)"""
948 return _pcbnew.base_seqVect_swap(self, v)
949
950 def begin(self):
951 r"""begin(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::iterator"""
952 return _pcbnew.base_seqVect_begin(self)
953
954 def end(self):
955 r"""end(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::iterator"""
956 return _pcbnew.base_seqVect_end(self)
957
958 def rbegin(self):
959 r"""rbegin(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::reverse_iterator"""
960 return _pcbnew.base_seqVect_rbegin(self)
961
962 def rend(self):
963 r"""rend(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::reverse_iterator"""
964 return _pcbnew.base_seqVect_rend(self)
965
966 def clear(self):
967 r"""clear(base_seqVect self)"""
968 return _pcbnew.base_seqVect_clear(self)
969
970 def get_allocator(self):
971 r"""get_allocator(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::allocator_type"""
972 return _pcbnew.base_seqVect_get_allocator(self)
973
974 def pop_back(self):
975 r"""pop_back(base_seqVect self)"""
976 return _pcbnew.base_seqVect_pop_back(self)
977
978 def erase(self, *args):
979 r"""
980 erase(base_seqVect self, std::vector< enum PCB_LAYER_ID >::iterator pos) -> std::vector< enum PCB_LAYER_ID >::iterator
981 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
982 """
983 return _pcbnew.base_seqVect_erase(self, *args)
984
985 def __init__(self, *args):
986 r"""
987 __init__(base_seqVect self) -> base_seqVect
988 __init__(base_seqVect self, base_seqVect other) -> base_seqVect
989 __init__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type size) -> base_seqVect
990 __init__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type size, std::vector< enum PCB_LAYER_ID >::value_type const & value) -> base_seqVect
991 """
992 _pcbnew.base_seqVect_swiginit(self, _pcbnew.new_base_seqVect(*args))
993
994 def push_back(self, x):
995 r"""push_back(base_seqVect self, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
996 return _pcbnew.base_seqVect_push_back(self, x)
997
998 def front(self):
999 r"""front(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type const &"""
1000 return _pcbnew.base_seqVect_front(self)
1001
1002 def back(self):
1003 r"""back(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type const &"""
1004 return _pcbnew.base_seqVect_back(self)
1005
1006 def assign(self, n, x):
1007 r"""assign(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type n, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
1008 return _pcbnew.base_seqVect_assign(self, n, x)
1009
1010 def resize(self, *args):
1011 r"""
1012 resize(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type new_size)
1013 resize(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type new_size, std::vector< enum PCB_LAYER_ID >::value_type const & x)
1014 """
1015 return _pcbnew.base_seqVect_resize(self, *args)
1016
1017 def insert(self, *args):
1018 r"""
1019 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
1020 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)
1021 """
1022 return _pcbnew.base_seqVect_insert(self, *args)
1023
1024 def reserve(self, n):
1025 r"""reserve(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type n)"""
1026 return _pcbnew.base_seqVect_reserve(self, n)
1027
1028 def capacity(self):
1029 r"""capacity(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
1030 return _pcbnew.base_seqVect_capacity(self)
1031 __swig_destroy__ = _pcbnew.delete_base_seqVect
1032
1033# Register base_seqVect in _pcbnew:
1034_pcbnew.base_seqVect_swigregister(base_seqVect)
1035
1036SKETCH = _pcbnew.SKETCH
1037
1038FILLED = _pcbnew.FILLED
1039
1041 r"""Proxy of C++ KIID class."""
1042
1043 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1044 __repr__ = _swig_repr
1045
1046 def __init__(self, *args):
1047 r"""
1048 __init__(KIID self) -> KIID
1049 __init__(KIID self, int null) -> KIID
1050 __init__(KIID self, string aString) -> KIID
1051 __init__(KIID self, char const * aString) -> KIID
1052 __init__(KIID self, wxString aString) -> KIID
1053 __init__(KIID self, timestamp_t aTimestamp) -> KIID
1054 """
1055 _pcbnew.KIID_swiginit(self, _pcbnew.new_KIID(*args))
1056
1057 def Clone(self, aUUID):
1058 r"""Clone(KIID self, KIID aUUID)"""
1059 return _pcbnew.KIID_Clone(self, aUUID)
1060
1061 def Hash(self):
1062 r"""Hash(KIID self) -> size_t"""
1063 return _pcbnew.KIID_Hash(self)
1064
1066 r"""IsLegacyTimestamp(KIID self) -> bool"""
1067 return _pcbnew.KIID_IsLegacyTimestamp(self)
1068
1070 r"""AsLegacyTimestamp(KIID self) -> timestamp_t"""
1071 return _pcbnew.KIID_AsLegacyTimestamp(self)
1072
1073 def AsString(self):
1074 r"""AsString(KIID self) -> wxString"""
1075 return _pcbnew.KIID_AsString(self)
1076
1078 r"""AsLegacyTimestampString(KIID self) -> wxString"""
1079 return _pcbnew.KIID_AsLegacyTimestampString(self)
1080
1081 @staticmethod
1082 def SniffTest(aCandidate):
1083 r"""SniffTest(wxString aCandidate) -> bool"""
1084 return _pcbnew.KIID_SniffTest(aCandidate)
1085
1086 @staticmethod
1087 def CreateNilUuids(aNil=True):
1088 r"""CreateNilUuids(bool aNil=True)"""
1089 return _pcbnew.KIID_CreateNilUuids(aNil)
1090
1091 @staticmethod
1092 def SeedGenerator(aSeed):
1093 r"""SeedGenerator(unsigned int aSeed)"""
1094 return _pcbnew.KIID_SeedGenerator(aSeed)
1095
1097 r"""ConvertTimestampToUuid(KIID self)"""
1098 return _pcbnew.KIID_ConvertTimestampToUuid(self)
1099
1100 def Increment(self):
1101 r"""Increment(KIID self)"""
1102 return _pcbnew.KIID_Increment(self)
1103
1104 def __eq__(self, rhs):
1105 r"""__eq__(KIID self, KIID rhs) -> bool"""
1106 return _pcbnew.KIID___eq__(self, rhs)
1107
1108 def __ne__(self, rhs):
1109 r"""__ne__(KIID self, KIID rhs) -> bool"""
1110 return _pcbnew.KIID___ne__(self, rhs)
1111
1112 def __lt__(self, rhs):
1113 r"""__lt__(KIID self, KIID rhs) -> bool"""
1114 return _pcbnew.KIID___lt__(self, rhs)
1115
1116 def __gt__(self, rhs):
1117 r"""__gt__(KIID self, KIID rhs) -> bool"""
1118 return _pcbnew.KIID___gt__(self, rhs)
1119 __swig_destroy__ = _pcbnew.delete_KIID
1120
1121# Register KIID in _pcbnew:
1122_pcbnew.KIID_swigregister(KIID)
1123
1124def KIID_SniffTest(aCandidate):
1125 r"""KIID_SniffTest(wxString aCandidate) -> bool"""
1126 return _pcbnew.KIID_SniffTest(aCandidate)
1127
1128def KIID_CreateNilUuids(aNil=True):
1129 r"""KIID_CreateNilUuids(bool aNil=True)"""
1130 return _pcbnew.KIID_CreateNilUuids(aNil)
1131
1133 r"""KIID_SeedGenerator(unsigned int aSeed)"""
1134 return _pcbnew.KIID_SeedGenerator(aSeed)
1135
1136
1138 r"""NilUuid() -> KIID"""
1139 return _pcbnew.NilUuid()
1141 r"""Proxy of C++ std::vector< KIID > class."""
1142
1143 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1144 __repr__ = _swig_repr
1145
1146 def iterator(self):
1147 r"""iterator(KIID_VECT_LIST self) -> SwigPyIterator"""
1148 return _pcbnew.KIID_VECT_LIST_iterator(self)
1149 def __iter__(self):
1150 return self.iterator()
1151
1152 def __nonzero__(self):
1153 r"""__nonzero__(KIID_VECT_LIST self) -> bool"""
1154 return _pcbnew.KIID_VECT_LIST___nonzero__(self)
1155
1156 def __bool__(self):
1157 r"""__bool__(KIID_VECT_LIST self) -> bool"""
1158 return _pcbnew.KIID_VECT_LIST___bool__(self)
1159
1160 def __len__(self):
1161 r"""__len__(KIID_VECT_LIST self) -> std::vector< KIID >::size_type"""
1162 return _pcbnew.KIID_VECT_LIST___len__(self)
1163
1164 def __getslice__(self, i, j):
1165 r"""__getslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j) -> KIID_VECT_LIST"""
1166 return _pcbnew.KIID_VECT_LIST___getslice__(self, i, j)
1167
1168 def __setslice__(self, *args):
1169 r"""
1170 __setslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j)
1171 __setslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j, KIID_VECT_LIST v)
1172 """
1173 return _pcbnew.KIID_VECT_LIST___setslice__(self, *args)
1174
1175 def __delslice__(self, i, j):
1176 r"""__delslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j)"""
1177 return _pcbnew.KIID_VECT_LIST___delslice__(self, i, j)
1178
1179 def __delitem__(self, *args):
1180 r"""
1181 __delitem__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i)
1182 __delitem__(KIID_VECT_LIST self, PySliceObject * slice)
1183 """
1184 return _pcbnew.KIID_VECT_LIST___delitem__(self, *args)
1185
1186 def __getitem__(self, *args):
1187 r"""
1188 __getitem__(KIID_VECT_LIST self, PySliceObject * slice) -> KIID_VECT_LIST
1189 __getitem__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i) -> KIID
1190 """
1191 return _pcbnew.KIID_VECT_LIST___getitem__(self, *args)
1192
1193 def __setitem__(self, *args):
1194 r"""
1195 __setitem__(KIID_VECT_LIST self, PySliceObject * slice, KIID_VECT_LIST v)
1196 __setitem__(KIID_VECT_LIST self, PySliceObject * slice)
1197 __setitem__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, KIID x)
1198 """
1199 return _pcbnew.KIID_VECT_LIST___setitem__(self, *args)
1200
1201 def pop(self):
1202 r"""pop(KIID_VECT_LIST self) -> KIID"""
1203 return _pcbnew.KIID_VECT_LIST_pop(self)
1204
1205 def append(self, x):
1206 r"""append(KIID_VECT_LIST self, KIID x)"""
1207 return _pcbnew.KIID_VECT_LIST_append(self, x)
1208
1209 def empty(self):
1210 r"""empty(KIID_VECT_LIST self) -> bool"""
1211 return _pcbnew.KIID_VECT_LIST_empty(self)
1212
1213 def size(self):
1214 r"""size(KIID_VECT_LIST self) -> std::vector< KIID >::size_type"""
1215 return _pcbnew.KIID_VECT_LIST_size(self)
1216
1217 def swap(self, v):
1218 r"""swap(KIID_VECT_LIST self, KIID_VECT_LIST v)"""
1219 return _pcbnew.KIID_VECT_LIST_swap(self, v)
1220
1221 def begin(self):
1222 r"""begin(KIID_VECT_LIST self) -> std::vector< KIID >::iterator"""
1223 return _pcbnew.KIID_VECT_LIST_begin(self)
1224
1225 def end(self):
1226 r"""end(KIID_VECT_LIST self) -> std::vector< KIID >::iterator"""
1227 return _pcbnew.KIID_VECT_LIST_end(self)
1228
1229 def rbegin(self):
1230 r"""rbegin(KIID_VECT_LIST self) -> std::vector< KIID >::reverse_iterator"""
1231 return _pcbnew.KIID_VECT_LIST_rbegin(self)
1232
1233 def rend(self):
1234 r"""rend(KIID_VECT_LIST self) -> std::vector< KIID >::reverse_iterator"""
1235 return _pcbnew.KIID_VECT_LIST_rend(self)
1236
1237 def clear(self):
1238 r"""clear(KIID_VECT_LIST self)"""
1239 return _pcbnew.KIID_VECT_LIST_clear(self)
1240
1241 def get_allocator(self):
1242 r"""get_allocator(KIID_VECT_LIST self) -> std::vector< KIID >::allocator_type"""
1243 return _pcbnew.KIID_VECT_LIST_get_allocator(self)
1244
1245 def pop_back(self):
1246 r"""pop_back(KIID_VECT_LIST self)"""
1247 return _pcbnew.KIID_VECT_LIST_pop_back(self)
1248
1249 def erase(self, *args):
1250 r"""
1251 erase(KIID_VECT_LIST self, std::vector< KIID >::iterator pos) -> std::vector< KIID >::iterator
1252 erase(KIID_VECT_LIST self, std::vector< KIID >::iterator first, std::vector< KIID >::iterator last) -> std::vector< KIID >::iterator
1253 """
1254 return _pcbnew.KIID_VECT_LIST_erase(self, *args)
1255
1256 def __init__(self, *args):
1257 r"""
1258 __init__(KIID_VECT_LIST self) -> KIID_VECT_LIST
1259 __init__(KIID_VECT_LIST self, KIID_VECT_LIST other) -> KIID_VECT_LIST
1260 __init__(KIID_VECT_LIST self, std::vector< KIID >::size_type size) -> KIID_VECT_LIST
1261 __init__(KIID_VECT_LIST self, std::vector< KIID >::size_type size, KIID value) -> KIID_VECT_LIST
1262 """
1263 _pcbnew.KIID_VECT_LIST_swiginit(self, _pcbnew.new_KIID_VECT_LIST(*args))
1264
1265 def push_back(self, x):
1266 r"""push_back(KIID_VECT_LIST self, KIID x)"""
1267 return _pcbnew.KIID_VECT_LIST_push_back(self, x)
1268
1269 def front(self):
1270 r"""front(KIID_VECT_LIST self) -> KIID"""
1271 return _pcbnew.KIID_VECT_LIST_front(self)
1272
1273 def back(self):
1274 r"""back(KIID_VECT_LIST self) -> KIID"""
1275 return _pcbnew.KIID_VECT_LIST_back(self)
1276
1277 def assign(self, n, x):
1278 r"""assign(KIID_VECT_LIST self, std::vector< KIID >::size_type n, KIID x)"""
1279 return _pcbnew.KIID_VECT_LIST_assign(self, n, x)
1280
1281 def resize(self, *args):
1282 r"""
1283 resize(KIID_VECT_LIST self, std::vector< KIID >::size_type new_size)
1284 resize(KIID_VECT_LIST self, std::vector< KIID >::size_type new_size, KIID x)
1285 """
1286 return _pcbnew.KIID_VECT_LIST_resize(self, *args)
1287
1288 def insert(self, *args):
1289 r"""
1290 insert(KIID_VECT_LIST self, std::vector< KIID >::iterator pos, KIID x) -> std::vector< KIID >::iterator
1291 insert(KIID_VECT_LIST self, std::vector< KIID >::iterator pos, std::vector< KIID >::size_type n, KIID x)
1292 """
1293 return _pcbnew.KIID_VECT_LIST_insert(self, *args)
1294
1295 def reserve(self, n):
1296 r"""reserve(KIID_VECT_LIST self, std::vector< KIID >::size_type n)"""
1297 return _pcbnew.KIID_VECT_LIST_reserve(self, n)
1298
1299 def capacity(self):
1300 r"""capacity(KIID_VECT_LIST self) -> std::vector< KIID >::size_type"""
1301 return _pcbnew.KIID_VECT_LIST_capacity(self)
1302 __swig_destroy__ = _pcbnew.delete_KIID_VECT_LIST
1303
1304# Register KIID_VECT_LIST in _pcbnew:
1305_pcbnew.KIID_VECT_LIST_swigregister(KIID_VECT_LIST)
1306
1308 r"""Proxy of C++ KIID_PATH class."""
1309
1310 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1311 __repr__ = _swig_repr
1312
1313 def __init__(self, *args):
1314 r"""
1315 __init__(KIID_PATH self) -> KIID_PATH
1316 __init__(KIID_PATH self, wxString aString) -> KIID_PATH
1317 """
1318 _pcbnew.KIID_PATH_swiginit(self, _pcbnew.new_KIID_PATH(*args))
1319
1320 def MakeRelativeTo(self, aPath):
1321 r"""MakeRelativeTo(KIID_PATH self, KIID_PATH aPath) -> bool"""
1322 return _pcbnew.KIID_PATH_MakeRelativeTo(self, aPath)
1323
1324 def EndsWith(self, aPath):
1325 r"""EndsWith(KIID_PATH self, KIID_PATH aPath) -> bool"""
1326 return _pcbnew.KIID_PATH_EndsWith(self, aPath)
1327
1328 def AsString(self):
1329 r"""AsString(KIID_PATH self) -> wxString"""
1330 return _pcbnew.KIID_PATH_AsString(self)
1331
1332 def __eq__(self, rhs):
1333 r"""__eq__(KIID_PATH self, KIID_PATH rhs) -> bool"""
1334 return _pcbnew.KIID_PATH___eq__(self, rhs)
1335
1336 def __lt__(self, rhs):
1337 r"""__lt__(KIID_PATH self, KIID_PATH rhs) -> bool"""
1338 return _pcbnew.KIID_PATH___lt__(self, rhs)
1339
1340 def __iadd__(self, aRhs):
1341 r"""__iadd__(KIID_PATH self, KIID_PATH aRhs) -> KIID_PATH"""
1342 return _pcbnew.KIID_PATH___iadd__(self, aRhs)
1343 __swig_destroy__ = _pcbnew.delete_KIID_PATH
1344
1345# Register KIID_PATH in _pcbnew:
1346_pcbnew.KIID_PATH_swigregister(KIID_PATH)
1347
1349 r"""Proxy of C++ KIID_NIL_SET_RESET class."""
1350
1351 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1352 __repr__ = _swig_repr
1353
1354 def __init__(self):
1355 r"""__init__(KIID_NIL_SET_RESET self) -> KIID_NIL_SET_RESET"""
1356 _pcbnew.KIID_NIL_SET_RESET_swiginit(self, _pcbnew.new_KIID_NIL_SET_RESET())
1357 __swig_destroy__ = _pcbnew.delete_KIID_NIL_SET_RESET
1358
1359# Register KIID_NIL_SET_RESET in _pcbnew:
1360_pcbnew.KIID_NIL_SET_RESET_swigregister(KIID_NIL_SET_RESET)
1361
1362NOT_USED = _pcbnew.NOT_USED
1363
1364TYPE_NOT_INIT = _pcbnew.TYPE_NOT_INIT
1365
1366PCB_T = _pcbnew.PCB_T
1367
1368SCREEN_T = _pcbnew.SCREEN_T
1369
1370PCB_FOOTPRINT_T = _pcbnew.PCB_FOOTPRINT_T
1371
1372PCB_PAD_T = _pcbnew.PCB_PAD_T
1373
1374PCB_SHAPE_T = _pcbnew.PCB_SHAPE_T
1375
1376PCB_REFERENCE_IMAGE_T = _pcbnew.PCB_REFERENCE_IMAGE_T
1377
1378PCB_FIELD_T = _pcbnew.PCB_FIELD_T
1379
1380PCB_GENERATOR_T = _pcbnew.PCB_GENERATOR_T
1381
1382PCB_TEXT_T = _pcbnew.PCB_TEXT_T
1383
1384PCB_TEXTBOX_T = _pcbnew.PCB_TEXTBOX_T
1385
1386PCB_TABLE_T = _pcbnew.PCB_TABLE_T
1387
1388PCB_TABLECELL_T = _pcbnew.PCB_TABLECELL_T
1389
1390PCB_TRACE_T = _pcbnew.PCB_TRACE_T
1391
1392PCB_VIA_T = _pcbnew.PCB_VIA_T
1393
1394PCB_ARC_T = _pcbnew.PCB_ARC_T
1395
1396PCB_MARKER_T = _pcbnew.PCB_MARKER_T
1397
1398PCB_DIMENSION_T = _pcbnew.PCB_DIMENSION_T
1399
1400PCB_DIM_ALIGNED_T = _pcbnew.PCB_DIM_ALIGNED_T
1401
1402PCB_DIM_LEADER_T = _pcbnew.PCB_DIM_LEADER_T
1403
1404PCB_DIM_CENTER_T = _pcbnew.PCB_DIM_CENTER_T
1405
1406PCB_DIM_RADIAL_T = _pcbnew.PCB_DIM_RADIAL_T
1407
1408PCB_DIM_ORTHOGONAL_T = _pcbnew.PCB_DIM_ORTHOGONAL_T
1409
1410PCB_TARGET_T = _pcbnew.PCB_TARGET_T
1411
1412PCB_ZONE_T = _pcbnew.PCB_ZONE_T
1413
1414PCB_ITEM_LIST_T = _pcbnew.PCB_ITEM_LIST_T
1415
1416PCB_NETINFO_T = _pcbnew.PCB_NETINFO_T
1417
1418PCB_GROUP_T = _pcbnew.PCB_GROUP_T
1419
1420PCB_FIELD_LOCATE_REFERENCE_T = _pcbnew.PCB_FIELD_LOCATE_REFERENCE_T
1421
1422PCB_FIELD_LOCATE_VALUE_T = _pcbnew.PCB_FIELD_LOCATE_VALUE_T
1423
1424PCB_FIELD_LOCATE_FOOTPRINT_T = _pcbnew.PCB_FIELD_LOCATE_FOOTPRINT_T
1425
1426PCB_FIELD_LOCATE_DATASHEET_T = _pcbnew.PCB_FIELD_LOCATE_DATASHEET_T
1427
1428PCB_LOCATE_STDVIA_T = _pcbnew.PCB_LOCATE_STDVIA_T
1429
1430PCB_LOCATE_UVIA_T = _pcbnew.PCB_LOCATE_UVIA_T
1431
1432PCB_LOCATE_BBVIA_T = _pcbnew.PCB_LOCATE_BBVIA_T
1433
1434PCB_LOCATE_TEXT_T = _pcbnew.PCB_LOCATE_TEXT_T
1435
1436PCB_LOCATE_HOLE_T = _pcbnew.PCB_LOCATE_HOLE_T
1437
1438PCB_LOCATE_PTH_T = _pcbnew.PCB_LOCATE_PTH_T
1439
1440PCB_LOCATE_NPTH_T = _pcbnew.PCB_LOCATE_NPTH_T
1441
1442PCB_LOCATE_BOARD_EDGE_T = _pcbnew.PCB_LOCATE_BOARD_EDGE_T
1443
1444PCB_SHAPE_LOCATE_SEGMENT_T = _pcbnew.PCB_SHAPE_LOCATE_SEGMENT_T
1445
1446PCB_SHAPE_LOCATE_RECT_T = _pcbnew.PCB_SHAPE_LOCATE_RECT_T
1447
1448PCB_SHAPE_LOCATE_CIRCLE_T = _pcbnew.PCB_SHAPE_LOCATE_CIRCLE_T
1449
1450PCB_SHAPE_LOCATE_ARC_T = _pcbnew.PCB_SHAPE_LOCATE_ARC_T
1451
1452PCB_SHAPE_LOCATE_POLY_T = _pcbnew.PCB_SHAPE_LOCATE_POLY_T
1453
1454PCB_SHAPE_LOCATE_BEZIER_T = _pcbnew.PCB_SHAPE_LOCATE_BEZIER_T
1455
1456SCH_MARKER_T = _pcbnew.SCH_MARKER_T
1457
1458SCH_JUNCTION_T = _pcbnew.SCH_JUNCTION_T
1459
1460SCH_NO_CONNECT_T = _pcbnew.SCH_NO_CONNECT_T
1461
1462SCH_BUS_WIRE_ENTRY_T = _pcbnew.SCH_BUS_WIRE_ENTRY_T
1463
1464SCH_BUS_BUS_ENTRY_T = _pcbnew.SCH_BUS_BUS_ENTRY_T
1465
1466SCH_LINE_T = _pcbnew.SCH_LINE_T
1467
1468SCH_SHAPE_T = _pcbnew.SCH_SHAPE_T
1469
1470SCH_BITMAP_T = _pcbnew.SCH_BITMAP_T
1471
1472SCH_TEXTBOX_T = _pcbnew.SCH_TEXTBOX_T
1473
1474SCH_TEXT_T = _pcbnew.SCH_TEXT_T
1475
1476SCH_TABLE_T = _pcbnew.SCH_TABLE_T
1477
1478SCH_TABLECELL_T = _pcbnew.SCH_TABLECELL_T
1479
1480SCH_LABEL_T = _pcbnew.SCH_LABEL_T
1481
1482SCH_GLOBAL_LABEL_T = _pcbnew.SCH_GLOBAL_LABEL_T
1483
1484SCH_HIER_LABEL_T = _pcbnew.SCH_HIER_LABEL_T
1485
1486SCH_DIRECTIVE_LABEL_T = _pcbnew.SCH_DIRECTIVE_LABEL_T
1487
1488SCH_FIELD_T = _pcbnew.SCH_FIELD_T
1489
1490SCH_SYMBOL_T = _pcbnew.SCH_SYMBOL_T
1491
1492SCH_SHEET_PIN_T = _pcbnew.SCH_SHEET_PIN_T
1493
1494SCH_SHEET_T = _pcbnew.SCH_SHEET_T
1495
1496SCH_PIN_T = _pcbnew.SCH_PIN_T
1497
1498SCH_FIELD_LOCATE_REFERENCE_T = _pcbnew.SCH_FIELD_LOCATE_REFERENCE_T
1499
1500SCH_FIELD_LOCATE_VALUE_T = _pcbnew.SCH_FIELD_LOCATE_VALUE_T
1501
1502SCH_FIELD_LOCATE_FOOTPRINT_T = _pcbnew.SCH_FIELD_LOCATE_FOOTPRINT_T
1503
1504SCH_FIELD_LOCATE_DATASHEET_T = _pcbnew.SCH_FIELD_LOCATE_DATASHEET_T
1505
1506SCH_ITEM_LOCATE_WIRE_T = _pcbnew.SCH_ITEM_LOCATE_WIRE_T
1507
1508SCH_ITEM_LOCATE_BUS_T = _pcbnew.SCH_ITEM_LOCATE_BUS_T
1509
1510SCH_ITEM_LOCATE_GRAPHIC_LINE_T = _pcbnew.SCH_ITEM_LOCATE_GRAPHIC_LINE_T
1511
1512SCH_LABEL_LOCATE_ANY_T = _pcbnew.SCH_LABEL_LOCATE_ANY_T
1513
1514SCH_LABEL_LOCATE_WIRE_T = _pcbnew.SCH_LABEL_LOCATE_WIRE_T
1515
1516SCH_LABEL_LOCATE_BUS_T = _pcbnew.SCH_LABEL_LOCATE_BUS_T
1517
1518SCH_SYMBOL_LOCATE_POWER_T = _pcbnew.SCH_SYMBOL_LOCATE_POWER_T
1519
1520SCH_LOCATE_ANY_T = _pcbnew.SCH_LOCATE_ANY_T
1521
1522SCH_SCREEN_T = _pcbnew.SCH_SCREEN_T
1523
1524SCHEMATIC_T = _pcbnew.SCHEMATIC_T
1525
1526LIB_SYMBOL_T = _pcbnew.LIB_SYMBOL_T
1527
1528LIB_SHAPE_T = _pcbnew.LIB_SHAPE_T
1529
1530LIB_TEXT_T = _pcbnew.LIB_TEXT_T
1531
1532LIB_TEXTBOX_T = _pcbnew.LIB_TEXTBOX_T
1533
1534LIB_PIN_T = _pcbnew.LIB_PIN_T
1535
1536LIB_FIELD_T = _pcbnew.LIB_FIELD_T
1537
1538GERBER_LAYOUT_T = _pcbnew.GERBER_LAYOUT_T
1539
1540GERBER_DRAW_ITEM_T = _pcbnew.GERBER_DRAW_ITEM_T
1541
1542GERBER_IMAGE_T = _pcbnew.GERBER_IMAGE_T
1543
1544WSG_LINE_T = _pcbnew.WSG_LINE_T
1545
1546WSG_RECT_T = _pcbnew.WSG_RECT_T
1547
1548WSG_POLY_T = _pcbnew.WSG_POLY_T
1549
1550WSG_TEXT_T = _pcbnew.WSG_TEXT_T
1551
1552WSG_BITMAP_T = _pcbnew.WSG_BITMAP_T
1553
1554WSG_PAGE_T = _pcbnew.WSG_PAGE_T
1555
1556WS_PROXY_UNDO_ITEM_T = _pcbnew.WS_PROXY_UNDO_ITEM_T
1557
1558WS_PROXY_UNDO_ITEM_PLUS_T = _pcbnew.WS_PROXY_UNDO_ITEM_PLUS_T
1559
1560SYMBOL_LIB_TABLE_T = _pcbnew.SYMBOL_LIB_TABLE_T
1561
1562FP_LIB_TABLE_T = _pcbnew.FP_LIB_TABLE_T
1563
1564SYMBOL_LIBS_T = _pcbnew.SYMBOL_LIBS_T
1565
1566SEARCH_STACK_T = _pcbnew.SEARCH_STACK_T
1567
1568S3D_CACHE_T = _pcbnew.S3D_CACHE_T
1569
1570MAX_STRUCT_TYPE_ID = _pcbnew.MAX_STRUCT_TYPE_ID
1571
1572
1573def BaseType(aType):
1574 r"""BaseType(KICAD_T const aType) -> KICAD_T"""
1575 return _pcbnew.BaseType(aType)
1576
1577def IsNullType(aType):
1578 r"""IsNullType(KICAD_T const aType) -> bool"""
1579 return _pcbnew.IsNullType(aType)
1580
1582 r"""IsInstantiableType(KICAD_T const aType) -> bool"""
1583 return _pcbnew.IsInstantiableType(aType)
1584
1586 r"""IsEeschemaType(KICAD_T const aType) -> bool"""
1587 return _pcbnew.IsEeschemaType(aType)
1588
1589def IsPcbnewType(aType):
1590 r"""IsPcbnewType(KICAD_T const aType) -> bool"""
1591 return _pcbnew.IsPcbnewType(aType)
1592
1594 r"""IsGerbviewType(KICAD_T const aType) -> bool"""
1595 return _pcbnew.IsGerbviewType(aType)
1596
1598 r"""IsPageLayoutEditorType(KICAD_T const aType) -> bool"""
1599 return _pcbnew.IsPageLayoutEditorType(aType)
1600
1601def IsMiscType(aType):
1602 r"""IsMiscType(KICAD_T const aType) -> bool"""
1603 return _pcbnew.IsMiscType(aType)
1604
1605def IsTypeCorrect(aType):
1606 r"""IsTypeCorrect(KICAD_T aType) -> bool"""
1607 return _pcbnew.IsTypeCorrect(aType)
1608
1610 r"""IsTypeAvailable(KICAD_T aType) -> bool"""
1611 return _pcbnew.IsTypeAvailable(aType)
1612INSPECT_RESULT_QUIT = _pcbnew.INSPECT_RESULT_QUIT
1613
1614INSPECT_RESULT_CONTINUE = _pcbnew.INSPECT_RESULT_CONTINUE
1615
1617 r"""Proxy of C++ EDA_ITEM class."""
1618
1619 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1620
1621 def __init__(self, *args, **kwargs):
1622 raise AttributeError("No constructor defined - class is abstract")
1623 __repr__ = _swig_repr
1624 __swig_destroy__ = _pcbnew.delete_EDA_ITEM
1625
1626 def Type(self):
1627 r"""Type(EDA_ITEM self) -> KICAD_T"""
1628 return _pcbnew.EDA_ITEM_Type(self)
1629
1630 def GetParent(self):
1631 r"""GetParent(EDA_ITEM self) -> EDA_ITEM"""
1632 return _pcbnew.EDA_ITEM_GetParent(self)
1633
1634 def SetParent(self, aParent):
1635 r"""SetParent(EDA_ITEM self, EDA_ITEM aParent)"""
1636 return _pcbnew.EDA_ITEM_SetParent(self, aParent)
1637
1638 def IsModified(self):
1639 r"""IsModified(EDA_ITEM self) -> bool"""
1640 return _pcbnew.EDA_ITEM_IsModified(self)
1641
1642 def IsNew(self):
1643 r"""IsNew(EDA_ITEM self) -> bool"""
1644 return _pcbnew.EDA_ITEM_IsNew(self)
1645
1646 def IsMoving(self):
1647 r"""IsMoving(EDA_ITEM self) -> bool"""
1648 return _pcbnew.EDA_ITEM_IsMoving(self)
1649
1650 def IsSelected(self):
1651 r"""IsSelected(EDA_ITEM self) -> bool"""
1652 return _pcbnew.EDA_ITEM_IsSelected(self)
1653
1654 def IsEntered(self):
1655 r"""IsEntered(EDA_ITEM self) -> bool"""
1656 return _pcbnew.EDA_ITEM_IsEntered(self)
1657
1658 def IsBrightened(self):
1659 r"""IsBrightened(EDA_ITEM self) -> bool"""
1660 return _pcbnew.EDA_ITEM_IsBrightened(self)
1661
1662 def IsRollover(self):
1663 r"""IsRollover(EDA_ITEM self) -> bool"""
1664 return _pcbnew.EDA_ITEM_IsRollover(self)
1665
1666 def SetSelected(self):
1667 r"""SetSelected(EDA_ITEM self)"""
1668 return _pcbnew.EDA_ITEM_SetSelected(self)
1669
1670 def SetBrightened(self):
1671 r"""SetBrightened(EDA_ITEM self)"""
1672 return _pcbnew.EDA_ITEM_SetBrightened(self)
1673
1674 def ClearSelected(self):
1675 r"""ClearSelected(EDA_ITEM self)"""
1676 return _pcbnew.EDA_ITEM_ClearSelected(self)
1677
1679 r"""ClearBrightened(EDA_ITEM self)"""
1680 return _pcbnew.EDA_ITEM_ClearBrightened(self)
1681
1682 def SetModified(self):
1683 r"""SetModified(EDA_ITEM self)"""
1684 return _pcbnew.EDA_ITEM_SetModified(self)
1685
1686 def SetFlags(self, aMask):
1687 r"""SetFlags(EDA_ITEM self, EDA_ITEM_FLAGS aMask)"""
1688 return _pcbnew.EDA_ITEM_SetFlags(self, aMask)
1689
1690 def XorFlags(self, aMask):
1691 r"""XorFlags(EDA_ITEM self, EDA_ITEM_FLAGS aMask)"""
1692 return _pcbnew.EDA_ITEM_XorFlags(self, aMask)
1693
1694 def ClearFlags(self, *args):
1695 r"""ClearFlags(EDA_ITEM self, EDA_ITEM_FLAGS aMask=EDA_ITEM_ALL_FLAGS)"""
1696 return _pcbnew.EDA_ITEM_ClearFlags(self, *args)
1697
1698 def GetFlags(self):
1699 r"""GetFlags(EDA_ITEM self) -> EDA_ITEM_FLAGS"""
1700 return _pcbnew.EDA_ITEM_GetFlags(self)
1701
1702 def HasFlag(self, aFlag):
1703 r"""HasFlag(EDA_ITEM self, EDA_ITEM_FLAGS aFlag) -> bool"""
1704 return _pcbnew.EDA_ITEM_HasFlag(self, aFlag)
1705
1706 def GetEditFlags(self):
1707 r"""GetEditFlags(EDA_ITEM self) -> EDA_ITEM_FLAGS"""
1708 return _pcbnew.EDA_ITEM_GetEditFlags(self)
1709
1711 r"""ClearEditFlags(EDA_ITEM self)"""
1712 return _pcbnew.EDA_ITEM_ClearEditFlags(self)
1713
1714 def GetTempFlags(self):
1715 r"""GetTempFlags(EDA_ITEM self) -> EDA_ITEM_FLAGS"""
1716 return _pcbnew.EDA_ITEM_GetTempFlags(self)
1717
1719 r"""ClearTempFlags(EDA_ITEM self)"""
1720 return _pcbnew.EDA_ITEM_ClearTempFlags(self)
1721
1722 def RenderAsBitmap(self, aWorldScale):
1723 r"""RenderAsBitmap(EDA_ITEM self, double aWorldScale) -> bool"""
1724 return _pcbnew.EDA_ITEM_RenderAsBitmap(self, aWorldScale)
1725
1726 def SetIsShownAsBitmap(self, aBitmap):
1727 r"""SetIsShownAsBitmap(EDA_ITEM self, bool aBitmap)"""
1728 return _pcbnew.EDA_ITEM_SetIsShownAsBitmap(self, aBitmap)
1729
1731 r"""IsShownAsBitmap(EDA_ITEM self) -> bool"""
1732 return _pcbnew.EDA_ITEM_IsShownAsBitmap(self)
1733
1734 def IsType(self, aScanTypes):
1735 r"""IsType(EDA_ITEM self, std::vector< KICAD_T,std::allocator< KICAD_T > > const & aScanTypes) -> bool"""
1736 return _pcbnew.EDA_ITEM_IsType(self, aScanTypes)
1737
1738 def SetForceVisible(self, aEnable):
1739 r"""SetForceVisible(EDA_ITEM self, bool aEnable)"""
1740 return _pcbnew.EDA_ITEM_SetForceVisible(self, aEnable)
1741
1743 r"""IsForceVisible(EDA_ITEM self) -> bool"""
1744 return _pcbnew.EDA_ITEM_IsForceVisible(self)
1745
1746 def GetMsgPanelInfo(self, aFrame, aList):
1747 r"""GetMsgPanelInfo(EDA_ITEM self, EDA_DRAW_FRAME * aFrame, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)"""
1748 return _pcbnew.EDA_ITEM_GetMsgPanelInfo(self, aFrame, aList)
1749
1751 r"""GetFriendlyName(EDA_ITEM self) -> wxString"""
1752 return _pcbnew.EDA_ITEM_GetFriendlyName(self)
1753
1754 def HitTest(self, *args):
1755 r"""
1756 HitTest(EDA_ITEM self, VECTOR2I aPosition, int aAccuracy=0) -> bool
1757 HitTest(EDA_ITEM self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
1758 """
1759 return _pcbnew.EDA_ITEM_HitTest(self, *args)
1760
1762 r"""GetBoundingBox(EDA_ITEM self) -> BOX2I"""
1763 return _pcbnew.EDA_ITEM_GetBoundingBox(self)
1764
1765 def GetPosition(self):
1766 r"""GetPosition(EDA_ITEM self) -> VECTOR2I"""
1767 return _pcbnew.EDA_ITEM_GetPosition(self)
1768
1769 def SetPosition(self, aPos):
1770 r"""SetPosition(EDA_ITEM self, VECTOR2I aPos)"""
1771 return _pcbnew.EDA_ITEM_SetPosition(self, aPos)
1772
1774 r"""GetFocusPosition(EDA_ITEM self) -> VECTOR2I"""
1775 return _pcbnew.EDA_ITEM_GetFocusPosition(self)
1776
1778 r"""GetSortPosition(EDA_ITEM self) -> VECTOR2I"""
1779 return _pcbnew.EDA_ITEM_GetSortPosition(self)
1780
1781 def Clone(self):
1782 r"""Clone(EDA_ITEM self) -> EDA_ITEM"""
1783 return _pcbnew.EDA_ITEM_Clone(self)
1784
1785 def Visit(self, inspector, testData, aScanTypes):
1786 r"""Visit(EDA_ITEM self, INSPECTOR inspector, void * testData, std::vector< KICAD_T,std::allocator< KICAD_T > > const & aScanTypes) -> INSPECT_RESULT"""
1787 return _pcbnew.EDA_ITEM_Visit(self, inspector, testData, aScanTypes)
1788
1789 def GetClass(self):
1790 r"""GetClass(EDA_ITEM self) -> wxString"""
1791 return _pcbnew.EDA_ITEM_GetClass(self)
1792
1793 def GetTypeDesc(self):
1794 r"""GetTypeDesc(EDA_ITEM self) -> wxString"""
1795 return _pcbnew.EDA_ITEM_GetTypeDesc(self)
1796
1797 def GetItemDescription(self, aUnitsProvider):
1798 r"""GetItemDescription(EDA_ITEM self, UNITS_PROVIDER aUnitsProvider) -> wxString"""
1799 return _pcbnew.EDA_ITEM_GetItemDescription(self, aUnitsProvider)
1800
1801 def GetMenuImage(self):
1802 r"""GetMenuImage(EDA_ITEM self) -> BITMAPS"""
1803 return _pcbnew.EDA_ITEM_GetMenuImage(self)
1804
1805 def Matches(self, aSearchData, aAuxData):
1806 r"""Matches(EDA_ITEM self, EDA_SEARCH_DATA const & aSearchData, void * aAuxData) -> bool"""
1807 return _pcbnew.EDA_ITEM_Matches(self, aSearchData, aAuxData)
1808
1809 def Replace(self, *args):
1810 r"""
1811 Replace(EDA_ITEM self, EDA_SEARCH_DATA const & aSearchData, wxString aText) -> bool
1812 Replace(EDA_ITEM self, EDA_SEARCH_DATA const & aSearchData, void * aAuxData=None) -> bool
1813 """
1814 return _pcbnew.EDA_ITEM_Replace(self, *args)
1815
1816 def IsReplaceable(self):
1817 r"""IsReplaceable(EDA_ITEM self) -> bool"""
1818 return _pcbnew.EDA_ITEM_IsReplaceable(self)
1819
1820 def __lt__(self, aItem):
1821 r"""__lt__(EDA_ITEM self, EDA_ITEM aItem) -> bool"""
1822 return _pcbnew.EDA_ITEM___lt__(self, aItem)
1823
1824 @staticmethod
1825 def Sort(aLeft, aRight):
1826 r"""Sort(EDA_ITEM aLeft, EDA_ITEM aRight) -> bool"""
1827 return _pcbnew.EDA_ITEM_Sort(aLeft, aRight)
1828
1829 def ViewBBox(self):
1830 r"""ViewBBox(EDA_ITEM self) -> BOX2I"""
1831 return _pcbnew.EDA_ITEM_ViewBBox(self)
1832
1833 def ViewGetLayers(self, aLayers, aCount):
1834 r"""ViewGetLayers(EDA_ITEM self, int [] aLayers, int & aCount)"""
1835 return _pcbnew.EDA_ITEM_ViewGetLayers(self, aLayers, aCount)
1836 m_Uuid = property(_pcbnew.EDA_ITEM_m_Uuid_get, doc=r"""m_Uuid : q(const).KIID""")
1837
1838# Register EDA_ITEM in _pcbnew:
1839_pcbnew.EDA_ITEM_swigregister(EDA_ITEM)
1840
1841def EDA_ITEM_Sort(aLeft, aRight):
1842 r"""EDA_ITEM_Sort(EDA_ITEM aLeft, EDA_ITEM aRight) -> bool"""
1843 return _pcbnew.EDA_ITEM_Sort(aLeft, aRight)
1844
1845
1846def new_clone(aItem):
1847 r"""new_clone(EDA_ITEM aItem) -> EDA_ITEM"""
1848 return _pcbnew.new_clone(aItem)
1850 r"""Proxy of C++ CompareByUuid class."""
1851
1852 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1853 __repr__ = _swig_repr
1854
1855 def __call__(self, item1, item2):
1856 r"""__call__(CompareByUuid self, EDA_ITEM item1, EDA_ITEM item2) -> bool"""
1857 return _pcbnew.CompareByUuid___call__(self, item1, item2)
1858
1859 def __init__(self):
1860 r"""__init__(CompareByUuid self) -> CompareByUuid"""
1861 _pcbnew.CompareByUuid_swiginit(self, _pcbnew.new_CompareByUuid())
1862 __swig_destroy__ = _pcbnew.delete_CompareByUuid
1863
1864# Register CompareByUuid in _pcbnew:
1865_pcbnew.CompareByUuid_swigregister(CompareByUuid)
1866
1868 r"""Proxy of C++ EDA_IU_SCALE class."""
1869
1870 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1871 __repr__ = _swig_repr
1872 IU_PER_MM = property(_pcbnew.EDA_IU_SCALE_IU_PER_MM_get, doc=r"""IU_PER_MM : q(const).double""")
1873 IU_PER_MILS = property(_pcbnew.EDA_IU_SCALE_IU_PER_MILS_get, doc=r"""IU_PER_MILS : q(const).double""")
1874 MM_PER_IU = property(_pcbnew.EDA_IU_SCALE_MM_PER_IU_get, doc=r"""MM_PER_IU : q(const).double""")
1875
1876 def __init__(self, aIUPerMM):
1877 r"""__init__(EDA_IU_SCALE self, double aIUPerMM) -> EDA_IU_SCALE"""
1878 _pcbnew.EDA_IU_SCALE_swiginit(self, _pcbnew.new_EDA_IU_SCALE(aIUPerMM))
1879
1880 def IUTomm(self, iu):
1881 r"""IUTomm(EDA_IU_SCALE self, int iu) -> double"""
1882 return _pcbnew.EDA_IU_SCALE_IUTomm(self, iu)
1883
1884 def mmToIU(self, mm):
1885 r"""mmToIU(EDA_IU_SCALE self, double mm) -> int"""
1886 return _pcbnew.EDA_IU_SCALE_mmToIU(self, mm)
1887
1888 def MilsToIU(self, mils):
1889 r"""MilsToIU(EDA_IU_SCALE self, int mils) -> int"""
1890 return _pcbnew.EDA_IU_SCALE_MilsToIU(self, mils)
1891
1892 def IUToMils(self, iu):
1893 r"""IUToMils(EDA_IU_SCALE self, int iu) -> int"""
1894 return _pcbnew.EDA_IU_SCALE_IUToMils(self, iu)
1895 __swig_destroy__ = _pcbnew.delete_EDA_IU_SCALE
1896
1897# Register EDA_IU_SCALE in _pcbnew:
1898_pcbnew.EDA_IU_SCALE_swigregister(EDA_IU_SCALE)
1899GERB_IU_PER_MM = cvar.GERB_IU_PER_MM
1900PCB_IU_PER_MM = cvar.PCB_IU_PER_MM
1901PL_IU_PER_MM = cvar.PL_IU_PER_MM
1902SCH_IU_PER_MM = cvar.SCH_IU_PER_MM
1903
1904EDA_DATA_TYPE_DISTANCE = _pcbnew.EDA_DATA_TYPE_DISTANCE
1905
1906EDA_DATA_TYPE_AREA = _pcbnew.EDA_DATA_TYPE_AREA
1907
1908EDA_DATA_TYPE_VOLUME = _pcbnew.EDA_DATA_TYPE_VOLUME
1909
1910EDA_DATA_TYPE_UNITLESS = _pcbnew.EDA_DATA_TYPE_UNITLESS
1911
1912EDA_UNITS_INCHES = _pcbnew.EDA_UNITS_INCHES
1913
1914EDA_UNITS_MILLIMETRES = _pcbnew.EDA_UNITS_MILLIMETRES
1915
1916EDA_UNITS_UNSCALED = _pcbnew.EDA_UNITS_UNSCALED
1917
1918EDA_UNITS_DEGREES = _pcbnew.EDA_UNITS_DEGREES
1919
1920EDA_UNITS_PERCENT = _pcbnew.EDA_UNITS_PERCENT
1921
1922EDA_UNITS_MILS = _pcbnew.EDA_UNITS_MILS
1923
1924EDA_UNITS_MICROMETRES = _pcbnew.EDA_UNITS_MICROMETRES
1925
1926EDA_UNITS_CENTIMETRES = _pcbnew.EDA_UNITS_CENTIMETRES
1927
1928
1930 r"""IsImperialUnit(EDA_UNITS aUnit) -> bool"""
1931 return _pcbnew.IsImperialUnit(aUnit)
1932
1933def IsMetricUnit(aUnit):
1934 r"""IsMetricUnit(EDA_UNITS aUnit) -> bool"""
1935 return _pcbnew.IsMetricUnit(aUnit)
1936
1937def Mm2mils(aVal):
1938 r"""Mm2mils(double aVal) -> int"""
1939 return _pcbnew.Mm2mils(aVal)
1940
1941def Mils2mm(aVal):
1942 r"""Mils2mm(double aVal) -> int"""
1943 return _pcbnew.Mils2mm(aVal)
1944
1945def FetchUnitsFromString(aTextValue, aUnits):
1946 r"""FetchUnitsFromString(wxString aTextValue, EDA_UNITS & aUnits) -> bool"""
1947 return _pcbnew.FetchUnitsFromString(aTextValue, aUnits)
1948
1949def GetText(*args):
1950 r"""GetText(EDA_UNITS aUnits, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
1951 return _pcbnew.GetText(*args)
1952
1953def GetLabel(*args):
1954 r"""GetLabel(EDA_UNITS aUnits, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
1955 return _pcbnew.GetLabel(*args)
1956
1957def FormatAngle(aAngle):
1958 r"""FormatAngle(EDA_ANGLE aAngle) -> string"""
1959 return _pcbnew.FormatAngle(aAngle)
1960
1962 r"""
1963 FormatInternalUnits(EDA_IU_SCALE aIuScale, int aValue) -> string
1964 FormatInternalUnits(EDA_IU_SCALE aIuScale, VECTOR2I aPoint) -> string
1965 """
1966 return _pcbnew.FormatInternalUnits(*args)
1967
1968def Mils2IU(aIuScale, mils):
1969 r"""Mils2IU(EDA_IU_SCALE aIuScale, int mils) -> int"""
1970 return _pcbnew.Mils2IU(aIuScale, mils)
1971
1972def ToUserUnit(aIuScale, aUnit, aValue):
1973 r"""ToUserUnit(EDA_IU_SCALE aIuScale, EDA_UNITS aUnit, double aValue) -> double"""
1974 return _pcbnew.ToUserUnit(aIuScale, aUnit, aValue)
1975
1977 r"""StringFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=False, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
1978 return _pcbnew.StringFromValue(*args)
1979
1981 r"""
1982 MessageTextFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
1983 MessageTextFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, int aValue, bool aAddUnitLabel=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
1984 MessageTextFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, long long aValue, bool aAddUnitLabel=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
1985 MessageTextFromValue(EDA_ANGLE aValue, bool aAddUnitLabel=True) -> wxString
1986 """
1987 return _pcbnew.MessageTextFromValue(*args)
1988
1989def MessageTextFromMinOptMax(aIuScale, aUnits, aValue):
1990 r"""MessageTextFromMinOptMax(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, MINOPTMAX< int > const & aValue) -> wxString"""
1991 return _pcbnew.MessageTextFromMinOptMax(aIuScale, aUnits, aValue)
1992
1993def FromUserUnit(aIuScale, aUnit, aValue):
1994 r"""FromUserUnit(EDA_IU_SCALE aIuScale, EDA_UNITS aUnit, double aValue) -> double"""
1995 return _pcbnew.FromUserUnit(aIuScale, aUnit, aValue)
1996
1998 r"""
1999 DoubleValueFromString(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> double
2000 DoubleValueFromString(wxString aTextValue) -> double
2001 """
2002 return _pcbnew.DoubleValueFromString(*args)
2003
2005 r"""
2006 ValueFromString(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> long long
2007 ValueFromString(wxString aTextValue) -> long long
2008 """
2009 return _pcbnew.ValueFromString(*args)
2010
2012 r"""SearchHelpFileFullPath(wxString aBaseName) -> wxString"""
2013 return _pcbnew.SearchHelpFileFullPath(aBaseName)
2014
2015def EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter=None):
2016 r"""EnsureFileDirectoryExists(wxFileName * aTargetFullFileName, wxString aBaseFilename, REPORTER * aReporter=None) -> bool"""
2017 return _pcbnew.EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter)
2018
2019def EnsureFileExtension(aFilename, aExtension):
2020 r"""EnsureFileExtension(wxString aFilename, wxString aExtension) -> wxString"""
2021 return _pcbnew.EnsureFileExtension(aFilename, aExtension)
2022
2023def ExpandEnvVarSubstitutions(aString, aProject):
2024 r"""ExpandEnvVarSubstitutions(wxString aString, PROJECT const * aProject) -> wxString"""
2025 return _pcbnew.ExpandEnvVarSubstitutions(aString, aProject)
2026
2028 r"""
2029 ExpandTextVars(wxString aSource, std::function< bool (wxString *) > const * aResolver) -> wxString
2030 ExpandTextVars(wxString aSource, PROJECT const * aProject) -> wxString
2031 """
2032 return _pcbnew.ExpandTextVars(*args)
2033
2034def GetTextVars(aSource):
2035 r"""GetTextVars(wxString aSource) -> wxString"""
2036 return _pcbnew.GetTextVars(aSource)
2037
2038def IsTextVar(aSource):
2039 r"""IsTextVar(wxString aSource) -> bool"""
2040 return _pcbnew.IsTextVar(aSource)
2041
2042def ResolveUriByEnvVars(aUri, aProject):
2043 r"""ResolveUriByEnvVars(wxString aUri, PROJECT * aProject) -> wxString"""
2044 return _pcbnew.ResolveUriByEnvVars(aUri, aProject)
2045
2046def TimestampDir(aDirPath, aFilespec):
2047 r"""TimestampDir(wxString aDirPath, wxString aFilespec) -> long long"""
2048 return _pcbnew.TimestampDir(aDirPath, aFilespec)
2049
2051 r"""WarnUserIfOperatingSystemUnsupported() -> bool"""
2052 return _pcbnew.WarnUserIfOperatingSystemUnsupported()
2053
2054def StrPrintf(*args):
2055 r"""
2056 StrPrintf(string aResult, char const * aFormat) -> int
2057 StrPrintf(char const * format) -> string
2058 """
2059 return _pcbnew.StrPrintf(*args)
2060
2061def SafeReadFile(aFilePath, aReadType):
2062 r"""SafeReadFile(wxString aFilePath, wxString aReadType) -> wxString"""
2063 return _pcbnew.SafeReadFile(aFilePath, aReadType)
2064LINE_READER_LINE_DEFAULT_MAX = _pcbnew.LINE_READER_LINE_DEFAULT_MAX
2065
2066LINE_READER_LINE_INITIAL_SIZE = _pcbnew.LINE_READER_LINE_INITIAL_SIZE
2067
2069 r"""Proxy of C++ LINE_READER class."""
2070
2071 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2072
2073 def __init__(self, *args, **kwargs):
2074 raise AttributeError("No constructor defined - class is abstract")
2075 __repr__ = _swig_repr
2076 __swig_destroy__ = _pcbnew.delete_LINE_READER
2077
2078 def ReadLine(self):
2079 r"""ReadLine(LINE_READER self) -> char *"""
2080 return _pcbnew.LINE_READER_ReadLine(self)
2081
2082 def GetSource(self):
2083 r"""GetSource(LINE_READER self) -> wxString"""
2084 return _pcbnew.LINE_READER_GetSource(self)
2085
2086 def Line(self):
2087 r"""Line(LINE_READER self) -> char *"""
2088 return _pcbnew.LINE_READER_Line(self)
2089
2090 def LineNumber(self):
2091 r"""LineNumber(LINE_READER self) -> unsigned int"""
2092 return _pcbnew.LINE_READER_LineNumber(self)
2093
2094 def Length(self):
2095 r"""Length(LINE_READER self) -> unsigned int"""
2096 return _pcbnew.LINE_READER_Length(self)
2097
2098# Register LINE_READER in _pcbnew:
2099_pcbnew.LINE_READER_swigregister(LINE_READER)
2100gerbIUScale = cvar.gerbIUScale
2101pcbIUScale = cvar.pcbIUScale
2102drawSheetIUScale = cvar.drawSheetIUScale
2103schIUScale = cvar.schIUScale
2104unityScale = cvar.unityScale
2105
2107 r"""Proxy of C++ FILE_LINE_READER class."""
2108
2109 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2110 __repr__ = _swig_repr
2111
2112 def __init__(self, *args):
2113 r"""
2114 __init__(FILE_LINE_READER self, wxString aFileName, unsigned int aStartingLineNumber=0, unsigned int aMaxLineLength=1000000) -> FILE_LINE_READER
2115 __init__(FILE_LINE_READER self, FILE * aFile, wxString aFileName, bool doOwn=True, unsigned int aStartingLineNumber=0, unsigned int aMaxLineLength=1000000) -> FILE_LINE_READER
2116 """
2117 _pcbnew.FILE_LINE_READER_swiginit(self, _pcbnew.new_FILE_LINE_READER(*args))
2118 __swig_destroy__ = _pcbnew.delete_FILE_LINE_READER
2119
2120 def Rewind(self):
2121 r"""Rewind(FILE_LINE_READER self)"""
2122 return _pcbnew.FILE_LINE_READER_Rewind(self)
2123
2124 def FileLength(self):
2125 r"""FileLength(FILE_LINE_READER self) -> long"""
2126 return _pcbnew.FILE_LINE_READER_FileLength(self)
2127
2128 def CurPos(self):
2129 r"""CurPos(FILE_LINE_READER self) -> long"""
2130 return _pcbnew.FILE_LINE_READER_CurPos(self)
2131
2132# Register FILE_LINE_READER in _pcbnew:
2133_pcbnew.FILE_LINE_READER_swigregister(FILE_LINE_READER)
2134
2136 r"""Proxy of C++ STRING_LINE_READER class."""
2137
2138 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2139 __repr__ = _swig_repr
2140
2141 def __init__(self, *args):
2142 r"""
2143 __init__(STRING_LINE_READER self, string aString, wxString aSource) -> STRING_LINE_READER
2144 __init__(STRING_LINE_READER self, STRING_LINE_READER aStartingPoint) -> STRING_LINE_READER
2145 """
2146 _pcbnew.STRING_LINE_READER_swiginit(self, _pcbnew.new_STRING_LINE_READER(*args))
2147 __swig_destroy__ = _pcbnew.delete_STRING_LINE_READER
2148
2149# Register STRING_LINE_READER in _pcbnew:
2150_pcbnew.STRING_LINE_READER_swigregister(STRING_LINE_READER)
2151
2153 r"""Proxy of C++ INPUTSTREAM_LINE_READER class."""
2154
2155 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2156 __repr__ = _swig_repr
2157
2158 def __init__(self, aStream, aSource):
2159 r"""__init__(INPUTSTREAM_LINE_READER self, wxInputStream * aStream, wxString aSource) -> INPUTSTREAM_LINE_READER"""
2160 _pcbnew.INPUTSTREAM_LINE_READER_swiginit(self, _pcbnew.new_INPUTSTREAM_LINE_READER(aStream, aSource))
2161 __swig_destroy__ = _pcbnew.delete_INPUTSTREAM_LINE_READER
2162
2163# Register INPUTSTREAM_LINE_READER in _pcbnew:
2164_pcbnew.INPUTSTREAM_LINE_READER_swigregister(INPUTSTREAM_LINE_READER)
2165
2166OUTPUTFMTBUFZ = _pcbnew.OUTPUTFMTBUFZ
2167
2169 r"""Proxy of C++ OUTPUTFORMATTER class."""
2170
2171 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2172
2173 def __init__(self, *args, **kwargs):
2174 raise AttributeError("No constructor defined - class is abstract")
2175 __repr__ = _swig_repr
2176
2177 def Print(self, nestLevel, fmt):
2178 r"""Print(OUTPUTFORMATTER self, int nestLevel, char const * fmt) -> int"""
2179 return _pcbnew.OUTPUTFORMATTER_Print(self, nestLevel, fmt)
2180
2181 def GetQuoteChar(self, wrapee):
2182 r"""GetQuoteChar(OUTPUTFORMATTER self, char const * wrapee) -> char const *"""
2183 return _pcbnew.OUTPUTFORMATTER_GetQuoteChar(self, wrapee)
2184
2185 def Quotes(self, aWrapee):
2186 r"""Quotes(OUTPUTFORMATTER self, string aWrapee) -> string"""
2187 return _pcbnew.OUTPUTFORMATTER_Quotes(self, aWrapee)
2188
2189 def Quotew(self, aWrapee):
2190 r"""Quotew(OUTPUTFORMATTER self, wxString aWrapee) -> string"""
2191 return _pcbnew.OUTPUTFORMATTER_Quotew(self, aWrapee)
2192
2193 def Finish(self):
2194 r"""Finish(OUTPUTFORMATTER self) -> bool"""
2195 return _pcbnew.OUTPUTFORMATTER_Finish(self)
2196
2197# Register OUTPUTFORMATTER in _pcbnew:
2198_pcbnew.OUTPUTFORMATTER_swigregister(OUTPUTFORMATTER)
2199
2201 r"""Proxy of C++ STRING_FORMATTER class."""
2202
2203 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2204 __repr__ = _swig_repr
2205
2206 def __init__(self, *args):
2207 r"""__init__(STRING_FORMATTER self, int aReserve=500, char aQuoteChar='\"') -> STRING_FORMATTER"""
2208 _pcbnew.STRING_FORMATTER_swiginit(self, _pcbnew.new_STRING_FORMATTER(*args))
2209
2210 def Clear(self):
2211 r"""Clear(STRING_FORMATTER self)"""
2212 return _pcbnew.STRING_FORMATTER_Clear(self)
2213
2214 def StripUseless(self):
2215 r"""StripUseless(STRING_FORMATTER self)"""
2216 return _pcbnew.STRING_FORMATTER_StripUseless(self)
2217
2218 def GetString(self):
2219 r"""GetString(STRING_FORMATTER self) -> string"""
2220 return _pcbnew.STRING_FORMATTER_GetString(self)
2221 __swig_destroy__ = _pcbnew.delete_STRING_FORMATTER
2222
2223# Register STRING_FORMATTER in _pcbnew:
2224_pcbnew.STRING_FORMATTER_swigregister(STRING_FORMATTER)
2225
2227 r"""Proxy of C++ FILE_OUTPUTFORMATTER class."""
2228
2229 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2230 __repr__ = _swig_repr
2231
2232 def __init__(self, *args):
2233 r"""__init__(FILE_OUTPUTFORMATTER self, wxString aFileName, wxChar const * aMode=wxT( "wt" ), char aQuoteChar='\"') -> FILE_OUTPUTFORMATTER"""
2234 _pcbnew.FILE_OUTPUTFORMATTER_swiginit(self, _pcbnew.new_FILE_OUTPUTFORMATTER(*args))
2235 __swig_destroy__ = _pcbnew.delete_FILE_OUTPUTFORMATTER
2236
2237# Register FILE_OUTPUTFORMATTER in _pcbnew:
2238_pcbnew.FILE_OUTPUTFORMATTER_swigregister(FILE_OUTPUTFORMATTER)
2239
2241 r"""Proxy of C++ PRETTIFIED_FILE_OUTPUTFORMATTER class."""
2242
2243 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2244 __repr__ = _swig_repr
2245
2246 def __init__(self, *args):
2247 r"""__init__(PRETTIFIED_FILE_OUTPUTFORMATTER self, wxString aFileName, wxChar const * aMode=wxT( "wt" ), char aQuoteChar='\"') -> PRETTIFIED_FILE_OUTPUTFORMATTER"""
2248 _pcbnew.PRETTIFIED_FILE_OUTPUTFORMATTER_swiginit(self, _pcbnew.new_PRETTIFIED_FILE_OUTPUTFORMATTER(*args))
2249 __swig_destroy__ = _pcbnew.delete_PRETTIFIED_FILE_OUTPUTFORMATTER
2250
2251# Register PRETTIFIED_FILE_OUTPUTFORMATTER in _pcbnew:
2252_pcbnew.PRETTIFIED_FILE_OUTPUTFORMATTER_swigregister(PRETTIFIED_FILE_OUTPUTFORMATTER)
2253
2255 r"""Proxy of C++ TITLE_BLOCK class."""
2256
2257 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2258 __repr__ = _swig_repr
2259
2260 def __init__(self):
2261 r"""__init__(TITLE_BLOCK self) -> TITLE_BLOCK"""
2262 _pcbnew.TITLE_BLOCK_swiginit(self, _pcbnew.new_TITLE_BLOCK())
2263 __swig_destroy__ = _pcbnew.delete_TITLE_BLOCK
2264
2265 def SetTitle(self, aTitle):
2266 r"""SetTitle(TITLE_BLOCK self, wxString aTitle)"""
2267 return _pcbnew.TITLE_BLOCK_SetTitle(self, aTitle)
2268
2269 def GetTitle(self):
2270 r"""GetTitle(TITLE_BLOCK self) -> wxString"""
2271 return _pcbnew.TITLE_BLOCK_GetTitle(self)
2272
2273 def SetDate(self, aDate):
2274 r"""SetDate(TITLE_BLOCK self, wxString aDate)"""
2275 return _pcbnew.TITLE_BLOCK_SetDate(self, aDate)
2276
2277 def GetDate(self):
2278 r"""GetDate(TITLE_BLOCK self) -> wxString"""
2279 return _pcbnew.TITLE_BLOCK_GetDate(self)
2280
2281 def SetRevision(self, aRevision):
2282 r"""SetRevision(TITLE_BLOCK self, wxString aRevision)"""
2283 return _pcbnew.TITLE_BLOCK_SetRevision(self, aRevision)
2284
2285 def GetRevision(self):
2286 r"""GetRevision(TITLE_BLOCK self) -> wxString"""
2287 return _pcbnew.TITLE_BLOCK_GetRevision(self)
2288
2289 def SetCompany(self, aCompany):
2290 r"""SetCompany(TITLE_BLOCK self, wxString aCompany)"""
2291 return _pcbnew.TITLE_BLOCK_SetCompany(self, aCompany)
2292
2293 def GetCompany(self):
2294 r"""GetCompany(TITLE_BLOCK self) -> wxString"""
2295 return _pcbnew.TITLE_BLOCK_GetCompany(self)
2296
2297 def SetComment(self, aIdx, aComment):
2298 r"""SetComment(TITLE_BLOCK self, int aIdx, wxString aComment)"""
2299 return _pcbnew.TITLE_BLOCK_SetComment(self, aIdx, aComment)
2300
2301 def GetComment(self, aIdx):
2302 r"""GetComment(TITLE_BLOCK self, int aIdx) -> wxString"""
2303 return _pcbnew.TITLE_BLOCK_GetComment(self, aIdx)
2304
2305 def Clear(self):
2306 r"""Clear(TITLE_BLOCK self)"""
2307 return _pcbnew.TITLE_BLOCK_Clear(self)
2308
2309 @staticmethod
2311 r"""GetContextualTextVars(wxArrayString * aVars)"""
2312 return _pcbnew.TITLE_BLOCK_GetContextualTextVars(aVars)
2313
2314 def TextVarResolver(self, aToken, aProject):
2315 r"""TextVarResolver(TITLE_BLOCK self, wxString aToken, PROJECT const * aProject) -> bool"""
2316 return _pcbnew.TITLE_BLOCK_TextVarResolver(self, aToken, aProject)
2317
2318 def Format(self, aFormatter, aNestLevel, aControlBits):
2319 r"""Format(TITLE_BLOCK self, OUTPUTFORMATTER aFormatter, int aNestLevel, int aControlBits)"""
2320 return _pcbnew.TITLE_BLOCK_Format(self, aFormatter, aNestLevel, aControlBits)
2321
2322# Register TITLE_BLOCK in _pcbnew:
2323_pcbnew.TITLE_BLOCK_swigregister(TITLE_BLOCK)
2324
2326 r"""TITLE_BLOCK_GetContextualTextVars(wxArrayString * aVars)"""
2327 return _pcbnew.TITLE_BLOCK_GetContextualTextVars(aVars)
2328
2329UNSPECIFIED_COLOR = _pcbnew.UNSPECIFIED_COLOR
2330
2331BLACK = _pcbnew.BLACK
2332
2333DARKDARKGRAY = _pcbnew.DARKDARKGRAY
2334
2335DARKGRAY = _pcbnew.DARKGRAY
2336
2337LIGHTGRAY = _pcbnew.LIGHTGRAY
2338
2339WHITE = _pcbnew.WHITE
2340
2341LIGHTYELLOW = _pcbnew.LIGHTYELLOW
2342
2343DARKBLUE = _pcbnew.DARKBLUE
2344
2345DARKGREEN = _pcbnew.DARKGREEN
2346
2347DARKCYAN = _pcbnew.DARKCYAN
2348
2349DARKRED = _pcbnew.DARKRED
2350
2351DARKMAGENTA = _pcbnew.DARKMAGENTA
2352
2353DARKBROWN = _pcbnew.DARKBROWN
2354
2355BLUE = _pcbnew.BLUE
2356
2357GREEN = _pcbnew.GREEN
2358
2359CYAN = _pcbnew.CYAN
2360
2361RED = _pcbnew.RED
2362
2363MAGENTA = _pcbnew.MAGENTA
2364
2365BROWN = _pcbnew.BROWN
2366
2367LIGHTBLUE = _pcbnew.LIGHTBLUE
2368
2369LIGHTGREEN = _pcbnew.LIGHTGREEN
2370
2371LIGHTCYAN = _pcbnew.LIGHTCYAN
2372
2373LIGHTRED = _pcbnew.LIGHTRED
2374
2375LIGHTMAGENTA = _pcbnew.LIGHTMAGENTA
2376
2377YELLOW = _pcbnew.YELLOW
2378
2379PUREBLUE = _pcbnew.PUREBLUE
2380
2381PUREGREEN = _pcbnew.PUREGREEN
2382
2383PURECYAN = _pcbnew.PURECYAN
2384
2385PURERED = _pcbnew.PURERED
2386
2387PUREMAGENTA = _pcbnew.PUREMAGENTA
2388
2389PUREYELLOW = _pcbnew.PUREYELLOW
2390
2391LIGHTERORANGE = _pcbnew.LIGHTERORANGE
2392
2393DARKORANGE = _pcbnew.DARKORANGE
2394
2395ORANGE = _pcbnew.ORANGE
2396
2397LIGHTORANGE = _pcbnew.LIGHTORANGE
2398
2399PUREORANGE = _pcbnew.PUREORANGE
2400
2401NBCOLORS = _pcbnew.NBCOLORS
2402
2403HIGHLIGHT_FLAG = _pcbnew.HIGHLIGHT_FLAG
2404
2405MASKCOLOR = _pcbnew.MASKCOLOR
2406
2408 r"""Proxy of C++ StructColors class."""
2409
2410 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2411 __repr__ = _swig_repr
2412 m_Blue = property(_pcbnew.StructColors_m_Blue_get, _pcbnew.StructColors_m_Blue_set, doc=r"""m_Blue : unsigned char""")
2413 m_Green = property(_pcbnew.StructColors_m_Green_get, _pcbnew.StructColors_m_Green_set, doc=r"""m_Green : unsigned char""")
2414 m_Red = property(_pcbnew.StructColors_m_Red_get, _pcbnew.StructColors_m_Red_set, doc=r"""m_Red : unsigned char""")
2415 m_Numcolor = property(_pcbnew.StructColors_m_Numcolor_get, _pcbnew.StructColors_m_Numcolor_set, doc=r"""m_Numcolor : EDA_COLOR_T""")
2416 m_ColorName = property(_pcbnew.StructColors_m_ColorName_get, _pcbnew.StructColors_m_ColorName_set, doc=r"""m_ColorName : std::string""")
2417 m_LightColor = property(_pcbnew.StructColors_m_LightColor_get, _pcbnew.StructColors_m_LightColor_set, doc=r"""m_LightColor : EDA_COLOR_T""")
2418
2419 def __init__(self):
2420 r"""__init__(StructColors self) -> StructColors"""
2421 _pcbnew.StructColors_swiginit(self, _pcbnew.new_StructColors())
2422 __swig_destroy__ = _pcbnew.delete_StructColors
2423
2424# Register StructColors in _pcbnew:
2425_pcbnew.StructColors_swigregister(StructColors)
2426
2427
2429 r"""colorRefs() -> StructColors"""
2430 return _pcbnew.colorRefs()
2432 r"""Proxy of C++ KIGFX::COLOR4D class."""
2433
2434 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2435 __repr__ = _swig_repr
2436
2437 def FromCSSRGBA(self, aRed, aGreen, aBlue, aAlpha=1.0):
2438 r"""FromCSSRGBA(COLOR4D self, int aRed, int aGreen, int aBlue, double aAlpha=1.0) -> COLOR4D"""
2439 return _pcbnew.COLOR4D_FromCSSRGBA(self, aRed, aGreen, aBlue, aAlpha)
2440
2441 def __init__(self, *args):
2442 r"""
2443 __init__(COLOR4D self) -> COLOR4D
2444 __init__(COLOR4D self, double aRed, double aGreen, double aBlue, double aAlpha) -> COLOR4D
2445 __init__(COLOR4D self, EDA_COLOR_T aColor) -> COLOR4D
2446 __init__(COLOR4D self, wxString aColorStr) -> COLOR4D
2447 __init__(COLOR4D self, wxColour const & aColor) -> COLOR4D
2448 """
2449 _pcbnew.COLOR4D_swiginit(self, _pcbnew.new_COLOR4D(*args))
2450
2451 def SetFromWxString(self, aColorString):
2452 r"""SetFromWxString(COLOR4D self, wxString aColorString) -> bool"""
2453 return _pcbnew.COLOR4D_SetFromWxString(self, aColorString)
2454
2455 def ToCSSString(self):
2456 r"""ToCSSString(COLOR4D self) -> wxString"""
2457 return _pcbnew.COLOR4D_ToCSSString(self)
2458
2459 def SetFromHexString(self, aColorString):
2460 r"""SetFromHexString(COLOR4D self, wxString aColorString) -> bool"""
2461 return _pcbnew.COLOR4D_SetFromHexString(self, aColorString)
2462
2463 def ToHexString(self):
2464 r"""ToHexString(COLOR4D self) -> wxString"""
2465 return _pcbnew.COLOR4D_ToHexString(self)
2466
2467 def ToColour(self):
2468 r"""ToColour(COLOR4D self) -> wxColour"""
2469 return _pcbnew.COLOR4D_ToColour(self)
2470
2471 def LegacyMix(self, aColor):
2472 r"""LegacyMix(COLOR4D self, COLOR4D aColor) -> COLOR4D"""
2473 return _pcbnew.COLOR4D_LegacyMix(self, aColor)
2474
2475 def ToHSL(self, aOutHue, aOutSaturation, aOutValue):
2476 r"""ToHSL(COLOR4D self, double & aOutHue, double & aOutSaturation, double & aOutValue)"""
2477 return _pcbnew.COLOR4D_ToHSL(self, aOutHue, aOutSaturation, aOutValue)
2478
2479 def FromHSL(self, aInHue, aInSaturation, aInLightness):
2480 r"""FromHSL(COLOR4D self, double aInHue, double aInSaturation, double aInLightness)"""
2481 return _pcbnew.COLOR4D_FromHSL(self, aInHue, aInSaturation, aInLightness)
2482
2483 def Brighten(self, aFactor):
2484 r"""Brighten(COLOR4D self, double aFactor) -> COLOR4D"""
2485 return _pcbnew.COLOR4D_Brighten(self, aFactor)
2486
2487 def Darken(self, aFactor):
2488 r"""Darken(COLOR4D self, double aFactor) -> COLOR4D"""
2489 return _pcbnew.COLOR4D_Darken(self, aFactor)
2490
2491 def Invert(self):
2492 r"""Invert(COLOR4D self) -> COLOR4D"""
2493 return _pcbnew.COLOR4D_Invert(self)
2494
2495 def Saturate(self, aFactor):
2496 r"""Saturate(COLOR4D self, double aFactor) -> COLOR4D"""
2497 return _pcbnew.COLOR4D_Saturate(self, aFactor)
2498
2499 def Desaturate(self):
2500 r"""Desaturate(COLOR4D self) -> COLOR4D"""
2501 return _pcbnew.COLOR4D_Desaturate(self)
2502
2503 def Brightened(self, aFactor):
2504 r"""Brightened(COLOR4D self, double aFactor) -> COLOR4D"""
2505 return _pcbnew.COLOR4D_Brightened(self, aFactor)
2506
2507 def Darkened(self, aFactor):
2508 r"""Darkened(COLOR4D self, double aFactor) -> COLOR4D"""
2509 return _pcbnew.COLOR4D_Darkened(self, aFactor)
2510
2511 def Mix(self, aColor, aFactor):
2512 r"""Mix(COLOR4D self, COLOR4D aColor, double aFactor) -> COLOR4D"""
2513 return _pcbnew.COLOR4D_Mix(self, aColor, aFactor)
2514
2515 def WithAlpha(self, aAlpha):
2516 r"""WithAlpha(COLOR4D self, double aAlpha) -> COLOR4D"""
2517 return _pcbnew.COLOR4D_WithAlpha(self, aAlpha)
2518
2519 def Inverted(self):
2520 r"""Inverted(COLOR4D self) -> COLOR4D"""
2521 return _pcbnew.COLOR4D_Inverted(self)
2522
2523 def GetBrightness(self):
2524 r"""GetBrightness(COLOR4D self) -> double"""
2525 return _pcbnew.COLOR4D_GetBrightness(self)
2526
2527 def ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue=False):
2528 r"""ToHSV(COLOR4D self, double & aOutHue, double & aOutSaturation, double & aOutValue, bool aAlwaysDefineHue=False)"""
2529 return _pcbnew.COLOR4D_ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue)
2530
2531 def FromHSV(self, aInH, aInS, aInV):
2532 r"""FromHSV(COLOR4D self, double aInH, double aInS, double aInV)"""
2533 return _pcbnew.COLOR4D_FromHSV(self, aInH, aInS, aInV)
2534
2535 def Distance(self, other):
2536 r"""Distance(COLOR4D self, COLOR4D other) -> double"""
2537 return _pcbnew.COLOR4D_Distance(self, other)
2538
2539 def Compare(self, aRhs):
2540 r"""Compare(COLOR4D self, COLOR4D aRhs) -> int"""
2541 return _pcbnew.COLOR4D_Compare(self, aRhs)
2542
2543 @staticmethod
2544 def FindNearestLegacyColor(aR, aG, aB):
2545 r"""FindNearestLegacyColor(int aR, int aG, int aB) -> EDA_COLOR_T"""
2546 return _pcbnew.COLOR4D_FindNearestLegacyColor(aR, aG, aB)
2547 r = property(_pcbnew.COLOR4D_r_get, _pcbnew.COLOR4D_r_set, doc=r"""r : double""")
2548 g = property(_pcbnew.COLOR4D_g_get, _pcbnew.COLOR4D_g_set, doc=r"""g : double""")
2549 b = property(_pcbnew.COLOR4D_b_get, _pcbnew.COLOR4D_b_set, doc=r"""b : double""")
2550 a = property(_pcbnew.COLOR4D_a_get, _pcbnew.COLOR4D_a_set, doc=r"""a : double""")
2551 __swig_destroy__ = _pcbnew.delete_COLOR4D
2552
2553# Register COLOR4D in _pcbnew:
2554_pcbnew.COLOR4D_swigregister(COLOR4D)
2555
2557 r"""COLOR4D_FindNearestLegacyColor(int aR, int aG, int aB) -> EDA_COLOR_T"""
2558 return _pcbnew.COLOR4D_FindNearestLegacyColor(aR, aG, aB)
2559COLOR4D.UNSPECIFIED = _pcbnew.cvar.COLOR4D_UNSPECIFIED
2560COLOR4D.WHITE = _pcbnew.cvar.COLOR4D_WHITE
2561COLOR4D.BLACK = _pcbnew.cvar.COLOR4D_BLACK
2562COLOR4D.CLEAR = _pcbnew.cvar.COLOR4D_CLEAR
2563
2564
2565def __eq__(lhs, rhs):
2566 r"""__eq__(COLOR4D lhs, COLOR4D rhs) -> bool"""
2567 return _pcbnew.__eq__(lhs, rhs)
2568
2569def __ne__(lhs, rhs):
2570 r"""__ne__(COLOR4D lhs, COLOR4D rhs) -> bool"""
2571 return _pcbnew.__ne__(lhs, rhs)
2572
2573def __lt__(lhs, rhs):
2574 r"""__lt__(COLOR4D lhs, COLOR4D rhs) -> bool"""
2575 return _pcbnew.__lt__(lhs, rhs)
2576
2577def __lshift__(aStream, aColor):
2578 r"""__lshift__(std::ostream & aStream, COLOR4D aColor) -> std::ostream &"""
2579 return _pcbnew.__lshift__(aStream, aColor)
2581 r"""Proxy of C++ MARKER_BASE class."""
2582
2583 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2584
2585 def __init__(self, *args, **kwargs):
2586 raise AttributeError("No constructor defined - class is abstract")
2587 __repr__ = _swig_repr
2588 MARKER_UNSPEC = _pcbnew.MARKER_BASE_MARKER_UNSPEC
2589
2590 MARKER_ERC = _pcbnew.MARKER_BASE_MARKER_ERC
2591
2592 MARKER_DRC = _pcbnew.MARKER_BASE_MARKER_DRC
2593
2594 MARKER_DRAWING_SHEET = _pcbnew.MARKER_BASE_MARKER_DRAWING_SHEET
2595
2596 MARKER_RATSNEST = _pcbnew.MARKER_BASE_MARKER_RATSNEST
2597
2598 MARKER_PARITY = _pcbnew.MARKER_BASE_MARKER_PARITY
2599
2600 MARKER_SIMUL = _pcbnew.MARKER_BASE_MARKER_SIMUL
2601
2602 __swig_destroy__ = _pcbnew.delete_MARKER_BASE
2603
2604 def MarkerScale(self):
2605 r"""MarkerScale(MARKER_BASE self) -> int"""
2606 return _pcbnew.MARKER_BASE_MarkerScale(self)
2607
2608 def SetMarkerScale(self, aScale):
2609 r"""SetMarkerScale(MARKER_BASE self, int aScale)"""
2610 return _pcbnew.MARKER_BASE_SetMarkerScale(self, aScale)
2611
2612 def ShapeToPolygon(self, aPolygon, aScale=-1):
2613 r"""ShapeToPolygon(MARKER_BASE self, SHAPE_LINE_CHAIN aPolygon, int aScale=-1)"""
2614 return _pcbnew.MARKER_BASE_ShapeToPolygon(self, aPolygon, aScale)
2615
2616 def PrintMarker(self, aSettings, aOffset):
2617 r"""PrintMarker(MARKER_BASE self, RENDER_SETTINGS const * aSettings, VECTOR2I aOffset)"""
2618 return _pcbnew.MARKER_BASE_PrintMarker(self, aSettings, aOffset)
2619
2620 def GetPos(self):
2621 r"""GetPos(MARKER_BASE self) -> VECTOR2I"""
2622 return _pcbnew.MARKER_BASE_GetPos(self)
2623
2624 def GetUUID(self):
2625 r"""GetUUID(MARKER_BASE self) -> KIID"""
2626 return _pcbnew.MARKER_BASE_GetUUID(self)
2627
2628 def SetMarkerType(self, aMarkerType):
2629 r"""SetMarkerType(MARKER_BASE self, enum MARKER_BASE::MARKER_T aMarkerType)"""
2630 return _pcbnew.MARKER_BASE_SetMarkerType(self, aMarkerType)
2631
2632 def GetMarkerType(self):
2633 r"""GetMarkerType(MARKER_BASE self) -> enum MARKER_BASE::MARKER_T"""
2634 return _pcbnew.MARKER_BASE_GetMarkerType(self)
2635
2636 def IsExcluded(self):
2637 r"""IsExcluded(MARKER_BASE self) -> bool"""
2638 return _pcbnew.MARKER_BASE_IsExcluded(self)
2639
2640 def SetExcluded(self, *args):
2641 r"""SetExcluded(MARKER_BASE self, bool aExcluded, wxString aComment=wxEmptyString)"""
2642 return _pcbnew.MARKER_BASE_SetExcluded(self, *args)
2643
2644 def GetComment(self):
2645 r"""GetComment(MARKER_BASE self) -> wxString"""
2646 return _pcbnew.MARKER_BASE_GetComment(self)
2647
2648 def GetSeverity(self):
2649 r"""GetSeverity(MARKER_BASE self) -> SEVERITY"""
2650 return _pcbnew.MARKER_BASE_GetSeverity(self)
2651
2652 def GetRCItem(self):
2653 r"""GetRCItem(MARKER_BASE self) -> std::shared_ptr< RC_ITEM >"""
2654 return _pcbnew.MARKER_BASE_GetRCItem(self)
2655
2656 def HitTestMarker(self, aHitPosition, aAccuracy):
2657 r"""HitTestMarker(MARKER_BASE self, VECTOR2I aHitPosition, int aAccuracy) -> bool"""
2658 return _pcbnew.MARKER_BASE_HitTestMarker(self, aHitPosition, aAccuracy)
2659
2661 r"""GetBoundingBoxMarker(MARKER_BASE self) -> BOX2I"""
2662 return _pcbnew.MARKER_BASE_GetBoundingBoxMarker(self)
2663 m_Pos = property(_pcbnew.MARKER_BASE_m_Pos_get, _pcbnew.MARKER_BASE_m_Pos_set, doc=r"""m_Pos : VECTOR2I""")
2664
2665# Register MARKER_BASE in _pcbnew:
2666_pcbnew.MARKER_BASE_swigregister(MARKER_BASE)
2667
2668TEXT_MIN_SIZE_MILS = _pcbnew.TEXT_MIN_SIZE_MILS
2669
2670TEXT_MAX_SIZE_MILS = _pcbnew.TEXT_MAX_SIZE_MILS
2671
2672CTL_OMIT_HIDE = _pcbnew.CTL_OMIT_HIDE
2673
2674DEFAULT_SIZE_TEXT = _pcbnew.DEFAULT_SIZE_TEXT
2675
2677 r"""Proxy of C++ EDA_TEXT class."""
2678
2679 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2680 __repr__ = _swig_repr
2681
2682 def __init__(self, *args):
2683 r"""
2684 __init__(EDA_TEXT self, EDA_IU_SCALE aIuScale, wxString aText=wxEmptyString) -> EDA_TEXT
2685 __init__(EDA_TEXT self, EDA_TEXT aText) -> EDA_TEXT
2686 """
2687 _pcbnew.EDA_TEXT_swiginit(self, _pcbnew.new_EDA_TEXT(*args))
2688 __swig_destroy__ = _pcbnew.delete_EDA_TEXT
2689
2690 def GetText(self):
2691 r"""GetText(EDA_TEXT self) -> wxString"""
2692 return _pcbnew.EDA_TEXT_GetText(self)
2693
2694 def GetShownText(self, aAllowExtraText, aDepth=0):
2695 r"""GetShownText(EDA_TEXT self, bool aAllowExtraText, int aDepth=0) -> wxString"""
2696 return _pcbnew.EDA_TEXT_GetShownText(self, aAllowExtraText, aDepth)
2697
2698 def HasTextVars(self):
2699 r"""HasTextVars(EDA_TEXT self) -> bool"""
2700 return _pcbnew.EDA_TEXT_HasTextVars(self)
2701
2702 def SetText(self, aText):
2703 r"""SetText(EDA_TEXT self, wxString aText)"""
2704 return _pcbnew.EDA_TEXT_SetText(self, aText)
2705
2706 def SetTextThickness(self, aWidth):
2707 r"""SetTextThickness(EDA_TEXT self, int aWidth)"""
2708 return _pcbnew.EDA_TEXT_SetTextThickness(self, aWidth)
2709
2711 r"""GetTextThickness(EDA_TEXT self) -> int"""
2712 return _pcbnew.EDA_TEXT_GetTextThickness(self)
2713
2714 def GetEffectiveTextPenWidth(self, aDefaultPenWidth=0):
2715 r"""GetEffectiveTextPenWidth(EDA_TEXT self, int aDefaultPenWidth=0) -> int"""
2716 return _pcbnew.EDA_TEXT_GetEffectiveTextPenWidth(self, aDefaultPenWidth)
2717
2718 def SetTextAngle(self, aAngle):
2719 r"""SetTextAngle(EDA_TEXT self, EDA_ANGLE aAngle)"""
2720 return _pcbnew.EDA_TEXT_SetTextAngle(self, aAngle)
2721
2722 def GetTextAngle(self):
2723 r"""GetTextAngle(EDA_TEXT self) -> EDA_ANGLE"""
2724 return _pcbnew.EDA_TEXT_GetTextAngle(self)
2725
2726 def SetTextAngleDegrees(self, aOrientation):
2727 r"""SetTextAngleDegrees(EDA_TEXT self, double aOrientation)"""
2728 return _pcbnew.EDA_TEXT_SetTextAngleDegrees(self, aOrientation)
2729
2731 r"""GetTextAngleDegrees(EDA_TEXT self) -> double"""
2732 return _pcbnew.EDA_TEXT_GetTextAngleDegrees(self)
2733
2734 def SetItalic(self, aItalic):
2735 r"""SetItalic(EDA_TEXT self, bool aItalic)"""
2736 return _pcbnew.EDA_TEXT_SetItalic(self, aItalic)
2737
2738 def IsItalic(self):
2739 r"""IsItalic(EDA_TEXT self) -> bool"""
2740 return _pcbnew.EDA_TEXT_IsItalic(self)
2741
2742 def SetBold(self, aBold):
2743 r"""SetBold(EDA_TEXT self, bool aBold)"""
2744 return _pcbnew.EDA_TEXT_SetBold(self, aBold)
2745
2746 def SetBoldFlag(self, aBold):
2747 r"""SetBoldFlag(EDA_TEXT self, bool aBold)"""
2748 return _pcbnew.EDA_TEXT_SetBoldFlag(self, aBold)
2749
2750 def IsBold(self):
2751 r"""IsBold(EDA_TEXT self) -> bool"""
2752 return _pcbnew.EDA_TEXT_IsBold(self)
2753
2754 def SetVisible(self, aVisible):
2755 r"""SetVisible(EDA_TEXT self, bool aVisible)"""
2756 return _pcbnew.EDA_TEXT_SetVisible(self, aVisible)
2757
2758 def IsVisible(self):
2759 r"""IsVisible(EDA_TEXT self) -> bool"""
2760 return _pcbnew.EDA_TEXT_IsVisible(self)
2761
2762 def SetMirrored(self, isMirrored):
2763 r"""SetMirrored(EDA_TEXT self, bool isMirrored)"""
2764 return _pcbnew.EDA_TEXT_SetMirrored(self, isMirrored)
2765
2766 def IsMirrored(self):
2767 r"""IsMirrored(EDA_TEXT self) -> bool"""
2768 return _pcbnew.EDA_TEXT_IsMirrored(self)
2769
2770 def SetMultilineAllowed(self, aAllow):
2771 r"""SetMultilineAllowed(EDA_TEXT self, bool aAllow)"""
2772 return _pcbnew.EDA_TEXT_SetMultilineAllowed(self, aAllow)
2773
2775 r"""IsMultilineAllowed(EDA_TEXT self) -> bool"""
2776 return _pcbnew.EDA_TEXT_IsMultilineAllowed(self)
2777
2778 def SetHorizJustify(self, aType):
2779 r"""SetHorizJustify(EDA_TEXT self, GR_TEXT_H_ALIGN_T aType)"""
2780 return _pcbnew.EDA_TEXT_SetHorizJustify(self, aType)
2781
2783 r"""GetHorizJustify(EDA_TEXT self) -> GR_TEXT_H_ALIGN_T"""
2784 return _pcbnew.EDA_TEXT_GetHorizJustify(self)
2785
2786 def SetVertJustify(self, aType):
2787 r"""SetVertJustify(EDA_TEXT self, GR_TEXT_V_ALIGN_T aType)"""
2788 return _pcbnew.EDA_TEXT_SetVertJustify(self, aType)
2789
2791 r"""GetVertJustify(EDA_TEXT self) -> GR_TEXT_V_ALIGN_T"""
2792 return _pcbnew.EDA_TEXT_GetVertJustify(self)
2793
2794 def SetKeepUpright(self, aKeepUpright):
2795 r"""SetKeepUpright(EDA_TEXT self, bool aKeepUpright)"""
2796 return _pcbnew.EDA_TEXT_SetKeepUpright(self, aKeepUpright)
2797
2798 def IsKeepUpright(self):
2799 r"""IsKeepUpright(EDA_TEXT self) -> bool"""
2800 return _pcbnew.EDA_TEXT_IsKeepUpright(self)
2801
2802 def FlipHJustify(self):
2803 r"""FlipHJustify(EDA_TEXT self)"""
2804 return _pcbnew.EDA_TEXT_FlipHJustify(self)
2805
2806 def SwapAttributes(self, aTradingPartner):
2807 r"""SwapAttributes(EDA_TEXT self, EDA_TEXT aTradingPartner)"""
2808 return _pcbnew.EDA_TEXT_SwapAttributes(self, aTradingPartner)
2809
2810 def SwapText(self, aTradingPartner):
2811 r"""SwapText(EDA_TEXT self, EDA_TEXT aTradingPartner)"""
2812 return _pcbnew.EDA_TEXT_SwapText(self, aTradingPartner)
2813
2814 def CopyText(self, aSrc):
2815 r"""CopyText(EDA_TEXT self, EDA_TEXT aSrc)"""
2816 return _pcbnew.EDA_TEXT_CopyText(self, aSrc)
2817
2818 def SetAttributes(self, *args):
2819 r"""
2820 SetAttributes(EDA_TEXT self, EDA_TEXT aSrc, bool aSetPosition=True)
2821 SetAttributes(EDA_TEXT self, TEXT_ATTRIBUTES aTextAttrs)
2822 """
2823 return _pcbnew.EDA_TEXT_SetAttributes(self, *args)
2824
2825 def GetAttributes(self):
2826 r"""GetAttributes(EDA_TEXT self) -> TEXT_ATTRIBUTES"""
2827 return _pcbnew.EDA_TEXT_GetAttributes(self)
2828
2829 def Replace(self, aSearchData):
2830 r"""Replace(EDA_TEXT self, EDA_SEARCH_DATA const & aSearchData) -> bool"""
2831 return _pcbnew.EDA_TEXT_Replace(self, aSearchData)
2832
2834 r"""IsDefaultFormatting(EDA_TEXT self) -> bool"""
2835 return _pcbnew.EDA_TEXT_IsDefaultFormatting(self)
2836
2837 def SetFont(self, aFont):
2838 r"""SetFont(EDA_TEXT self, KIFONT::FONT * aFont)"""
2839 return _pcbnew.EDA_TEXT_SetFont(self, aFont)
2840
2841 def GetFont(self):
2842 r"""GetFont(EDA_TEXT self) -> KIFONT::FONT *"""
2843 return _pcbnew.EDA_TEXT_GetFont(self)
2844
2845 def GetFontName(self):
2846 r"""GetFontName(EDA_TEXT self) -> wxString"""
2847 return _pcbnew.EDA_TEXT_GetFontName(self)
2848
2849 def SetFontIndex(self, aIdx):
2850 r"""SetFontIndex(EDA_TEXT self, int aIdx)"""
2851 return _pcbnew.EDA_TEXT_SetFontIndex(self, aIdx)
2852
2853 def GetFontIndex(self):
2854 r"""GetFontIndex(EDA_TEXT self) -> int"""
2855 return _pcbnew.EDA_TEXT_GetFontIndex(self)
2856
2857 def SetLineSpacing(self, aLineSpacing):
2858 r"""SetLineSpacing(EDA_TEXT self, double aLineSpacing)"""
2859 return _pcbnew.EDA_TEXT_SetLineSpacing(self, aLineSpacing)
2860
2862 r"""GetLineSpacing(EDA_TEXT self) -> double"""
2863 return _pcbnew.EDA_TEXT_GetLineSpacing(self)
2864
2865 def SetTextSize(self, aNewSize, aEnforceMinTextSize=True):
2866 r"""SetTextSize(EDA_TEXT self, VECTOR2I aNewSize, bool aEnforceMinTextSize=True)"""
2867 return _pcbnew.EDA_TEXT_SetTextSize(self, aNewSize, aEnforceMinTextSize)
2868
2869 def GetTextSize(self):
2870 r"""GetTextSize(EDA_TEXT self) -> VECTOR2I"""
2871 return _pcbnew.EDA_TEXT_GetTextSize(self)
2872
2873 def SetTextWidth(self, aWidth):
2874 r"""SetTextWidth(EDA_TEXT self, int aWidth)"""
2875 return _pcbnew.EDA_TEXT_SetTextWidth(self, aWidth)
2876
2877 def GetTextWidth(self):
2878 r"""GetTextWidth(EDA_TEXT self) -> int"""
2879 return _pcbnew.EDA_TEXT_GetTextWidth(self)
2880
2881 def SetTextHeight(self, aHeight):
2882 r"""SetTextHeight(EDA_TEXT self, int aHeight)"""
2883 return _pcbnew.EDA_TEXT_SetTextHeight(self, aHeight)
2884
2885 def GetTextHeight(self):
2886 r"""GetTextHeight(EDA_TEXT self) -> int"""
2887 return _pcbnew.EDA_TEXT_GetTextHeight(self)
2888
2889 def SetTextColor(self, aColor):
2890 r"""SetTextColor(EDA_TEXT self, COLOR4D aColor)"""
2891 return _pcbnew.EDA_TEXT_SetTextColor(self, aColor)
2892
2893 def GetTextColor(self):
2894 r"""GetTextColor(EDA_TEXT self) -> COLOR4D"""
2895 return _pcbnew.EDA_TEXT_GetTextColor(self)
2896
2897 def SetTextPos(self, aPoint):
2898 r"""SetTextPos(EDA_TEXT self, VECTOR2I aPoint)"""
2899 return _pcbnew.EDA_TEXT_SetTextPos(self, aPoint)
2900
2901 def GetTextPos(self):
2902 r"""GetTextPos(EDA_TEXT self) -> VECTOR2I"""
2903 return _pcbnew.EDA_TEXT_GetTextPos(self)
2904
2905 def SetTextX(self, aX):
2906 r"""SetTextX(EDA_TEXT self, int aX)"""
2907 return _pcbnew.EDA_TEXT_SetTextX(self, aX)
2908
2909 def SetTextY(self, aY):
2910 r"""SetTextY(EDA_TEXT self, int aY)"""
2911 return _pcbnew.EDA_TEXT_SetTextY(self, aY)
2912
2913 def Offset(self, aOffset):
2914 r"""Offset(EDA_TEXT self, VECTOR2I aOffset)"""
2915 return _pcbnew.EDA_TEXT_Offset(self, aOffset)
2916
2917 def Empty(self):
2918 r"""Empty(EDA_TEXT self)"""
2919 return _pcbnew.EDA_TEXT_Empty(self)
2920
2921 @staticmethod
2922 def MapHorizJustify(aHorizJustify):
2923 r"""MapHorizJustify(int aHorizJustify) -> GR_TEXT_H_ALIGN_T"""
2924 return _pcbnew.EDA_TEXT_MapHorizJustify(aHorizJustify)
2925
2926 @staticmethod
2927 def MapVertJustify(aVertJustify):
2928 r"""MapVertJustify(int aVertJustify) -> GR_TEXT_V_ALIGN_T"""
2929 return _pcbnew.EDA_TEXT_MapVertJustify(aVertJustify)
2930
2931 def Print(self, aSettings, aOffset, aColor, aDisplay_mode=FILLED):
2932 r"""Print(EDA_TEXT self, RENDER_SETTINGS const * aSettings, VECTOR2I aOffset, COLOR4D aColor, OUTLINE_MODE aDisplay_mode=FILLED)"""
2933 return _pcbnew.EDA_TEXT_Print(self, aSettings, aOffset, aColor, aDisplay_mode)
2934
2935 def GetEffectiveTextShape(self, *args):
2936 r"""GetEffectiveTextShape(EDA_TEXT self, bool aTriangulate=True, BOX2I aBBox=BOX2I(), EDA_ANGLE aAngle=ANGLE_0) -> std::shared_ptr< SHAPE_COMPOUND >"""
2937 return _pcbnew.EDA_TEXT_GetEffectiveTextShape(self, *args)
2938
2939 def TextHitTest(self, *args):
2940 r"""
2941 TextHitTest(EDA_TEXT self, VECTOR2I aPoint, int aAccuracy=0) -> bool
2942 TextHitTest(EDA_TEXT self, BOX2I aRect, bool aContains, int aAccuracy=0) -> bool
2943 """
2944 return _pcbnew.EDA_TEXT_TextHitTest(self, *args)
2945
2946 def GetTextBox(self, aLine=-1, aInvertY=False):
2947 r"""GetTextBox(EDA_TEXT self, int aLine=-1, bool aInvertY=False) -> BOX2I"""
2948 return _pcbnew.EDA_TEXT_GetTextBox(self, aLine, aInvertY)
2949
2950 def GetInterline(self):
2951 r"""GetInterline(EDA_TEXT self) -> int"""
2952 return _pcbnew.EDA_TEXT_GetInterline(self)
2953
2955 r"""GetTextStyleName(EDA_TEXT self) -> wxString"""
2956 return _pcbnew.EDA_TEXT_GetTextStyleName(self)
2957
2958 def GetLinePositions(self, aPositions, aLineCount):
2959 r"""GetLinePositions(EDA_TEXT self, VECTOR_VECTOR2I aPositions, int aLineCount)"""
2960 return _pcbnew.EDA_TEXT_GetLinePositions(self, aPositions, aLineCount)
2961
2962 def Levenshtein(self, aOther):
2963 r"""Levenshtein(EDA_TEXT self, EDA_TEXT aOther) -> double"""
2964 return _pcbnew.EDA_TEXT_Levenshtein(self, aOther)
2965
2966 def Similarity(self, aOther):
2967 r"""Similarity(EDA_TEXT self, EDA_TEXT aOther) -> double"""
2968 return _pcbnew.EDA_TEXT_Similarity(self, aOther)
2969
2970 def Format(self, aFormatter, aNestLevel, aControlBits):
2971 r"""Format(EDA_TEXT self, OUTPUTFORMATTER aFormatter, int aNestLevel, int aControlBits)"""
2972 return _pcbnew.EDA_TEXT_Format(self, aFormatter, aNestLevel, aControlBits)
2973
2975 r"""GetDrawRotation(EDA_TEXT self) -> EDA_ANGLE"""
2976 return _pcbnew.EDA_TEXT_GetDrawRotation(self)
2977
2978 def GetDrawPos(self):
2979 r"""GetDrawPos(EDA_TEXT self) -> VECTOR2I"""
2980 return _pcbnew.EDA_TEXT_GetDrawPos(self)
2981
2983 r"""ClearRenderCache(EDA_TEXT self)"""
2984 return _pcbnew.EDA_TEXT_ClearRenderCache(self)
2985
2987 r"""ClearBoundingBoxCache(EDA_TEXT self)"""
2988 return _pcbnew.EDA_TEXT_ClearBoundingBoxCache(self)
2989
2990 def GetRenderCache(self, *args):
2991 r"""GetRenderCache(EDA_TEXT self, KIFONT::FONT const * aFont, wxString forResolvedText, VECTOR2I aOffset={ 0, 0 }) -> std::vector< std::unique_ptr< KIFONT::GLYPH >,std::allocator< std::unique_ptr< KIFONT::GLYPH > > >"""
2992 return _pcbnew.EDA_TEXT_GetRenderCache(self, *args)
2993
2994 def SetupRenderCache(self, aResolvedText, aAngle):
2995 r"""SetupRenderCache(EDA_TEXT self, wxString aResolvedText, EDA_ANGLE aAngle)"""
2996 return _pcbnew.EDA_TEXT_SetupRenderCache(self, aResolvedText, aAngle)
2997
2998 def AddRenderCacheGlyph(self, aPoly):
2999 r"""AddRenderCacheGlyph(EDA_TEXT self, SHAPE_POLY_SET aPoly)"""
3000 return _pcbnew.EDA_TEXT_AddRenderCacheGlyph(self, aPoly)
3001
3002 def Compare(self, aOther):
3003 r"""Compare(EDA_TEXT self, EDA_TEXT aOther) -> int"""
3004 return _pcbnew.EDA_TEXT_Compare(self, aOther)
3005
3006 def __eq__(self, aRhs):
3007 r"""__eq__(EDA_TEXT self, EDA_TEXT aRhs) -> bool"""
3008 return _pcbnew.EDA_TEXT___eq__(self, aRhs)
3009
3010 def __lt__(self, aRhs):
3011 r"""__lt__(EDA_TEXT self, EDA_TEXT aRhs) -> bool"""
3012 return _pcbnew.EDA_TEXT___lt__(self, aRhs)
3013
3014 def __gt__(self, aRhs):
3015 r"""__gt__(EDA_TEXT self, EDA_TEXT aRhs) -> bool"""
3016 return _pcbnew.EDA_TEXT___gt__(self, aRhs)
3017
3018 def HasHyperlink(self):
3019 r"""HasHyperlink(EDA_TEXT self) -> bool"""
3020 return _pcbnew.EDA_TEXT_HasHyperlink(self)
3021
3022 def GetHyperlink(self):
3023 r"""GetHyperlink(EDA_TEXT self) -> wxString"""
3024 return _pcbnew.EDA_TEXT_GetHyperlink(self)
3025
3026 def SetHyperlink(self, aLink):
3027 r"""SetHyperlink(EDA_TEXT self, wxString aLink)"""
3028 return _pcbnew.EDA_TEXT_SetHyperlink(self, aLink)
3029
3031 r"""RemoveHyperlink(EDA_TEXT self)"""
3032 return _pcbnew.EDA_TEXT_RemoveHyperlink(self)
3033
3034 @staticmethod
3036 r"""ValidateHyperlink(wxString aURL) -> bool"""
3037 return _pcbnew.EDA_TEXT_ValidateHyperlink(aURL)
3038
3039 @staticmethod
3040 def IsGotoPageHref(aHref, aDestination=None):
3041 r"""IsGotoPageHref(wxString aHref, wxString aDestination=None) -> bool"""
3042 return _pcbnew.EDA_TEXT_IsGotoPageHref(aHref, aDestination)
3043
3044 @staticmethod
3045 def GotoPageHref(aDestination):
3046 r"""GotoPageHref(wxString aDestination) -> wxString"""
3047 return _pcbnew.EDA_TEXT_GotoPageHref(aDestination)
3048
3049# Register EDA_TEXT in _pcbnew:
3050_pcbnew.EDA_TEXT_swigregister(EDA_TEXT)
3051
3052def EDA_TEXT_MapHorizJustify(aHorizJustify):
3053 r"""EDA_TEXT_MapHorizJustify(int aHorizJustify) -> GR_TEXT_H_ALIGN_T"""
3054 return _pcbnew.EDA_TEXT_MapHorizJustify(aHorizJustify)
3055
3056def EDA_TEXT_MapVertJustify(aVertJustify):
3057 r"""EDA_TEXT_MapVertJustify(int aVertJustify) -> GR_TEXT_V_ALIGN_T"""
3058 return _pcbnew.EDA_TEXT_MapVertJustify(aVertJustify)
3059
3061 r"""EDA_TEXT_ValidateHyperlink(wxString aURL) -> bool"""
3062 return _pcbnew.EDA_TEXT_ValidateHyperlink(aURL)
3063
3064def EDA_TEXT_IsGotoPageHref(aHref, aDestination=None):
3065 r"""EDA_TEXT_IsGotoPageHref(wxString aHref, wxString aDestination=None) -> bool"""
3066 return _pcbnew.EDA_TEXT_IsGotoPageHref(aHref, aDestination)
3067
3068def EDA_TEXT_GotoPageHref(aDestination):
3069 r"""EDA_TEXT_GotoPageHref(wxString aDestination) -> wxString"""
3070 return _pcbnew.EDA_TEXT_GotoPageHref(aDestination)
3071
3072
3074 r"""GetBuildVersion() -> wxString"""
3075 return _pcbnew.GetBuildVersion()
3076
3078 r"""GetPlatformGetBitnessName() -> wxString"""
3079 return _pcbnew.GetPlatformGetBitnessName()
3080
3082 r"""GetSemanticVersion() -> wxString"""
3083 return _pcbnew.GetSemanticVersion()
3084
3086 r"""GetMajorMinorVersion() -> wxString"""
3087 return _pcbnew.GetMajorMinorVersion()
3088
3090 r"""GetMajorMinorPatchVersion() -> wxString"""
3091 return _pcbnew.GetMajorMinorPatchVersion()
3092
3094 r"""GetBuildDate() -> wxString"""
3095 return _pcbnew.GetBuildDate()
3096
3098 r"""GetCommitHash() -> wxString"""
3099 return _pcbnew.GetCommitHash()
3100
3102 r"""GetMajorMinorPatchTuple() -> std::tuple< int,int,int > const &"""
3103 return _pcbnew.GetMajorMinorPatchTuple()
3104
3106 r"""IsNightlyVersion() -> bool"""
3107 return _pcbnew.IsNightlyVersion()
3108
3109def GetVersionInfoData(aTitle, aHtml=False, aBrief=False):
3110 r"""GetVersionInfoData(wxString aTitle, bool aHtml=False, bool aBrief=False) -> wxString"""
3111 return _pcbnew.GetVersionInfoData(aTitle, aHtml, aBrief)
3112UNDEFINED_LAYER = _pcbnew.UNDEFINED_LAYER
3113
3114UNSELECTED_LAYER = _pcbnew.UNSELECTED_LAYER
3115
3116PCBNEW_LAYER_ID_START = _pcbnew.PCBNEW_LAYER_ID_START
3117
3118F_Cu = _pcbnew.F_Cu
3119
3120In1_Cu = _pcbnew.In1_Cu
3121
3122In2_Cu = _pcbnew.In2_Cu
3123
3124In3_Cu = _pcbnew.In3_Cu
3125
3126In4_Cu = _pcbnew.In4_Cu
3127
3128In5_Cu = _pcbnew.In5_Cu
3129
3130In6_Cu = _pcbnew.In6_Cu
3131
3132In7_Cu = _pcbnew.In7_Cu
3133
3134In8_Cu = _pcbnew.In8_Cu
3135
3136In9_Cu = _pcbnew.In9_Cu
3137
3138In10_Cu = _pcbnew.In10_Cu
3139
3140In11_Cu = _pcbnew.In11_Cu
3141
3142In12_Cu = _pcbnew.In12_Cu
3143
3144In13_Cu = _pcbnew.In13_Cu
3145
3146In14_Cu = _pcbnew.In14_Cu
3147
3148In15_Cu = _pcbnew.In15_Cu
3149
3150In16_Cu = _pcbnew.In16_Cu
3151
3152In17_Cu = _pcbnew.In17_Cu
3153
3154In18_Cu = _pcbnew.In18_Cu
3155
3156In19_Cu = _pcbnew.In19_Cu
3157
3158In20_Cu = _pcbnew.In20_Cu
3159
3160In21_Cu = _pcbnew.In21_Cu
3161
3162In22_Cu = _pcbnew.In22_Cu
3163
3164In23_Cu = _pcbnew.In23_Cu
3165
3166In24_Cu = _pcbnew.In24_Cu
3167
3168In25_Cu = _pcbnew.In25_Cu
3169
3170In26_Cu = _pcbnew.In26_Cu
3171
3172In27_Cu = _pcbnew.In27_Cu
3173
3174In28_Cu = _pcbnew.In28_Cu
3175
3176In29_Cu = _pcbnew.In29_Cu
3177
3178In30_Cu = _pcbnew.In30_Cu
3179
3180B_Cu = _pcbnew.B_Cu
3181
3182B_Adhes = _pcbnew.B_Adhes
3183
3184F_Adhes = _pcbnew.F_Adhes
3185
3186B_Paste = _pcbnew.B_Paste
3187
3188F_Paste = _pcbnew.F_Paste
3189
3190B_SilkS = _pcbnew.B_SilkS
3191
3192F_SilkS = _pcbnew.F_SilkS
3193
3194B_Mask = _pcbnew.B_Mask
3195
3196F_Mask = _pcbnew.F_Mask
3197
3198Dwgs_User = _pcbnew.Dwgs_User
3199
3200Cmts_User = _pcbnew.Cmts_User
3201
3202Eco1_User = _pcbnew.Eco1_User
3203
3204Eco2_User = _pcbnew.Eco2_User
3205
3206Edge_Cuts = _pcbnew.Edge_Cuts
3207
3208Margin = _pcbnew.Margin
3209
3210B_CrtYd = _pcbnew.B_CrtYd
3211
3212F_CrtYd = _pcbnew.F_CrtYd
3213
3214B_Fab = _pcbnew.B_Fab
3215
3216F_Fab = _pcbnew.F_Fab
3217
3218User_1 = _pcbnew.User_1
3219
3220User_2 = _pcbnew.User_2
3221
3222User_3 = _pcbnew.User_3
3223
3224User_4 = _pcbnew.User_4
3225
3226User_5 = _pcbnew.User_5
3227
3228User_6 = _pcbnew.User_6
3229
3230User_7 = _pcbnew.User_7
3231
3232User_8 = _pcbnew.User_8
3233
3234User_9 = _pcbnew.User_9
3235
3236Rescue = _pcbnew.Rescue
3237
3238PCB_LAYER_ID_COUNT = _pcbnew.PCB_LAYER_ID_COUNT
3239
3240FLASHING_DEFAULT = _pcbnew.FLASHING_DEFAULT
3241
3242FLASHING_ALWAYS_FLASHED = _pcbnew.FLASHING_ALWAYS_FLASHED
3243
3244FLASHING_NEVER_FLASHED = _pcbnew.FLASHING_NEVER_FLASHED
3245
3246NETNAMES_LAYER_ID_START = _pcbnew.NETNAMES_LAYER_ID_START
3247
3248NETNAMES_LAYER_ID_RESERVED = _pcbnew.NETNAMES_LAYER_ID_RESERVED
3249
3250LAYER_PAD_FR_NETNAMES = _pcbnew.LAYER_PAD_FR_NETNAMES
3251
3252LAYER_PAD_BK_NETNAMES = _pcbnew.LAYER_PAD_BK_NETNAMES
3253
3254LAYER_PAD_NETNAMES = _pcbnew.LAYER_PAD_NETNAMES
3255
3256LAYER_VIA_NETNAMES = _pcbnew.LAYER_VIA_NETNAMES
3257
3258NETNAMES_LAYER_ID_END = _pcbnew.NETNAMES_LAYER_ID_END
3259
3260GAL_UI_LAYER_COUNT = _pcbnew.GAL_UI_LAYER_COUNT
3261
3262GAL_LAYER_ID_START = _pcbnew.GAL_LAYER_ID_START
3263
3264LAYER_VIAS = _pcbnew.LAYER_VIAS
3265
3266LAYER_VIA_MICROVIA = _pcbnew.LAYER_VIA_MICROVIA
3267
3268LAYER_VIA_BBLIND = _pcbnew.LAYER_VIA_BBLIND
3269
3270LAYER_VIA_THROUGH = _pcbnew.LAYER_VIA_THROUGH
3271
3272LAYER_NON_PLATEDHOLES = _pcbnew.LAYER_NON_PLATEDHOLES
3273
3274LAYER_FP_TEXT = _pcbnew.LAYER_FP_TEXT
3275
3276LAYER_HIDDEN_TEXT = _pcbnew.LAYER_HIDDEN_TEXT
3277
3278LAYER_ANCHOR = _pcbnew.LAYER_ANCHOR
3279
3280LAYER_PADS_SMD_FR = _pcbnew.LAYER_PADS_SMD_FR
3281
3282LAYER_PADS_SMD_BK = _pcbnew.LAYER_PADS_SMD_BK
3283
3284LAYER_RATSNEST = _pcbnew.LAYER_RATSNEST
3285
3286LAYER_GRID = _pcbnew.LAYER_GRID
3287
3288LAYER_GRID_AXES = _pcbnew.LAYER_GRID_AXES
3289
3290LAYER_FOOTPRINTS_FR = _pcbnew.LAYER_FOOTPRINTS_FR
3291
3292LAYER_FOOTPRINTS_BK = _pcbnew.LAYER_FOOTPRINTS_BK
3293
3294LAYER_FP_VALUES = _pcbnew.LAYER_FP_VALUES
3295
3296LAYER_FP_REFERENCES = _pcbnew.LAYER_FP_REFERENCES
3297
3298LAYER_TRACKS = _pcbnew.LAYER_TRACKS
3299
3300LAYER_PADS_TH = _pcbnew.LAYER_PADS_TH
3301
3302LAYER_PAD_PLATEDHOLES = _pcbnew.LAYER_PAD_PLATEDHOLES
3303
3304LAYER_VIA_HOLES = _pcbnew.LAYER_VIA_HOLES
3305
3306LAYER_DRC_ERROR = _pcbnew.LAYER_DRC_ERROR
3307
3308LAYER_DRAWINGSHEET = _pcbnew.LAYER_DRAWINGSHEET
3309
3310LAYER_GP_OVERLAY = _pcbnew.LAYER_GP_OVERLAY
3311
3312LAYER_SELECT_OVERLAY = _pcbnew.LAYER_SELECT_OVERLAY
3313
3314LAYER_PCB_BACKGROUND = _pcbnew.LAYER_PCB_BACKGROUND
3315
3316LAYER_CURSOR = _pcbnew.LAYER_CURSOR
3317
3318LAYER_AUX_ITEMS = _pcbnew.LAYER_AUX_ITEMS
3319
3320LAYER_DRAW_BITMAPS = _pcbnew.LAYER_DRAW_BITMAPS
3321
3322GAL_LAYER_ID_BITMASK_END = _pcbnew.GAL_LAYER_ID_BITMASK_END
3323
3324LAYER_PADS = _pcbnew.LAYER_PADS
3325
3326LAYER_ZONES = _pcbnew.LAYER_ZONES
3327
3328LAYER_PAD_HOLEWALLS = _pcbnew.LAYER_PAD_HOLEWALLS
3329
3330LAYER_VIA_HOLEWALLS = _pcbnew.LAYER_VIA_HOLEWALLS
3331
3332LAYER_DRC_WARNING = _pcbnew.LAYER_DRC_WARNING
3333
3334LAYER_DRC_EXCLUSION = _pcbnew.LAYER_DRC_EXCLUSION
3335
3336LAYER_MARKER_SHADOWS = _pcbnew.LAYER_MARKER_SHADOWS
3337
3338LAYER_LOCKED_ITEM_SHADOW = _pcbnew.LAYER_LOCKED_ITEM_SHADOW
3339
3340LAYER_CONFLICTS_SHADOW = _pcbnew.LAYER_CONFLICTS_SHADOW
3341
3342LAYER_DRAWINGSHEET_PAGE1 = _pcbnew.LAYER_DRAWINGSHEET_PAGE1
3343
3344LAYER_DRAWINGSHEET_PAGEn = _pcbnew.LAYER_DRAWINGSHEET_PAGEn
3345
3346LAYER_PAGE_LIMITS = _pcbnew.LAYER_PAGE_LIMITS
3347
3348LAYER_ZONE_START = _pcbnew.LAYER_ZONE_START
3349
3350LAYER_ZONE_END = _pcbnew.LAYER_ZONE_END
3351
3352LAYER_BITMAP_START = _pcbnew.LAYER_BITMAP_START
3353
3354LAYER_BITMAP_END = _pcbnew.LAYER_BITMAP_END
3355
3356LAYER_UI_START = _pcbnew.LAYER_UI_START
3357
3358LAYER_UI_END = _pcbnew.LAYER_UI_END
3359
3360GAL_LAYER_ID_END = _pcbnew.GAL_LAYER_ID_END
3361
3362
3363def ToGalLayer(aInteger):
3364 r"""ToGalLayer(int aInteger) -> GAL_LAYER_ID"""
3365 return _pcbnew.ToGalLayer(aInteger)
3367 r"""Proxy of C++ GAL_SET class."""
3368
3369 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3370 __repr__ = _swig_repr
3371
3372 def __init__(self, *args):
3373 r"""
3374 __init__(GAL_SET self) -> GAL_SET
3375 __init__(GAL_SET self, GAL_SET aOther) -> GAL_SET
3376 __init__(GAL_SET self, GAL_LAYER_ID const * aArray, unsigned int aCount) -> GAL_SET
3377 """
3378 _pcbnew.GAL_SET_swiginit(self, _pcbnew.new_GAL_SET(*args))
3379
3380 def set(self, *args):
3381 r"""
3382 set(GAL_SET self) -> GAL_SET
3383 set(GAL_SET self, int aPos, bool aVal=True) -> GAL_SET
3384 set(GAL_SET self, GAL_LAYER_ID aPos, bool aVal=True) -> GAL_SET
3385 """
3386 return _pcbnew.GAL_SET_set(self, *args)
3387
3388 def Contains(self, aPos):
3389 r"""Contains(GAL_SET self, GAL_LAYER_ID aPos) -> bool"""
3390 return _pcbnew.GAL_SET_Contains(self, aPos)
3391
3392 def Seq(self):
3393 r"""Seq(GAL_SET self) -> std::vector< GAL_LAYER_ID,std::allocator< GAL_LAYER_ID > >"""
3394 return _pcbnew.GAL_SET_Seq(self)
3395
3396 @staticmethod
3398 r"""DefaultVisible() -> GAL_SET"""
3399 return _pcbnew.GAL_SET_DefaultVisible()
3400 __swig_destroy__ = _pcbnew.delete_GAL_SET
3401
3402# Register GAL_SET in _pcbnew:
3403_pcbnew.GAL_SET_swigregister(GAL_SET)
3404GAL_LAYER_ID_COUNT = cvar.GAL_LAYER_ID_COUNT
3405
3407 r"""GAL_SET_DefaultVisible() -> GAL_SET"""
3408 return _pcbnew.GAL_SET_DefaultVisible()
3409
3410SCH_LAYER_ID_START = _pcbnew.SCH_LAYER_ID_START
3411
3412LAYER_WIRE = _pcbnew.LAYER_WIRE
3413
3414LAYER_BUS = _pcbnew.LAYER_BUS
3415
3416LAYER_JUNCTION = _pcbnew.LAYER_JUNCTION
3417
3418LAYER_LOCLABEL = _pcbnew.LAYER_LOCLABEL
3419
3420LAYER_GLOBLABEL = _pcbnew.LAYER_GLOBLABEL
3421
3422LAYER_HIERLABEL = _pcbnew.LAYER_HIERLABEL
3423
3424LAYER_PINNUM = _pcbnew.LAYER_PINNUM
3425
3426LAYER_PINNAM = _pcbnew.LAYER_PINNAM
3427
3428LAYER_REFERENCEPART = _pcbnew.LAYER_REFERENCEPART
3429
3430LAYER_VALUEPART = _pcbnew.LAYER_VALUEPART
3431
3432LAYER_FIELDS = _pcbnew.LAYER_FIELDS
3433
3434LAYER_INTERSHEET_REFS = _pcbnew.LAYER_INTERSHEET_REFS
3435
3436LAYER_NETCLASS_REFS = _pcbnew.LAYER_NETCLASS_REFS
3437
3438LAYER_DEVICE = _pcbnew.LAYER_DEVICE
3439
3440LAYER_NOTES = _pcbnew.LAYER_NOTES
3441
3442LAYER_PRIVATE_NOTES = _pcbnew.LAYER_PRIVATE_NOTES
3443
3444LAYER_NOTES_BACKGROUND = _pcbnew.LAYER_NOTES_BACKGROUND
3445
3446LAYER_PIN = _pcbnew.LAYER_PIN
3447
3448LAYER_SHEET = _pcbnew.LAYER_SHEET
3449
3450LAYER_SHEETNAME = _pcbnew.LAYER_SHEETNAME
3451
3452LAYER_SHEETFILENAME = _pcbnew.LAYER_SHEETFILENAME
3453
3454LAYER_SHEETFIELDS = _pcbnew.LAYER_SHEETFIELDS
3455
3456LAYER_SHEETLABEL = _pcbnew.LAYER_SHEETLABEL
3457
3458LAYER_NOCONNECT = _pcbnew.LAYER_NOCONNECT
3459
3460LAYER_DANGLING = _pcbnew.LAYER_DANGLING
3461
3462LAYER_DNP_MARKER = _pcbnew.LAYER_DNP_MARKER
3463
3464LAYER_ERC_WARN = _pcbnew.LAYER_ERC_WARN
3465
3466LAYER_ERC_ERR = _pcbnew.LAYER_ERC_ERR
3467
3468LAYER_ERC_EXCLUSION = _pcbnew.LAYER_ERC_EXCLUSION
3469
3470LAYER_DEVICE_BACKGROUND = _pcbnew.LAYER_DEVICE_BACKGROUND
3471
3472LAYER_SHEET_BACKGROUND = _pcbnew.LAYER_SHEET_BACKGROUND
3473
3474LAYER_SCHEMATIC_GRID = _pcbnew.LAYER_SCHEMATIC_GRID
3475
3476LAYER_SCHEMATIC_GRID_AXES = _pcbnew.LAYER_SCHEMATIC_GRID_AXES
3477
3478LAYER_SCHEMATIC_BACKGROUND = _pcbnew.LAYER_SCHEMATIC_BACKGROUND
3479
3480LAYER_SCHEMATIC_CURSOR = _pcbnew.LAYER_SCHEMATIC_CURSOR
3481
3482LAYER_HOVERED = _pcbnew.LAYER_HOVERED
3483
3484LAYER_BRIGHTENED = _pcbnew.LAYER_BRIGHTENED
3485
3486LAYER_HIDDEN = _pcbnew.LAYER_HIDDEN
3487
3488LAYER_SELECTION_SHADOWS = _pcbnew.LAYER_SELECTION_SHADOWS
3489
3490LAYER_SCHEMATIC_DRAWINGSHEET = _pcbnew.LAYER_SCHEMATIC_DRAWINGSHEET
3491
3492LAYER_SCHEMATIC_PAGE_LIMITS = _pcbnew.LAYER_SCHEMATIC_PAGE_LIMITS
3493
3494LAYER_BUS_JUNCTION = _pcbnew.LAYER_BUS_JUNCTION
3495
3496LAYER_SCHEMATIC_AUX_ITEMS = _pcbnew.LAYER_SCHEMATIC_AUX_ITEMS
3497
3498LAYER_SCHEMATIC_ANCHOR = _pcbnew.LAYER_SCHEMATIC_ANCHOR
3499
3500LAYER_OP_VOLTAGES = _pcbnew.LAYER_OP_VOLTAGES
3501
3502LAYER_OP_CURRENTS = _pcbnew.LAYER_OP_CURRENTS
3503
3504SCH_LAYER_ID_END = _pcbnew.SCH_LAYER_ID_END
3505
3506GERBVIEW_LAYER_ID_START = _pcbnew.GERBVIEW_LAYER_ID_START
3507
3508GERBVIEW_LAYER_ID_RESERVED = _pcbnew.GERBVIEW_LAYER_ID_RESERVED
3509
3510LAYER_DCODES = _pcbnew.LAYER_DCODES
3511
3512LAYER_NEGATIVE_OBJECTS = _pcbnew.LAYER_NEGATIVE_OBJECTS
3513
3514LAYER_GERBVIEW_GRID = _pcbnew.LAYER_GERBVIEW_GRID
3515
3516LAYER_GERBVIEW_AXES = _pcbnew.LAYER_GERBVIEW_AXES
3517
3518LAYER_GERBVIEW_BACKGROUND = _pcbnew.LAYER_GERBVIEW_BACKGROUND
3519
3520LAYER_GERBVIEW_DRAWINGSHEET = _pcbnew.LAYER_GERBVIEW_DRAWINGSHEET
3521
3522LAYER_GERBVIEW_PAGE_LIMITS = _pcbnew.LAYER_GERBVIEW_PAGE_LIMITS
3523
3524GERBVIEW_LAYER_ID_END = _pcbnew.GERBVIEW_LAYER_ID_END
3525
3526LAYER_3D_START = _pcbnew.LAYER_3D_START
3527
3528LAYER_3D_BACKGROUND_BOTTOM = _pcbnew.LAYER_3D_BACKGROUND_BOTTOM
3529
3530LAYER_3D_BACKGROUND_TOP = _pcbnew.LAYER_3D_BACKGROUND_TOP
3531
3532LAYER_3D_BOARD = _pcbnew.LAYER_3D_BOARD
3533
3534LAYER_3D_COPPER_TOP = _pcbnew.LAYER_3D_COPPER_TOP
3535
3536LAYER_3D_COPPER_BOTTOM = _pcbnew.LAYER_3D_COPPER_BOTTOM
3537
3538LAYER_3D_SILKSCREEN_BOTTOM = _pcbnew.LAYER_3D_SILKSCREEN_BOTTOM
3539
3540LAYER_3D_SILKSCREEN_TOP = _pcbnew.LAYER_3D_SILKSCREEN_TOP
3541
3542LAYER_3D_SOLDERMASK_BOTTOM = _pcbnew.LAYER_3D_SOLDERMASK_BOTTOM
3543
3544LAYER_3D_SOLDERMASK_TOP = _pcbnew.LAYER_3D_SOLDERMASK_TOP
3545
3546LAYER_3D_SOLDERPASTE = _pcbnew.LAYER_3D_SOLDERPASTE
3547
3548LAYER_3D_ADHESIVE = _pcbnew.LAYER_3D_ADHESIVE
3549
3550LAYER_3D_USER_COMMENTS = _pcbnew.LAYER_3D_USER_COMMENTS
3551
3552LAYER_3D_USER_DRAWINGS = _pcbnew.LAYER_3D_USER_DRAWINGS
3553
3554LAYER_3D_USER_ECO1 = _pcbnew.LAYER_3D_USER_ECO1
3555
3556LAYER_3D_USER_ECO2 = _pcbnew.LAYER_3D_USER_ECO2
3557
3558LAYER_3D_TH_MODELS = _pcbnew.LAYER_3D_TH_MODELS
3559
3560LAYER_3D_SMD_MODELS = _pcbnew.LAYER_3D_SMD_MODELS
3561
3562LAYER_3D_VIRTUAL_MODELS = _pcbnew.LAYER_3D_VIRTUAL_MODELS
3563
3564LAYER_3D_MODELS_NOT_IN_POS = _pcbnew.LAYER_3D_MODELS_NOT_IN_POS
3565
3566LAYER_3D_MODELS_MARKED_DNP = _pcbnew.LAYER_3D_MODELS_MARKED_DNP
3567
3568LAYER_3D_AXES = _pcbnew.LAYER_3D_AXES
3569
3570LAYER_3D_BOUNDING_BOXES = _pcbnew.LAYER_3D_BOUNDING_BOXES
3571
3572LAYER_3D_OFF_BOARD_SILK = _pcbnew.LAYER_3D_OFF_BOARD_SILK
3573
3574LAYER_3D_END = _pcbnew.LAYER_3D_END
3575
3576
3577def LayerName(aLayer):
3578 r"""LayerName(int aLayer) -> wxString"""
3579 return _pcbnew.LayerName(aLayer)
3581 r"""Proxy of C++ LSEQ class."""
3582
3583 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3584 __repr__ = _swig_repr
3585
3586 def __init__(self, *args):
3587 r"""
3588 __init__(LSEQ self) -> LSEQ
3589 __init__(LSEQ self, std::initializer_list< PCB_LAYER_ID > aLayers) -> LSEQ
3590 """
3591 _pcbnew.LSEQ_swiginit(self, _pcbnew.new_LSEQ(*args))
3592
3593 def Rewind(self):
3594 r"""Rewind(LSEQ self)"""
3595 return _pcbnew.LSEQ_Rewind(self)
3596
3597 def __nonzero__(self):
3598 return _pcbnew.LSEQ___nonzero__(self)
3599 __bool__ = __nonzero__
3600
3601
3602
3603 def __ref__(self):
3604 r"""__ref__(LSEQ self) -> PCB_LAYER_ID"""
3605 return _pcbnew.LSEQ___ref__(self)
3606
3607 def TestLayers(self, aRhs, aLhs):
3608 r"""TestLayers(LSEQ self, PCB_LAYER_ID aRhs, PCB_LAYER_ID aLhs) -> int"""
3609 return _pcbnew.LSEQ_TestLayers(self, aRhs, aLhs)
3610 __swig_destroy__ = _pcbnew.delete_LSEQ
3611
3612# Register LSEQ in _pcbnew:
3613_pcbnew.LSEQ_swigregister(LSEQ)
3614
3616 r"""Proxy of C++ LSET class."""
3617
3618 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3619 __repr__ = _swig_repr
3620
3621 def __init__(self, *args):
3622 r"""
3623 __init__(LSET self) -> LSET
3624 __init__(LSET self, BASE_SET const & aOther) -> LSET
3625 __init__(LSET self, PCB_LAYER_ID aLayer) -> LSET
3626 __init__(LSET self, PCB_LAYER_ID const * aArray, unsigned int aCount) -> LSET
3627 __init__(LSET self, unsigned int aIdCount, int aFirst) -> LSET
3628 __init__(LSET self, LSEQ aSeq) -> LSET
3629 """
3630 _pcbnew.LSET_swiginit(self, _pcbnew.new_LSET(*args))
3631
3632 def Contains(self, aLayer):
3633 r"""Contains(LSET self, PCB_LAYER_ID aLayer) -> bool"""
3634 return _pcbnew.LSET_Contains(self, aLayer)
3635
3636 @staticmethod
3637 def Name(aLayerId):
3638 r"""Name(PCB_LAYER_ID aLayerId) -> wxChar const *"""
3639 return _pcbnew.LSET_Name(aLayerId)
3640
3641 @staticmethod
3643 r"""InternalCuMask() -> LSET"""
3644 return _pcbnew.LSET_InternalCuMask()
3645
3646 @staticmethod
3648 r"""FrontAssembly() -> LSET"""
3649 return _pcbnew.LSET_FrontAssembly()
3650
3651 @staticmethod
3653 r"""BackAssembly() -> LSET"""
3654 return _pcbnew.LSET_BackAssembly()
3655
3656 @staticmethod
3657 def AllCuMask(*args):
3658 r"""AllCuMask(int aCuLayerCount=(B_Cu-F_Cu+1)) -> LSET"""
3659 return _pcbnew.LSET_AllCuMask(*args)
3660
3661 @staticmethod
3663 r"""ExternalCuMask() -> LSET"""
3664 return _pcbnew.LSET_ExternalCuMask()
3665
3666 @staticmethod
3668 r"""AllNonCuMask() -> LSET"""
3669 return _pcbnew.LSET_AllNonCuMask()
3670
3671 @staticmethod
3673 r"""AllLayersMask() -> LSET"""
3674 return _pcbnew.LSET_AllLayersMask()
3675
3676 @staticmethod
3678 r"""FrontTechMask() -> LSET"""
3679 return _pcbnew.LSET_FrontTechMask()
3680
3681 @staticmethod
3683 r"""FrontBoardTechMask() -> LSET"""
3684 return _pcbnew.LSET_FrontBoardTechMask()
3685
3686 @staticmethod
3688 r"""BackTechMask() -> LSET"""
3689 return _pcbnew.LSET_BackTechMask()
3690
3691 @staticmethod
3693 r"""BackBoardTechMask() -> LSET"""
3694 return _pcbnew.LSET_BackBoardTechMask()
3695
3696 @staticmethod
3698 r"""AllTechMask() -> LSET"""
3699 return _pcbnew.LSET_AllTechMask()
3700
3701 @staticmethod
3703 r"""AllBoardTechMask() -> LSET"""
3704 return _pcbnew.LSET_AllBoardTechMask()
3705
3706 @staticmethod
3708 r"""FrontMask() -> LSET"""
3709 return _pcbnew.LSET_FrontMask()
3710
3711 @staticmethod
3713 r"""BackMask() -> LSET"""
3714 return _pcbnew.LSET_BackMask()
3715
3716 @staticmethod
3718 r"""SideSpecificMask() -> LSET"""
3719 return _pcbnew.LSET_SideSpecificMask()
3720
3721 @staticmethod
3723 r"""UserMask() -> LSET"""
3724 return _pcbnew.LSET_UserMask()
3725
3726 @staticmethod
3728 r"""PhysicalLayersMask() -> LSET"""
3729 return _pcbnew.LSET_PhysicalLayersMask()
3730
3731 @staticmethod
3733 r"""UserDefinedLayers() -> LSET"""
3734 return _pcbnew.LSET_UserDefinedLayers()
3735
3736 @staticmethod
3738 r"""ForbiddenFootprintLayers() -> LSET"""
3739 return _pcbnew.LSET_ForbiddenFootprintLayers()
3740
3741 def CuStack(self):
3742 r"""CuStack(LSET self) -> LSEQ"""
3743 return _pcbnew.LSET_CuStack(self)
3744
3745 def Technicals(self, *args):
3746 r"""Technicals(LSET self, LSET aSubToOmit=LSET()) -> LSEQ"""
3747 return _pcbnew.LSET_Technicals(self, *args)
3748
3749 def Users(self):
3750 r"""Users(LSET self) -> LSEQ"""
3751 return _pcbnew.LSET_Users(self)
3752
3754 r"""TechAndUserUIOrder(LSET self) -> LSEQ"""
3755 return _pcbnew.LSET_TechAndUserUIOrder(self)
3756
3757 def UIOrder(self):
3758 r"""UIOrder(LSET self) -> LSEQ"""
3759 return _pcbnew.LSET_UIOrder(self)
3760
3761 def Seq(self, *args):
3762 r"""
3763 Seq(LSET self, PCB_LAYER_ID const * aWishListSequence, unsigned int aCount) -> LSEQ
3764 Seq(LSET self, LSEQ aSequence) -> LSEQ
3765 Seq(LSET self) -> LSEQ
3766 """
3767 return _pcbnew.LSET_Seq(self, *args)
3768
3769 def SeqStackupTop2Bottom(self, aSelectedLayer=UNDEFINED_LAYER):
3770 r"""SeqStackupTop2Bottom(LSET self, PCB_LAYER_ID aSelectedLayer=UNDEFINED_LAYER) -> LSEQ"""
3771 return _pcbnew.LSET_SeqStackupTop2Bottom(self, aSelectedLayer)
3772
3774 r"""SeqStackupForPlotting(LSET self) -> LSEQ"""
3775 return _pcbnew.LSET_SeqStackupForPlotting(self)
3776
3777 def FmtHex(self):
3778 r"""FmtHex(LSET self) -> string"""
3779 return _pcbnew.LSET_FmtHex(self)
3780
3781 def ParseHex(self, aStart, aCount):
3782 r"""ParseHex(LSET self, char const * aStart, int aCount) -> int"""
3783 return _pcbnew.LSET_ParseHex(self, aStart, aCount)
3784
3785 def FmtBin(self):
3786 r"""FmtBin(LSET self) -> string"""
3787 return _pcbnew.LSET_FmtBin(self)
3788
3789 def ExtractLayer(self):
3790 r"""ExtractLayer(LSET self) -> PCB_LAYER_ID"""
3791 return _pcbnew.LSET_ExtractLayer(self)
3792
3793 def addLayer(self, aLayer):
3794 r"""addLayer(LSET self, PCB_LAYER_ID aLayer) -> LSET"""
3795 return _pcbnew.LSET_addLayer(self, aLayer)
3796
3797 def removeLayer(self, aLayer):
3798 r"""removeLayer(LSET self, PCB_LAYER_ID aLayer) -> LSET"""
3799 return _pcbnew.LSET_removeLayer(self, aLayer)
3800
3801 def addLayerSet(self, aLayerSet):
3802 r"""addLayerSet(LSET self, LSET aLayerSet) -> LSET"""
3803 return _pcbnew.LSET_addLayerSet(self, aLayerSet)
3804
3805 def removeLayerSet(self, aLayerSet):
3806 r"""removeLayerSet(LSET self, LSET aLayerSet) -> LSET"""
3807 return _pcbnew.LSET_removeLayerSet(self, aLayerSet)
3808
3809 def AddLayer(self, layer):
3810 return self.addLayer( layer )
3811
3812 def AddLayerSet(self, layers):
3813 return self.addLayerSet( layers )
3814
3815 def RemoveLayer(self, layer):
3816 return self.removeLayer( layer )
3817
3818 def RemoveLayerSet(self, layers):
3819 return self.removeLayerSet( layers )
3820
3821 __swig_destroy__ = _pcbnew.delete_LSET
3822
3823# Register LSET in _pcbnew:
3824_pcbnew.LSET_swigregister(LSET)
3825
3826def LSET_Name(aLayerId):
3827 r"""LSET_Name(PCB_LAYER_ID aLayerId) -> wxChar const *"""
3828 return _pcbnew.LSET_Name(aLayerId)
3829
3831 r"""LSET_InternalCuMask() -> LSET"""
3832 return _pcbnew.LSET_InternalCuMask()
3833
3835 r"""LSET_FrontAssembly() -> LSET"""
3836 return _pcbnew.LSET_FrontAssembly()
3837
3839 r"""LSET_BackAssembly() -> LSET"""
3840 return _pcbnew.LSET_BackAssembly()
3841
3843 r"""LSET_AllCuMask(int aCuLayerCount=(B_Cu-F_Cu+1)) -> LSET"""
3844 return _pcbnew.LSET_AllCuMask(*args)
3845
3847 r"""LSET_ExternalCuMask() -> LSET"""
3848 return _pcbnew.LSET_ExternalCuMask()
3849
3851 r"""LSET_AllNonCuMask() -> LSET"""
3852 return _pcbnew.LSET_AllNonCuMask()
3853
3855 r"""LSET_AllLayersMask() -> LSET"""
3856 return _pcbnew.LSET_AllLayersMask()
3857
3859 r"""LSET_FrontTechMask() -> LSET"""
3860 return _pcbnew.LSET_FrontTechMask()
3861
3863 r"""LSET_FrontBoardTechMask() -> LSET"""
3864 return _pcbnew.LSET_FrontBoardTechMask()
3865
3867 r"""LSET_BackTechMask() -> LSET"""
3868 return _pcbnew.LSET_BackTechMask()
3869
3871 r"""LSET_BackBoardTechMask() -> LSET"""
3872 return _pcbnew.LSET_BackBoardTechMask()
3873
3875 r"""LSET_AllTechMask() -> LSET"""
3876 return _pcbnew.LSET_AllTechMask()
3877
3879 r"""LSET_AllBoardTechMask() -> LSET"""
3880 return _pcbnew.LSET_AllBoardTechMask()
3881
3883 r"""LSET_FrontMask() -> LSET"""
3884 return _pcbnew.LSET_FrontMask()
3885
3887 r"""LSET_BackMask() -> LSET"""
3888 return _pcbnew.LSET_BackMask()
3889
3891 r"""LSET_SideSpecificMask() -> LSET"""
3892 return _pcbnew.LSET_SideSpecificMask()
3893
3895 r"""LSET_UserMask() -> LSET"""
3896 return _pcbnew.LSET_UserMask()
3897
3899 r"""LSET_PhysicalLayersMask() -> LSET"""
3900 return _pcbnew.LSET_PhysicalLayersMask()
3901
3903 r"""LSET_UserDefinedLayers() -> LSET"""
3904 return _pcbnew.LSET_UserDefinedLayers()
3905
3907 r"""LSET_ForbiddenFootprintLayers() -> LSET"""
3908 return _pcbnew.LSET_ForbiddenFootprintLayers()
3909
3910
3911def IsValidLayer(aLayerId):
3912 r"""IsValidLayer(int aLayerId) -> bool"""
3913 return _pcbnew.IsValidLayer(aLayerId)
3914
3915def IsPcbLayer(aLayer):
3916 r"""IsPcbLayer(int aLayer) -> bool"""
3917 return _pcbnew.IsPcbLayer(aLayer)
3918
3919def IsNonCopperLayer(aLayerId):
3920 r"""IsNonCopperLayer(int aLayerId) -> bool"""
3921 return _pcbnew.IsNonCopperLayer(aLayerId)
3922
3923def IsCopperLayer(*args):
3924 r"""
3925 IsCopperLayer(int aLayerId) -> bool
3926 IsCopperLayer(int aLayerId, bool aIncludeSyntheticCopperLayers) -> bool
3927 """
3928 return _pcbnew.IsCopperLayer(*args)
3929
3930def IsViaPadLayer(aLayer):
3931 r"""IsViaPadLayer(int aLayer) -> bool"""
3932 return _pcbnew.IsViaPadLayer(aLayer)
3933
3934def IsHoleLayer(aLayer):
3935 r"""IsHoleLayer(int aLayer) -> bool"""
3936 return _pcbnew.IsHoleLayer(aLayer)
3937
3938def IsUserLayer(aLayerId):
3939 r"""IsUserLayer(PCB_LAYER_ID aLayerId) -> bool"""
3940 return _pcbnew.IsUserLayer(aLayerId)
3941
3942def IsFrontLayer(aLayerId):
3943 r"""IsFrontLayer(PCB_LAYER_ID aLayerId) -> bool"""
3944 return _pcbnew.IsFrontLayer(aLayerId)
3945
3946def IsBackLayer(aLayerId):
3947 r"""IsBackLayer(PCB_LAYER_ID aLayerId) -> bool"""
3948 return _pcbnew.IsBackLayer(aLayerId)
3949
3950def FlipLayer(aLayerId, aCopperLayersCount=0):
3951 r"""FlipLayer(PCB_LAYER_ID aLayerId, int aCopperLayersCount=0) -> PCB_LAYER_ID"""
3952 return _pcbnew.FlipLayer(aLayerId, aCopperLayersCount)
3953
3954def FlipLayerMask(aMask, aCopperLayersCount=0):
3955 r"""FlipLayerMask(LSET aMask, int aCopperLayersCount=0) -> LSET"""
3956 return _pcbnew.FlipLayerMask(aMask, aCopperLayersCount)
3957
3959 r"""GetNetnameLayer(int aLayer) -> int"""
3960 return _pcbnew.GetNetnameLayer(aLayer)
3961
3962def IsNetnameLayer(aLayer):
3963 r"""IsNetnameLayer(int aLayer) -> bool"""
3964 return _pcbnew.IsNetnameLayer(aLayer)
3965
3967 r"""IsZoneFillLayer(int aLayer) -> bool"""
3968 return _pcbnew.IsZoneFillLayer(aLayer)
3969
3970def IsDCodeLayer(aLayer):
3971 r"""IsDCodeLayer(int aLayer) -> bool"""
3972 return _pcbnew.IsDCodeLayer(aLayer)
3973
3975 r"""IsNetCopperLayer(int aLayer) -> bool"""
3976 return _pcbnew.IsNetCopperLayer(aLayer)
3977
3978def ToLAYER_ID(aLayer):
3979 r"""ToLAYER_ID(int aLayer) -> PCB_LAYER_ID"""
3980 return _pcbnew.ToLAYER_ID(aLayer)
3982 r"""Proxy of C++ SETTINGS_MANAGER class."""
3983
3984 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3985 __repr__ = _swig_repr
3986
3987 def __init__(self, aHeadless=False):
3988 r"""__init__(SETTINGS_MANAGER self, bool aHeadless=False) -> SETTINGS_MANAGER"""
3989 _pcbnew.SETTINGS_MANAGER_swiginit(self, _pcbnew.new_SETTINGS_MANAGER(aHeadless))
3990 __swig_destroy__ = _pcbnew.delete_SETTINGS_MANAGER
3991
3992 def IsOK(self):
3993 r"""IsOK(SETTINGS_MANAGER self) -> bool"""
3994 return _pcbnew.SETTINGS_MANAGER_IsOK(self)
3995
3996 def SetKiway(self, aKiway):
3997 r"""SetKiway(SETTINGS_MANAGER self, KIWAY * aKiway)"""
3998 return _pcbnew.SETTINGS_MANAGER_SetKiway(self, aKiway)
3999
4000 def Load(self, *args):
4001 r"""
4002 Load(SETTINGS_MANAGER self)
4003 Load(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings)
4004 """
4005 return _pcbnew.SETTINGS_MANAGER_Load(self, *args)
4006
4007 def Save(self, *args):
4008 r"""
4009 Save(SETTINGS_MANAGER self)
4010 Save(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings)
4011 """
4012 return _pcbnew.SETTINGS_MANAGER_Save(self, *args)
4013
4014 def FlushAndRelease(self, aSettings, aSave=True):
4015 r"""FlushAndRelease(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings, bool aSave=True)"""
4016 return _pcbnew.SETTINGS_MANAGER_FlushAndRelease(self, aSettings, aSave)
4017
4018 def GetColorSettings(self, *args):
4019 r"""GetColorSettings(SETTINGS_MANAGER self, wxString aName="user") -> COLOR_SETTINGS"""
4020 return _pcbnew.SETTINGS_MANAGER_GetColorSettings(self, *args)
4021
4023 r"""GetColorSettingsList(SETTINGS_MANAGER self) -> std::vector< COLOR_SETTINGS *,std::allocator< COLOR_SETTINGS * > >"""
4024 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsList(self)
4025
4026 def SaveColorSettings(self, *args):
4027 r"""SaveColorSettings(SETTINGS_MANAGER self, COLOR_SETTINGS * aSettings, string aNamespace="")"""
4028 return _pcbnew.SETTINGS_MANAGER_SaveColorSettings(self, *args)
4029
4030 def AddNewColorSettings(self, aFilename):
4031 r"""AddNewColorSettings(SETTINGS_MANAGER self, wxString aFilename) -> COLOR_SETTINGS *"""
4032 return _pcbnew.SETTINGS_MANAGER_AddNewColorSettings(self, aFilename)
4033
4035 r"""GetMigratedColorSettings(SETTINGS_MANAGER self) -> COLOR_SETTINGS *"""
4036 return _pcbnew.SETTINGS_MANAGER_GetMigratedColorSettings(self)
4037
4039 r"""GetCommonSettings(SETTINGS_MANAGER self) -> COMMON_SETTINGS *"""
4040 return _pcbnew.SETTINGS_MANAGER_GetCommonSettings(self)
4041
4042 def GetPathForSettingsFile(self, aSettings):
4043 r"""GetPathForSettingsFile(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings) -> wxString"""
4044 return _pcbnew.SETTINGS_MANAGER_GetPathForSettingsFile(self, aSettings)
4045
4047 r"""MigrateIfNeeded(SETTINGS_MANAGER self) -> bool"""
4048 return _pcbnew.SETTINGS_MANAGER_MigrateIfNeeded(self)
4049
4050 def SetMigrationSource(self, aSource):
4051 r"""SetMigrationSource(SETTINGS_MANAGER self, wxString aSource)"""
4052 return _pcbnew.SETTINGS_MANAGER_SetMigrationSource(self, aSource)
4053
4054 def SetMigrateLibraryTables(self, aMigrate=True):
4055 r"""SetMigrateLibraryTables(SETTINGS_MANAGER self, bool aMigrate=True)"""
4056 return _pcbnew.SETTINGS_MANAGER_SetMigrateLibraryTables(self, aMigrate)
4057
4058 def GetPreviousVersionPaths(self, aName=None):
4059 r"""GetPreviousVersionPaths(SETTINGS_MANAGER self, std::vector< wxString,std::allocator< wxString > > * aName=None) -> bool"""
4060 return _pcbnew.SETTINGS_MANAGER_GetPreviousVersionPaths(self, aName)
4061
4063 r"""ReloadColorSettings(SETTINGS_MANAGER self)"""
4064 return _pcbnew.SETTINGS_MANAGER_ReloadColorSettings(self)
4065
4066 def LoadProject(self, aFullPath, aSetActive=True):
4067 r"""LoadProject(SETTINGS_MANAGER self, wxString aFullPath, bool aSetActive=True) -> bool"""
4068 return _pcbnew.SETTINGS_MANAGER_LoadProject(self, aFullPath, aSetActive)
4069
4070 def UnloadProject(self, aProject, aSave=True):
4071 r"""UnloadProject(SETTINGS_MANAGER self, PROJECT * aProject, bool aSave=True) -> bool"""
4072 return _pcbnew.SETTINGS_MANAGER_UnloadProject(self, aProject, aSave)
4073
4074 def IsProjectOpen(self):
4075 r"""IsProjectOpen(SETTINGS_MANAGER self) -> bool"""
4076 return _pcbnew.SETTINGS_MANAGER_IsProjectOpen(self)
4077
4078 def Prj(self):
4079 r"""Prj(SETTINGS_MANAGER self) -> PROJECT &"""
4080 return _pcbnew.SETTINGS_MANAGER_Prj(self)
4081
4082 def GetProject(self, aFullPath):
4083 r"""GetProject(SETTINGS_MANAGER self, wxString aFullPath) -> PROJECT *"""
4084 return _pcbnew.SETTINGS_MANAGER_GetProject(self, aFullPath)
4085
4087 r"""GetOpenProjects(SETTINGS_MANAGER self) -> std::vector< wxString,std::allocator< wxString > >"""
4088 return _pcbnew.SETTINGS_MANAGER_GetOpenProjects(self)
4089
4090 def SaveProject(self, *args):
4091 r"""SaveProject(SETTINGS_MANAGER self, wxString aFullPath=wxEmptyString, PROJECT * aProject=None) -> bool"""
4092 return _pcbnew.SETTINGS_MANAGER_SaveProject(self, *args)
4093
4094 def SaveProjectAs(self, aFullPath, aProject=None):
4095 r"""SaveProjectAs(SETTINGS_MANAGER self, wxString aFullPath, PROJECT * aProject=None)"""
4096 return _pcbnew.SETTINGS_MANAGER_SaveProjectAs(self, aFullPath, aProject)
4097
4098 def SaveProjectCopy(self, aFullPath, aProject=None):
4099 r"""SaveProjectCopy(SETTINGS_MANAGER self, wxString aFullPath, PROJECT * aProject=None)"""
4100 return _pcbnew.SETTINGS_MANAGER_SaveProjectCopy(self, aFullPath, aProject)
4101
4103 r"""GetProjectBackupsPath(SETTINGS_MANAGER self) -> wxString"""
4104 return _pcbnew.SETTINGS_MANAGER_GetProjectBackupsPath(self)
4105
4106 def BackupProject(self, aReporter):
4107 r"""BackupProject(SETTINGS_MANAGER self, REPORTER & aReporter) -> bool"""
4108 return _pcbnew.SETTINGS_MANAGER_BackupProject(self, aReporter)
4109
4110 def TriggerBackupIfNeeded(self, aReporter):
4111 r"""TriggerBackupIfNeeded(SETTINGS_MANAGER self, REPORTER & aReporter) -> bool"""
4112 return _pcbnew.SETTINGS_MANAGER_TriggerBackupIfNeeded(self, aReporter)
4113
4114 @staticmethod
4116 r"""IsSettingsPathValid(wxString aPath) -> bool"""
4117 return _pcbnew.SETTINGS_MANAGER_IsSettingsPathValid(aPath)
4118
4119 @staticmethod
4121 r"""GetColorSettingsPath() -> wxString"""
4122 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsPath()
4123
4124 @staticmethod
4126 r"""GetSettingsVersion() -> string"""
4127 return _pcbnew.SETTINGS_MANAGER_GetSettingsVersion()
4128
4129 @staticmethod
4131 r"""GetUserSettingsPath() -> wxString"""
4132 return _pcbnew.SETTINGS_MANAGER_GetUserSettingsPath()
4133
4134# Register SETTINGS_MANAGER in _pcbnew:
4135_pcbnew.SETTINGS_MANAGER_swigregister(SETTINGS_MANAGER)
4136
4138 r"""SETTINGS_MANAGER_IsSettingsPathValid(wxString aPath) -> bool"""
4139 return _pcbnew.SETTINGS_MANAGER_IsSettingsPathValid(aPath)
4140
4142 r"""SETTINGS_MANAGER_GetColorSettingsPath() -> wxString"""
4143 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsPath()
4144
4146 r"""SETTINGS_MANAGER_GetSettingsVersion() -> string"""
4147 return _pcbnew.SETTINGS_MANAGER_GetSettingsVersion()
4148
4150 r"""SETTINGS_MANAGER_GetUserSettingsPath() -> wxString"""
4151 return _pcbnew.SETTINGS_MANAGER_GetUserSettingsPath()
4152
4154 r"""Proxy of C++ UTILS_BOX3D class."""
4155
4156 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4157 __repr__ = _swig_repr
4158
4159 def Min(self):
4160 r"""Min(UTILS_BOX3D self) -> VECTOR3D"""
4161 return _pcbnew.UTILS_BOX3D_Min(self)
4162
4163 def Max(self):
4164 r"""Max(UTILS_BOX3D self) -> VECTOR3D"""
4165 return _pcbnew.UTILS_BOX3D_Max(self)
4166
4167 def GetCenter(self):
4168 r"""GetCenter(UTILS_BOX3D self) -> VECTOR3D"""
4169 return _pcbnew.UTILS_BOX3D_GetCenter(self)
4170
4171 def GetSize(self):
4172 r"""GetSize(UTILS_BOX3D self) -> VECTOR3D"""
4173 return _pcbnew.UTILS_BOX3D_GetSize(self)
4174
4175 def __init__(self):
4176 r"""__init__(UTILS_BOX3D self) -> UTILS_BOX3D"""
4177 _pcbnew.UTILS_BOX3D_swiginit(self, _pcbnew.new_UTILS_BOX3D())
4178 __swig_destroy__ = _pcbnew.delete_UTILS_BOX3D
4179
4180# Register UTILS_BOX3D in _pcbnew:
4181_pcbnew.UTILS_BOX3D_swigregister(UTILS_BOX3D)
4182
4184 r"""Proxy of C++ UTILS_STEP_MODEL class."""
4185
4186 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4187 __repr__ = _swig_repr
4188
4190 r"""GetBoundingBox(UTILS_STEP_MODEL self) -> UTILS_BOX3D"""
4191 return _pcbnew.UTILS_STEP_MODEL_GetBoundingBox(self)
4192
4193 def Translate(self, aX, aY, aZ):
4194 r"""Translate(UTILS_STEP_MODEL self, double aX, double aY, double aZ)"""
4195 return _pcbnew.UTILS_STEP_MODEL_Translate(self, aX, aY, aZ)
4196
4197 def Scale(self, aScale):
4198 r"""Scale(UTILS_STEP_MODEL self, double aScale)"""
4199 return _pcbnew.UTILS_STEP_MODEL_Scale(self, aScale)
4200
4201 def SaveSTEP(self, aFileName):
4202 r"""SaveSTEP(UTILS_STEP_MODEL self, wxString aFileName) -> bool"""
4203 return _pcbnew.UTILS_STEP_MODEL_SaveSTEP(self, aFileName)
4204
4205 @staticmethod
4206 def LoadSTEP(aFileName):
4207 r"""LoadSTEP(wxString aFileName) -> UTILS_STEP_MODEL"""
4208 return _pcbnew.UTILS_STEP_MODEL_LoadSTEP(aFileName)
4209
4210 def __init__(self):
4211 r"""__init__(UTILS_STEP_MODEL self) -> UTILS_STEP_MODEL"""
4212 _pcbnew.UTILS_STEP_MODEL_swiginit(self, _pcbnew.new_UTILS_STEP_MODEL())
4213
4214# Register UTILS_STEP_MODEL in _pcbnew:
4215_pcbnew.UTILS_STEP_MODEL_swigregister(UTILS_STEP_MODEL)
4216
4218 r"""UTILS_STEP_MODEL_LoadSTEP(wxString aFileName) -> UTILS_STEP_MODEL"""
4219 return _pcbnew.UTILS_STEP_MODEL_LoadSTEP(aFileName)
4220
4222 r"""Proxy of C++ std::vector< int > class."""
4223
4224 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4225 __repr__ = _swig_repr
4226
4227 def iterator(self):
4228 r"""iterator(intVector self) -> SwigPyIterator"""
4229 return _pcbnew.intVector_iterator(self)
4230 def __iter__(self):
4231 return self.iterator()
4232
4233 def __nonzero__(self):
4234 r"""__nonzero__(intVector self) -> bool"""
4235 return _pcbnew.intVector___nonzero__(self)
4236
4237 def __bool__(self):
4238 r"""__bool__(intVector self) -> bool"""
4239 return _pcbnew.intVector___bool__(self)
4240
4241 def __len__(self):
4242 r"""__len__(intVector self) -> std::vector< int >::size_type"""
4243 return _pcbnew.intVector___len__(self)
4244
4245 def __getslice__(self, i, j):
4246 r"""__getslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j) -> intVector"""
4247 return _pcbnew.intVector___getslice__(self, i, j)
4248
4249 def __setslice__(self, *args):
4250 r"""
4251 __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)
4252 __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j, intVector v)
4253 """
4254 return _pcbnew.intVector___setslice__(self, *args)
4255
4256 def __delslice__(self, i, j):
4257 r"""__delslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)"""
4258 return _pcbnew.intVector___delslice__(self, i, j)
4259
4260 def __delitem__(self, *args):
4261 r"""
4262 __delitem__(intVector self, std::vector< int >::difference_type i)
4263 __delitem__(intVector self, PySliceObject * slice)
4264 """
4265 return _pcbnew.intVector___delitem__(self, *args)
4266
4267 def __getitem__(self, *args):
4268 r"""
4269 __getitem__(intVector self, PySliceObject * slice) -> intVector
4270 __getitem__(intVector self, std::vector< int >::difference_type i) -> std::vector< int >::value_type const &
4271 """
4272 return _pcbnew.intVector___getitem__(self, *args)
4273
4274 def __setitem__(self, *args):
4275 r"""
4276 __setitem__(intVector self, PySliceObject * slice, intVector v)
4277 __setitem__(intVector self, PySliceObject * slice)
4278 __setitem__(intVector self, std::vector< int >::difference_type i, std::vector< int >::value_type const & x)
4279 """
4280 return _pcbnew.intVector___setitem__(self, *args)
4281
4282 def pop(self):
4283 r"""pop(intVector self) -> std::vector< int >::value_type"""
4284 return _pcbnew.intVector_pop(self)
4285
4286 def append(self, x):
4287 r"""append(intVector self, std::vector< int >::value_type const & x)"""
4288 return _pcbnew.intVector_append(self, x)
4289
4290 def empty(self):
4291 r"""empty(intVector self) -> bool"""
4292 return _pcbnew.intVector_empty(self)
4293
4294 def size(self):
4295 r"""size(intVector self) -> std::vector< int >::size_type"""
4296 return _pcbnew.intVector_size(self)
4297
4298 def swap(self, v):
4299 r"""swap(intVector self, intVector v)"""
4300 return _pcbnew.intVector_swap(self, v)
4301
4302 def begin(self):
4303 r"""begin(intVector self) -> std::vector< int >::iterator"""
4304 return _pcbnew.intVector_begin(self)
4305
4306 def end(self):
4307 r"""end(intVector self) -> std::vector< int >::iterator"""
4308 return _pcbnew.intVector_end(self)
4309
4310 def rbegin(self):
4311 r"""rbegin(intVector self) -> std::vector< int >::reverse_iterator"""
4312 return _pcbnew.intVector_rbegin(self)
4313
4314 def rend(self):
4315 r"""rend(intVector self) -> std::vector< int >::reverse_iterator"""
4316 return _pcbnew.intVector_rend(self)
4317
4318 def clear(self):
4319 r"""clear(intVector self)"""
4320 return _pcbnew.intVector_clear(self)
4321
4322 def get_allocator(self):
4323 r"""get_allocator(intVector self) -> std::vector< int >::allocator_type"""
4324 return _pcbnew.intVector_get_allocator(self)
4325
4326 def pop_back(self):
4327 r"""pop_back(intVector self)"""
4328 return _pcbnew.intVector_pop_back(self)
4329
4330 def erase(self, *args):
4331 r"""
4332 erase(intVector self, std::vector< int >::iterator pos) -> std::vector< int >::iterator
4333 erase(intVector self, std::vector< int >::iterator first, std::vector< int >::iterator last) -> std::vector< int >::iterator
4334 """
4335 return _pcbnew.intVector_erase(self, *args)
4336
4337 def __init__(self, *args):
4338 r"""
4339 __init__(intVector self) -> intVector
4340 __init__(intVector self, intVector other) -> intVector
4341 __init__(intVector self, std::vector< int >::size_type size) -> intVector
4342 __init__(intVector self, std::vector< int >::size_type size, std::vector< int >::value_type const & value) -> intVector
4343 """
4344 _pcbnew.intVector_swiginit(self, _pcbnew.new_intVector(*args))
4345
4346 def push_back(self, x):
4347 r"""push_back(intVector self, std::vector< int >::value_type const & x)"""
4348 return _pcbnew.intVector_push_back(self, x)
4349
4350 def front(self):
4351 r"""front(intVector self) -> std::vector< int >::value_type const &"""
4352 return _pcbnew.intVector_front(self)
4353
4354 def back(self):
4355 r"""back(intVector self) -> std::vector< int >::value_type const &"""
4356 return _pcbnew.intVector_back(self)
4357
4358 def assign(self, n, x):
4359 r"""assign(intVector self, std::vector< int >::size_type n, std::vector< int >::value_type const & x)"""
4360 return _pcbnew.intVector_assign(self, n, x)
4361
4362 def resize(self, *args):
4363 r"""
4364 resize(intVector self, std::vector< int >::size_type new_size)
4365 resize(intVector self, std::vector< int >::size_type new_size, std::vector< int >::value_type const & x)
4366 """
4367 return _pcbnew.intVector_resize(self, *args)
4368
4369 def insert(self, *args):
4370 r"""
4371 insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::value_type const & x) -> std::vector< int >::iterator
4372 insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::size_type n, std::vector< int >::value_type const & x)
4373 """
4374 return _pcbnew.intVector_insert(self, *args)
4375
4376 def reserve(self, n):
4377 r"""reserve(intVector self, std::vector< int >::size_type n)"""
4378 return _pcbnew.intVector_reserve(self, n)
4379
4380 def capacity(self):
4381 r"""capacity(intVector self) -> std::vector< int >::size_type"""
4382 return _pcbnew.intVector_capacity(self)
4383 __swig_destroy__ = _pcbnew.delete_intVector
4384
4385# Register intVector in _pcbnew:
4386_pcbnew.intVector_swigregister(intVector)
4387
4389 r"""Proxy of C++ std::map< std::string,UTF8 > class."""
4390
4391 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4392 __repr__ = _swig_repr
4393
4394 def iterator(self):
4395 r"""iterator(str_utf8_Map self) -> SwigPyIterator"""
4396 return _pcbnew.str_utf8_Map_iterator(self)
4397 def __iter__(self):
4398 return self.iterator()
4399
4400 def __nonzero__(self):
4401 r"""__nonzero__(str_utf8_Map self) -> bool"""
4402 return _pcbnew.str_utf8_Map___nonzero__(self)
4403
4404 def __bool__(self):
4405 r"""__bool__(str_utf8_Map self) -> bool"""
4406 return _pcbnew.str_utf8_Map___bool__(self)
4407
4408 def __len__(self):
4409 r"""__len__(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
4410 return _pcbnew.str_utf8_Map___len__(self)
4411 def __iter__(self):
4412 return self.key_iterator()
4413 def iterkeys(self):
4414 return self.key_iterator()
4415 def itervalues(self):
4416 return self.value_iterator()
4417 def iteritems(self):
4418 return self.iterator()
4419
4420 def __getitem__(self, key):
4421 r"""__getitem__(str_utf8_Map self, string key) -> UTF8"""
4422 return _pcbnew.str_utf8_Map___getitem__(self, key)
4423
4424 def __delitem__(self, key):
4425 r"""__delitem__(str_utf8_Map self, string key)"""
4426 return _pcbnew.str_utf8_Map___delitem__(self, key)
4427
4428 def has_key(self, key):
4429 r"""has_key(str_utf8_Map self, string key) -> bool"""
4430 return _pcbnew.str_utf8_Map_has_key(self, key)
4431
4432 def keys(self):
4433 r"""keys(str_utf8_Map self) -> PyObject *"""
4434 return _pcbnew.str_utf8_Map_keys(self)
4435
4436 def values(self):
4437 r"""values(str_utf8_Map self) -> PyObject *"""
4438 return _pcbnew.str_utf8_Map_values(self)
4439
4440 def items(self):
4441 r"""items(str_utf8_Map self) -> PyObject *"""
4442 return _pcbnew.str_utf8_Map_items(self)
4443
4444 def __contains__(self, key):
4445 r"""__contains__(str_utf8_Map self, string key) -> bool"""
4446 return _pcbnew.str_utf8_Map___contains__(self, key)
4447
4448 def key_iterator(self):
4449 r"""key_iterator(str_utf8_Map self) -> SwigPyIterator"""
4450 return _pcbnew.str_utf8_Map_key_iterator(self)
4451
4453 r"""value_iterator(str_utf8_Map self) -> SwigPyIterator"""
4454 return _pcbnew.str_utf8_Map_value_iterator(self)
4455
4456 def __setitem__(self, *args):
4457 r"""
4458 __setitem__(str_utf8_Map self, string key)
4459 __setitem__(str_utf8_Map self, string key, UTF8 x)
4460 """
4461 return _pcbnew.str_utf8_Map___setitem__(self, *args)
4462
4463 def asdict(self):
4464 r"""asdict(str_utf8_Map self) -> PyObject *"""
4465 return _pcbnew.str_utf8_Map_asdict(self)
4466
4467 def __init__(self, *args):
4468 r"""
4469 __init__(str_utf8_Map self, std::less< std::basic_string< char,std::char_traits< char >,std::allocator< char > > > const & other) -> str_utf8_Map
4470 __init__(str_utf8_Map self) -> str_utf8_Map
4471 __init__(str_utf8_Map self, str_utf8_Map other) -> str_utf8_Map
4472 """
4473 _pcbnew.str_utf8_Map_swiginit(self, _pcbnew.new_str_utf8_Map(*args))
4474
4475 def empty(self):
4476 r"""empty(str_utf8_Map self) -> bool"""
4477 return _pcbnew.str_utf8_Map_empty(self)
4478
4479 def size(self):
4480 r"""size(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
4481 return _pcbnew.str_utf8_Map_size(self)
4482
4483 def swap(self, v):
4484 r"""swap(str_utf8_Map self, str_utf8_Map v)"""
4485 return _pcbnew.str_utf8_Map_swap(self, v)
4486
4487 def begin(self):
4488 r"""begin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4489 return _pcbnew.str_utf8_Map_begin(self)
4490
4491 def end(self):
4492 r"""end(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4493 return _pcbnew.str_utf8_Map_end(self)
4494
4495 def rbegin(self):
4496 r"""rbegin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
4497 return _pcbnew.str_utf8_Map_rbegin(self)
4498
4499 def rend(self):
4500 r"""rend(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
4501 return _pcbnew.str_utf8_Map_rend(self)
4502
4503 def clear(self):
4504 r"""clear(str_utf8_Map self)"""
4505 return _pcbnew.str_utf8_Map_clear(self)
4506
4507 def get_allocator(self):
4508 r"""get_allocator(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::allocator_type"""
4509 return _pcbnew.str_utf8_Map_get_allocator(self)
4510
4511 def count(self, x):
4512 r"""count(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
4513 return _pcbnew.str_utf8_Map_count(self, x)
4514
4515 def erase(self, *args):
4516 r"""
4517 erase(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type
4518 erase(str_utf8_Map self, std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator position)
4519 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)
4520 """
4521 return _pcbnew.str_utf8_Map_erase(self, *args)
4522
4523 def find(self, x):
4524 r"""find(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4525 return _pcbnew.str_utf8_Map_find(self, x)
4526
4527 def lower_bound(self, x):
4528 r"""lower_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4529 return _pcbnew.str_utf8_Map_lower_bound(self, x)
4530
4531 def upper_bound(self, x):
4532 r"""upper_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4533 return _pcbnew.str_utf8_Map_upper_bound(self, x)
4534 __swig_destroy__ = _pcbnew.delete_str_utf8_Map
4535
4536# Register str_utf8_Map in _pcbnew:
4537_pcbnew.str_utf8_Map_swigregister(str_utf8_Map)
4538
4539
4540
4541KICAD_PLUGINS={} # the list of loaded footprint wizards
4542
4543""" the list of not loaded python scripts
4544 (usually because there is a syntax error in python script)
4545 this is the python script full filenames list.
4546 filenames are separated by '\n'
4547"""
4548NOT_LOADED_WIZARDS=""
4549
4550""" the list of paths used to search python scripts.
4551 Stored here to be displayed on request in Pcbnew
4552 paths are separated by '\n'
4553"""
4554PLUGIN_DIRECTORIES_SEARCH=""
4555
4556"""
4557 the trace of errors during execution of footprint wizards scripts
4558 Warning: strings (internally unicode) are returned as UTF-8 compatible C strings
4559"""
4560
4561FULL_BACK_TRACE=""
4562
4563def GetUnLoadableWizards():
4564 global NOT_LOADED_WIZARDS
4565 import sys
4566
4567 if sys.version_info[0] < 3:
4568 utf8_str = NOT_LOADED_WIZARDS.encode( 'UTF-8' )
4569 else:
4570 utf8_str = NOT_LOADED_WIZARDS
4571
4572 return utf8_str
4573
4575 global PLUGIN_DIRECTORIES_SEARCH
4576 import sys
4577
4578 if sys.version_info[0] < 3:
4579 utf8_str = PLUGIN_DIRECTORIES_SEARCH.encode( 'UTF-8' )
4580 else:
4581 utf8_str = PLUGIN_DIRECTORIES_SEARCH
4582
4583 return utf8_str
4584
4586 global FULL_BACK_TRACE # Already correct format
4587 return FULL_BACK_TRACE
4588
4589
4590def LoadPluginModule(Dirname, ModuleName, FileName):
4591 """
4592 Load the plugin module named ModuleName located in the folder Dirname.
4593 The module can be either inside a file called FileName or a subdirectory
4594 called FileName that contains a __init__.py file.
4595 If this module cannot be loaded, its name is stored in failed_wizards_list
4596 and the error trace is stored in FULL_BACK_TRACE
4597 """
4598 import os
4599 import sys
4600 import traceback
4601
4602 global NOT_LOADED_WIZARDS
4603 global FULL_BACK_TRACE
4604 global KICAD_PLUGINS
4605
4606 try: # If there is an error loading the script, skip it
4607
4608 module_filename = os.path.join( Dirname, FileName )
4609 mtime = os.path.getmtime( module_filename )
4610 mods_before = set( sys.modules )
4611
4612 if ModuleName in KICAD_PLUGINS:
4613 plugin = KICAD_PLUGINS[ModuleName]
4614
4615 for dependency in plugin["dependencies"]:
4616 if dependency in sys.modules:
4617 del sys.modules[dependency]
4618
4619 mods_before = set( sys.modules )
4620
4621 if sys.version_info >= (3,0,0):
4622 import importlib
4623 mod = importlib.import_module( ModuleName )
4624 else:
4625 mod = __import__( ModuleName, locals(), globals() )
4626
4627 mods_after = set( sys.modules ).difference( mods_before )
4628 dependencies = [m for m in mods_after if m.startswith(ModuleName)]
4629
4630 KICAD_PLUGINS[ModuleName]={ "filename":module_filename,
4631 "modification_time":mtime,
4632 "ModuleName":mod,
4633 "dependencies": dependencies }
4634
4635 except:
4636 if ModuleName in KICAD_PLUGINS:
4637 del KICAD_PLUGINS[ModuleName]
4638
4639 if NOT_LOADED_WIZARDS != "" :
4640 NOT_LOADED_WIZARDS += "\n"
4641 NOT_LOADED_WIZARDS += module_filename
4642 FULL_BACK_TRACE += traceback.format_exc()
4643
4644
4645def LoadPlugins(bundlepath=None, userpath=None, thirdpartypath=None):
4646 """
4647 Initialise Scripting/Plugin python environment and load plugins.
4648
4649 Arguments:
4650 Note: bundlepath and userpath are given utf8 encoded, to be compatible with asimple C string
4651 bundlepath -- The path to the bundled scripts.
4652 The bundled Plugins are relative to this path, in the
4653 "plugins" subdirectory.
4654 WARNING: bundlepath must use '/' as path separator, and not '\'
4655 because it creates issues:
4656 \n and \r are seen as a escaped seq when passing this string to this method
4657 I am thinking this is due to the fact LoadPlugins is called from C++ code by
4658 PyRun_SimpleString()
4659
4660 NOTE: These are all of the possible "default" search paths for kicad
4661 python scripts. These paths will ONLY be added to the python
4662 search path ONLY IF they already exist.
4663
4664 The Scripts bundled with the KiCad installation:
4665 <bundlepath>/
4666 <bundlepath>/plugins/
4667
4668 The Scripts relative to the KiCad Users configuration:
4669 <userpath>/
4670 <userpath>/plugins/
4671
4672 The plugins from 3rd party packages:
4673 $KICAD_3RD_PARTY/plugins/
4674 """
4675 import os
4676 import sys
4677 import traceback
4678 import pcbnew
4679
4680 if sys.version_info >= (3,3,0):
4681 import importlib
4682 importlib.invalidate_caches()
4683
4684 """
4685 bundlepath and userpath are strings utf-8 encoded (compatible "C" strings).
4686 So convert these utf8 encoding to unicode strings to avoid any encoding issue.
4687 """
4688 try:
4689 bundlepath = bundlepath.decode( 'UTF-8' )
4690 userpath = userpath.decode( 'UTF-8' )
4691 thirdpartypath = thirdpartypath.decode( 'UTF-8' )
4692 except AttributeError:
4693 pass
4694
4696 plugin_directories=[]
4697
4698 """
4699 To be consistent with others paths, on windows, convert the unix '/' separator
4700 to the windows separator, although using '/' works
4701 """
4702 if sys.platform.startswith('win32'):
4703 if bundlepath:
4704 bundlepath = bundlepath.replace("/","\\")
4705 if thirdpartypath:
4706 thirdpartypath = thirdpartypath.replace("/","\\")
4707
4708 if bundlepath:
4709 plugin_directories.append(bundlepath)
4710 plugin_directories.append(os.path.join(bundlepath, 'plugins'))
4711
4712 if config_path:
4713 plugin_directories.append(os.path.join(config_path, 'scripting'))
4714 plugin_directories.append(os.path.join(config_path, 'scripting', 'plugins'))
4715
4716 if userpath:
4717 plugin_directories.append(userpath)
4718 plugin_directories.append(os.path.join(userpath, 'plugins'))
4719
4720 if thirdpartypath:
4721 plugin_directories.append(thirdpartypath)
4722
4723 global PLUGIN_DIRECTORIES_SEARCH
4724 PLUGIN_DIRECTORIES_SEARCH=""
4725 for plugins_dir in plugin_directories: # save search path list for later use
4726 if PLUGIN_DIRECTORIES_SEARCH != "" :
4727 PLUGIN_DIRECTORIES_SEARCH += "\n"
4728 PLUGIN_DIRECTORIES_SEARCH += plugins_dir
4729
4730 global FULL_BACK_TRACE
4731 FULL_BACK_TRACE="" # clear any existing trace
4732
4733 global NOT_LOADED_WIZARDS
4734 NOT_LOADED_WIZARDS = "" # save not loaded wizards names list for later use
4735
4736 global KICAD_PLUGINS
4737
4738 for plugins_dir in plugin_directories:
4739 if not os.path.isdir( plugins_dir ):
4740 continue
4741
4742 if plugins_dir not in sys.path:
4743 sys.path.append( plugins_dir )
4744
4745 for module in os.listdir(plugins_dir):
4746 fullPath = os.path.join( plugins_dir, module )
4747
4748 if os.path.isdir( fullPath ):
4749 if os.path.exists( os.path.join( fullPath, '__init__.py' ) ):
4750 LoadPluginModule( plugins_dir, module, module )
4751 else:
4752 if NOT_LOADED_WIZARDS != "" :
4753 NOT_LOADED_WIZARDS += "\n"
4754 NOT_LOADED_WIZARDS += 'Skip subdir ' + fullPath
4755 continue
4756
4757 if module == '__init__.py' or module[-3:] != '.py':
4758 continue
4759
4760 LoadPluginModule( plugins_dir, module[:-3], module )
4761
4762
4764 def __init__(self):
4765 pass
4766
4767 def register(self):
4768 import inspect
4769 import os
4770
4771 if isinstance(self,FilePlugin):
4772 pass # register to file plugins in C++
4773
4774 if isinstance(self,FootprintWizardPlugin):
4775 PYTHON_FOOTPRINT_WIZARD_LIST.register_wizard(self)
4776 return
4777
4778 if isinstance(self,ActionPlugin):
4779 """
4780 Get path to .py or .pyc that has definition of plugin class.
4781 If path is binary but source also exists, assume definition is in source.
4782 """
4783 self.__plugin_path = inspect.getfile(self.__class__)
4784 if self.__plugin_path.endswith('.pyc') and os.path.isfile(self.__plugin_path[:-1]):
4785 self.__plugin_path = self.__plugin_path[:-1]
4786 self.__plugin_path = self.__plugin_path + '/' + self.__class__.__name__
4787 PYTHON_ACTION_PLUGINS.register_action(self)
4788 return
4789
4790 return
4791
4792 def deregister(self):
4793 if isinstance(self,FilePlugin):
4794 pass # deregister to file plugins in C++
4795
4796 if isinstance(self,FootprintWizardPlugin):
4797 PYTHON_FOOTPRINT_WIZARD_LIST.deregister_wizard(self)
4798 return
4799
4800 if isinstance(self,ActionPlugin):
4801 PYTHON_ACTION_PLUGINS.deregister_action(self)
4802 return
4803
4804 return
4805
4806 def GetPluginPath( self ):
4807 return self.__plugin_path
4808
4809
4811 def __init__(self):
4812 KiCadPlugin.__init__(self)
4813
4814
4815from math import ceil, floor, sqrt
4816
4817uMM = "mm" # Millimetres
4818uMils = "mils" # Mils
4819uFloat = "float" # Natural number units (dimensionless)
4820uInteger = "integer" # Integer (no decimals, numeric, dimensionless)
4821uBool = "bool" # Boolean value
4822uRadians = "radians" # Angular units (radians)
4823uDegrees = "degrees" # Angular units (degrees)
4824uPercent = "%" # Percent (0% -> 100%)
4825uString = "string" # Raw string
4826
4827uNumeric = [uMM, uMils, uFloat, uInteger, uDegrees, uRadians, uPercent] # List of numeric types
4828uUnits = [uMM, uMils, uFloat, uInteger, uBool, uDegrees, uRadians, uPercent, uString] # List of allowable types
4829
4831 _true = ['true','t','y','yes','on','1',1,]
4832 _false = ['false','f','n','no','off','0',0,'',None]
4833
4834 _bools = _true + _false
4835
4836 def __init__(self, page, name, units, default, **kwarg):
4837 self.page = page
4838 self.name = name
4839 self.hint = kwarg.get('hint','') # Parameter hint (shown as mouse-over text)
4840 self.designator = kwarg.get('designator',' ') # Parameter designator such as "e, D, p" (etc)
4841
4842 if units.lower() in uUnits:
4843 self.units = units.lower()
4844 elif units.lower() == 'percent':
4845 self.units = uPercent
4846 elif type(units) in [list, tuple]: # Convert a list of options into a single string
4847 self.units = ",".join([str(el).strip() for el in units])
4848 else:
4849 self.units = units
4850
4851 self.multiple = int(kwarg.get('multiple',1)) # Check integer values are multiples of this number
4852 self.min_value = kwarg.get('min_value',None) # Check numeric values are above or equal to this number
4853 self.max_value = kwarg.get('max_value',None) # Check numeric values are below or equal to this number
4854
4855 self.SetValue(default)
4856 self.default = self.raw_value # Save value as default
4857
4858 def ClearErrors(self):
4859 self.error_list = []
4860
4861 def AddError(self, err, info=None):
4862
4863 if err in self.error_list: # prevent duplicate error messages
4864 return
4865 if info is not None:
4866 err = err + " (" + str(info) + ")"
4867
4868 self.error_list.append(err)
4869
4870 def Check(self, min_value=None, max_value=None, multiple=None, info=None):
4871
4872 if min_value is None:
4873 min_value = self.min_value
4874 if max_value is None:
4875 max_value = self.max_value
4876 if multiple is None:
4877 multiple = self.multiple
4878
4879 if self.units not in uUnits and ',' not in self.units: # Allow either valid units or a list of strings
4880 self.AddError("type '{t}' unknown".format(t=self.units),info)
4881 self.AddError("Allowable types: " + str(self.units),info)
4882
4883 if self.units in uNumeric:
4884 try:
4885 to_num = float(self.raw_value)
4886
4887 if min_value is not None: # Check minimum value if it is present
4888 if to_num < min_value:
4889 self.AddError("value '{v}' is below minimum ({m})".format(v=self.raw_value,m=min_value),info)
4890
4891 if max_value is not None: # Check maximum value if it is present
4892 if to_num > max_value:
4893 self.AddError("value '{v}' is above maximum ({m})".format(v=self.raw_value,m=max_value),info)
4894
4895 except:
4896 self.AddError("value '{v}' is not of type '{t}'".format(v = self.raw_value, t=self.units),info)
4897
4898 if self.units == uInteger: # Perform integer specific checks
4899 try:
4900 to_int = int(self.raw_value)
4901
4902 if multiple is not None and multiple > 1:
4903 if (to_int % multiple) > 0:
4904 self.AddError("value '{v}' is not a multiple of {m}".format(v=self.raw_value,m=multiple),info)
4905 except:
4906 self.AddError("value '{v}' is not an integer".format(v=self.raw_value),info)
4907
4908 if self.units == uBool: # Check that the value is of a correct boolean format
4909 if self.raw_value in [True,False] or str(self.raw_value).lower() in self._bools:
4910 pass
4911 else:
4912 self.AddError("value '{v}' is not a boolean value".format(v = self.raw_value),info)
4913
4914 @property
4915 def value(self): # Return the current value, converted to appropriate units (from string representation) if required
4916 v = str(self.raw_value) # Enforce string type for known starting point
4917
4918 if self.units == uInteger: # Integer values
4919 return int(v)
4920 elif self.units in uNumeric: # Any values that use floating points
4921 v = v.replace(",",".") # Replace "," separators with "."
4922 v = float(v)
4923
4924 if self.units == uMM: # Convert from millimetres to nanometres
4925 return FromMM(v)
4926
4927 elif self.units == uMils: # Convert from mils to nanometres
4928 return FromMils(v)
4929
4930 else: # Any other floating-point values
4931 return v
4932
4933 elif self.units == uBool:
4934 if v.lower() in self._true:
4935 return True
4936 else:
4937 return False
4938 else:
4939 return v
4940
4941 def DefaultValue(self): # Reset the value of the parameter to its default
4942 self.raw_value = str(self.default)
4943
4944 def SetValue(self, new_value): # Update the value
4945 new_value = str(new_value)
4946
4947 if len(new_value.strip()) == 0:
4948 if not self.units in [uString, uBool]:
4949 return # Ignore empty values unless for strings or bools
4950
4951 if self.units == uBool: # Enforce the same boolean representation as is used in KiCad
4952 new_value = "1" if new_value.lower() in self._true else "0"
4953 elif self.units in uNumeric:
4954 new_value = new_value.replace(",", ".") # Enforce decimal point separators
4955 elif ',' in self.units: # Select from a list of values
4956 if new_value not in self.units.split(','):
4957 new_value = self.units.split(',')[0]
4958
4959 self.raw_value = new_value
4960
4961 def __str__(self): # pretty-print the parameter
4962
4963 s = self.name + ": " + str(self.raw_value)
4964
4965 if self.units in [uMM, uMils, uPercent, uRadians, uDegrees]:
4966 s += self.units
4967 elif self.units == uBool: # Special case for Boolean values
4968 s = self.name + ": {b}".format(b = "True" if self.value else "False")
4969 elif self.units == uString:
4970 s = self.name + ": '" + self.raw_value + "'"
4971
4972 return s
4973
4974
4976 def __init__(self):
4977 KiCadPlugin.__init__(self)
4978 self.defaults()
4979
4980 def defaults(self):
4981 self.module = None
4982 self.params = [] # List of added parameters that observes addition order
4983
4984 self.name = "KiCad FP Wizard"
4985 self.description = "Undefined Footprint Wizard plugin"
4986 self.image = ""
4988
4989 def AddParam(self, page, name, unit, default, **kwarg):
4990
4991 if self.GetParam(page,name) is not None: # Param already exists!
4992 return
4993
4994 param = FootprintWizardParameter(page, name, unit, default, **kwarg) # Create a new parameter
4995 self.params.append(param)
4996
4997 @property
4998 def parameters(self): # This is a helper function that returns a nested (unordered) dict of the VALUES of parameters
4999 pages = {} # Page dict
5000 for p in self.params:
5001 if p.page not in pages:
5002 pages[p.page] = {}
5003
5004 pages[p.page][p.name] = p.value # Return the 'converted' value (convert from string to actual useful units)
5005
5006 return pages
5007
5008 @property
5009 def values(self): # Same as above
5010 return self.parameters
5011
5012 def ResetWizard(self): # Reset all parameters to default values
5013 for p in self.params:
5014 p.DefaultValue()
5015
5016 def GetName(self): # Return the name of this wizard
5017 return self.name
5018
5019 def GetImage(self): # Return the filename of the preview image associated with this wizard
5020 return self.image
5021
5022 def GetDescription(self): # Return the description text
5023 return self.description
5024
5025 def GetValue(self):
5026 raise NotImplementedError
5027
5029 return "REF" # Default reference prefix for any footprint
5030
5031 def GetParam(self, page, name): # Grab a parameter
5032 for p in self.params:
5033 if p.page == page and p.name == name:
5034 return p
5035
5036 return None
5037
5038 def CheckParam(self, page, name, **kwarg):
5039 self.GetParam(page,name).Check(**kwarg)
5040
5041 def AnyErrors(self):
5042 return any([len(p.error_list) > 0 for p in self.params])
5043
5044 @property
5045 def pages(self): # Return an (ordered) list of the available page names
5046 page_list = []
5047 for p in self.params:
5048 if p.page not in page_list:
5049 page_list.append(p.page)
5050
5051 return page_list
5052
5053 def GetNumParameterPages(self): # Return the number of parameter pages
5054 return len(self.pages)
5055
5056 def GetParameterPageName(self,page_n): # Return the name of a page at a given index
5057 return self.pages[page_n]
5058
5059 def GetParametersByPageName(self, page_name): # Return a list of parameters on a given page
5060 params = []
5061
5062 for p in self.params:
5063 if p.page == page_name:
5064 params.append(p)
5065
5066 return params
5067
5068 def GetParametersByPageIndex(self, page_index): # Return an ordered list of parameters on a given page
5069 return self.GetParametersByPageName(self.GetParameterPageName(page_index))
5070
5071 def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
5072 params = self.GetParametersByPageIndex(page_index)
5073 return [p.designator for p in params]
5074
5075 def GetParameterNames(self,page_index): # Return the list of names associated with a given page
5076 params = self.GetParametersByPageIndex(page_index)
5077 return [p.name for p in params]
5078
5079 def GetParameterValues(self,page_index): # Return the list of values associated with a given page
5080 params = self.GetParametersByPageIndex(page_index)
5081 return [str(p.raw_value) for p in params]
5082
5083 def GetParameterErrors(self,page_index): # Return list of errors associated with a given page
5084 params = self.GetParametersByPageIndex(page_index)
5085 return [str("\n".join(p.error_list)) for p in params]
5086
5087 def GetParameterTypes(self, page_index): # Return list of units associated with a given page
5088 params = self.GetParametersByPageIndex(page_index)
5089 return [str(p.units) for p in params]
5090
5091 def GetParameterHints(self, page_index): # Return a list of units associated with a given page
5092 params = self.GetParametersByPageIndex(page_index)
5093 return [str(p.hint) for p in params]
5094
5095 def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
5096 params = self.GetParametersByPageIndex(page_index)
5097 return [str(p.designator) for p in params]
5098
5099 def SetParameterValues(self, page_index, list_of_values): # Update values on a given page
5100
5101 params = self.GetParametersByPageIndex(page_index)
5102
5103 for i, param in enumerate(params):
5104 if i >= len(list_of_values):
5105 break
5106 param.SetValue(list_of_values[i])
5107
5108 def GetFootprint( self ):
5109 self.BuildFootprint()
5110 return self.module
5111
5113 return
5114
5115 def GetBuildMessages( self ):
5116 return self.buildmessages
5117
5118 def Show(self):
5119 text = "Footprint Wizard Name: {name}\n".format(name=self.GetName())
5120 text += "Footprint Wizard Description: {desc}\n".format(desc=self.GetDescription())
5121
5122 n_pages = self.GetNumParameterPages()
5123
5124 text += "Pages: {n}\n".format(n=n_pages)
5125
5126 for i in range(n_pages):
5127 name = self.GetParameterPageName(i)
5128
5129 params = self.GetParametersByPageName(name)
5130
5131 text += "{name}\n".format(name=name)
5132
5133 for j in range(len(params)):
5134 text += ("\t{param}{err}\n".format(
5135 param = str(params[j]),
5136 err = ' *' if len(params[j].error_list) > 0 else ''
5137 ))
5138
5139 if self.AnyErrors():
5140 text += " * Errors exist for these parameters"
5141
5142 return text
5143
5145 def __init__( self ):
5146 KiCadPlugin.__init__( self )
5150 self.defaults()
5151
5152 def defaults( self ):
5153 self.name = "Undefined Action plugin"
5154 self.category = "Undefined"
5155 self.description = ""
5156
5157 def GetName( self ):
5158 return self.name
5159
5160 def GetCategoryName( self ):
5161 return self.category
5162
5163 def GetDescription( self ):
5164 return self.description
5165
5167 return self.show_toolbar_button
5168
5169 def GetIconFileName( self, dark ):
5170 if dark and self.dark_icon_file_name:
5171 return self.dark_icon_file_name
5172 else:
5173 return self.icon_file_name
5174
5175 def Run(self):
5176 return
5177
5178
5179
5180def KiROUND(vec):
5181 r"""KiROUND(VECTOR2D const & vec) -> VECTOR2I"""
5182 return _pcbnew.KiROUND(vec)
5184 r"""Proxy of C++ VECTOR2< int > class."""
5185
5186 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5187 __repr__ = _swig_repr
5188 x = property(_pcbnew.VECTOR2I_x_get, _pcbnew.VECTOR2I_x_set, doc=r"""x : int""")
5189 y = property(_pcbnew.VECTOR2I_y_get, _pcbnew.VECTOR2I_y_set, doc=r"""y : int""")
5190
5191 def __init__(self, *args):
5192 r"""
5193 __init__(VECTOR2I self) -> VECTOR2I
5194 __init__(VECTOR2I self, int x, int y) -> VECTOR2I
5195 __init__(VECTOR2I self, VECTOR2I aVec) -> VECTOR2I
5196 """
5197 _pcbnew.VECTOR2I_swiginit(self, _pcbnew.new_VECTOR2I(*args))
5198
5199 def EuclideanNorm(self):
5200 r"""EuclideanNorm(VECTOR2I self) -> int"""
5201 return _pcbnew.VECTOR2I_EuclideanNorm(self)
5202
5204 r"""SquaredEuclideanNorm(VECTOR2I self) -> VECTOR2< int >::extended_type"""
5205 return _pcbnew.VECTOR2I_SquaredEuclideanNorm(self)
5206
5207 def Perpendicular(self):
5208 r"""Perpendicular(VECTOR2I self) -> VECTOR2I"""
5209 return _pcbnew.VECTOR2I_Perpendicular(self)
5210
5211 def Resize(self, aNewLength):
5212 r"""Resize(VECTOR2I self, int aNewLength) -> VECTOR2I"""
5213 return _pcbnew.VECTOR2I_Resize(self, aNewLength)
5214
5215 def Format(self):
5216 r"""Format(VECTOR2I self) -> string"""
5217 return _pcbnew.VECTOR2I_Format(self)
5218
5219 def Cross(self, aVector):
5220 r"""Cross(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
5221 return _pcbnew.VECTOR2I_Cross(self, aVector)
5222
5223 def Dot(self, aVector):
5224 r"""Dot(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
5225 return _pcbnew.VECTOR2I_Dot(self, aVector)
5226
5227 def __add__(self, *args):
5228 r"""
5229 __add__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5230 __add__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5231 """
5232 return _pcbnew.VECTOR2I___add__(self, *args)
5233
5234 def __imul__(self, *args):
5235 r"""
5236 __imul__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5237 __imul__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5238