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_TRACE_T = _pcbnew.PCB_TRACE_T
1387
1388PCB_VIA_T = _pcbnew.PCB_VIA_T
1389
1390PCB_ARC_T = _pcbnew.PCB_ARC_T
1391
1392PCB_MARKER_T = _pcbnew.PCB_MARKER_T
1393
1394PCB_DIMENSION_T = _pcbnew.PCB_DIMENSION_T
1395
1396PCB_DIM_ALIGNED_T = _pcbnew.PCB_DIM_ALIGNED_T
1397
1398PCB_DIM_LEADER_T = _pcbnew.PCB_DIM_LEADER_T
1399
1400PCB_DIM_CENTER_T = _pcbnew.PCB_DIM_CENTER_T
1401
1402PCB_DIM_RADIAL_T = _pcbnew.PCB_DIM_RADIAL_T
1403
1404PCB_DIM_ORTHOGONAL_T = _pcbnew.PCB_DIM_ORTHOGONAL_T
1405
1406PCB_TARGET_T = _pcbnew.PCB_TARGET_T
1407
1408PCB_ZONE_T = _pcbnew.PCB_ZONE_T
1409
1410PCB_ITEM_LIST_T = _pcbnew.PCB_ITEM_LIST_T
1411
1412PCB_NETINFO_T = _pcbnew.PCB_NETINFO_T
1413
1414PCB_GROUP_T = _pcbnew.PCB_GROUP_T
1415
1416PCB_FIELD_LOCATE_REFERENCE_T = _pcbnew.PCB_FIELD_LOCATE_REFERENCE_T
1417
1418PCB_FIELD_LOCATE_VALUE_T = _pcbnew.PCB_FIELD_LOCATE_VALUE_T
1419
1420PCB_FIELD_LOCATE_FOOTPRINT_T = _pcbnew.PCB_FIELD_LOCATE_FOOTPRINT_T
1421
1422PCB_FIELD_LOCATE_DATASHEET_T = _pcbnew.PCB_FIELD_LOCATE_DATASHEET_T
1423
1424PCB_LOCATE_STDVIA_T = _pcbnew.PCB_LOCATE_STDVIA_T
1425
1426PCB_LOCATE_UVIA_T = _pcbnew.PCB_LOCATE_UVIA_T
1427
1428PCB_LOCATE_BBVIA_T = _pcbnew.PCB_LOCATE_BBVIA_T
1429
1430PCB_LOCATE_TEXT_T = _pcbnew.PCB_LOCATE_TEXT_T
1431
1432PCB_LOCATE_HOLE_T = _pcbnew.PCB_LOCATE_HOLE_T
1433
1434PCB_LOCATE_PTH_T = _pcbnew.PCB_LOCATE_PTH_T
1435
1436PCB_LOCATE_NPTH_T = _pcbnew.PCB_LOCATE_NPTH_T
1437
1438PCB_LOCATE_BOARD_EDGE_T = _pcbnew.PCB_LOCATE_BOARD_EDGE_T
1439
1440PCB_SHAPE_LOCATE_SEGMENT_T = _pcbnew.PCB_SHAPE_LOCATE_SEGMENT_T
1441
1442PCB_SHAPE_LOCATE_RECT_T = _pcbnew.PCB_SHAPE_LOCATE_RECT_T
1443
1444PCB_SHAPE_LOCATE_CIRCLE_T = _pcbnew.PCB_SHAPE_LOCATE_CIRCLE_T
1445
1446PCB_SHAPE_LOCATE_ARC_T = _pcbnew.PCB_SHAPE_LOCATE_ARC_T
1447
1448PCB_SHAPE_LOCATE_POLY_T = _pcbnew.PCB_SHAPE_LOCATE_POLY_T
1449
1450PCB_SHAPE_LOCATE_BEZIER_T = _pcbnew.PCB_SHAPE_LOCATE_BEZIER_T
1451
1452SCH_MARKER_T = _pcbnew.SCH_MARKER_T
1453
1454SCH_JUNCTION_T = _pcbnew.SCH_JUNCTION_T
1455
1456SCH_NO_CONNECT_T = _pcbnew.SCH_NO_CONNECT_T
1457
1458SCH_BUS_WIRE_ENTRY_T = _pcbnew.SCH_BUS_WIRE_ENTRY_T
1459
1460SCH_BUS_BUS_ENTRY_T = _pcbnew.SCH_BUS_BUS_ENTRY_T
1461
1462SCH_LINE_T = _pcbnew.SCH_LINE_T
1463
1464SCH_SHAPE_T = _pcbnew.SCH_SHAPE_T
1465
1466SCH_BITMAP_T = _pcbnew.SCH_BITMAP_T
1467
1468SCH_TEXTBOX_T = _pcbnew.SCH_TEXTBOX_T
1469
1470SCH_TEXT_T = _pcbnew.SCH_TEXT_T
1471
1472SCH_LABEL_T = _pcbnew.SCH_LABEL_T
1473
1474SCH_GLOBAL_LABEL_T = _pcbnew.SCH_GLOBAL_LABEL_T
1475
1476SCH_HIER_LABEL_T = _pcbnew.SCH_HIER_LABEL_T
1477
1478SCH_DIRECTIVE_LABEL_T = _pcbnew.SCH_DIRECTIVE_LABEL_T
1479
1480SCH_FIELD_T = _pcbnew.SCH_FIELD_T
1481
1482SCH_SYMBOL_T = _pcbnew.SCH_SYMBOL_T
1483
1484SCH_SHEET_PIN_T = _pcbnew.SCH_SHEET_PIN_T
1485
1486SCH_SHEET_T = _pcbnew.SCH_SHEET_T
1487
1488SCH_PIN_T = _pcbnew.SCH_PIN_T
1489
1490SCH_FIELD_LOCATE_REFERENCE_T = _pcbnew.SCH_FIELD_LOCATE_REFERENCE_T
1491
1492SCH_FIELD_LOCATE_VALUE_T = _pcbnew.SCH_FIELD_LOCATE_VALUE_T
1493
1494SCH_FIELD_LOCATE_FOOTPRINT_T = _pcbnew.SCH_FIELD_LOCATE_FOOTPRINT_T
1495
1496SCH_FIELD_LOCATE_DATASHEET_T = _pcbnew.SCH_FIELD_LOCATE_DATASHEET_T
1497
1498SCH_ITEM_LOCATE_WIRE_T = _pcbnew.SCH_ITEM_LOCATE_WIRE_T
1499
1500SCH_ITEM_LOCATE_BUS_T = _pcbnew.SCH_ITEM_LOCATE_BUS_T
1501
1502SCH_ITEM_LOCATE_GRAPHIC_LINE_T = _pcbnew.SCH_ITEM_LOCATE_GRAPHIC_LINE_T
1503
1504SCH_LABEL_LOCATE_ANY_T = _pcbnew.SCH_LABEL_LOCATE_ANY_T
1505
1506SCH_LABEL_LOCATE_WIRE_T = _pcbnew.SCH_LABEL_LOCATE_WIRE_T
1507
1508SCH_LABEL_LOCATE_BUS_T = _pcbnew.SCH_LABEL_LOCATE_BUS_T
1509
1510SCH_SYMBOL_LOCATE_POWER_T = _pcbnew.SCH_SYMBOL_LOCATE_POWER_T
1511
1512SCH_LOCATE_ANY_T = _pcbnew.SCH_LOCATE_ANY_T
1513
1514SCH_SCREEN_T = _pcbnew.SCH_SCREEN_T
1515
1516SCHEMATIC_T = _pcbnew.SCHEMATIC_T
1517
1518LIB_SYMBOL_T = _pcbnew.LIB_SYMBOL_T
1519
1520LIB_SHAPE_T = _pcbnew.LIB_SHAPE_T
1521
1522LIB_TEXT_T = _pcbnew.LIB_TEXT_T
1523
1524LIB_TEXTBOX_T = _pcbnew.LIB_TEXTBOX_T
1525
1526LIB_PIN_T = _pcbnew.LIB_PIN_T
1527
1528LIB_FIELD_T = _pcbnew.LIB_FIELD_T
1529
1530GERBER_LAYOUT_T = _pcbnew.GERBER_LAYOUT_T
1531
1532GERBER_DRAW_ITEM_T = _pcbnew.GERBER_DRAW_ITEM_T
1533
1534GERBER_IMAGE_T = _pcbnew.GERBER_IMAGE_T
1535
1536WSG_LINE_T = _pcbnew.WSG_LINE_T
1537
1538WSG_RECT_T = _pcbnew.WSG_RECT_T
1539
1540WSG_POLY_T = _pcbnew.WSG_POLY_T
1541
1542WSG_TEXT_T = _pcbnew.WSG_TEXT_T
1543
1544WSG_BITMAP_T = _pcbnew.WSG_BITMAP_T
1545
1546WSG_PAGE_T = _pcbnew.WSG_PAGE_T
1547
1548WS_PROXY_UNDO_ITEM_T = _pcbnew.WS_PROXY_UNDO_ITEM_T
1549
1550WS_PROXY_UNDO_ITEM_PLUS_T = _pcbnew.WS_PROXY_UNDO_ITEM_PLUS_T
1551
1552SYMBOL_LIB_TABLE_T = _pcbnew.SYMBOL_LIB_TABLE_T
1553
1554FP_LIB_TABLE_T = _pcbnew.FP_LIB_TABLE_T
1555
1556SYMBOL_LIBS_T = _pcbnew.SYMBOL_LIBS_T
1557
1558SEARCH_STACK_T = _pcbnew.SEARCH_STACK_T
1559
1560S3D_CACHE_T = _pcbnew.S3D_CACHE_T
1561
1562MAX_STRUCT_TYPE_ID = _pcbnew.MAX_STRUCT_TYPE_ID
1563
1564
1565def BaseType(aType):
1566 r"""BaseType(KICAD_T const aType) -> KICAD_T"""
1567 return _pcbnew.BaseType(aType)
1568
1569def IsNullType(aType):
1570 r"""IsNullType(KICAD_T const aType) -> bool"""
1571 return _pcbnew.IsNullType(aType)
1572
1574 r"""IsInstantiableType(KICAD_T const aType) -> bool"""
1575 return _pcbnew.IsInstantiableType(aType)
1576
1578 r"""IsEeschemaType(KICAD_T const aType) -> bool"""
1579 return _pcbnew.IsEeschemaType(aType)
1580
1581def IsPcbnewType(aType):
1582 r"""IsPcbnewType(KICAD_T const aType) -> bool"""
1583 return _pcbnew.IsPcbnewType(aType)
1584
1586 r"""IsGerbviewType(KICAD_T const aType) -> bool"""
1587 return _pcbnew.IsGerbviewType(aType)
1588
1590 r"""IsPageLayoutEditorType(KICAD_T const aType) -> bool"""
1591 return _pcbnew.IsPageLayoutEditorType(aType)
1592
1593def IsMiscType(aType):
1594 r"""IsMiscType(KICAD_T const aType) -> bool"""
1595 return _pcbnew.IsMiscType(aType)
1596
1597def IsTypeCorrect(aType):
1598 r"""IsTypeCorrect(KICAD_T aType) -> bool"""
1599 return _pcbnew.IsTypeCorrect(aType)
1600
1602 r"""IsTypeAvailable(KICAD_T aType) -> bool"""
1603 return _pcbnew.IsTypeAvailable(aType)
1604INSPECT_RESULT_QUIT = _pcbnew.INSPECT_RESULT_QUIT
1605
1606INSPECT_RESULT_CONTINUE = _pcbnew.INSPECT_RESULT_CONTINUE
1607
1609 r"""Proxy of C++ EDA_ITEM class."""
1610
1611 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1612
1613 def __init__(self, *args, **kwargs):
1614 raise AttributeError("No constructor defined - class is abstract")
1615 __repr__ = _swig_repr
1616 __swig_destroy__ = _pcbnew.delete_EDA_ITEM
1617
1618 def Type(self):
1619 r"""Type(EDA_ITEM self) -> KICAD_T"""
1620 return _pcbnew.EDA_ITEM_Type(self)
1621
1622 def GetParent(self):
1623 r"""GetParent(EDA_ITEM self) -> EDA_ITEM"""
1624 return _pcbnew.EDA_ITEM_GetParent(self)
1625
1626 def SetParent(self, aParent):
1627 r"""SetParent(EDA_ITEM self, EDA_ITEM aParent)"""
1628 return _pcbnew.EDA_ITEM_SetParent(self, aParent)
1629
1630 def IsModified(self):
1631 r"""IsModified(EDA_ITEM self) -> bool"""
1632 return _pcbnew.EDA_ITEM_IsModified(self)
1633
1634 def IsNew(self):
1635 r"""IsNew(EDA_ITEM self) -> bool"""
1636 return _pcbnew.EDA_ITEM_IsNew(self)
1637
1638 def IsMoving(self):
1639 r"""IsMoving(EDA_ITEM self) -> bool"""
1640 return _pcbnew.EDA_ITEM_IsMoving(self)
1641
1642 def IsSelected(self):
1643 r"""IsSelected(EDA_ITEM self) -> bool"""
1644 return _pcbnew.EDA_ITEM_IsSelected(self)
1645
1646 def IsEntered(self):
1647 r"""IsEntered(EDA_ITEM self) -> bool"""
1648 return _pcbnew.EDA_ITEM_IsEntered(self)
1649
1650 def IsBrightened(self):
1651 r"""IsBrightened(EDA_ITEM self) -> bool"""
1652 return _pcbnew.EDA_ITEM_IsBrightened(self)
1653
1654 def IsRollover(self):
1655 r"""IsRollover(EDA_ITEM self) -> bool"""
1656 return _pcbnew.EDA_ITEM_IsRollover(self)
1657
1658 def SetSelected(self):
1659 r"""SetSelected(EDA_ITEM self)"""
1660 return _pcbnew.EDA_ITEM_SetSelected(self)
1661
1662 def SetBrightened(self):
1663 r"""SetBrightened(EDA_ITEM self)"""
1664 return _pcbnew.EDA_ITEM_SetBrightened(self)
1665
1666 def ClearSelected(self):
1667 r"""ClearSelected(EDA_ITEM self)"""
1668 return _pcbnew.EDA_ITEM_ClearSelected(self)
1669
1671 r"""ClearBrightened(EDA_ITEM self)"""
1672 return _pcbnew.EDA_ITEM_ClearBrightened(self)
1673
1674 def SetModified(self):
1675 r"""SetModified(EDA_ITEM self)"""
1676 return _pcbnew.EDA_ITEM_SetModified(self)
1677
1678 def SetFlags(self, aMask):
1679 r"""SetFlags(EDA_ITEM self, EDA_ITEM_FLAGS aMask)"""
1680 return _pcbnew.EDA_ITEM_SetFlags(self, aMask)
1681
1682 def XorFlags(self, aMask):
1683 r"""XorFlags(EDA_ITEM self, EDA_ITEM_FLAGS aMask)"""
1684 return _pcbnew.EDA_ITEM_XorFlags(self, aMask)
1685
1686 def ClearFlags(self, *args):
1687 r"""ClearFlags(EDA_ITEM self, EDA_ITEM_FLAGS aMask=EDA_ITEM_ALL_FLAGS)"""
1688 return _pcbnew.EDA_ITEM_ClearFlags(self, *args)
1689
1690 def GetFlags(self):
1691 r"""GetFlags(EDA_ITEM self) -> EDA_ITEM_FLAGS"""
1692 return _pcbnew.EDA_ITEM_GetFlags(self)
1693
1694 def HasFlag(self, aFlag):
1695 r"""HasFlag(EDA_ITEM self, EDA_ITEM_FLAGS aFlag) -> bool"""
1696 return _pcbnew.EDA_ITEM_HasFlag(self, aFlag)
1697
1698 def GetEditFlags(self):
1699 r"""GetEditFlags(EDA_ITEM self) -> EDA_ITEM_FLAGS"""
1700 return _pcbnew.EDA_ITEM_GetEditFlags(self)
1701
1703 r"""ClearEditFlags(EDA_ITEM self)"""
1704 return _pcbnew.EDA_ITEM_ClearEditFlags(self)
1705
1706 def GetTempFlags(self):
1707 r"""GetTempFlags(EDA_ITEM self) -> EDA_ITEM_FLAGS"""
1708 return _pcbnew.EDA_ITEM_GetTempFlags(self)
1709
1711 r"""ClearTempFlags(EDA_ITEM self)"""
1712 return _pcbnew.EDA_ITEM_ClearTempFlags(self)
1713
1714 def RenderAsBitmap(self, aWorldScale):
1715 r"""RenderAsBitmap(EDA_ITEM self, double aWorldScale) -> bool"""
1716 return _pcbnew.EDA_ITEM_RenderAsBitmap(self, aWorldScale)
1717
1718 def SetIsShownAsBitmap(self, aBitmap):
1719 r"""SetIsShownAsBitmap(EDA_ITEM self, bool aBitmap)"""
1720 return _pcbnew.EDA_ITEM_SetIsShownAsBitmap(self, aBitmap)
1721
1723 r"""IsShownAsBitmap(EDA_ITEM self) -> bool"""
1724 return _pcbnew.EDA_ITEM_IsShownAsBitmap(self)
1725
1726 def IsType(self, aScanTypes):
1727 r"""IsType(EDA_ITEM self, std::vector< KICAD_T,std::allocator< KICAD_T > > const & aScanTypes) -> bool"""
1728 return _pcbnew.EDA_ITEM_IsType(self, aScanTypes)
1729
1730 def SetForceVisible(self, aEnable):
1731 r"""SetForceVisible(EDA_ITEM self, bool aEnable)"""
1732 return _pcbnew.EDA_ITEM_SetForceVisible(self, aEnable)
1733
1735 r"""IsForceVisible(EDA_ITEM self) -> bool"""
1736 return _pcbnew.EDA_ITEM_IsForceVisible(self)
1737
1738 def GetMsgPanelInfo(self, aFrame, aList):
1739 r"""GetMsgPanelInfo(EDA_ITEM self, EDA_DRAW_FRAME * aFrame, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)"""
1740 return _pcbnew.EDA_ITEM_GetMsgPanelInfo(self, aFrame, aList)
1741
1743 r"""GetFriendlyName(EDA_ITEM self) -> wxString"""
1744 return _pcbnew.EDA_ITEM_GetFriendlyName(self)
1745
1746 def HitTest(self, *args):
1747 r"""
1748 HitTest(EDA_ITEM self, VECTOR2I aPosition, int aAccuracy=0) -> bool
1749 HitTest(EDA_ITEM self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
1750 """
1751 return _pcbnew.EDA_ITEM_HitTest(self, *args)
1752
1754 r"""GetBoundingBox(EDA_ITEM self) -> BOX2I"""
1755 return _pcbnew.EDA_ITEM_GetBoundingBox(self)
1756
1757 def GetPosition(self):
1758 r"""GetPosition(EDA_ITEM self) -> VECTOR2I"""
1759 return _pcbnew.EDA_ITEM_GetPosition(self)
1760
1761 def SetPosition(self, aPos):
1762 r"""SetPosition(EDA_ITEM self, VECTOR2I aPos)"""
1763 return _pcbnew.EDA_ITEM_SetPosition(self, aPos)
1764
1766 r"""GetFocusPosition(EDA_ITEM self) -> VECTOR2I"""
1767 return _pcbnew.EDA_ITEM_GetFocusPosition(self)
1768
1770 r"""GetSortPosition(EDA_ITEM self) -> VECTOR2I"""
1771 return _pcbnew.EDA_ITEM_GetSortPosition(self)
1772
1773 def Clone(self):
1774 r"""Clone(EDA_ITEM self) -> EDA_ITEM"""
1775 return _pcbnew.EDA_ITEM_Clone(self)
1776
1777 def Visit(self, inspector, testData, aScanTypes):
1778 r"""Visit(EDA_ITEM self, INSPECTOR inspector, void * testData, std::vector< KICAD_T,std::allocator< KICAD_T > > const & aScanTypes) -> INSPECT_RESULT"""
1779 return _pcbnew.EDA_ITEM_Visit(self, inspector, testData, aScanTypes)
1780
1781 def GetClass(self):
1782 r"""GetClass(EDA_ITEM self) -> wxString"""
1783 return _pcbnew.EDA_ITEM_GetClass(self)
1784
1785 def GetTypeDesc(self):
1786 r"""GetTypeDesc(EDA_ITEM self) -> wxString"""
1787 return _pcbnew.EDA_ITEM_GetTypeDesc(self)
1788
1789 def GetItemDescription(self, aUnitsProvider):
1790 r"""GetItemDescription(EDA_ITEM self, UNITS_PROVIDER aUnitsProvider) -> wxString"""
1791 return _pcbnew.EDA_ITEM_GetItemDescription(self, aUnitsProvider)
1792
1793 def GetMenuImage(self):
1794 r"""GetMenuImage(EDA_ITEM self) -> BITMAPS"""
1795 return _pcbnew.EDA_ITEM_GetMenuImage(self)
1796
1797 def Matches(self, aSearchData, aAuxData):
1798 r"""Matches(EDA_ITEM self, EDA_SEARCH_DATA const & aSearchData, void * aAuxData) -> bool"""
1799 return _pcbnew.EDA_ITEM_Matches(self, aSearchData, aAuxData)
1800
1801 def Replace(self, *args):
1802 r"""
1803 Replace(EDA_ITEM self, EDA_SEARCH_DATA const & aSearchData, wxString aText) -> bool
1804 Replace(EDA_ITEM self, EDA_SEARCH_DATA const & aSearchData, void * aAuxData=None) -> bool
1805 """
1806 return _pcbnew.EDA_ITEM_Replace(self, *args)
1807
1808 def IsReplaceable(self):
1809 r"""IsReplaceable(EDA_ITEM self) -> bool"""
1810 return _pcbnew.EDA_ITEM_IsReplaceable(self)
1811
1812 def __lt__(self, aItem):
1813 r"""__lt__(EDA_ITEM self, EDA_ITEM aItem) -> bool"""
1814 return _pcbnew.EDA_ITEM___lt__(self, aItem)
1815
1816 @staticmethod
1817 def Sort(aLeft, aRight):
1818 r"""Sort(EDA_ITEM aLeft, EDA_ITEM aRight) -> bool"""
1819 return _pcbnew.EDA_ITEM_Sort(aLeft, aRight)
1820
1821 def ViewBBox(self):
1822 r"""ViewBBox(EDA_ITEM self) -> BOX2I"""
1823 return _pcbnew.EDA_ITEM_ViewBBox(self)
1824
1825 def ViewGetLayers(self, aLayers, aCount):
1826 r"""ViewGetLayers(EDA_ITEM self, int [] aLayers, int & aCount)"""
1827 return _pcbnew.EDA_ITEM_ViewGetLayers(self, aLayers, aCount)
1828 m_Uuid = property(_pcbnew.EDA_ITEM_m_Uuid_get, doc=r"""m_Uuid : q(const).KIID""")
1829
1830# Register EDA_ITEM in _pcbnew:
1831_pcbnew.EDA_ITEM_swigregister(EDA_ITEM)
1832
1833def EDA_ITEM_Sort(aLeft, aRight):
1834 r"""EDA_ITEM_Sort(EDA_ITEM aLeft, EDA_ITEM aRight) -> bool"""
1835 return _pcbnew.EDA_ITEM_Sort(aLeft, aRight)
1836
1837
1838def new_clone(aItem):
1839 r"""new_clone(EDA_ITEM aItem) -> EDA_ITEM"""
1840 return _pcbnew.new_clone(aItem)
1842 r"""Proxy of C++ CompareByUuid class."""
1843
1844 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1845 __repr__ = _swig_repr
1846
1847 def __call__(self, item1, item2):
1848 r"""__call__(CompareByUuid self, EDA_ITEM item1, EDA_ITEM item2) -> bool"""
1849 return _pcbnew.CompareByUuid___call__(self, item1, item2)
1850
1851 def __init__(self):
1852 r"""__init__(CompareByUuid self) -> CompareByUuid"""
1853 _pcbnew.CompareByUuid_swiginit(self, _pcbnew.new_CompareByUuid())
1854 __swig_destroy__ = _pcbnew.delete_CompareByUuid
1855
1856# Register CompareByUuid in _pcbnew:
1857_pcbnew.CompareByUuid_swigregister(CompareByUuid)
1858
1860 r"""Proxy of C++ EDA_IU_SCALE class."""
1861
1862 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1863 __repr__ = _swig_repr
1864 IU_PER_MM = property(_pcbnew.EDA_IU_SCALE_IU_PER_MM_get, doc=r"""IU_PER_MM : q(const).double""")
1865 IU_PER_MILS = property(_pcbnew.EDA_IU_SCALE_IU_PER_MILS_get, doc=r"""IU_PER_MILS : q(const).double""")
1866 MM_PER_IU = property(_pcbnew.EDA_IU_SCALE_MM_PER_IU_get, doc=r"""MM_PER_IU : q(const).double""")
1867
1868 def __init__(self, aIUPerMM):
1869 r"""__init__(EDA_IU_SCALE self, double aIUPerMM) -> EDA_IU_SCALE"""
1870 _pcbnew.EDA_IU_SCALE_swiginit(self, _pcbnew.new_EDA_IU_SCALE(aIUPerMM))
1871
1872 def IUTomm(self, iu):
1873 r"""IUTomm(EDA_IU_SCALE self, int iu) -> double"""
1874 return _pcbnew.EDA_IU_SCALE_IUTomm(self, iu)
1875
1876 def mmToIU(self, mm):
1877 r"""mmToIU(EDA_IU_SCALE self, double mm) -> int"""
1878 return _pcbnew.EDA_IU_SCALE_mmToIU(self, mm)
1879
1880 def MilsToIU(self, mils):
1881 r"""MilsToIU(EDA_IU_SCALE self, int mils) -> int"""
1882 return _pcbnew.EDA_IU_SCALE_MilsToIU(self, mils)
1883
1884 def IUToMils(self, iu):
1885 r"""IUToMils(EDA_IU_SCALE self, int iu) -> int"""
1886 return _pcbnew.EDA_IU_SCALE_IUToMils(self, iu)
1887 __swig_destroy__ = _pcbnew.delete_EDA_IU_SCALE
1888
1889# Register EDA_IU_SCALE in _pcbnew:
1890_pcbnew.EDA_IU_SCALE_swigregister(EDA_IU_SCALE)
1891GERB_IU_PER_MM = cvar.GERB_IU_PER_MM
1892PCB_IU_PER_MM = cvar.PCB_IU_PER_MM
1893PL_IU_PER_MM = cvar.PL_IU_PER_MM
1894SCH_IU_PER_MM = cvar.SCH_IU_PER_MM
1895
1896EDA_DATA_TYPE_DISTANCE = _pcbnew.EDA_DATA_TYPE_DISTANCE
1897
1898EDA_DATA_TYPE_AREA = _pcbnew.EDA_DATA_TYPE_AREA
1899
1900EDA_DATA_TYPE_VOLUME = _pcbnew.EDA_DATA_TYPE_VOLUME
1901
1902EDA_DATA_TYPE_UNITLESS = _pcbnew.EDA_DATA_TYPE_UNITLESS
1903
1904EDA_UNITS_INCHES = _pcbnew.EDA_UNITS_INCHES
1905
1906EDA_UNITS_MILLIMETRES = _pcbnew.EDA_UNITS_MILLIMETRES
1907
1908EDA_UNITS_UNSCALED = _pcbnew.EDA_UNITS_UNSCALED
1909
1910EDA_UNITS_DEGREES = _pcbnew.EDA_UNITS_DEGREES
1911
1912EDA_UNITS_PERCENT = _pcbnew.EDA_UNITS_PERCENT
1913
1914EDA_UNITS_MILS = _pcbnew.EDA_UNITS_MILS
1915
1916EDA_UNITS_MICROMETRES = _pcbnew.EDA_UNITS_MICROMETRES
1917
1918EDA_UNITS_CENTIMETRES = _pcbnew.EDA_UNITS_CENTIMETRES
1919
1920
1922 r"""IsImperialUnit(EDA_UNITS aUnit) -> bool"""
1923 return _pcbnew.IsImperialUnit(aUnit)
1924
1925def IsMetricUnit(aUnit):
1926 r"""IsMetricUnit(EDA_UNITS aUnit) -> bool"""
1927 return _pcbnew.IsMetricUnit(aUnit)
1928
1929def Mm2mils(aVal):
1930 r"""Mm2mils(double aVal) -> int"""
1931 return _pcbnew.Mm2mils(aVal)
1932
1933def Mils2mm(aVal):
1934 r"""Mils2mm(double aVal) -> int"""
1935 return _pcbnew.Mils2mm(aVal)
1936
1937def FetchUnitsFromString(aTextValue, aUnits):
1938 r"""FetchUnitsFromString(wxString aTextValue, EDA_UNITS & aUnits) -> bool"""
1939 return _pcbnew.FetchUnitsFromString(aTextValue, aUnits)
1940
1941def GetText(*args):
1942 r"""GetText(EDA_UNITS aUnits, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
1943 return _pcbnew.GetText(*args)
1944
1945def GetLabel(*args):
1946 r"""GetLabel(EDA_UNITS aUnits, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
1947 return _pcbnew.GetLabel(*args)
1948
1949def FormatAngle(aAngle):
1950 r"""FormatAngle(EDA_ANGLE aAngle) -> string"""
1951 return _pcbnew.FormatAngle(aAngle)
1952
1954 r"""
1955 FormatInternalUnits(EDA_IU_SCALE aIuScale, int aValue) -> string
1956 FormatInternalUnits(EDA_IU_SCALE aIuScale, VECTOR2I aPoint) -> string
1957 """
1958 return _pcbnew.FormatInternalUnits(*args)
1959
1960def Mils2IU(aIuScale, mils):
1961 r"""Mils2IU(EDA_IU_SCALE aIuScale, int mils) -> int"""
1962 return _pcbnew.Mils2IU(aIuScale, mils)
1963
1964def ToUserUnit(aIuScale, aUnit, aValue):
1965 r"""ToUserUnit(EDA_IU_SCALE aIuScale, EDA_UNITS aUnit, double aValue) -> double"""
1966 return _pcbnew.ToUserUnit(aIuScale, aUnit, aValue)
1967
1969 r"""StringFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=False, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
1970 return _pcbnew.StringFromValue(*args)
1971
1973 r"""
1974 MessageTextFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
1975 MessageTextFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, int aValue, bool aAddUnitLabel=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
1976 MessageTextFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, long long aValue, bool aAddUnitLabel=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
1977 MessageTextFromValue(EDA_ANGLE aValue, bool aAddUnitLabel=True) -> wxString
1978 """
1979 return _pcbnew.MessageTextFromValue(*args)
1980
1981def MessageTextFromMinOptMax(aIuScale, aUnits, aValue):
1982 r"""MessageTextFromMinOptMax(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, MINOPTMAX< int > const & aValue) -> wxString"""
1983 return _pcbnew.MessageTextFromMinOptMax(aIuScale, aUnits, aValue)
1984
1985def FromUserUnit(aIuScale, aUnit, aValue):
1986 r"""FromUserUnit(EDA_IU_SCALE aIuScale, EDA_UNITS aUnit, double aValue) -> double"""
1987 return _pcbnew.FromUserUnit(aIuScale, aUnit, aValue)
1988
1990 r"""
1991 DoubleValueFromString(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> double
1992 DoubleValueFromString(wxString aTextValue) -> double
1993 """
1994 return _pcbnew.DoubleValueFromString(*args)
1995
1997 r"""
1998 ValueFromString(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> long long
1999 ValueFromString(wxString aTextValue) -> long long
2000 """
2001 return _pcbnew.ValueFromString(*args)
2002
2004 r"""SearchHelpFileFullPath(wxString aBaseName) -> wxString"""
2005 return _pcbnew.SearchHelpFileFullPath(aBaseName)
2006
2007def EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter=None):
2008 r"""EnsureFileDirectoryExists(wxFileName * aTargetFullFileName, wxString aBaseFilename, REPORTER * aReporter=None) -> bool"""
2009 return _pcbnew.EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter)
2010
2011def EnsureFileExtension(aFilename, aExtension):
2012 r"""EnsureFileExtension(wxString aFilename, wxString aExtension) -> wxString"""
2013 return _pcbnew.EnsureFileExtension(aFilename, aExtension)
2014
2015def ExpandEnvVarSubstitutions(aString, aProject):
2016 r"""ExpandEnvVarSubstitutions(wxString aString, PROJECT const * aProject) -> wxString"""
2017 return _pcbnew.ExpandEnvVarSubstitutions(aString, aProject)
2018
2020 r"""
2021 ExpandTextVars(wxString aSource, std::function< bool (wxString *) > const * aResolver) -> wxString
2022 ExpandTextVars(wxString aSource, PROJECT const * aProject) -> wxString
2023 """
2024 return _pcbnew.ExpandTextVars(*args)
2025
2026def GetTextVars(aSource):
2027 r"""GetTextVars(wxString aSource) -> wxString"""
2028 return _pcbnew.GetTextVars(aSource)
2029
2030def IsTextVar(aSource):
2031 r"""IsTextVar(wxString aSource) -> bool"""
2032 return _pcbnew.IsTextVar(aSource)
2033
2034def ResolveUriByEnvVars(aUri, aProject):
2035 r"""ResolveUriByEnvVars(wxString aUri, PROJECT * aProject) -> wxString"""
2036 return _pcbnew.ResolveUriByEnvVars(aUri, aProject)
2037
2038def TimestampDir(aDirPath, aFilespec):
2039 r"""TimestampDir(wxString aDirPath, wxString aFilespec) -> long long"""
2040 return _pcbnew.TimestampDir(aDirPath, aFilespec)
2041
2043 r"""WarnUserIfOperatingSystemUnsupported() -> bool"""
2044 return _pcbnew.WarnUserIfOperatingSystemUnsupported()
2045
2046def StrPrintf(*args):
2047 r"""
2048 StrPrintf(string aResult, char const * aFormat) -> int
2049 StrPrintf(char const * format) -> string
2050 """
2051 return _pcbnew.StrPrintf(*args)
2052
2053def SafeReadFile(aFilePath, aReadType):
2054 r"""SafeReadFile(wxString aFilePath, wxString aReadType) -> wxString"""
2055 return _pcbnew.SafeReadFile(aFilePath, aReadType)
2056LINE_READER_LINE_DEFAULT_MAX = _pcbnew.LINE_READER_LINE_DEFAULT_MAX
2057
2058LINE_READER_LINE_INITIAL_SIZE = _pcbnew.LINE_READER_LINE_INITIAL_SIZE
2059
2061 r"""Proxy of C++ LINE_READER class."""
2062
2063 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2064
2065 def __init__(self, *args, **kwargs):
2066 raise AttributeError("No constructor defined - class is abstract")
2067 __repr__ = _swig_repr
2068 __swig_destroy__ = _pcbnew.delete_LINE_READER
2069
2070 def ReadLine(self):
2071 r"""ReadLine(LINE_READER self) -> char *"""
2072 return _pcbnew.LINE_READER_ReadLine(self)
2073
2074 def GetSource(self):
2075 r"""GetSource(LINE_READER self) -> wxString"""
2076 return _pcbnew.LINE_READER_GetSource(self)
2077
2078 def Line(self):
2079 r"""Line(LINE_READER self) -> char *"""
2080 return _pcbnew.LINE_READER_Line(self)
2081
2082 def LineNumber(self):
2083 r"""LineNumber(LINE_READER self) -> unsigned int"""
2084 return _pcbnew.LINE_READER_LineNumber(self)
2085
2086 def Length(self):
2087 r"""Length(LINE_READER self) -> unsigned int"""
2088 return _pcbnew.LINE_READER_Length(self)
2089
2090# Register LINE_READER in _pcbnew:
2091_pcbnew.LINE_READER_swigregister(LINE_READER)
2092gerbIUScale = cvar.gerbIUScale
2093pcbIUScale = cvar.pcbIUScale
2094drawSheetIUScale = cvar.drawSheetIUScale
2095schIUScale = cvar.schIUScale
2096unityScale = cvar.unityScale
2097
2099 r"""Proxy of C++ FILE_LINE_READER class."""
2100
2101 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2102 __repr__ = _swig_repr
2103
2104 def __init__(self, *args):
2105 r"""
2106 __init__(FILE_LINE_READER self, wxString aFileName, unsigned int aStartingLineNumber=0, unsigned int aMaxLineLength=1000000) -> FILE_LINE_READER
2107 __init__(FILE_LINE_READER self, FILE * aFile, wxString aFileName, bool doOwn=True, unsigned int aStartingLineNumber=0, unsigned int aMaxLineLength=1000000) -> FILE_LINE_READER
2108 """
2109 _pcbnew.FILE_LINE_READER_swiginit(self, _pcbnew.new_FILE_LINE_READER(*args))
2110 __swig_destroy__ = _pcbnew.delete_FILE_LINE_READER
2111
2112 def Rewind(self):
2113 r"""Rewind(FILE_LINE_READER self)"""
2114 return _pcbnew.FILE_LINE_READER_Rewind(self)
2115
2116 def FileLength(self):
2117 r"""FileLength(FILE_LINE_READER self) -> long"""
2118 return _pcbnew.FILE_LINE_READER_FileLength(self)
2119
2120 def CurPos(self):
2121 r"""CurPos(FILE_LINE_READER self) -> long"""
2122 return _pcbnew.FILE_LINE_READER_CurPos(self)
2123
2124# Register FILE_LINE_READER in _pcbnew:
2125_pcbnew.FILE_LINE_READER_swigregister(FILE_LINE_READER)
2126
2128 r"""Proxy of C++ STRING_LINE_READER class."""
2129
2130 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2131 __repr__ = _swig_repr
2132
2133 def __init__(self, *args):
2134 r"""
2135 __init__(STRING_LINE_READER self, string aString, wxString aSource) -> STRING_LINE_READER
2136 __init__(STRING_LINE_READER self, STRING_LINE_READER aStartingPoint) -> STRING_LINE_READER
2137 """
2138 _pcbnew.STRING_LINE_READER_swiginit(self, _pcbnew.new_STRING_LINE_READER(*args))
2139 __swig_destroy__ = _pcbnew.delete_STRING_LINE_READER
2140
2141# Register STRING_LINE_READER in _pcbnew:
2142_pcbnew.STRING_LINE_READER_swigregister(STRING_LINE_READER)
2143
2145 r"""Proxy of C++ INPUTSTREAM_LINE_READER class."""
2146
2147 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2148 __repr__ = _swig_repr
2149
2150 def __init__(self, aStream, aSource):
2151 r"""__init__(INPUTSTREAM_LINE_READER self, wxInputStream * aStream, wxString aSource) -> INPUTSTREAM_LINE_READER"""
2152 _pcbnew.INPUTSTREAM_LINE_READER_swiginit(self, _pcbnew.new_INPUTSTREAM_LINE_READER(aStream, aSource))
2153 __swig_destroy__ = _pcbnew.delete_INPUTSTREAM_LINE_READER
2154
2155# Register INPUTSTREAM_LINE_READER in _pcbnew:
2156_pcbnew.INPUTSTREAM_LINE_READER_swigregister(INPUTSTREAM_LINE_READER)
2157
2158OUTPUTFMTBUFZ = _pcbnew.OUTPUTFMTBUFZ
2159
2161 r"""Proxy of C++ OUTPUTFORMATTER class."""
2162
2163 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2164
2165 def __init__(self, *args, **kwargs):
2166 raise AttributeError("No constructor defined - class is abstract")
2167 __repr__ = _swig_repr
2168
2169 def Print(self, nestLevel, fmt):
2170 r"""Print(OUTPUTFORMATTER self, int nestLevel, char const * fmt) -> int"""
2171 return _pcbnew.OUTPUTFORMATTER_Print(self, nestLevel, fmt)
2172
2173 def GetQuoteChar(self, wrapee):
2174 r"""GetQuoteChar(OUTPUTFORMATTER self, char const * wrapee) -> char const *"""
2175 return _pcbnew.OUTPUTFORMATTER_GetQuoteChar(self, wrapee)
2176
2177 def Quotes(self, aWrapee):
2178 r"""Quotes(OUTPUTFORMATTER self, string aWrapee) -> string"""
2179 return _pcbnew.OUTPUTFORMATTER_Quotes(self, aWrapee)
2180
2181 def Quotew(self, aWrapee):
2182 r"""Quotew(OUTPUTFORMATTER self, wxString aWrapee) -> string"""
2183 return _pcbnew.OUTPUTFORMATTER_Quotew(self, aWrapee)
2184
2185 def Finish(self):
2186 r"""Finish(OUTPUTFORMATTER self) -> bool"""
2187 return _pcbnew.OUTPUTFORMATTER_Finish(self)
2188
2189# Register OUTPUTFORMATTER in _pcbnew:
2190_pcbnew.OUTPUTFORMATTER_swigregister(OUTPUTFORMATTER)
2191
2193 r"""Proxy of C++ STRING_FORMATTER class."""
2194
2195 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2196 __repr__ = _swig_repr
2197
2198 def __init__(self, *args):
2199 r"""__init__(STRING_FORMATTER self, int aReserve=500, char aQuoteChar='\"') -> STRING_FORMATTER"""
2200 _pcbnew.STRING_FORMATTER_swiginit(self, _pcbnew.new_STRING_FORMATTER(*args))
2201
2202 def Clear(self):
2203 r"""Clear(STRING_FORMATTER self)"""
2204 return _pcbnew.STRING_FORMATTER_Clear(self)
2205
2206 def StripUseless(self):
2207 r"""StripUseless(STRING_FORMATTER self)"""
2208 return _pcbnew.STRING_FORMATTER_StripUseless(self)
2209
2210 def GetString(self):
2211 r"""GetString(STRING_FORMATTER self) -> string"""
2212 return _pcbnew.STRING_FORMATTER_GetString(self)
2213 __swig_destroy__ = _pcbnew.delete_STRING_FORMATTER
2214
2215# Register STRING_FORMATTER in _pcbnew:
2216_pcbnew.STRING_FORMATTER_swigregister(STRING_FORMATTER)
2217
2219 r"""Proxy of C++ FILE_OUTPUTFORMATTER class."""
2220
2221 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2222 __repr__ = _swig_repr
2223
2224 def __init__(self, *args):
2225 r"""__init__(FILE_OUTPUTFORMATTER self, wxString aFileName, wxChar const * aMode=wxT( "wt" ), char aQuoteChar='\"') -> FILE_OUTPUTFORMATTER"""
2226 _pcbnew.FILE_OUTPUTFORMATTER_swiginit(self, _pcbnew.new_FILE_OUTPUTFORMATTER(*args))
2227 __swig_destroy__ = _pcbnew.delete_FILE_OUTPUTFORMATTER
2228
2229# Register FILE_OUTPUTFORMATTER in _pcbnew:
2230_pcbnew.FILE_OUTPUTFORMATTER_swigregister(FILE_OUTPUTFORMATTER)
2231
2233 r"""Proxy of C++ PRETTIFIED_FILE_OUTPUTFORMATTER class."""
2234
2235 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2236 __repr__ = _swig_repr
2237
2238 def __init__(self, *args):
2239 r"""__init__(PRETTIFIED_FILE_OUTPUTFORMATTER self, wxString aFileName, wxChar const * aMode=wxT( "wt" ), char aQuoteChar='\"') -> PRETTIFIED_FILE_OUTPUTFORMATTER"""
2240 _pcbnew.PRETTIFIED_FILE_OUTPUTFORMATTER_swiginit(self, _pcbnew.new_PRETTIFIED_FILE_OUTPUTFORMATTER(*args))
2241 __swig_destroy__ = _pcbnew.delete_PRETTIFIED_FILE_OUTPUTFORMATTER
2242
2243# Register PRETTIFIED_FILE_OUTPUTFORMATTER in _pcbnew:
2244_pcbnew.PRETTIFIED_FILE_OUTPUTFORMATTER_swigregister(PRETTIFIED_FILE_OUTPUTFORMATTER)
2245
2247 r"""Proxy of C++ TITLE_BLOCK class."""
2248
2249 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2250 __repr__ = _swig_repr
2251
2252 def __init__(self):
2253 r"""__init__(TITLE_BLOCK self) -> TITLE_BLOCK"""
2254 _pcbnew.TITLE_BLOCK_swiginit(self, _pcbnew.new_TITLE_BLOCK())
2255 __swig_destroy__ = _pcbnew.delete_TITLE_BLOCK
2256
2257 def SetTitle(self, aTitle):
2258 r"""SetTitle(TITLE_BLOCK self, wxString aTitle)"""
2259 return _pcbnew.TITLE_BLOCK_SetTitle(self, aTitle)
2260
2261 def GetTitle(self):
2262 r"""GetTitle(TITLE_BLOCK self) -> wxString"""
2263 return _pcbnew.TITLE_BLOCK_GetTitle(self)
2264
2265 def SetDate(self, aDate):
2266 r"""SetDate(TITLE_BLOCK self, wxString aDate)"""
2267 return _pcbnew.TITLE_BLOCK_SetDate(self, aDate)
2268
2269 def GetDate(self):
2270 r"""GetDate(TITLE_BLOCK self) -> wxString"""
2271 return _pcbnew.TITLE_BLOCK_GetDate(self)
2272
2273 def SetRevision(self, aRevision):
2274 r"""SetRevision(TITLE_BLOCK self, wxString aRevision)"""
2275 return _pcbnew.TITLE_BLOCK_SetRevision(self, aRevision)
2276
2277 def GetRevision(self):
2278 r"""GetRevision(TITLE_BLOCK self) -> wxString"""
2279 return _pcbnew.TITLE_BLOCK_GetRevision(self)
2280
2281 def SetCompany(self, aCompany):
2282 r"""SetCompany(TITLE_BLOCK self, wxString aCompany)"""
2283 return _pcbnew.TITLE_BLOCK_SetCompany(self, aCompany)
2284
2285 def GetCompany(self):
2286 r"""GetCompany(TITLE_BLOCK self) -> wxString"""
2287 return _pcbnew.TITLE_BLOCK_GetCompany(self)
2288
2289 def SetComment(self, aIdx, aComment):
2290 r"""SetComment(TITLE_BLOCK self, int aIdx, wxString aComment)"""
2291 return _pcbnew.TITLE_BLOCK_SetComment(self, aIdx, aComment)
2292
2293 def GetComment(self, aIdx):
2294 r"""GetComment(TITLE_BLOCK self, int aIdx) -> wxString"""
2295 return _pcbnew.TITLE_BLOCK_GetComment(self, aIdx)
2296
2297 def Clear(self):
2298 r"""Clear(TITLE_BLOCK self)"""
2299 return _pcbnew.TITLE_BLOCK_Clear(self)
2300
2301 @staticmethod
2303 r"""GetContextualTextVars(wxArrayString * aVars)"""
2304 return _pcbnew.TITLE_BLOCK_GetContextualTextVars(aVars)
2305
2306 def TextVarResolver(self, aToken, aProject):
2307 r"""TextVarResolver(TITLE_BLOCK self, wxString aToken, PROJECT const * aProject) -> bool"""
2308 return _pcbnew.TITLE_BLOCK_TextVarResolver(self, aToken, aProject)
2309
2310 def Format(self, aFormatter, aNestLevel, aControlBits):
2311 r"""Format(TITLE_BLOCK self, OUTPUTFORMATTER aFormatter, int aNestLevel, int aControlBits)"""
2312 return _pcbnew.TITLE_BLOCK_Format(self, aFormatter, aNestLevel, aControlBits)
2313
2314# Register TITLE_BLOCK in _pcbnew:
2315_pcbnew.TITLE_BLOCK_swigregister(TITLE_BLOCK)
2316
2318 r"""TITLE_BLOCK_GetContextualTextVars(wxArrayString * aVars)"""
2319 return _pcbnew.TITLE_BLOCK_GetContextualTextVars(aVars)
2320
2321UNSPECIFIED_COLOR = _pcbnew.UNSPECIFIED_COLOR
2322
2323BLACK = _pcbnew.BLACK
2324
2325DARKDARKGRAY = _pcbnew.DARKDARKGRAY
2326
2327DARKGRAY = _pcbnew.DARKGRAY
2328
2329LIGHTGRAY = _pcbnew.LIGHTGRAY
2330
2331WHITE = _pcbnew.WHITE
2332
2333LIGHTYELLOW = _pcbnew.LIGHTYELLOW
2334
2335DARKBLUE = _pcbnew.DARKBLUE
2336
2337DARKGREEN = _pcbnew.DARKGREEN
2338
2339DARKCYAN = _pcbnew.DARKCYAN
2340
2341DARKRED = _pcbnew.DARKRED
2342
2343DARKMAGENTA = _pcbnew.DARKMAGENTA
2344
2345DARKBROWN = _pcbnew.DARKBROWN
2346
2347BLUE = _pcbnew.BLUE
2348
2349GREEN = _pcbnew.GREEN
2350
2351CYAN = _pcbnew.CYAN
2352
2353RED = _pcbnew.RED
2354
2355MAGENTA = _pcbnew.MAGENTA
2356
2357BROWN = _pcbnew.BROWN
2358
2359LIGHTBLUE = _pcbnew.LIGHTBLUE
2360
2361LIGHTGREEN = _pcbnew.LIGHTGREEN
2362
2363LIGHTCYAN = _pcbnew.LIGHTCYAN
2364
2365LIGHTRED = _pcbnew.LIGHTRED
2366
2367LIGHTMAGENTA = _pcbnew.LIGHTMAGENTA
2368
2369YELLOW = _pcbnew.YELLOW
2370
2371PUREBLUE = _pcbnew.PUREBLUE
2372
2373PUREGREEN = _pcbnew.PUREGREEN
2374
2375PURECYAN = _pcbnew.PURECYAN
2376
2377PURERED = _pcbnew.PURERED
2378
2379PUREMAGENTA = _pcbnew.PUREMAGENTA
2380
2381PUREYELLOW = _pcbnew.PUREYELLOW
2382
2383LIGHTERORANGE = _pcbnew.LIGHTERORANGE
2384
2385DARKORANGE = _pcbnew.DARKORANGE
2386
2387ORANGE = _pcbnew.ORANGE
2388
2389LIGHTORANGE = _pcbnew.LIGHTORANGE
2390
2391PUREORANGE = _pcbnew.PUREORANGE
2392
2393NBCOLORS = _pcbnew.NBCOLORS
2394
2395HIGHLIGHT_FLAG = _pcbnew.HIGHLIGHT_FLAG
2396
2397MASKCOLOR = _pcbnew.MASKCOLOR
2398
2400 r"""Proxy of C++ StructColors class."""
2401
2402 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2403 __repr__ = _swig_repr
2404 m_Blue = property(_pcbnew.StructColors_m_Blue_get, _pcbnew.StructColors_m_Blue_set, doc=r"""m_Blue : unsigned char""")
2405 m_Green = property(_pcbnew.StructColors_m_Green_get, _pcbnew.StructColors_m_Green_set, doc=r"""m_Green : unsigned char""")
2406 m_Red = property(_pcbnew.StructColors_m_Red_get, _pcbnew.StructColors_m_Red_set, doc=r"""m_Red : unsigned char""")
2407 m_Numcolor = property(_pcbnew.StructColors_m_Numcolor_get, _pcbnew.StructColors_m_Numcolor_set, doc=r"""m_Numcolor : EDA_COLOR_T""")
2408 m_ColorName = property(_pcbnew.StructColors_m_ColorName_get, _pcbnew.StructColors_m_ColorName_set, doc=r"""m_ColorName : std::string""")
2409 m_LightColor = property(_pcbnew.StructColors_m_LightColor_get, _pcbnew.StructColors_m_LightColor_set, doc=r"""m_LightColor : EDA_COLOR_T""")
2410
2411 def __init__(self):
2412 r"""__init__(StructColors self) -> StructColors"""
2413 _pcbnew.StructColors_swiginit(self, _pcbnew.new_StructColors())
2414 __swig_destroy__ = _pcbnew.delete_StructColors
2415
2416# Register StructColors in _pcbnew:
2417_pcbnew.StructColors_swigregister(StructColors)
2418
2419
2421 r"""colorRefs() -> StructColors"""
2422 return _pcbnew.colorRefs()
2424 r"""Proxy of C++ KIGFX::COLOR4D class."""
2425
2426 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2427 __repr__ = _swig_repr
2428
2429 def FromCSSRGBA(self, aRed, aGreen, aBlue, aAlpha=1.0):
2430 r"""FromCSSRGBA(COLOR4D self, int aRed, int aGreen, int aBlue, double aAlpha=1.0) -> COLOR4D"""
2431 return _pcbnew.COLOR4D_FromCSSRGBA(self, aRed, aGreen, aBlue, aAlpha)
2432
2433 def __init__(self, *args):
2434 r"""
2435 __init__(COLOR4D self) -> COLOR4D
2436 __init__(COLOR4D self, double aRed, double aGreen, double aBlue, double aAlpha) -> COLOR4D
2437 __init__(COLOR4D self, EDA_COLOR_T aColor) -> COLOR4D
2438 __init__(COLOR4D self, wxString aColorStr) -> COLOR4D
2439 __init__(COLOR4D self, wxColour const & aColor) -> COLOR4D
2440 """
2441 _pcbnew.COLOR4D_swiginit(self, _pcbnew.new_COLOR4D(*args))
2442
2443 def SetFromWxString(self, aColorString):
2444 r"""SetFromWxString(COLOR4D self, wxString aColorString) -> bool"""
2445 return _pcbnew.COLOR4D_SetFromWxString(self, aColorString)
2446
2447 def ToCSSString(self):
2448 r"""ToCSSString(COLOR4D self) -> wxString"""
2449 return _pcbnew.COLOR4D_ToCSSString(self)
2450
2451 def SetFromHexString(self, aColorString):
2452 r"""SetFromHexString(COLOR4D self, wxString aColorString) -> bool"""
2453 return _pcbnew.COLOR4D_SetFromHexString(self, aColorString)
2454
2455 def ToHexString(self):
2456 r"""ToHexString(COLOR4D self) -> wxString"""
2457 return _pcbnew.COLOR4D_ToHexString(self)
2458
2459 def ToColour(self):
2460 r"""ToColour(COLOR4D self) -> wxColour"""
2461 return _pcbnew.COLOR4D_ToColour(self)
2462
2463 def LegacyMix(self, aColor):
2464 r"""LegacyMix(COLOR4D self, COLOR4D aColor) -> COLOR4D"""
2465 return _pcbnew.COLOR4D_LegacyMix(self, aColor)
2466
2467 def ToHSL(self, aOutHue, aOutSaturation, aOutValue):
2468 r"""ToHSL(COLOR4D self, double & aOutHue, double & aOutSaturation, double & aOutValue)"""
2469 return _pcbnew.COLOR4D_ToHSL(self, aOutHue, aOutSaturation, aOutValue)
2470
2471 def FromHSL(self, aInHue, aInSaturation, aInLightness):
2472 r"""FromHSL(COLOR4D self, double aInHue, double aInSaturation, double aInLightness)"""
2473 return _pcbnew.COLOR4D_FromHSL(self, aInHue, aInSaturation, aInLightness)
2474
2475 def Brighten(self, aFactor):
2476 r"""Brighten(COLOR4D self, double aFactor) -> COLOR4D"""
2477 return _pcbnew.COLOR4D_Brighten(self, aFactor)
2478
2479 def Darken(self, aFactor):
2480 r"""Darken(COLOR4D self, double aFactor) -> COLOR4D"""
2481 return _pcbnew.COLOR4D_Darken(self, aFactor)
2482
2483 def Invert(self):
2484 r"""Invert(COLOR4D self) -> COLOR4D"""
2485 return _pcbnew.COLOR4D_Invert(self)
2486
2487 def Saturate(self, aFactor):
2488 r"""Saturate(COLOR4D self, double aFactor) -> COLOR4D"""
2489 return _pcbnew.COLOR4D_Saturate(self, aFactor)
2490
2491 def Desaturate(self):
2492 r"""Desaturate(COLOR4D self) -> COLOR4D"""
2493 return _pcbnew.COLOR4D_Desaturate(self)
2494
2495 def Brightened(self, aFactor):
2496 r"""Brightened(COLOR4D self, double aFactor) -> COLOR4D"""
2497 return _pcbnew.COLOR4D_Brightened(self, aFactor)
2498
2499 def Darkened(self, aFactor):
2500 r"""Darkened(COLOR4D self, double aFactor) -> COLOR4D"""
2501 return _pcbnew.COLOR4D_Darkened(self, aFactor)
2502
2503 def Mix(self, aColor, aFactor):
2504 r"""Mix(COLOR4D self, COLOR4D aColor, double aFactor) -> COLOR4D"""
2505 return _pcbnew.COLOR4D_Mix(self, aColor, aFactor)
2506
2507 def WithAlpha(self, aAlpha):
2508 r"""WithAlpha(COLOR4D self, double aAlpha) -> COLOR4D"""
2509 return _pcbnew.COLOR4D_WithAlpha(self, aAlpha)
2510
2511 def Inverted(self):
2512 r"""Inverted(COLOR4D self) -> COLOR4D"""
2513 return _pcbnew.COLOR4D_Inverted(self)
2514
2515 def GetBrightness(self):
2516 r"""GetBrightness(COLOR4D self) -> double"""
2517 return _pcbnew.COLOR4D_GetBrightness(self)
2518
2519 def ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue=False):
2520 r"""ToHSV(COLOR4D self, double & aOutHue, double & aOutSaturation, double & aOutValue, bool aAlwaysDefineHue=False)"""
2521 return _pcbnew.COLOR4D_ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue)
2522
2523 def FromHSV(self, aInH, aInS, aInV):
2524 r"""FromHSV(COLOR4D self, double aInH, double aInS, double aInV)"""
2525 return _pcbnew.COLOR4D_FromHSV(self, aInH, aInS, aInV)
2526
2527 def Distance(self, other):
2528 r"""Distance(COLOR4D self, COLOR4D other) -> double"""
2529 return _pcbnew.COLOR4D_Distance(self, other)
2530
2531 def Compare(self, aRhs):
2532 r"""Compare(COLOR4D self, COLOR4D aRhs) -> int"""
2533 return _pcbnew.COLOR4D_Compare(self, aRhs)
2534
2535 @staticmethod
2536 def FindNearestLegacyColor(aR, aG, aB):
2537 r"""FindNearestLegacyColor(int aR, int aG, int aB) -> EDA_COLOR_T"""
2538 return _pcbnew.COLOR4D_FindNearestLegacyColor(aR, aG, aB)
2539 r = property(_pcbnew.COLOR4D_r_get, _pcbnew.COLOR4D_r_set, doc=r"""r : double""")
2540 g = property(_pcbnew.COLOR4D_g_get, _pcbnew.COLOR4D_g_set, doc=r"""g : double""")
2541 b = property(_pcbnew.COLOR4D_b_get, _pcbnew.COLOR4D_b_set, doc=r"""b : double""")
2542 a = property(_pcbnew.COLOR4D_a_get, _pcbnew.COLOR4D_a_set, doc=r"""a : double""")
2543 __swig_destroy__ = _pcbnew.delete_COLOR4D
2544
2545# Register COLOR4D in _pcbnew:
2546_pcbnew.COLOR4D_swigregister(COLOR4D)
2547
2549 r"""COLOR4D_FindNearestLegacyColor(int aR, int aG, int aB) -> EDA_COLOR_T"""
2550 return _pcbnew.COLOR4D_FindNearestLegacyColor(aR, aG, aB)
2551COLOR4D.UNSPECIFIED = _pcbnew.cvar.COLOR4D_UNSPECIFIED
2552COLOR4D.WHITE = _pcbnew.cvar.COLOR4D_WHITE
2553COLOR4D.BLACK = _pcbnew.cvar.COLOR4D_BLACK
2554COLOR4D.CLEAR = _pcbnew.cvar.COLOR4D_CLEAR
2555
2556
2557def __eq__(lhs, rhs):
2558 r"""__eq__(COLOR4D lhs, COLOR4D rhs) -> bool"""
2559 return _pcbnew.__eq__(lhs, rhs)
2560
2561def __ne__(lhs, rhs):
2562 r"""__ne__(COLOR4D lhs, COLOR4D rhs) -> bool"""
2563 return _pcbnew.__ne__(lhs, rhs)
2564
2565def __lt__(lhs, rhs):
2566 r"""__lt__(COLOR4D lhs, COLOR4D rhs) -> bool"""
2567 return _pcbnew.__lt__(lhs, rhs)
2568
2569def __lshift__(aStream, aColor):
2570 r"""__lshift__(std::ostream & aStream, COLOR4D aColor) -> std::ostream &"""
2571 return _pcbnew.__lshift__(aStream, aColor)
2573 r"""Proxy of C++ MARKER_BASE class."""
2574
2575 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2576
2577 def __init__(self, *args, **kwargs):
2578 raise AttributeError("No constructor defined - class is abstract")
2579 __repr__ = _swig_repr
2580 MARKER_UNSPEC = _pcbnew.MARKER_BASE_MARKER_UNSPEC
2581
2582 MARKER_ERC = _pcbnew.MARKER_BASE_MARKER_ERC
2583
2584 MARKER_DRC = _pcbnew.MARKER_BASE_MARKER_DRC
2585
2586 MARKER_DRAWING_SHEET = _pcbnew.MARKER_BASE_MARKER_DRAWING_SHEET
2587
2588 MARKER_RATSNEST = _pcbnew.MARKER_BASE_MARKER_RATSNEST
2589
2590 MARKER_PARITY = _pcbnew.MARKER_BASE_MARKER_PARITY
2591
2592 MARKER_SIMUL = _pcbnew.MARKER_BASE_MARKER_SIMUL
2593
2594 __swig_destroy__ = _pcbnew.delete_MARKER_BASE
2595
2596 def MarkerScale(self):
2597 r"""MarkerScale(MARKER_BASE self) -> int"""
2598 return _pcbnew.MARKER_BASE_MarkerScale(self)
2599
2600 def SetMarkerScale(self, aScale):
2601 r"""SetMarkerScale(MARKER_BASE self, int aScale)"""
2602 return _pcbnew.MARKER_BASE_SetMarkerScale(self, aScale)
2603
2604 def ShapeToPolygon(self, aPolygon, aScale=-1):
2605 r"""ShapeToPolygon(MARKER_BASE self, SHAPE_LINE_CHAIN aPolygon, int aScale=-1)"""
2606 return _pcbnew.MARKER_BASE_ShapeToPolygon(self, aPolygon, aScale)
2607
2608 def PrintMarker(self, aSettings, aOffset):
2609 r"""PrintMarker(MARKER_BASE self, RENDER_SETTINGS const * aSettings, VECTOR2I aOffset)"""
2610 return _pcbnew.MARKER_BASE_PrintMarker(self, aSettings, aOffset)
2611
2612 def GetPos(self):
2613 r"""GetPos(MARKER_BASE self) -> VECTOR2I"""
2614 return _pcbnew.MARKER_BASE_GetPos(self)
2615
2616 def GetUUID(self):
2617 r"""GetUUID(MARKER_BASE self) -> KIID"""
2618 return _pcbnew.MARKER_BASE_GetUUID(self)
2619
2620 def SetMarkerType(self, aMarkerType):
2621 r"""SetMarkerType(MARKER_BASE self, enum MARKER_BASE::MARKER_T aMarkerType)"""
2622 return _pcbnew.MARKER_BASE_SetMarkerType(self, aMarkerType)
2623
2624 def GetMarkerType(self):
2625 r"""GetMarkerType(MARKER_BASE self) -> enum MARKER_BASE::MARKER_T"""
2626 return _pcbnew.MARKER_BASE_GetMarkerType(self)
2627
2628 def IsExcluded(self):
2629 r"""IsExcluded(MARKER_BASE self) -> bool"""
2630 return _pcbnew.MARKER_BASE_IsExcluded(self)
2631
2632 def SetExcluded(self, aExcluded):
2633 r"""SetExcluded(MARKER_BASE self, bool aExcluded)"""
2634 return _pcbnew.MARKER_BASE_SetExcluded(self, aExcluded)
2635
2636 def GetSeverity(self):
2637 r"""GetSeverity(MARKER_BASE self) -> SEVERITY"""
2638 return _pcbnew.MARKER_BASE_GetSeverity(self)
2639
2640 def GetRCItem(self):
2641 r"""GetRCItem(MARKER_BASE self) -> std::shared_ptr< RC_ITEM >"""
2642 return _pcbnew.MARKER_BASE_GetRCItem(self)
2643
2644 def HitTestMarker(self, aHitPosition, aAccuracy):
2645 r"""HitTestMarker(MARKER_BASE self, VECTOR2I aHitPosition, int aAccuracy) -> bool"""
2646 return _pcbnew.MARKER_BASE_HitTestMarker(self, aHitPosition, aAccuracy)
2647
2649 r"""GetBoundingBoxMarker(MARKER_BASE self) -> BOX2I"""
2650 return _pcbnew.MARKER_BASE_GetBoundingBoxMarker(self)
2651 m_Pos = property(_pcbnew.MARKER_BASE_m_Pos_get, _pcbnew.MARKER_BASE_m_Pos_set, doc=r"""m_Pos : VECTOR2I""")
2652
2653# Register MARKER_BASE in _pcbnew:
2654_pcbnew.MARKER_BASE_swigregister(MARKER_BASE)
2655
2656TEXT_MIN_SIZE_MM = _pcbnew.TEXT_MIN_SIZE_MM
2657
2658TEXT_MAX_SIZE_MM = _pcbnew.TEXT_MAX_SIZE_MM
2659
2660CTL_OMIT_HIDE = _pcbnew.CTL_OMIT_HIDE
2661
2662DEFAULT_SIZE_TEXT = _pcbnew.DEFAULT_SIZE_TEXT
2663
2665 r"""Proxy of C++ EDA_TEXT class."""
2666
2667 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2668 __repr__ = _swig_repr
2669
2670 def __init__(self, *args):
2671 r"""
2672 __init__(EDA_TEXT self, EDA_IU_SCALE aIuScale, wxString aText=wxEmptyString) -> EDA_TEXT
2673 __init__(EDA_TEXT self, EDA_TEXT aText) -> EDA_TEXT
2674 """
2675 _pcbnew.EDA_TEXT_swiginit(self, _pcbnew.new_EDA_TEXT(*args))
2676 __swig_destroy__ = _pcbnew.delete_EDA_TEXT
2677
2678 def GetText(self):
2679 r"""GetText(EDA_TEXT self) -> wxString"""
2680 return _pcbnew.EDA_TEXT_GetText(self)
2681
2682 def GetShownText(self, aAllowExtraText, aDepth=0):
2683 r"""GetShownText(EDA_TEXT self, bool aAllowExtraText, int aDepth=0) -> wxString"""
2684 return _pcbnew.EDA_TEXT_GetShownText(self, aAllowExtraText, aDepth)
2685
2686 def HasTextVars(self):
2687 r"""HasTextVars(EDA_TEXT self) -> bool"""
2688 return _pcbnew.EDA_TEXT_HasTextVars(self)
2689
2690 def SetText(self, aText):
2691 r"""SetText(EDA_TEXT self, wxString aText)"""
2692 return _pcbnew.EDA_TEXT_SetText(self, aText)
2693
2694 def SetTextThickness(self, aWidth):
2695 r"""SetTextThickness(EDA_TEXT self, int aWidth)"""
2696 return _pcbnew.EDA_TEXT_SetTextThickness(self, aWidth)
2697
2699 r"""GetTextThickness(EDA_TEXT self) -> int"""
2700 return _pcbnew.EDA_TEXT_GetTextThickness(self)
2701
2702 def GetEffectiveTextPenWidth(self, aDefaultPenWidth=0):
2703 r"""GetEffectiveTextPenWidth(EDA_TEXT self, int aDefaultPenWidth=0) -> int"""
2704 return _pcbnew.EDA_TEXT_GetEffectiveTextPenWidth(self, aDefaultPenWidth)
2705
2706 def SetTextAngle(self, aAngle):
2707 r"""SetTextAngle(EDA_TEXT self, EDA_ANGLE aAngle)"""
2708 return _pcbnew.EDA_TEXT_SetTextAngle(self, aAngle)
2709
2710 def GetTextAngle(self):
2711 r"""GetTextAngle(EDA_TEXT self) -> EDA_ANGLE"""
2712 return _pcbnew.EDA_TEXT_GetTextAngle(self)
2713
2714 def SetTextAngleDegrees(self, aOrientation):
2715 r"""SetTextAngleDegrees(EDA_TEXT self, double aOrientation)"""
2716 return _pcbnew.EDA_TEXT_SetTextAngleDegrees(self, aOrientation)
2717
2719 r"""GetTextAngleDegrees(EDA_TEXT self) -> double"""
2720 return _pcbnew.EDA_TEXT_GetTextAngleDegrees(self)
2721
2722 def SetItalic(self, aItalic):
2723 r"""SetItalic(EDA_TEXT self, bool aItalic)"""
2724 return _pcbnew.EDA_TEXT_SetItalic(self, aItalic)
2725
2726 def IsItalic(self):
2727 r"""IsItalic(EDA_TEXT self) -> bool"""
2728 return _pcbnew.EDA_TEXT_IsItalic(self)
2729
2730 def SetBold(self, aBold):
2731 r"""SetBold(EDA_TEXT self, bool aBold)"""
2732 return _pcbnew.EDA_TEXT_SetBold(self, aBold)
2733
2734 def IsBold(self):
2735 r"""IsBold(EDA_TEXT self) -> bool"""
2736 return _pcbnew.EDA_TEXT_IsBold(self)
2737
2738 def SetVisible(self, aVisible):
2739 r"""SetVisible(EDA_TEXT self, bool aVisible)"""
2740 return _pcbnew.EDA_TEXT_SetVisible(self, aVisible)
2741
2742 def IsVisible(self):
2743 r"""IsVisible(EDA_TEXT self) -> bool"""
2744 return _pcbnew.EDA_TEXT_IsVisible(self)
2745
2746 def SetMirrored(self, isMirrored):
2747 r"""SetMirrored(EDA_TEXT self, bool isMirrored)"""
2748 return _pcbnew.EDA_TEXT_SetMirrored(self, isMirrored)
2749
2750 def IsMirrored(self):
2751 r"""IsMirrored(EDA_TEXT self) -> bool"""
2752 return _pcbnew.EDA_TEXT_IsMirrored(self)
2753
2754 def SetMultilineAllowed(self, aAllow):
2755 r"""SetMultilineAllowed(EDA_TEXT self, bool aAllow)"""
2756 return _pcbnew.EDA_TEXT_SetMultilineAllowed(self, aAllow)
2757
2759 r"""IsMultilineAllowed(EDA_TEXT self) -> bool"""
2760 return _pcbnew.EDA_TEXT_IsMultilineAllowed(self)
2761
2762 def SetHorizJustify(self, aType):
2763 r"""SetHorizJustify(EDA_TEXT self, GR_TEXT_H_ALIGN_T aType)"""
2764 return _pcbnew.EDA_TEXT_SetHorizJustify(self, aType)
2765
2767 r"""GetHorizJustify(EDA_TEXT self) -> GR_TEXT_H_ALIGN_T"""
2768 return _pcbnew.EDA_TEXT_GetHorizJustify(self)
2769
2770 def SetVertJustify(self, aType):
2771 r"""SetVertJustify(EDA_TEXT self, GR_TEXT_V_ALIGN_T aType)"""
2772 return _pcbnew.EDA_TEXT_SetVertJustify(self, aType)
2773
2775 r"""GetVertJustify(EDA_TEXT self) -> GR_TEXT_V_ALIGN_T"""
2776 return _pcbnew.EDA_TEXT_GetVertJustify(self)
2777
2778 def SetKeepUpright(self, aKeepUpright):
2779 r"""SetKeepUpright(EDA_TEXT self, bool aKeepUpright)"""
2780 return _pcbnew.EDA_TEXT_SetKeepUpright(self, aKeepUpright)
2781
2782 def IsKeepUpright(self):
2783 r"""IsKeepUpright(EDA_TEXT self) -> bool"""
2784 return _pcbnew.EDA_TEXT_IsKeepUpright(self)
2785
2786 def FlipHJustify(self):
2787 r"""FlipHJustify(EDA_TEXT self)"""
2788 return _pcbnew.EDA_TEXT_FlipHJustify(self)
2789
2790 def SwapAttributes(self, aTradingPartner):
2791 r"""SwapAttributes(EDA_TEXT self, EDA_TEXT aTradingPartner)"""
2792 return _pcbnew.EDA_TEXT_SwapAttributes(self, aTradingPartner)
2793
2794 def SwapText(self, aTradingPartner):
2795 r"""SwapText(EDA_TEXT self, EDA_TEXT aTradingPartner)"""
2796 return _pcbnew.EDA_TEXT_SwapText(self, aTradingPartner)
2797
2798 def CopyText(self, aSrc):
2799 r"""CopyText(EDA_TEXT self, EDA_TEXT aSrc)"""
2800 return _pcbnew.EDA_TEXT_CopyText(self, aSrc)
2801
2802 def SetAttributes(self, *args):
2803 r"""
2804 SetAttributes(EDA_TEXT self, EDA_TEXT aSrc, bool aSetPosition=True)
2805 SetAttributes(EDA_TEXT self, TEXT_ATTRIBUTES aTextAttrs)
2806 """
2807 return _pcbnew.EDA_TEXT_SetAttributes(self, *args)
2808
2809 def GetAttributes(self):
2810 r"""GetAttributes(EDA_TEXT self) -> TEXT_ATTRIBUTES"""
2811 return _pcbnew.EDA_TEXT_GetAttributes(self)
2812
2813 def Replace(self, aSearchData):
2814 r"""Replace(EDA_TEXT self, EDA_SEARCH_DATA const & aSearchData) -> bool"""
2815 return _pcbnew.EDA_TEXT_Replace(self, aSearchData)
2816
2818 r"""IsDefaultFormatting(EDA_TEXT self) -> bool"""
2819 return _pcbnew.EDA_TEXT_IsDefaultFormatting(self)
2820
2821 def SetFont(self, aFont):
2822 r"""SetFont(EDA_TEXT self, KIFONT::FONT * aFont)"""
2823 return _pcbnew.EDA_TEXT_SetFont(self, aFont)
2824
2825 def GetFont(self):
2826 r"""GetFont(EDA_TEXT self) -> KIFONT::FONT *"""
2827 return _pcbnew.EDA_TEXT_GetFont(self)
2828
2829 def GetFontName(self):
2830 r"""GetFontName(EDA_TEXT self) -> wxString"""
2831 return _pcbnew.EDA_TEXT_GetFontName(self)
2832
2833 def SetFontIndex(self, aIdx):
2834 r"""SetFontIndex(EDA_TEXT self, int aIdx)"""
2835 return _pcbnew.EDA_TEXT_SetFontIndex(self, aIdx)
2836
2837 def GetFontIndex(self):
2838 r"""GetFontIndex(EDA_TEXT self) -> int"""
2839 return _pcbnew.EDA_TEXT_GetFontIndex(self)
2840
2841 def SetLineSpacing(self, aLineSpacing):
2842 r"""SetLineSpacing(EDA_TEXT self, double aLineSpacing)"""
2843 return _pcbnew.EDA_TEXT_SetLineSpacing(self, aLineSpacing)
2844
2846 r"""GetLineSpacing(EDA_TEXT self) -> double"""
2847 return _pcbnew.EDA_TEXT_GetLineSpacing(self)
2848
2849 def SetTextSize(self, aNewSize, aEnforceMinTextSize=True):
2850 r"""SetTextSize(EDA_TEXT self, VECTOR2I aNewSize, bool aEnforceMinTextSize=True)"""
2851 return _pcbnew.EDA_TEXT_SetTextSize(self, aNewSize, aEnforceMinTextSize)
2852
2853 def GetTextSize(self):
2854 r"""GetTextSize(EDA_TEXT self) -> VECTOR2I"""
2855 return _pcbnew.EDA_TEXT_GetTextSize(self)
2856
2857 def SetTextWidth(self, aWidth):
2858 r"""SetTextWidth(EDA_TEXT self, int aWidth)"""
2859 return _pcbnew.EDA_TEXT_SetTextWidth(self, aWidth)
2860
2861 def GetTextWidth(self):
2862 r"""GetTextWidth(EDA_TEXT self) -> int"""
2863 return _pcbnew.EDA_TEXT_GetTextWidth(self)
2864
2865 def SetTextHeight(self, aHeight):
2866 r"""SetTextHeight(EDA_TEXT self, int aHeight)"""
2867 return _pcbnew.EDA_TEXT_SetTextHeight(self, aHeight)
2868
2869 def GetTextHeight(self):
2870 r"""GetTextHeight(EDA_TEXT self) -> int"""
2871 return _pcbnew.EDA_TEXT_GetTextHeight(self)
2872
2873 def SetTextColor(self, aColor):
2874 r"""SetTextColor(EDA_TEXT self, COLOR4D aColor)"""
2875 return _pcbnew.EDA_TEXT_SetTextColor(self, aColor)
2876
2877 def GetTextColor(self):
2878 r"""GetTextColor(EDA_TEXT self) -> COLOR4D"""
2879 return _pcbnew.EDA_TEXT_GetTextColor(self)
2880
2881 def SetTextPos(self, aPoint):
2882 r"""SetTextPos(EDA_TEXT self, VECTOR2I aPoint)"""
2883 return _pcbnew.EDA_TEXT_SetTextPos(self, aPoint)
2884
2885 def GetTextPos(self):
2886 r"""GetTextPos(EDA_TEXT self) -> VECTOR2I"""
2887 return _pcbnew.EDA_TEXT_GetTextPos(self)
2888
2889 def SetTextX(self, aX):
2890 r"""SetTextX(EDA_TEXT self, int aX)"""
2891 return _pcbnew.EDA_TEXT_SetTextX(self, aX)
2892
2893 def SetTextY(self, aY):
2894 r"""SetTextY(EDA_TEXT self, int aY)"""
2895 return _pcbnew.EDA_TEXT_SetTextY(self, aY)
2896
2897 def Offset(self, aOffset):
2898 r"""Offset(EDA_TEXT self, VECTOR2I aOffset)"""
2899 return _pcbnew.EDA_TEXT_Offset(self, aOffset)
2900
2901 def Empty(self):
2902 r"""Empty(EDA_TEXT self)"""
2903 return _pcbnew.EDA_TEXT_Empty(self)
2904
2905 @staticmethod
2906 def MapHorizJustify(aHorizJustify):
2907 r"""MapHorizJustify(int aHorizJustify) -> GR_TEXT_H_ALIGN_T"""
2908 return _pcbnew.EDA_TEXT_MapHorizJustify(aHorizJustify)
2909
2910 @staticmethod
2911 def MapVertJustify(aVertJustify):
2912 r"""MapVertJustify(int aVertJustify) -> GR_TEXT_V_ALIGN_T"""
2913 return _pcbnew.EDA_TEXT_MapVertJustify(aVertJustify)
2914
2915 def Print(self, aSettings, aOffset, aColor, aDisplay_mode=FILLED):
2916 r"""Print(EDA_TEXT self, RENDER_SETTINGS const * aSettings, VECTOR2I aOffset, COLOR4D aColor, OUTLINE_MODE aDisplay_mode=FILLED)"""
2917 return _pcbnew.EDA_TEXT_Print(self, aSettings, aOffset, aColor, aDisplay_mode)
2918
2919 def GetEffectiveTextShape(self, *args):
2920 r"""GetEffectiveTextShape(EDA_TEXT self, bool aTriangulate=True, BOX2I aBBox=BOX2I(), EDA_ANGLE aAngle=ANGLE_0) -> std::shared_ptr< SHAPE_COMPOUND >"""
2921 return _pcbnew.EDA_TEXT_GetEffectiveTextShape(self, *args)
2922
2923 def TextHitTest(self, *args):
2924 r"""
2925 TextHitTest(EDA_TEXT self, VECTOR2I aPoint, int aAccuracy=0) -> bool
2926 TextHitTest(EDA_TEXT self, BOX2I aRect, bool aContains, int aAccuracy=0) -> bool
2927 """
2928 return _pcbnew.EDA_TEXT_TextHitTest(self, *args)
2929
2930 def GetTextBox(self, aLine=-1, aInvertY=False):
2931 r"""GetTextBox(EDA_TEXT self, int aLine=-1, bool aInvertY=False) -> BOX2I"""
2932 return _pcbnew.EDA_TEXT_GetTextBox(self, aLine, aInvertY)
2933
2934 def GetInterline(self):
2935 r"""GetInterline(EDA_TEXT self) -> int"""
2936 return _pcbnew.EDA_TEXT_GetInterline(self)
2937
2939 r"""GetTextStyleName(EDA_TEXT self) -> wxString"""
2940 return _pcbnew.EDA_TEXT_GetTextStyleName(self)
2941
2942 def GetLinePositions(self, aPositions, aLineCount):
2943 r"""GetLinePositions(EDA_TEXT self, VECTOR_VECTOR2I aPositions, int aLineCount)"""
2944 return _pcbnew.EDA_TEXT_GetLinePositions(self, aPositions, aLineCount)
2945
2946 def Levenshtein(self, aOther):
2947 r"""Levenshtein(EDA_TEXT self, EDA_TEXT aOther) -> double"""
2948 return _pcbnew.EDA_TEXT_Levenshtein(self, aOther)
2949
2950 def Similarity(self, aOther):
2951 r"""Similarity(EDA_TEXT self, EDA_TEXT aOther) -> double"""
2952 return _pcbnew.EDA_TEXT_Similarity(self, aOther)
2953
2954 def Format(self, aFormatter, aNestLevel, aControlBits):
2955 r"""Format(EDA_TEXT self, OUTPUTFORMATTER aFormatter, int aNestLevel, int aControlBits)"""
2956 return _pcbnew.EDA_TEXT_Format(self, aFormatter, aNestLevel, aControlBits)
2957
2959 r"""GetDrawRotation(EDA_TEXT self) -> EDA_ANGLE"""
2960 return _pcbnew.EDA_TEXT_GetDrawRotation(self)
2961
2962 def GetDrawPos(self):
2963 r"""GetDrawPos(EDA_TEXT self) -> VECTOR2I"""
2964 return _pcbnew.EDA_TEXT_GetDrawPos(self)
2965
2967 r"""ClearRenderCache(EDA_TEXT self)"""
2968 return _pcbnew.EDA_TEXT_ClearRenderCache(self)
2969
2971 r"""ClearBoundingBoxCache(EDA_TEXT self)"""
2972 return _pcbnew.EDA_TEXT_ClearBoundingBoxCache(self)
2973
2974 def GetRenderCache(self, *args):
2975 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 > > >"""
2976 return _pcbnew.EDA_TEXT_GetRenderCache(self, *args)
2977
2978 def SetupRenderCache(self, aResolvedText, aAngle):
2979 r"""SetupRenderCache(EDA_TEXT self, wxString aResolvedText, EDA_ANGLE aAngle)"""
2980 return _pcbnew.EDA_TEXT_SetupRenderCache(self, aResolvedText, aAngle)
2981
2982 def AddRenderCacheGlyph(self, aPoly):
2983 r"""AddRenderCacheGlyph(EDA_TEXT self, SHAPE_POLY_SET aPoly)"""
2984 return _pcbnew.EDA_TEXT_AddRenderCacheGlyph(self, aPoly)
2985
2986 def Compare(self, aOther):
2987 r"""Compare(EDA_TEXT self, EDA_TEXT aOther) -> int"""
2988 return _pcbnew.EDA_TEXT_Compare(self, aOther)
2989
2990 def __eq__(self, aRhs):
2991 r"""__eq__(EDA_TEXT self, EDA_TEXT aRhs) -> bool"""
2992 return _pcbnew.EDA_TEXT___eq__(self, aRhs)
2993
2994 def __lt__(self, aRhs):
2995 r"""__lt__(EDA_TEXT self, EDA_TEXT aRhs) -> bool"""
2996 return _pcbnew.EDA_TEXT___lt__(self, aRhs)
2997
2998 def __gt__(self, aRhs):
2999 r"""__gt__(EDA_TEXT self, EDA_TEXT aRhs) -> bool"""
3000 return _pcbnew.EDA_TEXT___gt__(self, aRhs)
3001
3002 def HasHyperlink(self):
3003 r"""HasHyperlink(EDA_TEXT self) -> bool"""
3004 return _pcbnew.EDA_TEXT_HasHyperlink(self)
3005
3006 def GetHyperlink(self):
3007 r"""GetHyperlink(EDA_TEXT self) -> wxString"""
3008 return _pcbnew.EDA_TEXT_GetHyperlink(self)
3009
3010 def SetHyperlink(self, aLink):
3011 r"""SetHyperlink(EDA_TEXT self, wxString aLink)"""
3012 return _pcbnew.EDA_TEXT_SetHyperlink(self, aLink)
3013
3015 r"""RemoveHyperlink(EDA_TEXT self)"""
3016 return _pcbnew.EDA_TEXT_RemoveHyperlink(self)
3017
3018 @staticmethod
3020 r"""ValidateHyperlink(wxString aURL) -> bool"""
3021 return _pcbnew.EDA_TEXT_ValidateHyperlink(aURL)
3022
3023 @staticmethod
3024 def IsGotoPageHref(aHref, aDestination=None):
3025 r"""IsGotoPageHref(wxString aHref, wxString aDestination=None) -> bool"""
3026 return _pcbnew.EDA_TEXT_IsGotoPageHref(aHref, aDestination)
3027
3028 @staticmethod
3029 def GotoPageHref(aDestination):
3030 r"""GotoPageHref(wxString aDestination) -> wxString"""
3031 return _pcbnew.EDA_TEXT_GotoPageHref(aDestination)
3032
3033# Register EDA_TEXT in _pcbnew:
3034_pcbnew.EDA_TEXT_swigregister(EDA_TEXT)
3035
3036def EDA_TEXT_MapHorizJustify(aHorizJustify):
3037 r"""EDA_TEXT_MapHorizJustify(int aHorizJustify) -> GR_TEXT_H_ALIGN_T"""
3038 return _pcbnew.EDA_TEXT_MapHorizJustify(aHorizJustify)
3039
3040def EDA_TEXT_MapVertJustify(aVertJustify):
3041 r"""EDA_TEXT_MapVertJustify(int aVertJustify) -> GR_TEXT_V_ALIGN_T"""
3042 return _pcbnew.EDA_TEXT_MapVertJustify(aVertJustify)
3043
3045 r"""EDA_TEXT_ValidateHyperlink(wxString aURL) -> bool"""
3046 return _pcbnew.EDA_TEXT_ValidateHyperlink(aURL)
3047
3048def EDA_TEXT_IsGotoPageHref(aHref, aDestination=None):
3049 r"""EDA_TEXT_IsGotoPageHref(wxString aHref, wxString aDestination=None) -> bool"""
3050 return _pcbnew.EDA_TEXT_IsGotoPageHref(aHref, aDestination)
3051
3052def EDA_TEXT_GotoPageHref(aDestination):
3053 r"""EDA_TEXT_GotoPageHref(wxString aDestination) -> wxString"""
3054 return _pcbnew.EDA_TEXT_GotoPageHref(aDestination)
3055
3056
3058 r"""GetBuildVersion() -> wxString"""
3059 return _pcbnew.GetBuildVersion()
3060
3062 r"""GetBaseVersion() -> wxString"""
3063 return _pcbnew.GetBaseVersion()
3064
3066 r"""GetPlatformGetBitnessName() -> wxString"""
3067 return _pcbnew.GetPlatformGetBitnessName()
3068
3070 r"""GetSemanticVersion() -> wxString"""
3071 return _pcbnew.GetSemanticVersion()
3072
3074 r"""GetMajorMinorVersion() -> wxString"""
3075 return _pcbnew.GetMajorMinorVersion()
3076
3078 r"""GetMajorMinorPatchVersion() -> wxString"""
3079 return _pcbnew.GetMajorMinorPatchVersion()
3080
3082 r"""GetBuildDate() -> wxString"""
3083 return _pcbnew.GetBuildDate()
3084
3086 r"""GetCommitHash() -> wxString"""
3087 return _pcbnew.GetCommitHash()
3088
3090 r"""GetMajorMinorPatchTuple() -> std::tuple< int,int,int > const &"""
3091 return _pcbnew.GetMajorMinorPatchTuple()
3092
3094 r"""IsNightlyVersion() -> bool"""
3095 return _pcbnew.IsNightlyVersion()
3096
3097def SetOpenGLInfo(aRenderer, aVendor, aVersion):
3098 r"""SetOpenGLInfo(char const * aRenderer, char const * aVendor, char const * aVersion)"""
3099 return _pcbnew.SetOpenGLInfo(aRenderer, aVendor, aVersion)
3100
3101def GetVersionInfoData(aTitle, aHtml=False, aBrief=False):
3102 r"""GetVersionInfoData(wxString aTitle, bool aHtml=False, bool aBrief=False) -> wxString"""
3103 return _pcbnew.GetVersionInfoData(aTitle, aHtml, aBrief)
3104UNDEFINED_LAYER = _pcbnew.UNDEFINED_LAYER
3105
3106UNSELECTED_LAYER = _pcbnew.UNSELECTED_LAYER
3107
3108PCBNEW_LAYER_ID_START = _pcbnew.PCBNEW_LAYER_ID_START
3109
3110F_Cu = _pcbnew.F_Cu
3111
3112In1_Cu = _pcbnew.In1_Cu
3113
3114In2_Cu = _pcbnew.In2_Cu
3115
3116In3_Cu = _pcbnew.In3_Cu
3117
3118In4_Cu = _pcbnew.In4_Cu
3119
3120In5_Cu = _pcbnew.In5_Cu
3121
3122In6_Cu = _pcbnew.In6_Cu
3123
3124In7_Cu = _pcbnew.In7_Cu
3125
3126In8_Cu = _pcbnew.In8_Cu
3127
3128In9_Cu = _pcbnew.In9_Cu
3129
3130In10_Cu = _pcbnew.In10_Cu
3131
3132In11_Cu = _pcbnew.In11_Cu
3133
3134In12_Cu = _pcbnew.In12_Cu
3135
3136In13_Cu = _pcbnew.In13_Cu
3137
3138In14_Cu = _pcbnew.In14_Cu
3139
3140In15_Cu = _pcbnew.In15_Cu
3141
3142In16_Cu = _pcbnew.In16_Cu
3143
3144In17_Cu = _pcbnew.In17_Cu
3145
3146In18_Cu = _pcbnew.In18_Cu
3147
3148In19_Cu = _pcbnew.In19_Cu
3149
3150In20_Cu = _pcbnew.In20_Cu
3151
3152In21_Cu = _pcbnew.In21_Cu
3153
3154In22_Cu = _pcbnew.In22_Cu
3155
3156In23_Cu = _pcbnew.In23_Cu
3157
3158In24_Cu = _pcbnew.In24_Cu
3159
3160In25_Cu = _pcbnew.In25_Cu
3161
3162In26_Cu = _pcbnew.In26_Cu
3163
3164In27_Cu = _pcbnew.In27_Cu
3165
3166In28_Cu = _pcbnew.In28_Cu
3167
3168In29_Cu = _pcbnew.In29_Cu
3169
3170In30_Cu = _pcbnew.In30_Cu
3171
3172B_Cu = _pcbnew.B_Cu
3173
3174B_Adhes = _pcbnew.B_Adhes
3175
3176F_Adhes = _pcbnew.F_Adhes
3177
3178B_Paste = _pcbnew.B_Paste
3179
3180F_Paste = _pcbnew.F_Paste
3181
3182B_SilkS = _pcbnew.B_SilkS
3183
3184F_SilkS = _pcbnew.F_SilkS
3185
3186B_Mask = _pcbnew.B_Mask
3187
3188F_Mask = _pcbnew.F_Mask
3189
3190Dwgs_User = _pcbnew.Dwgs_User
3191
3192Cmts_User = _pcbnew.Cmts_User
3193
3194Eco1_User = _pcbnew.Eco1_User
3195
3196Eco2_User = _pcbnew.Eco2_User
3197
3198Edge_Cuts = _pcbnew.Edge_Cuts
3199
3200Margin = _pcbnew.Margin
3201
3202B_CrtYd = _pcbnew.B_CrtYd
3203
3204F_CrtYd = _pcbnew.F_CrtYd
3205
3206B_Fab = _pcbnew.B_Fab
3207
3208F_Fab = _pcbnew.F_Fab
3209
3210User_1 = _pcbnew.User_1
3211
3212User_2 = _pcbnew.User_2
3213
3214User_3 = _pcbnew.User_3
3215
3216User_4 = _pcbnew.User_4
3217
3218User_5 = _pcbnew.User_5
3219
3220User_6 = _pcbnew.User_6
3221
3222User_7 = _pcbnew.User_7
3223
3224User_8 = _pcbnew.User_8
3225
3226User_9 = _pcbnew.User_9
3227
3228Rescue = _pcbnew.Rescue
3229
3230PCB_LAYER_ID_COUNT = _pcbnew.PCB_LAYER_ID_COUNT
3231
3232FLASHING_DEFAULT = _pcbnew.FLASHING_DEFAULT
3233
3234FLASHING_ALWAYS_FLASHED = _pcbnew.FLASHING_ALWAYS_FLASHED
3235
3236FLASHING_NEVER_FLASHED = _pcbnew.FLASHING_NEVER_FLASHED
3237
3238NETNAMES_LAYER_ID_START = _pcbnew.NETNAMES_LAYER_ID_START
3239
3240NETNAMES_LAYER_ID_RESERVED = _pcbnew.NETNAMES_LAYER_ID_RESERVED
3241
3242LAYER_PAD_FR_NETNAMES = _pcbnew.LAYER_PAD_FR_NETNAMES
3243
3244LAYER_PAD_BK_NETNAMES = _pcbnew.LAYER_PAD_BK_NETNAMES
3245
3246LAYER_PAD_NETNAMES = _pcbnew.LAYER_PAD_NETNAMES
3247
3248LAYER_VIA_NETNAMES = _pcbnew.LAYER_VIA_NETNAMES
3249
3250NETNAMES_LAYER_ID_END = _pcbnew.NETNAMES_LAYER_ID_END
3251
3252GAL_UI_LAYER_COUNT = _pcbnew.GAL_UI_LAYER_COUNT
3253
3254GAL_LAYER_ID_START = _pcbnew.GAL_LAYER_ID_START
3255
3256LAYER_VIAS = _pcbnew.LAYER_VIAS
3257
3258LAYER_VIA_MICROVIA = _pcbnew.LAYER_VIA_MICROVIA
3259
3260LAYER_VIA_BBLIND = _pcbnew.LAYER_VIA_BBLIND
3261
3262LAYER_VIA_THROUGH = _pcbnew.LAYER_VIA_THROUGH
3263
3264LAYER_NON_PLATEDHOLES = _pcbnew.LAYER_NON_PLATEDHOLES
3265
3266LAYER_FP_TEXT = _pcbnew.LAYER_FP_TEXT
3267
3268LAYER_HIDDEN_TEXT = _pcbnew.LAYER_HIDDEN_TEXT
3269
3270LAYER_ANCHOR = _pcbnew.LAYER_ANCHOR
3271
3272LAYER_PADS_SMD_FR = _pcbnew.LAYER_PADS_SMD_FR
3273
3274LAYER_PADS_SMD_BK = _pcbnew.LAYER_PADS_SMD_BK
3275
3276LAYER_RATSNEST = _pcbnew.LAYER_RATSNEST
3277
3278LAYER_GRID = _pcbnew.LAYER_GRID
3279
3280LAYER_GRID_AXES = _pcbnew.LAYER_GRID_AXES
3281
3282LAYER_FOOTPRINTS_FR = _pcbnew.LAYER_FOOTPRINTS_FR
3283
3284LAYER_FOOTPRINTS_BK = _pcbnew.LAYER_FOOTPRINTS_BK
3285
3286LAYER_FP_VALUES = _pcbnew.LAYER_FP_VALUES
3287
3288LAYER_FP_REFERENCES = _pcbnew.LAYER_FP_REFERENCES
3289
3290LAYER_TRACKS = _pcbnew.LAYER_TRACKS
3291
3292LAYER_PADS_TH = _pcbnew.LAYER_PADS_TH
3293
3294LAYER_PAD_PLATEDHOLES = _pcbnew.LAYER_PAD_PLATEDHOLES
3295
3296LAYER_VIA_HOLES = _pcbnew.LAYER_VIA_HOLES
3297
3298LAYER_DRC_ERROR = _pcbnew.LAYER_DRC_ERROR
3299
3300LAYER_DRAWINGSHEET = _pcbnew.LAYER_DRAWINGSHEET
3301
3302LAYER_GP_OVERLAY = _pcbnew.LAYER_GP_OVERLAY
3303
3304LAYER_SELECT_OVERLAY = _pcbnew.LAYER_SELECT_OVERLAY
3305
3306LAYER_PCB_BACKGROUND = _pcbnew.LAYER_PCB_BACKGROUND
3307
3308LAYER_CURSOR = _pcbnew.LAYER_CURSOR
3309
3310LAYER_AUX_ITEMS = _pcbnew.LAYER_AUX_ITEMS
3311
3312LAYER_DRAW_BITMAPS = _pcbnew.LAYER_DRAW_BITMAPS
3313
3314GAL_LAYER_ID_BITMASK_END = _pcbnew.GAL_LAYER_ID_BITMASK_END
3315
3316LAYER_PADS = _pcbnew.LAYER_PADS
3317
3318LAYER_ZONES = _pcbnew.LAYER_ZONES
3319
3320LAYER_PAD_HOLEWALLS = _pcbnew.LAYER_PAD_HOLEWALLS
3321
3322LAYER_VIA_HOLEWALLS = _pcbnew.LAYER_VIA_HOLEWALLS
3323
3324LAYER_DRC_WARNING = _pcbnew.LAYER_DRC_WARNING
3325
3326LAYER_DRC_EXCLUSION = _pcbnew.LAYER_DRC_EXCLUSION
3327
3328LAYER_MARKER_SHADOWS = _pcbnew.LAYER_MARKER_SHADOWS
3329
3330LAYER_LOCKED_ITEM_SHADOW = _pcbnew.LAYER_LOCKED_ITEM_SHADOW
3331
3332LAYER_CONFLICTS_SHADOW = _pcbnew.LAYER_CONFLICTS_SHADOW
3333
3334LAYER_DRAWINGSHEET_PAGE1 = _pcbnew.LAYER_DRAWINGSHEET_PAGE1
3335
3336LAYER_DRAWINGSHEET_PAGEn = _pcbnew.LAYER_DRAWINGSHEET_PAGEn
3337
3338LAYER_PAGE_LIMITS = _pcbnew.LAYER_PAGE_LIMITS
3339
3340LAYER_ZONE_START = _pcbnew.LAYER_ZONE_START
3341
3342LAYER_ZONE_END = _pcbnew.LAYER_ZONE_END
3343
3344LAYER_BITMAP_START = _pcbnew.LAYER_BITMAP_START
3345
3346LAYER_BITMAP_END = _pcbnew.LAYER_BITMAP_END
3347
3348LAYER_UI_START = _pcbnew.LAYER_UI_START
3349
3350LAYER_UI_END = _pcbnew.LAYER_UI_END
3351
3352GAL_LAYER_ID_END = _pcbnew.GAL_LAYER_ID_END
3353
3354
3355def ToGalLayer(aInteger):
3356 r"""ToGalLayer(int aInteger) -> GAL_LAYER_ID"""
3357 return _pcbnew.ToGalLayer(aInteger)
3359 r"""Proxy of C++ GAL_SET class."""
3360
3361 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3362 __repr__ = _swig_repr
3363
3364 def __init__(self, *args):
3365 r"""
3366 __init__(GAL_SET self) -> GAL_SET
3367 __init__(GAL_SET self, GAL_SET aOther) -> GAL_SET
3368 __init__(GAL_SET self, GAL_LAYER_ID const * aArray, unsigned int aCount) -> GAL_SET
3369 """
3370 _pcbnew.GAL_SET_swiginit(self, _pcbnew.new_GAL_SET(*args))
3371
3372 def set(self, *args):
3373 r"""
3374 set(GAL_SET self) -> GAL_SET
3375 set(GAL_SET self, int aPos, bool aVal=True) -> GAL_SET
3376 set(GAL_SET self, GAL_LAYER_ID aPos, bool aVal=True) -> GAL_SET
3377 """
3378 return _pcbnew.GAL_SET_set(self, *args)
3379
3380 def Contains(self, aPos):
3381 r"""Contains(GAL_SET self, GAL_LAYER_ID aPos) -> bool"""
3382 return _pcbnew.GAL_SET_Contains(self, aPos)
3383
3384 def Seq(self):
3385 r"""Seq(GAL_SET self) -> std::vector< GAL_LAYER_ID,std::allocator< GAL_LAYER_ID > >"""
3386 return _pcbnew.GAL_SET_Seq(self)
3387
3388 @staticmethod
3390 r"""DefaultVisible() -> GAL_SET"""
3391 return _pcbnew.GAL_SET_DefaultVisible()
3392 __swig_destroy__ = _pcbnew.delete_GAL_SET
3393
3394# Register GAL_SET in _pcbnew:
3395_pcbnew.GAL_SET_swigregister(GAL_SET)
3396GAL_LAYER_ID_COUNT = cvar.GAL_LAYER_ID_COUNT
3397
3399 r"""GAL_SET_DefaultVisible() -> GAL_SET"""
3400 return _pcbnew.GAL_SET_DefaultVisible()
3401
3402SCH_LAYER_ID_START = _pcbnew.SCH_LAYER_ID_START
3403
3404LAYER_WIRE = _pcbnew.LAYER_WIRE
3405
3406LAYER_BUS = _pcbnew.LAYER_BUS
3407
3408LAYER_JUNCTION = _pcbnew.LAYER_JUNCTION
3409
3410LAYER_LOCLABEL = _pcbnew.LAYER_LOCLABEL
3411
3412LAYER_GLOBLABEL = _pcbnew.LAYER_GLOBLABEL
3413
3414LAYER_HIERLABEL = _pcbnew.LAYER_HIERLABEL
3415
3416LAYER_PINNUM = _pcbnew.LAYER_PINNUM
3417
3418LAYER_PINNAM = _pcbnew.LAYER_PINNAM
3419
3420LAYER_REFERENCEPART = _pcbnew.LAYER_REFERENCEPART
3421
3422LAYER_VALUEPART = _pcbnew.LAYER_VALUEPART
3423
3424LAYER_FIELDS = _pcbnew.LAYER_FIELDS
3425
3426LAYER_INTERSHEET_REFS = _pcbnew.LAYER_INTERSHEET_REFS
3427
3428LAYER_NETCLASS_REFS = _pcbnew.LAYER_NETCLASS_REFS
3429
3430LAYER_DEVICE = _pcbnew.LAYER_DEVICE
3431
3432LAYER_NOTES = _pcbnew.LAYER_NOTES
3433
3434LAYER_PRIVATE_NOTES = _pcbnew.LAYER_PRIVATE_NOTES
3435
3436LAYER_NOTES_BACKGROUND = _pcbnew.LAYER_NOTES_BACKGROUND
3437
3438LAYER_PIN = _pcbnew.LAYER_PIN
3439
3440LAYER_SHEET = _pcbnew.LAYER_SHEET
3441
3442LAYER_SHEETNAME = _pcbnew.LAYER_SHEETNAME
3443
3444LAYER_SHEETFILENAME = _pcbnew.LAYER_SHEETFILENAME
3445
3446LAYER_SHEETFIELDS = _pcbnew.LAYER_SHEETFIELDS
3447
3448LAYER_SHEETLABEL = _pcbnew.LAYER_SHEETLABEL
3449
3450LAYER_NOCONNECT = _pcbnew.LAYER_NOCONNECT
3451
3452LAYER_DANGLING = _pcbnew.LAYER_DANGLING
3453
3454LAYER_DNP_MARKER = _pcbnew.LAYER_DNP_MARKER
3455
3456LAYER_ERC_WARN = _pcbnew.LAYER_ERC_WARN
3457
3458LAYER_ERC_ERR = _pcbnew.LAYER_ERC_ERR
3459
3460LAYER_ERC_EXCLUSION = _pcbnew.LAYER_ERC_EXCLUSION
3461
3462LAYER_DEVICE_BACKGROUND = _pcbnew.LAYER_DEVICE_BACKGROUND
3463
3464LAYER_SHEET_BACKGROUND = _pcbnew.LAYER_SHEET_BACKGROUND
3465
3466LAYER_SCHEMATIC_GRID = _pcbnew.LAYER_SCHEMATIC_GRID
3467
3468LAYER_SCHEMATIC_GRID_AXES = _pcbnew.LAYER_SCHEMATIC_GRID_AXES
3469
3470LAYER_SCHEMATIC_BACKGROUND = _pcbnew.LAYER_SCHEMATIC_BACKGROUND
3471
3472LAYER_SCHEMATIC_CURSOR = _pcbnew.LAYER_SCHEMATIC_CURSOR
3473
3474LAYER_HOVERED = _pcbnew.LAYER_HOVERED
3475
3476LAYER_BRIGHTENED = _pcbnew.LAYER_BRIGHTENED
3477
3478LAYER_HIDDEN = _pcbnew.LAYER_HIDDEN
3479
3480LAYER_SELECTION_SHADOWS = _pcbnew.LAYER_SELECTION_SHADOWS
3481
3482LAYER_SCHEMATIC_DRAWINGSHEET = _pcbnew.LAYER_SCHEMATIC_DRAWINGSHEET
3483
3484LAYER_SCHEMATIC_PAGE_LIMITS = _pcbnew.LAYER_SCHEMATIC_PAGE_LIMITS
3485
3486LAYER_BUS_JUNCTION = _pcbnew.LAYER_BUS_JUNCTION
3487
3488LAYER_SCHEMATIC_AUX_ITEMS = _pcbnew.LAYER_SCHEMATIC_AUX_ITEMS
3489
3490LAYER_SCHEMATIC_ANCHOR = _pcbnew.LAYER_SCHEMATIC_ANCHOR
3491
3492LAYER_OP_VOLTAGES = _pcbnew.LAYER_OP_VOLTAGES
3493
3494LAYER_OP_CURRENTS = _pcbnew.LAYER_OP_CURRENTS
3495
3496SCH_LAYER_ID_END = _pcbnew.SCH_LAYER_ID_END
3497
3498GERBVIEW_LAYER_ID_START = _pcbnew.GERBVIEW_LAYER_ID_START
3499
3500GERBVIEW_LAYER_ID_RESERVED = _pcbnew.GERBVIEW_LAYER_ID_RESERVED
3501
3502LAYER_DCODES = _pcbnew.LAYER_DCODES
3503
3504LAYER_NEGATIVE_OBJECTS = _pcbnew.LAYER_NEGATIVE_OBJECTS
3505
3506LAYER_GERBVIEW_GRID = _pcbnew.LAYER_GERBVIEW_GRID
3507
3508LAYER_GERBVIEW_AXES = _pcbnew.LAYER_GERBVIEW_AXES
3509
3510LAYER_GERBVIEW_BACKGROUND = _pcbnew.LAYER_GERBVIEW_BACKGROUND
3511
3512LAYER_GERBVIEW_DRAWINGSHEET = _pcbnew.LAYER_GERBVIEW_DRAWINGSHEET
3513
3514LAYER_GERBVIEW_PAGE_LIMITS = _pcbnew.LAYER_GERBVIEW_PAGE_LIMITS
3515
3516GERBVIEW_LAYER_ID_END = _pcbnew.GERBVIEW_LAYER_ID_END
3517
3518LAYER_3D_START = _pcbnew.LAYER_3D_START
3519
3520LAYER_3D_BACKGROUND_BOTTOM = _pcbnew.LAYER_3D_BACKGROUND_BOTTOM
3521
3522LAYER_3D_BACKGROUND_TOP = _pcbnew.LAYER_3D_BACKGROUND_TOP
3523
3524LAYER_3D_BOARD = _pcbnew.LAYER_3D_BOARD
3525
3526LAYER_3D_COPPER_TOP = _pcbnew.LAYER_3D_COPPER_TOP
3527
3528LAYER_3D_COPPER_BOTTOM = _pcbnew.LAYER_3D_COPPER_BOTTOM
3529
3530LAYER_3D_SILKSCREEN_BOTTOM = _pcbnew.LAYER_3D_SILKSCREEN_BOTTOM
3531
3532LAYER_3D_SILKSCREEN_TOP = _pcbnew.LAYER_3D_SILKSCREEN_TOP
3533
3534LAYER_3D_SOLDERMASK_BOTTOM = _pcbnew.LAYER_3D_SOLDERMASK_BOTTOM
3535
3536LAYER_3D_SOLDERMASK_TOP = _pcbnew.LAYER_3D_SOLDERMASK_TOP
3537
3538LAYER_3D_SOLDERPASTE = _pcbnew.LAYER_3D_SOLDERPASTE
3539
3540LAYER_3D_ADHESIVE = _pcbnew.LAYER_3D_ADHESIVE
3541
3542LAYER_3D_USER_COMMENTS = _pcbnew.LAYER_3D_USER_COMMENTS
3543
3544LAYER_3D_USER_DRAWINGS = _pcbnew.LAYER_3D_USER_DRAWINGS
3545
3546LAYER_3D_USER_ECO1 = _pcbnew.LAYER_3D_USER_ECO1
3547
3548LAYER_3D_USER_ECO2 = _pcbnew.LAYER_3D_USER_ECO2
3549
3550LAYER_3D_TH_MODELS = _pcbnew.LAYER_3D_TH_MODELS
3551
3552LAYER_3D_SMD_MODELS = _pcbnew.LAYER_3D_SMD_MODELS
3553
3554LAYER_3D_VIRTUAL_MODELS = _pcbnew.LAYER_3D_VIRTUAL_MODELS
3555
3556LAYER_3D_MODELS_NOT_IN_POS = _pcbnew.LAYER_3D_MODELS_NOT_IN_POS
3557
3558LAYER_3D_MODELS_MARKED_DNP = _pcbnew.LAYER_3D_MODELS_MARKED_DNP
3559
3560LAYER_3D_AXES = _pcbnew.LAYER_3D_AXES
3561
3562LAYER_3D_BOUNDING_BOXES = _pcbnew.LAYER_3D_BOUNDING_BOXES
3563
3564LAYER_3D_OFF_BOARD_SILK = _pcbnew.LAYER_3D_OFF_BOARD_SILK
3565
3566LAYER_3D_END = _pcbnew.LAYER_3D_END
3567
3568
3569def LayerName(aLayer):
3570 r"""LayerName(int aLayer) -> wxString"""
3571 return _pcbnew.LayerName(aLayer)
3573 r"""Proxy of C++ LSEQ class."""
3574
3575 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3576 __repr__ = _swig_repr
3577
3578 def __init__(self, *args):
3579 r"""
3580 __init__(LSEQ self) -> LSEQ
3581 __init__(LSEQ self, std::initializer_list< PCB_LAYER_ID > aLayers) -> LSEQ
3582 """
3583 _pcbnew.LSEQ_swiginit(self, _pcbnew.new_LSEQ(*args))
3584
3585 def Rewind(self):
3586 r"""Rewind(LSEQ self)"""
3587 return _pcbnew.LSEQ_Rewind(self)
3588
3589 def __nonzero__(self):
3590 return _pcbnew.LSEQ___nonzero__(self)
3591 __bool__ = __nonzero__
3592
3593
3594
3595 def __ref__(self):
3596 r"""__ref__(LSEQ self) -> PCB_LAYER_ID"""
3597 return _pcbnew.LSEQ___ref__(self)
3598
3599 def TestLayers(self, aRhs, aLhs):
3600 r"""TestLayers(LSEQ self, PCB_LAYER_ID aRhs, PCB_LAYER_ID aLhs) -> int"""
3601 return _pcbnew.LSEQ_TestLayers(self, aRhs, aLhs)
3602 __swig_destroy__ = _pcbnew.delete_LSEQ
3603
3604# Register LSEQ in _pcbnew:
3605_pcbnew.LSEQ_swigregister(LSEQ)
3606
3608 r"""Proxy of C++ LSET class."""
3609
3610 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3611 __repr__ = _swig_repr
3612
3613 def __init__(self, *args):
3614 r"""
3615 __init__(LSET self) -> LSET
3616 __init__(LSET self, BASE_SET const & aOther) -> LSET
3617 __init__(LSET self, PCB_LAYER_ID aLayer) -> LSET
3618 __init__(LSET self, PCB_LAYER_ID const * aArray, unsigned int aCount) -> LSET
3619 __init__(LSET self, unsigned int aIdCount, int aFirst) -> LSET
3620 __init__(LSET self, LSEQ aSeq) -> LSET
3621 """
3622 _pcbnew.LSET_swiginit(self, _pcbnew.new_LSET(*args))
3623
3624 def Contains(self, aLayer):
3625 r"""Contains(LSET self, PCB_LAYER_ID aLayer) -> bool"""
3626 return _pcbnew.LSET_Contains(self, aLayer)
3627
3628 @staticmethod
3629 def Name(aLayerId):
3630 r"""Name(PCB_LAYER_ID aLayerId) -> wxChar const *"""
3631 return _pcbnew.LSET_Name(aLayerId)
3632
3633 @staticmethod
3635 r"""InternalCuMask() -> LSET"""
3636 return _pcbnew.LSET_InternalCuMask()
3637
3638 @staticmethod
3640 r"""FrontAssembly() -> LSET"""
3641 return _pcbnew.LSET_FrontAssembly()
3642
3643 @staticmethod
3645 r"""BackAssembly() -> LSET"""
3646 return _pcbnew.LSET_BackAssembly()
3647
3648 @staticmethod
3649 def AllCuMask(*args):
3650 r"""AllCuMask(int aCuLayerCount=(B_Cu-F_Cu+1)) -> LSET"""
3651 return _pcbnew.LSET_AllCuMask(*args)
3652
3653 @staticmethod
3655 r"""ExternalCuMask() -> LSET"""
3656 return _pcbnew.LSET_ExternalCuMask()
3657
3658 @staticmethod
3660 r"""AllNonCuMask() -> LSET"""
3661 return _pcbnew.LSET_AllNonCuMask()
3662
3663 @staticmethod
3665 r"""AllLayersMask() -> LSET"""
3666 return _pcbnew.LSET_AllLayersMask()
3667
3668 @staticmethod
3670 r"""FrontTechMask() -> LSET"""
3671 return _pcbnew.LSET_FrontTechMask()
3672
3673 @staticmethod
3675 r"""FrontBoardTechMask() -> LSET"""
3676 return _pcbnew.LSET_FrontBoardTechMask()
3677
3678 @staticmethod
3680 r"""BackTechMask() -> LSET"""
3681 return _pcbnew.LSET_BackTechMask()
3682
3683 @staticmethod
3685 r"""BackBoardTechMask() -> LSET"""
3686 return _pcbnew.LSET_BackBoardTechMask()
3687
3688 @staticmethod
3690 r"""AllTechMask() -> LSET"""
3691 return _pcbnew.LSET_AllTechMask()
3692
3693 @staticmethod
3695 r"""AllBoardTechMask() -> LSET"""
3696 return _pcbnew.LSET_AllBoardTechMask()
3697
3698 @staticmethod
3700 r"""FrontMask() -> LSET"""
3701 return _pcbnew.LSET_FrontMask()
3702
3703 @staticmethod
3705 r"""BackMask() -> LSET"""
3706 return _pcbnew.LSET_BackMask()
3707
3708 @staticmethod
3710 r"""SideSpecificMask() -> LSET"""
3711 return _pcbnew.LSET_SideSpecificMask()
3712
3713 @staticmethod
3715 r"""UserMask() -> LSET"""
3716 return _pcbnew.LSET_UserMask()
3717
3718 @staticmethod
3720 r"""PhysicalLayersMask() -> LSET"""
3721 return _pcbnew.LSET_PhysicalLayersMask()
3722
3723 @staticmethod
3725 r"""UserDefinedLayers() -> LSET"""
3726 return _pcbnew.LSET_UserDefinedLayers()
3727
3728 @staticmethod
3730 r"""ForbiddenFootprintLayers() -> LSET"""
3731 return _pcbnew.LSET_ForbiddenFootprintLayers()
3732
3733 def CuStack(self):
3734 r"""CuStack(LSET self) -> LSEQ"""
3735 return _pcbnew.LSET_CuStack(self)
3736
3737 def Technicals(self, *args):
3738 r"""Technicals(LSET self, LSET aSubToOmit=LSET()) -> LSEQ"""
3739 return _pcbnew.LSET_Technicals(self, *args)
3740
3741 def Users(self):
3742 r"""Users(LSET self) -> LSEQ"""
3743 return _pcbnew.LSET_Users(self)
3744
3746 r"""TechAndUserUIOrder(LSET self) -> LSEQ"""
3747 return _pcbnew.LSET_TechAndUserUIOrder(self)
3748
3749 def UIOrder(self):
3750 r"""UIOrder(LSET self) -> LSEQ"""
3751 return _pcbnew.LSET_UIOrder(self)
3752
3753 def Seq(self, *args):
3754 r"""
3755 Seq(LSET self, PCB_LAYER_ID const * aWishListSequence, unsigned int aCount) -> LSEQ
3756 Seq(LSET self, LSEQ aSequence) -> LSEQ
3757 Seq(LSET self) -> LSEQ
3758 """
3759 return _pcbnew.LSET_Seq(self, *args)
3760
3761 def SeqStackupTop2Bottom(self, aSelectedLayer=UNDEFINED_LAYER):
3762 r"""SeqStackupTop2Bottom(LSET self, PCB_LAYER_ID aSelectedLayer=UNDEFINED_LAYER) -> LSEQ"""
3763 return _pcbnew.LSET_SeqStackupTop2Bottom(self, aSelectedLayer)
3764
3766 r"""SeqStackupForPlotting(LSET self) -> LSEQ"""
3767 return _pcbnew.LSET_SeqStackupForPlotting(self)
3768
3769 def FmtHex(self):
3770 r"""FmtHex(LSET self) -> string"""
3771 return _pcbnew.LSET_FmtHex(self)
3772
3773 def ParseHex(self, aStart, aCount):
3774 r"""ParseHex(LSET self, char const * aStart, int aCount) -> int"""
3775 return _pcbnew.LSET_ParseHex(self, aStart, aCount)
3776
3777 def FmtBin(self):
3778 r"""FmtBin(LSET self) -> string"""
3779 return _pcbnew.LSET_FmtBin(self)
3780
3781 def ExtractLayer(self):
3782 r"""ExtractLayer(LSET self) -> PCB_LAYER_ID"""
3783 return _pcbnew.LSET_ExtractLayer(self)
3784
3785 def addLayer(self, aLayer):
3786 r"""addLayer(LSET self, PCB_LAYER_ID aLayer) -> LSET"""
3787 return _pcbnew.LSET_addLayer(self, aLayer)
3788
3789 def removeLayer(self, aLayer):
3790 r"""removeLayer(LSET self, PCB_LAYER_ID aLayer) -> LSET"""
3791 return _pcbnew.LSET_removeLayer(self, aLayer)
3792
3793 def addLayerSet(self, aLayerSet):
3794 r"""addLayerSet(LSET self, LSET aLayerSet) -> LSET"""
3795 return _pcbnew.LSET_addLayerSet(self, aLayerSet)
3796
3797 def removeLayerSet(self, aLayerSet):
3798 r"""removeLayerSet(LSET self, LSET aLayerSet) -> LSET"""
3799 return _pcbnew.LSET_removeLayerSet(self, aLayerSet)
3800
3801 def AddLayer(self, layer):
3802 return self.addLayer( layer )
3803
3804 def AddLayerSet(self, layers):
3805 return self.addLayerSet( layers )
3806
3807 def RemoveLayer(self, layer):
3808 return self.removeLayer( layer )
3809
3810 def RemoveLayerSet(self, layers):
3811 return self.removeLayerSet( layers )
3812
3813 __swig_destroy__ = _pcbnew.delete_LSET
3814
3815# Register LSET in _pcbnew:
3816_pcbnew.LSET_swigregister(LSET)
3817
3818def LSET_Name(aLayerId):
3819 r"""LSET_Name(PCB_LAYER_ID aLayerId) -> wxChar const *"""
3820 return _pcbnew.LSET_Name(aLayerId)
3821
3823 r"""LSET_InternalCuMask() -> LSET"""
3824 return _pcbnew.LSET_InternalCuMask()
3825
3827 r"""LSET_FrontAssembly() -> LSET"""
3828 return _pcbnew.LSET_FrontAssembly()
3829
3831 r"""LSET_BackAssembly() -> LSET"""
3832 return _pcbnew.LSET_BackAssembly()
3833
3835 r"""LSET_AllCuMask(int aCuLayerCount=(B_Cu-F_Cu+1)) -> LSET"""
3836 return _pcbnew.LSET_AllCuMask(*args)
3837
3839 r"""LSET_ExternalCuMask() -> LSET"""
3840 return _pcbnew.LSET_ExternalCuMask()
3841
3843 r"""LSET_AllNonCuMask() -> LSET"""
3844 return _pcbnew.LSET_AllNonCuMask()
3845
3847 r"""LSET_AllLayersMask() -> LSET"""
3848 return _pcbnew.LSET_AllLayersMask()
3849
3851 r"""LSET_FrontTechMask() -> LSET"""
3852 return _pcbnew.LSET_FrontTechMask()
3853
3855 r"""LSET_FrontBoardTechMask() -> LSET"""
3856 return _pcbnew.LSET_FrontBoardTechMask()
3857
3859 r"""LSET_BackTechMask() -> LSET"""
3860 return _pcbnew.LSET_BackTechMask()
3861
3863 r"""LSET_BackBoardTechMask() -> LSET"""
3864 return _pcbnew.LSET_BackBoardTechMask()
3865
3867 r"""LSET_AllTechMask() -> LSET"""
3868 return _pcbnew.LSET_AllTechMask()
3869
3871 r"""LSET_AllBoardTechMask() -> LSET"""
3872 return _pcbnew.LSET_AllBoardTechMask()
3873
3875 r"""LSET_FrontMask() -> LSET"""
3876 return _pcbnew.LSET_FrontMask()
3877
3879 r"""LSET_BackMask() -> LSET"""
3880 return _pcbnew.LSET_BackMask()
3881
3883 r"""LSET_SideSpecificMask() -> LSET"""
3884 return _pcbnew.LSET_SideSpecificMask()
3885
3887 r"""LSET_UserMask() -> LSET"""
3888 return _pcbnew.LSET_UserMask()
3889
3891 r"""LSET_PhysicalLayersMask() -> LSET"""
3892 return _pcbnew.LSET_PhysicalLayersMask()
3893
3895 r"""LSET_UserDefinedLayers() -> LSET"""
3896 return _pcbnew.LSET_UserDefinedLayers()
3897
3899 r"""LSET_ForbiddenFootprintLayers() -> LSET"""
3900 return _pcbnew.LSET_ForbiddenFootprintLayers()
3901
3902
3903def IsValidLayer(aLayerId):
3904 r"""IsValidLayer(int aLayerId) -> bool"""
3905 return _pcbnew.IsValidLayer(aLayerId)
3906
3907def IsPcbLayer(aLayer):
3908 r"""IsPcbLayer(int aLayer) -> bool"""
3909 return _pcbnew.IsPcbLayer(aLayer)
3910
3911def IsNonCopperLayer(aLayerId):
3912 r"""IsNonCopperLayer(int aLayerId) -> bool"""
3913 return _pcbnew.IsNonCopperLayer(aLayerId)
3914
3915def IsCopperLayer(*args):
3916 r"""
3917 IsCopperLayer(int aLayerId) -> bool
3918 IsCopperLayer(int aLayerId, bool aIncludeSyntheticCopperLayers) -> bool
3919 """
3920 return _pcbnew.IsCopperLayer(*args)
3921
3922def IsViaPadLayer(aLayer):
3923 r"""IsViaPadLayer(int aLayer) -> bool"""
3924 return _pcbnew.IsViaPadLayer(aLayer)
3925
3926def IsHoleLayer(aLayer):
3927 r"""IsHoleLayer(int aLayer) -> bool"""
3928 return _pcbnew.IsHoleLayer(aLayer)
3929
3930def IsUserLayer(aLayerId):
3931 r"""IsUserLayer(PCB_LAYER_ID aLayerId) -> bool"""
3932 return _pcbnew.IsUserLayer(aLayerId)
3933
3934def IsFrontLayer(aLayerId):
3935 r"""IsFrontLayer(PCB_LAYER_ID aLayerId) -> bool"""
3936 return _pcbnew.IsFrontLayer(aLayerId)
3937
3938def IsBackLayer(aLayerId):
3939 r"""IsBackLayer(PCB_LAYER_ID aLayerId) -> bool"""
3940 return _pcbnew.IsBackLayer(aLayerId)
3941
3942def FlipLayer(aLayerId, aCopperLayersCount=0):
3943 r"""FlipLayer(PCB_LAYER_ID aLayerId, int aCopperLayersCount=0) -> PCB_LAYER_ID"""
3944 return _pcbnew.FlipLayer(aLayerId, aCopperLayersCount)
3945
3946def FlipLayerMask(aMask, aCopperLayersCount=0):
3947 r"""FlipLayerMask(LSET aMask, int aCopperLayersCount=0) -> LSET"""
3948 return _pcbnew.FlipLayerMask(aMask, aCopperLayersCount)
3949
3951 r"""GetNetnameLayer(int aLayer) -> int"""
3952 return _pcbnew.GetNetnameLayer(aLayer)
3953
3954def IsNetnameLayer(aLayer):
3955 r"""IsNetnameLayer(int aLayer) -> bool"""
3956 return _pcbnew.IsNetnameLayer(aLayer)
3957
3959 r"""IsZoneFillLayer(int aLayer) -> bool"""
3960 return _pcbnew.IsZoneFillLayer(aLayer)
3961
3962def IsDCodeLayer(aLayer):
3963 r"""IsDCodeLayer(int aLayer) -> bool"""
3964 return _pcbnew.IsDCodeLayer(aLayer)
3965
3967 r"""IsNetCopperLayer(int aLayer) -> bool"""
3968 return _pcbnew.IsNetCopperLayer(aLayer)
3969
3970def ToLAYER_ID(aLayer):
3971 r"""ToLAYER_ID(int aLayer) -> PCB_LAYER_ID"""
3972 return _pcbnew.ToLAYER_ID(aLayer)
3974 r"""Proxy of C++ SETTINGS_MANAGER class."""
3975
3976 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3977 __repr__ = _swig_repr
3978
3979 def __init__(self, aHeadless=False):
3980 r"""__init__(SETTINGS_MANAGER self, bool aHeadless=False) -> SETTINGS_MANAGER"""
3981 _pcbnew.SETTINGS_MANAGER_swiginit(self, _pcbnew.new_SETTINGS_MANAGER(aHeadless))
3982 __swig_destroy__ = _pcbnew.delete_SETTINGS_MANAGER
3983
3984 def IsOK(self):
3985 r"""IsOK(SETTINGS_MANAGER self) -> bool"""
3986 return _pcbnew.SETTINGS_MANAGER_IsOK(self)
3987
3988 def SetKiway(self, aKiway):
3989 r"""SetKiway(SETTINGS_MANAGER self, KIWAY * aKiway)"""
3990 return _pcbnew.SETTINGS_MANAGER_SetKiway(self, aKiway)
3991
3992 def Load(self, *args):
3993 r"""
3994 Load(SETTINGS_MANAGER self)
3995 Load(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings)
3996 """
3997 return _pcbnew.SETTINGS_MANAGER_Load(self, *args)
3998
3999 def Save(self, *args):
4000 r"""
4001 Save(SETTINGS_MANAGER self)
4002 Save(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings)
4003 """
4004 return _pcbnew.SETTINGS_MANAGER_Save(self, *args)
4005
4006 def FlushAndRelease(self, aSettings, aSave=True):
4007 r"""FlushAndRelease(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings, bool aSave=True)"""
4008 return _pcbnew.SETTINGS_MANAGER_FlushAndRelease(self, aSettings, aSave)
4009
4010 def GetColorSettings(self, *args):
4011 r"""GetColorSettings(SETTINGS_MANAGER self, wxString aName="user") -> COLOR_SETTINGS"""
4012 return _pcbnew.SETTINGS_MANAGER_GetColorSettings(self, *args)
4013
4015 r"""GetColorSettingsList(SETTINGS_MANAGER self) -> std::vector< COLOR_SETTINGS *,std::allocator< COLOR_SETTINGS * > >"""
4016 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsList(self)
4017
4018 def SaveColorSettings(self, *args):
4019 r"""SaveColorSettings(SETTINGS_MANAGER self, COLOR_SETTINGS * aSettings, string aNamespace="")"""
4020 return _pcbnew.SETTINGS_MANAGER_SaveColorSettings(self, *args)
4021
4022 def AddNewColorSettings(self, aFilename):
4023 r"""AddNewColorSettings(SETTINGS_MANAGER self, wxString aFilename) -> COLOR_SETTINGS *"""
4024 return _pcbnew.SETTINGS_MANAGER_AddNewColorSettings(self, aFilename)
4025
4027 r"""GetMigratedColorSettings(SETTINGS_MANAGER self) -> COLOR_SETTINGS *"""
4028 return _pcbnew.SETTINGS_MANAGER_GetMigratedColorSettings(self)
4029
4031 r"""GetCommonSettings(SETTINGS_MANAGER self) -> COMMON_SETTINGS *"""
4032 return _pcbnew.SETTINGS_MANAGER_GetCommonSettings(self)
4033
4034 def GetPathForSettingsFile(self, aSettings):
4035 r"""GetPathForSettingsFile(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings) -> wxString"""
4036 return _pcbnew.SETTINGS_MANAGER_GetPathForSettingsFile(self, aSettings)
4037
4039 r"""MigrateIfNeeded(SETTINGS_MANAGER self) -> bool"""
4040 return _pcbnew.SETTINGS_MANAGER_MigrateIfNeeded(self)
4041
4042 def SetMigrationSource(self, aSource):
4043 r"""SetMigrationSource(SETTINGS_MANAGER self, wxString aSource)"""
4044 return _pcbnew.SETTINGS_MANAGER_SetMigrationSource(self, aSource)
4045
4046 def SetMigrateLibraryTables(self, aMigrate=True):
4047 r"""SetMigrateLibraryTables(SETTINGS_MANAGER self, bool aMigrate=True)"""
4048 return _pcbnew.SETTINGS_MANAGER_SetMigrateLibraryTables(self, aMigrate)
4049
4050 def GetPreviousVersionPaths(self, aName=None):
4051 r"""GetPreviousVersionPaths(SETTINGS_MANAGER self, std::vector< wxString,std::allocator< wxString > > * aName=None) -> bool"""
4052 return _pcbnew.SETTINGS_MANAGER_GetPreviousVersionPaths(self, aName)
4053
4055 r"""ReloadColorSettings(SETTINGS_MANAGER self)"""
4056 return _pcbnew.SETTINGS_MANAGER_ReloadColorSettings(self)
4057
4058 def LoadProject(self, aFullPath, aSetActive=True):
4059 r"""LoadProject(SETTINGS_MANAGER self, wxString aFullPath, bool aSetActive=True) -> bool"""
4060 return _pcbnew.SETTINGS_MANAGER_LoadProject(self, aFullPath, aSetActive)
4061
4062 def UnloadProject(self, aProject, aSave=True):
4063 r"""UnloadProject(SETTINGS_MANAGER self, PROJECT * aProject, bool aSave=True) -> bool"""
4064 return _pcbnew.SETTINGS_MANAGER_UnloadProject(self, aProject, aSave)
4065
4066 def IsProjectOpen(self):
4067 r"""IsProjectOpen(SETTINGS_MANAGER self) -> bool"""
4068 return _pcbnew.SETTINGS_MANAGER_IsProjectOpen(self)
4069
4070 def Prj(self):
4071 r"""Prj(SETTINGS_MANAGER self) -> PROJECT &"""
4072 return _pcbnew.SETTINGS_MANAGER_Prj(self)
4073
4074 def GetProject(self, aFullPath):
4075 r"""GetProject(SETTINGS_MANAGER self, wxString aFullPath) -> PROJECT *"""
4076 return _pcbnew.SETTINGS_MANAGER_GetProject(self, aFullPath)
4077
4079 r"""GetOpenProjects(SETTINGS_MANAGER self) -> std::vector< wxString,std::allocator< wxString > >"""
4080 return _pcbnew.SETTINGS_MANAGER_GetOpenProjects(self)
4081
4082 def SaveProject(self, *args):
4083 r"""SaveProject(SETTINGS_MANAGER self, wxString aFullPath=wxEmptyString, PROJECT * aProject=None) -> bool"""
4084 return _pcbnew.SETTINGS_MANAGER_SaveProject(self, *args)
4085
4086 def SaveProjectAs(self, aFullPath, aProject=None):
4087 r"""SaveProjectAs(SETTINGS_MANAGER self, wxString aFullPath, PROJECT * aProject=None)"""
4088 return _pcbnew.SETTINGS_MANAGER_SaveProjectAs(self, aFullPath, aProject)
4089
4090 def SaveProjectCopy(self, aFullPath, aProject=None):
4091 r"""SaveProjectCopy(SETTINGS_MANAGER self, wxString aFullPath, PROJECT * aProject=None)"""
4092 return _pcbnew.SETTINGS_MANAGER_SaveProjectCopy(self, aFullPath, aProject)
4093
4095 r"""GetProjectBackupsPath(SETTINGS_MANAGER self) -> wxString"""
4096 return _pcbnew.SETTINGS_MANAGER_GetProjectBackupsPath(self)
4097
4098 def BackupProject(self, aReporter):
4099 r"""BackupProject(SETTINGS_MANAGER self, REPORTER & aReporter) -> bool"""
4100 return _pcbnew.SETTINGS_MANAGER_BackupProject(self, aReporter)
4101
4102 def TriggerBackupIfNeeded(self, aReporter):
4103 r"""TriggerBackupIfNeeded(SETTINGS_MANAGER self, REPORTER & aReporter) -> bool"""
4104 return _pcbnew.SETTINGS_MANAGER_TriggerBackupIfNeeded(self, aReporter)
4105
4106 @staticmethod
4108 r"""IsSettingsPathValid(wxString aPath) -> bool"""
4109 return _pcbnew.SETTINGS_MANAGER_IsSettingsPathValid(aPath)
4110
4111 @staticmethod
4113 r"""GetColorSettingsPath() -> wxString"""
4114 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsPath()
4115
4116 @staticmethod
4118 r"""GetSettingsVersion() -> string"""
4119 return _pcbnew.SETTINGS_MANAGER_GetSettingsVersion()
4120
4121 @staticmethod
4123 r"""GetUserSettingsPath() -> wxString"""
4124 return _pcbnew.SETTINGS_MANAGER_GetUserSettingsPath()
4125
4126# Register SETTINGS_MANAGER in _pcbnew:
4127_pcbnew.SETTINGS_MANAGER_swigregister(SETTINGS_MANAGER)
4128
4130 r"""SETTINGS_MANAGER_IsSettingsPathValid(wxString aPath) -> bool"""
4131 return _pcbnew.SETTINGS_MANAGER_IsSettingsPathValid(aPath)
4132
4134 r"""SETTINGS_MANAGER_GetColorSettingsPath() -> wxString"""
4135 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsPath()
4136
4138 r"""SETTINGS_MANAGER_GetSettingsVersion() -> string"""
4139 return _pcbnew.SETTINGS_MANAGER_GetSettingsVersion()
4140
4142 r"""SETTINGS_MANAGER_GetUserSettingsPath() -> wxString"""
4143 return _pcbnew.SETTINGS_MANAGER_GetUserSettingsPath()
4144
4146 r"""Proxy of C++ UTILS_BOX3D class."""
4147
4148 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4149 __repr__ = _swig_repr
4150
4151 def Min(self):
4152 r"""Min(UTILS_BOX3D self) -> VECTOR3D"""
4153 return _pcbnew.UTILS_BOX3D_Min(self)
4154
4155 def Max(self):
4156 r"""Max(UTILS_BOX3D self) -> VECTOR3D"""
4157 return _pcbnew.UTILS_BOX3D_Max(self)
4158
4159 def GetCenter(self):
4160 r"""GetCenter(UTILS_BOX3D self) -> VECTOR3D"""
4161 return _pcbnew.UTILS_BOX3D_GetCenter(self)
4162
4163 def GetSize(self):
4164 r"""GetSize(UTILS_BOX3D self) -> VECTOR3D"""
4165 return _pcbnew.UTILS_BOX3D_GetSize(self)
4166
4167 def __init__(self):
4168 r"""__init__(UTILS_BOX3D self) -> UTILS_BOX3D"""
4169 _pcbnew.UTILS_BOX3D_swiginit(self, _pcbnew.new_UTILS_BOX3D())
4170 __swig_destroy__ = _pcbnew.delete_UTILS_BOX3D
4171
4172# Register UTILS_BOX3D in _pcbnew:
4173_pcbnew.UTILS_BOX3D_swigregister(UTILS_BOX3D)
4174
4176 r"""Proxy of C++ UTILS_STEP_MODEL class."""
4177
4178 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4179 __repr__ = _swig_repr
4180
4182 r"""GetBoundingBox(UTILS_STEP_MODEL self) -> UTILS_BOX3D"""
4183 return _pcbnew.UTILS_STEP_MODEL_GetBoundingBox(self)
4184
4185 def Translate(self, aX, aY, aZ):
4186 r"""Translate(UTILS_STEP_MODEL self, double aX, double aY, double aZ)"""
4187 return _pcbnew.UTILS_STEP_MODEL_Translate(self, aX, aY, aZ)
4188
4189 def Scale(self, aScale):
4190 r"""Scale(UTILS_STEP_MODEL self, double aScale)"""
4191 return _pcbnew.UTILS_STEP_MODEL_Scale(self, aScale)
4192
4193 def SaveSTEP(self, aFileName):
4194 r"""SaveSTEP(UTILS_STEP_MODEL self, wxString aFileName) -> bool"""
4195 return _pcbnew.UTILS_STEP_MODEL_SaveSTEP(self, aFileName)
4196
4197 @staticmethod
4198 def LoadSTEP(aFileName):
4199 r"""LoadSTEP(wxString aFileName) -> UTILS_STEP_MODEL"""
4200 return _pcbnew.UTILS_STEP_MODEL_LoadSTEP(aFileName)
4201
4202 def __init__(self):
4203 r"""__init__(UTILS_STEP_MODEL self) -> UTILS_STEP_MODEL"""
4204 _pcbnew.UTILS_STEP_MODEL_swiginit(self, _pcbnew.new_UTILS_STEP_MODEL())
4205
4206# Register UTILS_STEP_MODEL in _pcbnew:
4207_pcbnew.UTILS_STEP_MODEL_swigregister(UTILS_STEP_MODEL)
4208
4210 r"""UTILS_STEP_MODEL_LoadSTEP(wxString aFileName) -> UTILS_STEP_MODEL"""
4211 return _pcbnew.UTILS_STEP_MODEL_LoadSTEP(aFileName)
4212
4214 r"""Proxy of C++ std::vector< int > class."""
4215
4216 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4217 __repr__ = _swig_repr
4218
4219 def iterator(self):
4220 r"""iterator(intVector self) -> SwigPyIterator"""
4221 return _pcbnew.intVector_iterator(self)
4222 def __iter__(self):
4223 return self.iterator()
4224
4225 def __nonzero__(self):
4226 r"""__nonzero__(intVector self) -> bool"""
4227 return _pcbnew.intVector___nonzero__(self)
4228
4229 def __bool__(self):
4230 r"""__bool__(intVector self) -> bool"""
4231 return _pcbnew.intVector___bool__(self)
4232
4233 def __len__(self):
4234 r"""__len__(intVector self) -> std::vector< int >::size_type"""
4235 return _pcbnew.intVector___len__(self)
4236
4237 def __getslice__(self, i, j):
4238 r"""__getslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j) -> intVector"""
4239 return _pcbnew.intVector___getslice__(self, i, j)
4240
4241 def __setslice__(self, *args):
4242 r"""
4243 __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)
4244 __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j, intVector v)
4245 """
4246 return _pcbnew.intVector___setslice__(self, *args)
4247
4248 def __delslice__(self, i, j):
4249 r"""__delslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)"""
4250 return _pcbnew.intVector___delslice__(self, i, j)
4251
4252 def __delitem__(self, *args):
4253 r"""
4254 __delitem__(intVector self, std::vector< int >::difference_type i)
4255 __delitem__(intVector self, PySliceObject * slice)
4256 """
4257 return _pcbnew.intVector___delitem__(self, *args)
4258
4259 def __getitem__(self, *args):
4260 r"""
4261 __getitem__(intVector self, PySliceObject * slice) -> intVector
4262 __getitem__(intVector self, std::vector< int >::difference_type i) -> std::vector< int >::value_type const &
4263 """
4264 return _pcbnew.intVector___getitem__(self, *args)
4265
4266 def __setitem__(self, *args):
4267 r"""
4268 __setitem__(intVector self, PySliceObject * slice, intVector v)
4269 __setitem__(intVector self, PySliceObject * slice)
4270 __setitem__(intVector self, std::vector< int >::difference_type i, std::vector< int >::value_type const & x)
4271 """
4272 return _pcbnew.intVector___setitem__(self, *args)
4273
4274 def pop(self):
4275 r"""pop(intVector self) -> std::vector< int >::value_type"""
4276 return _pcbnew.intVector_pop(self)
4277
4278 def append(self, x):
4279 r"""append(intVector self, std::vector< int >::value_type const & x)"""
4280 return _pcbnew.intVector_append(self, x)
4281
4282 def empty(self):
4283 r"""empty(intVector self) -> bool"""
4284 return _pcbnew.intVector_empty(self)
4285
4286 def size(self):
4287 r"""size(intVector self) -> std::vector< int >::size_type"""
4288 return _pcbnew.intVector_size(self)
4289
4290 def swap(self, v):
4291 r"""swap(intVector self, intVector v)"""
4292 return _pcbnew.intVector_swap(self, v)
4293
4294 def begin(self):
4295 r"""begin(intVector self) -> std::vector< int >::iterator"""
4296 return _pcbnew.intVector_begin(self)
4297
4298 def end(self):
4299 r"""end(intVector self) -> std::vector< int >::iterator"""
4300 return _pcbnew.intVector_end(self)
4301
4302 def rbegin(self):
4303 r"""rbegin(intVector self) -> std::vector< int >::reverse_iterator"""
4304 return _pcbnew.intVector_rbegin(self)
4305
4306 def rend(self):
4307 r"""rend(intVector self) -> std::vector< int >::reverse_iterator"""
4308 return _pcbnew.intVector_rend(self)
4309
4310 def clear(self):
4311 r"""clear(intVector self)"""
4312 return _pcbnew.intVector_clear(self)
4313
4314 def get_allocator(self):
4315 r"""get_allocator(intVector self) -> std::vector< int >::allocator_type"""
4316 return _pcbnew.intVector_get_allocator(self)
4317
4318 def pop_back(self):
4319 r"""pop_back(intVector self)"""
4320 return _pcbnew.intVector_pop_back(self)
4321
4322 def erase(self, *args):
4323 r"""
4324 erase(intVector self, std::vector< int >::iterator pos) -> std::vector< int >::iterator
4325 erase(intVector self, std::vector< int >::iterator first, std::vector< int >::iterator last) -> std::vector< int >::iterator
4326 """
4327 return _pcbnew.intVector_erase(self, *args)
4328
4329 def __init__(self, *args):
4330 r"""
4331 __init__(intVector self) -> intVector
4332 __init__(intVector self, intVector other) -> intVector
4333 __init__(intVector self, std::vector< int >::size_type size) -> intVector
4334 __init__(intVector self, std::vector< int >::size_type size, std::vector< int >::value_type const & value) -> intVector
4335 """
4336 _pcbnew.intVector_swiginit(self, _pcbnew.new_intVector(*args))
4337
4338 def push_back(self, x):
4339 r"""push_back(intVector self, std::vector< int >::value_type const & x)"""
4340 return _pcbnew.intVector_push_back(self, x)
4341
4342 def front(self):
4343 r"""front(intVector self) -> std::vector< int >::value_type const &"""
4344 return _pcbnew.intVector_front(self)
4345
4346 def back(self):
4347 r"""back(intVector self) -> std::vector< int >::value_type const &"""
4348 return _pcbnew.intVector_back(self)
4349
4350 def assign(self, n, x):
4351 r"""assign(intVector self, std::vector< int >::size_type n, std::vector< int >::value_type const & x)"""
4352 return _pcbnew.intVector_assign(self, n, x)
4353
4354 def resize(self, *args):
4355 r"""
4356 resize(intVector self, std::vector< int >::size_type new_size)
4357 resize(intVector self, std::vector< int >::size_type new_size, std::vector< int >::value_type const & x)
4358 """
4359 return _pcbnew.intVector_resize(self, *args)
4360
4361 def insert(self, *args):
4362 r"""
4363 insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::value_type const & x) -> std::vector< int >::iterator
4364 insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::size_type n, std::vector< int >::value_type const & x)
4365 """
4366 return _pcbnew.intVector_insert(self, *args)
4367
4368 def reserve(self, n):
4369 r"""reserve(intVector self, std::vector< int >::size_type n)"""
4370 return _pcbnew.intVector_reserve(self, n)
4371
4372 def capacity(self):
4373 r"""capacity(intVector self) -> std::vector< int >::size_type"""
4374 return _pcbnew.intVector_capacity(self)
4375 __swig_destroy__ = _pcbnew.delete_intVector
4376
4377# Register intVector in _pcbnew:
4378_pcbnew.intVector_swigregister(intVector)
4379
4381 r"""Proxy of C++ std::map< std::string,UTF8 > class."""
4382
4383 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4384 __repr__ = _swig_repr
4385
4386 def iterator(self):
4387 r"""iterator(str_utf8_Map self) -> SwigPyIterator"""
4388 return _pcbnew.str_utf8_Map_iterator(self)
4389 def __iter__(self):
4390 return self.iterator()
4391
4392 def __nonzero__(self):
4393 r"""__nonzero__(str_utf8_Map self) -> bool"""
4394 return _pcbnew.str_utf8_Map___nonzero__(self)
4395
4396 def __bool__(self):
4397 r"""__bool__(str_utf8_Map self) -> bool"""
4398 return _pcbnew.str_utf8_Map___bool__(self)
4399
4400 def __len__(self):
4401 r"""__len__(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
4402 return _pcbnew.str_utf8_Map___len__(self)
4403 def __iter__(self):
4404 return self.key_iterator()
4405 def iterkeys(self):
4406 return self.key_iterator()
4407 def itervalues(self):
4408 return self.value_iterator()
4409 def iteritems(self):
4410 return self.iterator()
4411
4412 def __getitem__(self, key):
4413 r"""__getitem__(str_utf8_Map self, string key) -> UTF8"""
4414 return _pcbnew.str_utf8_Map___getitem__(self, key)
4415
4416 def __delitem__(self, key):
4417 r"""__delitem__(str_utf8_Map self, string key)"""
4418 return _pcbnew.str_utf8_Map___delitem__(self, key)
4419
4420 def has_key(self, key):
4421 r"""has_key(str_utf8_Map self, string key) -> bool"""
4422 return _pcbnew.str_utf8_Map_has_key(self, key)
4423
4424 def keys(self):
4425 r"""keys(str_utf8_Map self) -> PyObject *"""
4426 return _pcbnew.str_utf8_Map_keys(self)
4427
4428 def values(self):
4429 r"""values(str_utf8_Map self) -> PyObject *"""
4430 return _pcbnew.str_utf8_Map_values(self)
4431
4432 def items(self):
4433 r"""items(str_utf8_Map self) -> PyObject *"""
4434 return _pcbnew.str_utf8_Map_items(self)
4435
4436 def __contains__(self, key):
4437 r"""__contains__(str_utf8_Map self, string key) -> bool"""
4438 return _pcbnew.str_utf8_Map___contains__(self, key)
4439
4440 def key_iterator(self):
4441 r"""key_iterator(str_utf8_Map self) -> SwigPyIterator"""
4442 return _pcbnew.str_utf8_Map_key_iterator(self)
4443
4445 r"""value_iterator(str_utf8_Map self) -> SwigPyIterator"""
4446 return _pcbnew.str_utf8_Map_value_iterator(self)
4447
4448 def __setitem__(self, *args):
4449 r"""
4450 __setitem__(str_utf8_Map self, string key)
4451 __setitem__(str_utf8_Map self, string key, UTF8 x)
4452 """
4453 return _pcbnew.str_utf8_Map___setitem__(self, *args)
4454
4455 def asdict(self):
4456 r"""asdict(str_utf8_Map self) -> PyObject *"""
4457 return _pcbnew.str_utf8_Map_asdict(self)
4458
4459 def __init__(self, *args):
4460 r"""
4461 __init__(str_utf8_Map self, std::less< std::basic_string< char,std::char_traits< char >,std::allocator< char > > > const & other) -> str_utf8_Map
4462 __init__(str_utf8_Map self) -> str_utf8_Map
4463 __init__(str_utf8_Map self, str_utf8_Map other) -> str_utf8_Map
4464 """
4465 _pcbnew.str_utf8_Map_swiginit(self, _pcbnew.new_str_utf8_Map(*args))
4466
4467 def empty(self):
4468 r"""empty(str_utf8_Map self) -> bool"""
4469 return _pcbnew.str_utf8_Map_empty(self)
4470
4471 def size(self):
4472 r"""size(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
4473 return _pcbnew.str_utf8_Map_size(self)
4474
4475 def swap(self, v):
4476 r"""swap(str_utf8_Map self, str_utf8_Map v)"""
4477 return _pcbnew.str_utf8_Map_swap(self, v)
4478
4479 def begin(self):
4480 r"""begin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4481 return _pcbnew.str_utf8_Map_begin(self)
4482
4483 def end(self):
4484 r"""end(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4485 return _pcbnew.str_utf8_Map_end(self)
4486
4487 def rbegin(self):
4488 r"""rbegin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
4489 return _pcbnew.str_utf8_Map_rbegin(self)
4490
4491 def rend(self):
4492 r"""rend(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
4493 return _pcbnew.str_utf8_Map_rend(self)
4494
4495 def clear(self):
4496 r"""clear(str_utf8_Map self)"""
4497 return _pcbnew.str_utf8_Map_clear(self)
4498
4499 def get_allocator(self):
4500 r"""get_allocator(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::allocator_type"""
4501 return _pcbnew.str_utf8_Map_get_allocator(self)
4502
4503 def count(self, x):
4504 r"""count(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
4505 return _pcbnew.str_utf8_Map_count(self, x)
4506
4507 def erase(self, *args):
4508 r"""
4509 erase(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type
4510 erase(str_utf8_Map self, std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator position)
4511 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)
4512 """
4513 return _pcbnew.str_utf8_Map_erase(self, *args)
4514
4515 def find(self, x):
4516 r"""find(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4517 return _pcbnew.str_utf8_Map_find(self, x)
4518
4519 def lower_bound(self, x):
4520 r"""lower_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4521 return _pcbnew.str_utf8_Map_lower_bound(self, x)
4522
4523 def upper_bound(self, x):
4524 r"""upper_bound(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_upper_bound(self, x)
4526 __swig_destroy__ = _pcbnew.delete_str_utf8_Map
4527
4528# Register str_utf8_Map in _pcbnew:
4529_pcbnew.str_utf8_Map_swigregister(str_utf8_Map)
4530
4531
4532
4533KICAD_PLUGINS={} # the list of loaded footprint wizards
4534
4535""" the list of not loaded python scripts
4536 (usually because there is a syntax error in python script)
4537 this is the python script full filenames list.
4538 filenames are separated by '\n'
4539"""
4540NOT_LOADED_WIZARDS=""
4541
4542""" the list of paths used to search python scripts.
4543 Stored here to be displayed on request in Pcbnew
4544 paths are separated by '\n'
4545"""
4546PLUGIN_DIRECTORIES_SEARCH=""
4547
4548"""
4549 the trace of errors during execution of footprint wizards scripts
4550 Warning: strings (internally unicode) are returned as UTF-8 compatible C strings
4551"""
4552
4553FULL_BACK_TRACE=""
4554
4555def GetUnLoadableWizards():
4556 global NOT_LOADED_WIZARDS
4557 import sys
4558
4559 if sys.version_info[0] < 3:
4560 utf8_str = NOT_LOADED_WIZARDS.encode( 'UTF-8' )
4561 else:
4562 utf8_str = NOT_LOADED_WIZARDS
4563
4564 return utf8_str
4565
4567 global PLUGIN_DIRECTORIES_SEARCH
4568 import sys
4569
4570 if sys.version_info[0] < 3:
4571 utf8_str = PLUGIN_DIRECTORIES_SEARCH.encode( 'UTF-8' )
4572 else:
4573 utf8_str = PLUGIN_DIRECTORIES_SEARCH
4574
4575 return utf8_str
4576
4578 global FULL_BACK_TRACE # Already correct format
4579 return FULL_BACK_TRACE
4580
4581
4582def LoadPluginModule(Dirname, ModuleName, FileName):
4583 """
4584 Load the plugin module named ModuleName located in the folder Dirname.
4585 The module can be either inside a file called FileName or a subdirectory
4586 called FileName that contains a __init__.py file.
4587 If this module cannot be loaded, its name is stored in failed_wizards_list
4588 and the error trace is stored in FULL_BACK_TRACE
4589 """
4590 import os
4591 import sys
4592 import traceback
4593
4594 global NOT_LOADED_WIZARDS
4595 global FULL_BACK_TRACE
4596 global KICAD_PLUGINS
4597
4598 try: # If there is an error loading the script, skip it
4599
4600 module_filename = os.path.join( Dirname, FileName )
4601 mtime = os.path.getmtime( module_filename )
4602 mods_before = set( sys.modules )
4603
4604 if ModuleName in KICAD_PLUGINS:
4605 plugin = KICAD_PLUGINS[ModuleName]
4606
4607 for dependency in plugin["dependencies"]:
4608 if dependency in sys.modules:
4609 del sys.modules[dependency]
4610
4611 mods_before = set( sys.modules )
4612
4613 if sys.version_info >= (3,0,0):
4614 import importlib
4615 mod = importlib.import_module( ModuleName )
4616 else:
4617 mod = __import__( ModuleName, locals(), globals() )
4618
4619 mods_after = set( sys.modules ).difference( mods_before )
4620 dependencies = [m for m in mods_after if m.startswith(ModuleName)]
4621
4622 KICAD_PLUGINS[ModuleName]={ "filename":module_filename,
4623 "modification_time":mtime,
4624 "ModuleName":mod,
4625 "dependencies": dependencies }
4626
4627 except:
4628 if ModuleName in KICAD_PLUGINS:
4629 del KICAD_PLUGINS[ModuleName]
4630
4631 if NOT_LOADED_WIZARDS != "" :
4632 NOT_LOADED_WIZARDS += "\n"
4633 NOT_LOADED_WIZARDS += module_filename
4634 FULL_BACK_TRACE += traceback.format_exc()
4635
4636
4637def LoadPlugins(bundlepath=None, userpath=None, thirdpartypath=None):
4638 """
4639 Initialise Scripting/Plugin python environment and load plugins.
4640
4641 Arguments:
4642 Note: bundlepath and userpath are given utf8 encoded, to be compatible with asimple C string
4643 bundlepath -- The path to the bundled scripts.
4644 The bundled Plugins are relative to this path, in the
4645 "plugins" subdirectory.
4646 WARNING: bundlepath must use '/' as path separator, and not '\'
4647 because it creates issues:
4648 \n and \r are seen as a escaped seq when passing this string to this method
4649 I am thinking this is due to the fact LoadPlugins is called from C++ code by
4650 PyRun_SimpleString()
4651
4652 NOTE: These are all of the possible "default" search paths for kicad
4653 python scripts. These paths will ONLY be added to the python
4654 search path ONLY IF they already exist.
4655
4656 The Scripts bundled with the KiCad installation:
4657 <bundlepath>/
4658 <bundlepath>/plugins/
4659
4660 The Scripts relative to the KiCad Users configuration:
4661 <userpath>/
4662 <userpath>/plugins/
4663
4664 The plugins from 3rd party packages:
4665 $KICAD_3RD_PARTY/plugins/
4666 """
4667 import os
4668 import sys
4669 import traceback
4670 import pcbnew
4671
4672 if sys.version_info >= (3,3,0):
4673 import importlib
4674 importlib.invalidate_caches()
4675
4676 """
4677 bundlepath and userpath are strings utf-8 encoded (compatible "C" strings).
4678 So convert these utf8 encoding to unicode strings to avoid any encoding issue.
4679 """
4680 try:
4681 bundlepath = bundlepath.decode( 'UTF-8' )
4682 userpath = userpath.decode( 'UTF-8' )
4683 thirdpartypath = thirdpartypath.decode( 'UTF-8' )
4684 except AttributeError:
4685 pass
4686
4688 plugin_directories=[]
4689
4690 """
4691 To be consistent with others paths, on windows, convert the unix '/' separator
4692 to the windows separator, although using '/' works
4693 """
4694 if sys.platform.startswith('win32'):
4695 if bundlepath:
4696 bundlepath = bundlepath.replace("/","\\")
4697 if thirdpartypath:
4698 thirdpartypath = thirdpartypath.replace("/","\\")
4699
4700 if bundlepath:
4701 plugin_directories.append(bundlepath)
4702 plugin_directories.append(os.path.join(bundlepath, 'plugins'))
4703
4704 if config_path:
4705 plugin_directories.append(os.path.join(config_path, 'scripting'))
4706 plugin_directories.append(os.path.join(config_path, 'scripting', 'plugins'))
4707
4708 if userpath:
4709 plugin_directories.append(userpath)
4710 plugin_directories.append(os.path.join(userpath, 'plugins'))
4711
4712 if thirdpartypath:
4713 plugin_directories.append(thirdpartypath)
4714
4715 global PLUGIN_DIRECTORIES_SEARCH
4716 PLUGIN_DIRECTORIES_SEARCH=""
4717 for plugins_dir in plugin_directories: # save search path list for later use
4718 if PLUGIN_DIRECTORIES_SEARCH != "" :
4719 PLUGIN_DIRECTORIES_SEARCH += "\n"
4720 PLUGIN_DIRECTORIES_SEARCH += plugins_dir
4721
4722 global FULL_BACK_TRACE
4723 FULL_BACK_TRACE="" # clear any existing trace
4724
4725 global NOT_LOADED_WIZARDS
4726 NOT_LOADED_WIZARDS = "" # save not loaded wizards names list for later use
4727
4728 global KICAD_PLUGINS
4729
4730 for plugins_dir in plugin_directories:
4731 if not os.path.isdir( plugins_dir ):
4732 continue
4733
4734 if plugins_dir not in sys.path:
4735 sys.path.append( plugins_dir )
4736
4737 for module in os.listdir(plugins_dir):
4738 fullPath = os.path.join( plugins_dir, module )
4739
4740 if os.path.isdir( fullPath ):
4741 if os.path.exists( os.path.join( fullPath, '__init__.py' ) ):
4742 LoadPluginModule( plugins_dir, module, module )
4743 else:
4744 if NOT_LOADED_WIZARDS != "" :
4745 NOT_LOADED_WIZARDS += "\n"
4746 NOT_LOADED_WIZARDS += 'Skip subdir ' + fullPath
4747 continue
4748
4749 if module == '__init__.py' or module[-3:] != '.py':
4750 continue
4751
4752 LoadPluginModule( plugins_dir, module[:-3], module )
4753
4754
4756 def __init__(self):
4757 pass
4758
4759 def register(self):
4760 import inspect
4761 import os
4762
4763 if isinstance(self,FilePlugin):
4764 pass # register to file plugins in C++
4765
4766 if isinstance(self,FootprintWizardPlugin):
4767 PYTHON_FOOTPRINT_WIZARD_LIST.register_wizard(self)
4768 return
4769
4770 if isinstance(self,ActionPlugin):
4771 """
4772 Get path to .py or .pyc that has definition of plugin class.
4773 If path is binary but source also exists, assume definition is in source.
4774 """
4775 self.__plugin_path = inspect.getfile(self.__class__)
4776 if self.__plugin_path.endswith('.pyc') and os.path.isfile(self.__plugin_path[:-1]):
4777 self.__plugin_path = self.__plugin_path[:-1]
4778 self.__plugin_path = self.__plugin_path + '/' + self.__class__.__name__
4779 PYTHON_ACTION_PLUGINS.register_action(self)
4780 return
4781
4782 return
4783
4784 def deregister(self):
4785 if isinstance(self,FilePlugin):
4786 pass # deregister to file plugins in C++
4787
4788 if isinstance(self,FootprintWizardPlugin):
4789 PYTHON_FOOTPRINT_WIZARD_LIST.deregister_wizard(self)
4790 return
4791
4792 if isinstance(self,ActionPlugin):
4793 PYTHON_ACTION_PLUGINS.deregister_action(self)
4794 return
4795
4796 return
4797
4798 def GetPluginPath( self ):
4799 return self.__plugin_path
4800
4801
4803 def __init__(self):
4804 KiCadPlugin.__init__(self)
4805
4806
4807from math import ceil, floor, sqrt
4808
4809uMM = "mm" # Millimetres
4810uMils = "mils" # Mils
4811uFloat = "float" # Natural number units (dimensionless)
4812uInteger = "integer" # Integer (no decimals, numeric, dimensionless)
4813uBool = "bool" # Boolean value
4814uRadians = "radians" # Angular units (radians)
4815uDegrees = "degrees" # Angular units (degrees)
4816uPercent = "%" # Percent (0% -> 100%)
4817uString = "string" # Raw string
4818
4819uNumeric = [uMM, uMils, uFloat, uInteger, uDegrees, uRadians, uPercent] # List of numeric types
4820uUnits = [uMM, uMils, uFloat, uInteger, uBool, uDegrees, uRadians, uPercent, uString] # List of allowable types
4821
4823 _true = ['true','t','y','yes','on','1',1,]
4824 _false = ['false','f','n','no','off','0',0,'',None]
4825
4826 _bools = _true + _false
4827
4828 def __init__(self, page, name, units, default, **kwarg):
4829 self.page = page
4830 self.name = name
4831 self.hint = kwarg.get('hint','') # Parameter hint (shown as mouse-over text)
4832 self.designator = kwarg.get('designator',' ') # Parameter designator such as "e, D, p" (etc)
4833
4834 if units.lower() in uUnits:
4835 self.units = units.lower()
4836 elif units.lower() == 'percent':
4837 self.units = uPercent
4838 elif type(units) in [list, tuple]: # Convert a list of options into a single string
4839 self.units = ",".join([str(el).strip() for el in units])
4840 else:
4841 self.units = units
4842
4843 self.multiple = int(kwarg.get('multiple',1)) # Check integer values are multiples of this number
4844 self.min_value = kwarg.get('min_value',None) # Check numeric values are above or equal to this number
4845 self.max_value = kwarg.get('max_value',None) # Check numeric values are below or equal to this number
4846
4847 self.SetValue(default)
4848 self.default = self.raw_value # Save value as default
4849
4850 def ClearErrors(self):
4851 self.error_list = []
4852
4853 def AddError(self, err, info=None):
4854
4855 if err in self.error_list: # prevent duplicate error messages
4856 return
4857 if info is not None:
4858 err = err + " (" + str(info) + ")"
4859
4860 self.error_list.append(err)
4861
4862 def Check(self, min_value=None, max_value=None, multiple=None, info=None):
4863
4864 if min_value is None:
4865 min_value = self.min_value
4866 if max_value is None:
4867 max_value = self.max_value
4868 if multiple is None:
4869 multiple = self.multiple
4870
4871 if self.units not in uUnits and ',' not in self.units: # Allow either valid units or a list of strings
4872 self.AddError("type '{t}' unknown".format(t=self.units),info)
4873 self.AddError("Allowable types: " + str(self.units),info)
4874
4875 if self.units in uNumeric:
4876 try:
4877 to_num = float(self.raw_value)
4878
4879 if min_value is not None: # Check minimum value if it is present
4880 if to_num < min_value:
4881 self.AddError("value '{v}' is below minimum ({m})".format(v=self.raw_value,m=min_value),info)
4882
4883 if max_value is not None: # Check maximum value if it is present
4884 if to_num > max_value:
4885 self.AddError("value '{v}' is above maximum ({m})".format(v=self.raw_value,m=max_value),info)
4886
4887 except:
4888 self.AddError("value '{v}' is not of type '{t}'".format(v = self.raw_value, t=self.units),info)
4889
4890 if self.units == uInteger: # Perform integer specific checks
4891 try:
4892 to_int = int(self.raw_value)
4893
4894 if multiple is not None and multiple > 1:
4895 if (to_int % multiple) > 0:
4896 self.AddError("value '{v}' is not a multiple of {m}".format(v=self.raw_value,m=multiple),info)
4897 except:
4898 self.AddError("value '{v}' is not an integer".format(v=self.raw_value),info)
4899
4900 if self.units == uBool: # Check that the value is of a correct boolean format
4901 if self.raw_value in [True,False] or str(self.raw_value).lower() in self._bools:
4902 pass
4903 else:
4904 self.AddError("value '{v}' is not a boolean value".format(v = self.raw_value),info)
4905
4906 @property
4907 def value(self): # Return the current value, converted to appropriate units (from string representation) if required
4908 v = str(self.raw_value) # Enforce string type for known starting point
4909
4910 if self.units == uInteger: # Integer values
4911 return int(v)
4912 elif self.units in uNumeric: # Any values that use floating points
4913 v = v.replace(",",".") # Replace "," separators with "."
4914 v = float(v)
4915
4916 if self.units == uMM: # Convert from millimetres to nanometres
4917 return FromMM(v)
4918
4919 elif self.units == uMils: # Convert from mils to nanometres
4920 return FromMils(v)
4921
4922 else: # Any other floating-point values
4923 return v
4924
4925 elif self.units == uBool:
4926 if v.lower() in self._true:
4927 return True
4928 else:
4929 return False
4930 else:
4931 return v
4932
4933 def DefaultValue(self): # Reset the value of the parameter to its default
4934 self.raw_value = str(self.default)
4935
4936 def SetValue(self, new_value): # Update the value
4937 new_value = str(new_value)
4938
4939 if len(new_value.strip()) == 0:
4940 if not self.units in [uString, uBool]:
4941 return # Ignore empty values unless for strings or bools
4942
4943 if self.units == uBool: # Enforce the same boolean representation as is used in KiCad
4944 new_value = "1" if new_value.lower() in self._true else "0"
4945 elif self.units in uNumeric:
4946 new_value = new_value.replace(",", ".") # Enforce decimal point separators
4947 elif ',' in self.units: # Select from a list of values
4948 if new_value not in self.units.split(','):
4949 new_value = self.units.split(',')[0]
4950
4951 self.raw_value = new_value
4952
4953 def __str__(self): # pretty-print the parameter
4954
4955 s = self.name + ": " + str(self.raw_value)
4956
4957 if self.units in [uMM, uMils, uPercent, uRadians, uDegrees]:
4958 s += self.units
4959 elif self.units == uBool: # Special case for Boolean values
4960 s = self.name + ": {b}".format(b = "True" if self.value else "False")
4961 elif self.units == uString:
4962 s = self.name + ": '" + self.raw_value + "'"
4963
4964 return s
4965
4966
4968 def __init__(self):
4969 KiCadPlugin.__init__(self)
4970 self.defaults()
4971
4972 def defaults(self):
4973 self.module = None
4974 self.params = [] # List of added parameters that observes addition order
4975
4976 self.name = "KiCad FP Wizard"
4977 self.description = "Undefined Footprint Wizard plugin"
4978 self.image = ""
4980
4981 def AddParam(self, page, name, unit, default, **kwarg):
4982
4983 if self.GetParam(page,name) is not None: # Param already exists!
4984 return
4985
4986 param = FootprintWizardParameter(page, name, unit, default, **kwarg) # Create a new parameter
4987 self.params.append(param)
4988
4989 @property
4990 def parameters(self): # This is a helper function that returns a nested (unordered) dict of the VALUES of parameters
4991 pages = {} # Page dict
4992 for p in self.params:
4993 if p.page not in pages:
4994 pages[p.page] = {}
4995
4996 pages[p.page][p.name] = p.value # Return the 'converted' value (convert from string to actual useful units)
4997
4998 return pages
4999
5000 @property
5001 def values(self): # Same as above
5002 return self.parameters
5003
5004 def ResetWizard(self): # Reset all parameters to default values
5005 for p in self.params:
5006 p.DefaultValue()
5007
5008 def GetName(self): # Return the name of this wizard
5009 return self.name
5010
5011 def GetImage(self): # Return the filename of the preview image associated with this wizard
5012 return self.image
5013
5014 def GetDescription(self): # Return the description text
5015 return self.description
5016
5017 def GetValue(self):
5018 raise NotImplementedError
5019
5021 return "REF" # Default reference prefix for any footprint
5022
5023 def GetParam(self, page, name): # Grab a parameter
5024 for p in self.params:
5025 if p.page == page and p.name == name:
5026 return p
5027
5028 return None
5029
5030 def CheckParam(self, page, name, **kwarg):
5031 self.GetParam(page,name).Check(**kwarg)
5032
5033 def AnyErrors(self):
5034 return any([len(p.error_list) > 0 for p in self.params])
5035
5036 @property
5037 def pages(self): # Return an (ordered) list of the available page names
5038 page_list = []
5039 for p in self.params:
5040 if p.page not in page_list:
5041 page_list.append(p.page)
5042
5043 return page_list
5044
5045 def GetNumParameterPages(self): # Return the number of parameter pages
5046 return len(self.pages)
5047
5048 def GetParameterPageName(self,page_n): # Return the name of a page at a given index
5049 return self.pages[page_n]
5050
5051 def GetParametersByPageName(self, page_name): # Return a list of parameters on a given page
5052 params = []
5053
5054 for p in self.params:
5055 if p.page == page_name:
5056 params.append(p)
5057
5058 return params
5059
5060 def GetParametersByPageIndex(self, page_index): # Return an ordered list of parameters on a given page
5061 return self.GetParametersByPageName(self.GetParameterPageName(page_index))
5062
5063 def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
5064 params = self.GetParametersByPageIndex(page_index)
5065 return [p.designator for p in params]
5066
5067 def GetParameterNames(self,page_index): # Return the list of names associated with a given page
5068 params = self.GetParametersByPageIndex(page_index)
5069 return [p.name for p in params]
5070
5071 def GetParameterValues(self,page_index): # Return the list of values associated with a given page
5072 params = self.GetParametersByPageIndex(page_index)
5073 return [str(p.raw_value) for p in params]
5074
5075 def GetParameterErrors(self,page_index): # Return list of errors associated with a given page
5076 params = self.GetParametersByPageIndex(page_index)
5077 return [str("\n".join(p.error_list)) for p in params]
5078
5079 def GetParameterTypes(self, page_index): # Return list of units associated with a given page
5080 params = self.GetParametersByPageIndex(page_index)
5081 return [str(p.units) for p in params]
5082
5083 def GetParameterHints(self, page_index): # Return a list of units associated with a given page
5084 params = self.GetParametersByPageIndex(page_index)
5085 return [str(p.hint) for p in params]
5086
5087 def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
5088 params = self.GetParametersByPageIndex(page_index)
5089 return [str(p.designator) for p in params]
5090
5091 def SetParameterValues(self, page_index, list_of_values): # Update values on a given page
5092
5093 params = self.GetParametersByPageIndex(page_index)
5094
5095 for i, param in enumerate(params):
5096 if i >= len(list_of_values):
5097 break
5098 param.SetValue(list_of_values[i])
5099
5100 def GetFootprint( self ):
5101 self.BuildFootprint()
5102 return self.module
5103
5105 return
5106
5107 def GetBuildMessages( self ):
5108 return self.buildmessages
5109
5110 def Show(self):
5111 text = "Footprint Wizard Name: {name}\n".format(name=self.GetName())
5112 text += "Footprint Wizard Description: {desc}\n".format(desc=self.GetDescription())
5113
5114 n_pages = self.GetNumParameterPages()
5115
5116 text += "Pages: {n}\n".format(n=n_pages)
5117
5118 for i in range(n_pages):
5119 name = self.GetParameterPageName(i)
5120
5121 params = self.GetParametersByPageName(name)
5122
5123 text += "{name}\n".format(name=name)
5124
5125 for j in range(len(params)):
5126 text += ("\t{param}{err}\n".format(
5127 param = str(params[j]),
5128 err = ' *' if len(params[j].error_list) > 0 else ''
5129 ))
5130
5131 if self.AnyErrors():
5132 text += " * Errors exist for these parameters"
5133
5134 return text
5135
5137 def __init__( self ):
5138 KiCadPlugin.__init__( self )
5142 self.defaults()
5143
5144 def defaults( self ):
5145 self.name = "Undefined Action plugin"
5146 self.category = "Undefined"
5147 self.description = ""
5148
5149 def GetName( self ):
5150 return self.name
5151
5152 def GetCategoryName( self ):
5153 return self.category
5154
5155 def GetDescription( self ):
5156 return self.description
5157
5159 return self.show_toolbar_button
5160
5161 def GetIconFileName( self, dark ):
5162 if dark and self.dark_icon_file_name:
5163 return self.dark_icon_file_name
5164 else:
5165 return self.icon_file_name
5166
5167 def Run(self):
5168 return
5169
5170
5171
5172def KiROUND(vec):
5173 r"""KiROUND(VECTOR2D const & vec) -> VECTOR2I"""
5174 return _pcbnew.KiROUND(vec)
5176 r"""Proxy of C++ VECTOR2< int > class."""
5177
5178 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5179 __repr__ = _swig_repr
5180 x = property(_pcbnew.VECTOR2I_x_get, _pcbnew.VECTOR2I_x_set, doc=r"""x : int""")
5181 y = property(_pcbnew.VECTOR2I_y_get, _pcbnew.VECTOR2I_y_set, doc=r"""y : int""")
5182
5183 def __init__(self, *args):
5184 r"""
5185 __init__(VECTOR2I self) -> VECTOR2I
5186 __init__(VECTOR2I self, int x, int y) -> VECTOR2I
5187 __init__(VECTOR2I self, VECTOR2I aVec) -> VECTOR2I
5188 """
5189 _pcbnew.VECTOR2I_swiginit(self, _pcbnew.new_VECTOR2I(*args))
5190
5191 def EuclideanNorm(self):
5192 r"""EuclideanNorm(VECTOR2I self) -> int"""
5193 return _pcbnew.VECTOR2I_EuclideanNorm(self)
5194
5196 r"""SquaredEuclideanNorm(VECTOR2I self) -> VECTOR2< int >::extended_type"""
5197 return _pcbnew.VECTOR2I_SquaredEuclideanNorm(self)
5198
5199 def Perpendicular(self):
5200 r"""Perpendicular(VECTOR2I self) -> VECTOR2I"""
5201 return _pcbnew.VECTOR2I_Perpendicular(self)
5202
5203 def Resize(self, aNewLength):
5204 r"""Resize(VECTOR2I self, int aNewLength) -> VECTOR2I"""
5205 return _pcbnew.VECTOR2I_Resize(self, aNewLength)
5206
5207 def Format(self):
5208 r"""Format(VECTOR2I self) -> string"""
5209 return _pcbnew.VECTOR2I_Format(self)
5210
5211 def Cross(self, aVector):
5212 r"""Cross(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
5213 return _pcbnew.VECTOR2I_Cross(self, aVector)
5214
5215 def Dot(self, aVector):
5216 r"""Dot(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
5217 return _pcbnew.VECTOR2I_Dot(self, aVector)
5218
5219 def __add__(self, *args):
5220 r"""
5221 __add__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5222 __add__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5223 """
5224 return _pcbnew.VECTOR2I___add__(self, *args)
5225
5226 def __imul__(self, *args):
5227 r"""
5228 __imul__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5229 __imul__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5230 """
5231 return _pcbnew.VECTOR2I___imul__(self, *args)
5232
5233 def __iadd__(self, *args):
5234 r"""
5235 __iadd__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5236