You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pymod/distutils_src/klayout/dbcore.pyi
+62-26Lines changed: 62 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -832,6 +832,27 @@ class Cell:
832
832
833
833
This method has been introduced in version 0.20.
834
834
"""
835
+
locked: bool
836
+
r"""
837
+
Getter:
838
+
@brief Gets a value indicating whether the cell is locked
839
+
840
+
Locked cells cannot be modified in terms of instances (children) and shapes. Locked cells can still be renamed, but cannot be deleted or cleared.
841
+
Among other things, these features are disabled too: layer operations, copy of instances or shapes, flattening or pruning.
842
+
843
+
However, wiping the layout entirely with \Layout#clear is always possible, even if cells are locked.
844
+
845
+
Use \locked= to set the locked state of the cell.
846
+
847
+
The lock feature has been introduced in version 0.29.11.
848
+
Setter:
849
+
@brief Locks or unlocks the cell
850
+
851
+
Set this predicate to 'true' to lock the cell and to 'false' to unlock it.
852
+
See \is_locked? for details about the lock feature.
853
+
854
+
The lock feature has been introduced in version 0.29.11.
855
+
"""
835
856
name: str
836
857
r"""
837
858
Getter:
@@ -1912,6 +1933,20 @@ class Cell:
1912
1933
This method has been introduced in version 0.22.
1913
1934
"""
1914
1935
...
1936
+
def is_locked(self) -> bool:
1937
+
r"""
1938
+
@brief Gets a value indicating whether the cell is locked
1939
+
1940
+
Locked cells cannot be modified in terms of instances (children) and shapes. Locked cells can still be renamed, but cannot be deleted or cleared.
1941
+
Among other things, these features are disabled too: layer operations, copy of instances or shapes, flattening or pruning.
1942
+
1943
+
However, wiping the layout entirely with \Layout#clear is always possible, even if cells are locked.
1944
+
1945
+
Use \locked= to set the locked state of the cell.
1946
+
1947
+
The lock feature has been introduced in version 0.29.11.
1948
+
"""
1949
+
...
1915
1950
@overload
1916
1951
def is_pcell_variant(self) -> bool:
1917
1952
r"""
@@ -30230,11 +30265,11 @@ class Instance:
30230
30265
30231
30266
Starting with version 0.25 the displacement is of vector type.
30232
30267
Setter:
30233
-
@brief Sets the displacement vector for the 'b' axis
30268
+
@brief Sets the displacement vector for the 'b' axis in micrometer units
30234
30269
30235
-
If the instance was not an array instance before it is made one.
30270
+
Like \b= with an integer displacement, this method will set the displacement vector but it accepts a vector in micrometer units that is of \DVector type. The vector will be translated to database units internally.
30236
30271
30237
-
This method has been introduced in version 0.23. Starting with version 0.25 the displacement is of vector type.
30272
+
This method has been introduced in version 0.25.
30238
30273
"""
30239
30274
cell: Cell
30240
30275
r"""
@@ -30408,9 +30443,10 @@ class Instance:
30408
30443
@brief Gets the transformation of the instance or the first instance in the array
30409
30444
The transformation returned is only valid if the array does not represent a complex transformation array
30410
30445
Setter:
30411
-
@brief Sets the transformation of the instance or the first instance in the array
30446
+
@brief Sets the transformation of the instance or the first instance in the array (in micrometer units)
30447
+
This method sets the transformation the same way as \cplx_trans=, but the displacement of this transformation is given in micrometer units. It is internally translated into database units.
30412
30448
30413
-
This method has been introduced in version 0.23.
30449
+
This method has been introduced in version 0.25.
30414
30450
"""
30415
30451
@classmethod
30416
30452
def new(cls) -> Instance:
@@ -41367,15 +41403,15 @@ class NetPinRef:
41367
41403
@overload
41368
41404
def net(self) -> Net:
41369
41405
r"""
41370
-
@brief Gets the net this pin reference is attached to.
41406
+
@brief Gets the net this pin reference is attached to (non-const version).
41407
+
41408
+
This constness variant has been introduced in version 0.26.8
41371
41409
"""
41372
41410
...
41373
41411
@overload
41374
41412
def net(self) -> Net:
41375
41413
r"""
41376
-
@brief Gets the net this pin reference is attached to (non-const version).
41377
-
41378
-
This constness variant has been introduced in version 0.26.8
41414
+
@brief Gets the net this pin reference is attached to.
41379
41415
"""
41380
41416
...
41381
41417
def pin(self) -> Pin:
@@ -41665,17 +41701,17 @@ class NetTerminalRef:
41665
41701
@overload
41666
41702
def device(self) -> Device:
41667
41703
r"""
41668
-
@brief Gets the device reference (non-const version).
41704
+
@brief Gets the device reference.
41669
41705
Gets the device object that this connection is made to.
41670
-
41671
-
This constness variant has been introduced in version 0.26.8
41672
41706
"""
41673
41707
...
41674
41708
@overload
41675
41709
def device(self) -> Device:
41676
41710
r"""
41677
-
@brief Gets the device reference.
41711
+
@brief Gets the device reference (non-const version).
41678
41712
Gets the device object that this connection is made to.
41713
+
41714
+
This constness variant has been introduced in version 0.26.8
41679
41715
"""
41680
41716
...
41681
41717
def device_class(self) -> DeviceClass:
@@ -42687,36 +42723,36 @@ class Netlist:
42687
42723
@overload
42688
42724
def circuit_by_name(self, name: str) -> Circuit:
42689
42725
r"""
42690
-
@brief Gets the circuit object for a given name.
42726
+
@brief Gets the circuit object for a given name (const version).
42691
42727
If the name is not a valid circuit name, nil is returned.
42728
+
42729
+
This constness variant has been introduced in version 0.26.8.
42692
42730
"""
42693
42731
...
42694
42732
@overload
42695
42733
def circuit_by_name(self, name: str) -> Circuit:
42696
42734
r"""
42697
-
@brief Gets the circuit object for a given name (const version).
42735
+
@brief Gets the circuit object for a given name.
42698
42736
If the name is not a valid circuit name, nil is returned.
42699
-
42700
-
This constness variant has been introduced in version 0.26.8.
0 commit comments