Shape

This class captures the concepts of the shape of a rectangular graphical user interface item (e.g, a window object). Shape objects are used to describe the dimensions of the visible window of a Frame, and an area within a Frame's visible window.

[ Index | Source | Summary | Member Functions ]

Quick Index


Class Summary

class Shape
{

public:
Shape(int width, int height);
Shape();
int Height();
int Width();
Shape Resize(float factor);
}; // Shape

Back to the top of Shape


Shape(int width, int height);

Construct a Shape object with the specified width and height.

	Shape(int width, int height);	

Back to the top of Shape


Shape();

Construct a Shape object with default height and width.

	Shape();         		

Back to the top of Shape


int Height();

Return the current height of the Shape object.

     int Height();              	

Back to the top of Shape


int Width();

Return the current width of the Shape object.

     int Width();               	

Back to the top of Shape


Shape Resize(float factor);

Construct and return a new Shape object whose width (height) differs from that of the existing Shape object's width (height) by the the specified multiplicative factor. If the factor exceeds 1.0, the returned Shape is larger than the existing Shape. If the factor is below 1.0, the returned Shape is smaller than the existing Shape. This method does not change the existing Shape object's dimesions.

     Shape Resize(float factor);        

Back to the top of Shape


Member Functions

public:
int Height();
int Width();
Shape Resize(float factor);

Back to the top of Shape


Generated from source by the Cocoon utilities on Thu Apr 02 12:40:07 1998 .

Report problems to jkotula@unimax.com