DSRect
The DSRect
interface represents a rectangle, similar to CRect in C++, with an added feature for measurement in percentages.
If measured in percentage, the value range for left/right/top/bottom is 0~100.
interface DSRect {
left: number;
right: number;
top: number;
bottom: number;
isMeasuredInPercentage: boolean;
}
left
The left coordinate of the rectangle.
right
The right coordinate of the rectangle.
top
The top coordinate of the rectangle.
bottom
The bottom coordinate of the rectangle.
isMeasuredInPercentage
Indicates if the rectangle’s measurements are in percentages.