Glade Reference
The label class is derived from a shape. This class is normally created in a cellView using the dbCreateLabel function.
Gets the label name
Sets the label name.
Gets the bounding box of the label. Note that as a label does not have a 'real' bounding box - the box is approximately the size of the displayed text of the label.
Sets the label's bounding box. This is not used and will throw an exception if called.
Gets the label's height attribute
Sets the label's height
Gets the label's width
Sets the label's width. This is not used.
Gets the label orientation.
Sets the label orientation
Gets the label's origin
Sets the label's origin
Sets the label's origin
Gets the label's alignment.
Sets the label's alignment.
Get the object type (TEXT)
Gets the object name ("LABEL")
Gets the nearest edge of the label's bounding box to a Point p. The function returns the distance to the edge.
Transform a label by some transform trans.
Moves a label by distance delta. If opt is True then the database is re-optimised for the new label position. If there are a lot of objects to move it makes sense to turn this off and instead use the cellView update() function after moving them all.
Copy the label to cellView cv, with offset delta. If layer is non-negative the label will be copied to the new layer.
Flatten the label into cellView cv with some transform trans.
Bias the label. As the label is really just a point, this does nothing useful.
Scale the label. The label’s origin is scaled by the value scale.
l.setType(db_labelType t)
Sets the label type. The type can be one of normal, cdlLabel, or pyLabel
db_LabelType t = l.type()
Gets the label type.
Copyright © Peardrop Design 2020.