Glade Reference
The rectangle class is derived from a shape. This class is normally created in a cellView using the dbCreateRect() function.
Get the coordinates of the rectangle.
Set the coordinates of the rectangle.
Get the origin (lower left) of this rectangle.
Get the width of this rectangle.
Set the width of this rectangle. The origin is maintained.
Get the height of this rectangle.
Set the height of this rectangle. The origin is maintained.
Get the centre of a rectangle.
Get the bounding box of this rectangle.
Set the bounding box of this rectangle. This will change the size of the rectangle.
Returns the object type of this rectangle as RECTANGLE.
Returns the object name of this rectangle as "RECTANGLE".
Returns the number of points of the rectangle's boundary as 4.
Returns the point list of this rectangle as an array of 4 points.
Returns a polygon with a pointlist identical to this rectangle.
Bias this rectangle by bias, snapping to the grid grid.
Scale this rectangle by scale, snapping to the grid grid.
Get the distance of the nearest segment s of this rectangle to the point p;
Get the distance of the nearest vertex s of this rectangle to the point p.
Get the area of this rectangle.
Get the perimeter of this rectangle.
Transform this rectangle using trans.
Returns true if the point is contained in or on the edge of the rectangle.
Move this rectangle by distance delta. If opt is true then the database is re-optimised for the new rectangle 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 this rectangle to cellView cv, with offset delta. If layerNum is non negative the rectangle will be copied to the that layer.
Flatten this rectangle into cellView cv with transformation trans.
Stretch segment seg of this rectangle by delta. If lock45 is true, diagonal edges will be locked diagonal; if lockEnds is true, the endpoints of the segment will remain fixed.
Stretch vertex v of this rectangle by delta.
Copyright © Peardrop Design 2024.