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 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
Sets the label type. The type can be one of normal, cdlLabel, or pyLabel
Gets the label type.
Gets the label's alignment.
Sets the label's alignment.
Sets the label's overline flag.
Gets the label's overline flag.
Sets the label's underline flag.
Gets the label's underline flag.
Sets the label's strikethru flag.
Gets the label's strikethru flag.
Sets the label's flag bits.
Gets the label's flag bits.
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, in database units.
Sets the label's bounding box. This is not used and will throw an exception if called.
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.
Returns true if the Point p is within the label's display bBox.
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.
Returns true if the label’s origin is equal to the other label’s.
Returns true if the label’s origin is not equal to the other label’s.
Returns true if the label’s origin is less than the other label’s.
Copyright © Peardrop Design 2024.