SimpleCxxLib
packageclass GRoundRect : public GRect
Constructor | |
GRoundRect(width, height, corner) GRoundRect(x, y, width, height) GRoundRect(x, y, width, height, corner) | Constructs a new rectangle with the specified width and height. |
GRoundRect(double width, double height); GRoundRect(double width, double height, double corner); GRoundRect(double x, double y, double width, double height); GRoundRect(double x, double y, double width, double height, double corner);
x
and y
parameters are specified, they
are used to specify the origin. The corner
parameter
specifies the diameter of the arc forming the corner.
Usage:
GRoundRect *rect = new GRoundRect(width, height); GRoundRect *rect = new GRoundRect(width, height, corner); GRoundRect *rect = new GRoundRect(x, y, width, height); GRoundRect *rect = new GRoundRect(x, y, width, height, corner);