The SimpleCxxLib package


#include "gobjects.h"

class G3DRect : public GRect

This graphical object subclass represents a rectangular box that can be raised or lowered.
Constructor
G3DRect(width, height)
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
isRaised() Returns true if this object appears raised.
setRaised(raised) Indicates whether this object appears raised.

Constructor detail


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

Method detail


void setRaised(bool raised);
Indicates whether this object appears raised.

Usage:

rect->setRaised(raised);

bool isRaised() const;
Returns true if this object appears raised.

Usage:

if (rect->isRaised()) ...