Panel

This class captures the abstraction of a "control panel" - a region within a Frame that contains interactive controls. Two types of interactive controls can be placed in a Panel: Button objects and TextBoxes objects.

[ Index | Source | Summary | Member Functions ]

Quick Index


Class Summary

class Panel
{

public:
Panel(Frame& frame, char *name, Location location, Shape shape);
char* getName();
void Add(Button& button);
void Add(TextBox& tbox);
}; // Panel

Back to the top of Panel


Panel(Frame& frame, char *name, Location location, Shape shape);

Construct a Panel as a region within an existing Frame. In addition to the Panel's name, the Location within the Frame and the Shape of the Canvas are specified. It is important that the Frame be of sufficient size so that the Panel's position and dimensions allow the Panel to be entirely contained within the Frame.

   Panel(Frame& frame, char *name, Location location, Shape shape);

Back to the top of Panel


char* getName();

Return the name of the Panel. The name of the Panel is defined by the Panel's constructor.

   char* getName();

Back to the top of Panel


void Add(Button& button);

Add the specified Button to the Panel. Any number of Button objects (and TextBox objects) may be added to the Panel provided that their placement and size does not cause them to overlap within the Panel.

   void Add(Button& button);

Back to the top of Panel


void Add(TextBox& tbox);

Add the specified TextBox to the Panel. Any number of TextBox objects (and Button objects) may be added to the Panel provided that their placement and size does not cause them to overlap within the Panel.

   void Add(TextBox& tbox);

Back to the top of Panel


Member Functions

public:
char* getName();
void Add(Button& button);
void Add(TextBox& tbox);

Back to the top of Panel


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

Report problems to jkotula@unimax.com