SimpleCxxLib packageclass G3DRect : public GRect| Constructor | |
G3DRect(width, height, raised) G3DRect(x, y, width, height) G3DRect(x, y, width, height, raised) | Constructs a new 3D rectangle with the specified width and height. |
| Methods | |
Returns true if this object appears raised. | |
| Indicates whether this object appears raised. | |
G3DRect(double width, double height); G3DRect(double width, double height, bool raised); G3DRect(double x, double y, double width, double height); G3DRect(double x, double y, double width, double height, bool raised);
x and y parameters are specified, they
are used to specify the origin. The raised parameter
determines whether the rectangle should be drawn with highlights that
suggest that it is raised about the background.
Usage:
G3DRect *rect = new G3DRect(width, height); G3DRect *rect = new G3DRect(width, height, raised); G3DRect *rect = new G3DRect(x, y, width, height); G3DRect *rect = new G3DRect(x, y, width, height, raised);
void setRaised(bool raised);
Usage:
rect->setRaised(raised);
bool isRaised() const;
true if this object appears raised.
Usage:
if (rect->isRaised()) ...