The SimpleCxxLib package


#include "gobjects.h"

class GRoundRect : public GRect

This class represents a graphical object whose appearance consists of a rectangular box with rounded corners.
Constructor
GRoundRect(width, height)
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.

Constructor detail


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);
Constructs a new rectangle with the specified width and height. If the 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);