Frame

This class represents the abstraction of a graphical user interface window. A Frame can logically contain any number of non-overlapping Panels and Canvases within its boundaries. The Panel and Canvas constructors create an association between themselves and a Frame. The methods of the Frame class allow the window to be moved on the user's display and its shape changed. Each Frame is given a name that is appears on the title bar of the visible window. The location of a Frame on the user's display is measured in a coordinate system where the upper left-hand corner of the display is the coordinates (0,0), the x-axis is the top of the display with higher x values to the right, and the y-axis is the left edge of the display with higher values nearer the bottom of the display. The shape of a Frame is given by it width and height, both measures in pixels.

[ Index | Source | Summary | Member Functions ]

Quick Index


Class Summary

class Frame
{

public:
Frame(char *name, Location loc, Shape sh);
Frame(char* name, Location loc);
Frame(char* name, Shape sh);
Frame(char* name);
Frame();
~Frame();
void MoveTo(Location location);
void Resize(Shape shape);
void Resize( float factor);
int IsNamed(char* n);
}; // Frame

Back to the top of Frame


Frame(char *name, Location loc, Shape sh);

Construct a Frame object specifying the Frame's name, its location - the x and y coordinates, and its shape - its width and height.

   Frame(char *name, Location loc, Shape sh);

Back to the top of Frame


Frame(char* name, Location loc);

Construct a Frame object specifying the Frame's name, and its Location. The Frame is constructed with a default Shape.

   Frame(char* name, Location loc);

Back to the top of Frame


Frame(char* name, Shape sh);

Construct a Frame object specifying the Frame's name, and its Shape. The Frame is constructed at a default Location.

   Frame(char* name, Shape sh);

Back to the top of Frame


Frame(char* name);

Construct a Frame object specifying the Frame's name. Both the Location and the Shape of the Frame are determined by defaults.

   Frame(char* name);

Back to the top of Frame


Frame();

Construct a Frame object specifying. The Frame's name, its Location, and its Shape are given default values.

   Frame();

Back to the top of Frame


~Frame();

Destructor: frees resources when Frame object is deleted

  ~Frame();

Back to the top of Frame


void MoveTo(Location location);

Move the Frame's visible window to a specified Location.

   void     MoveTo(Location location);   

Back to the top of Frame


void Resize(Shape shape);

Change the dimensions of the Frame's visible window to a specified Shape.

   void     Resize(Shape shape);  

Back to the top of Frame


void Resize( float factor);

Change the dimensions of the Frame's visible window by multiplying each dimension by a given amount.

   void     Resize( float factor);          

Back to the top of Frame


int IsNamed(char* n);

Reply if the given string is equal to the name of the Frame.

   int      IsNamed(char* n);              

Back to the top of Frame


Member Functions

public:
void MoveTo(Location location);
void Resize(Shape shape);
void Resize( float factor);
int IsNamed(char* n);

Back to the top of Frame


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

Report problems to jkotula@unimax.com