TextFrame

This class captures the abstraction of a window into which information can be written in a stream-like fashion. The window is constructed in a way similar to a Frame (with a name, Location, and Shape) and may also be moved and resized. Unlike a Frame, the TextFrame provides a set of stream I/O operators that allow basic types to be converted into text and displayed in the window. Formatting is primitive: blanks between fields are inserted by streaming to the window a text string of blanks, lines are ended by streamng to the window the newline ('\n') or end-of-line (EOL) character.

[ Index | Source | Summary | Member Functions ]

Quick Index


Class Summary

class TextFrame
{

public:
TextFrame(char *name, Location location, Shape shape);
TextFrame(char* name, Location loc);
TextFrame(char* name, Shape sh);
TextFrame(char* name);
TextFrame();
~TextFrame();
void MoveTo( Location location);
void Resize( Shape shape);
void Resize( float factor);
int IsNamed(char* n);
TextFrame& operator<<(char *stringValue);
TextFrame& operator<<(int intValue);
TextFrame& operator<<(long longValue);
TextFrame& operator<<(float floatValue);
TextFrame& operator<<(double doubleValue);
TextFrame& operator<<(char charValue);
}; // TextFrame

Back to the top of TextFrame


TextFrame(char *name, Location location, Shape shape);

Construct a TextFrame with the given name, Location, and Shape.

   TextFrame(char *name, Location location, Shape shape);

Back to the top of TextFrame


TextFrame(char* name, Location loc);

Construct a TextFrame with the given name and Location. A default Shape is used for the TextFrame's window.

   TextFrame(char* name, Location loc);

Back to the top of TextFrame


TextFrame(char* name, Shape sh);

Construct a TextFrame with the given name and Shape. A default Location is used for the placement of the window on the user's display.

   TextFrame(char* name, Shape sh);

Back to the top of TextFrame


TextFrame(char* name);

Construct a TextFrame with the given name. Default values are used for the placement and size of the window on the user's display.

   TextFrame(char* name);

Back to the top of TextFrame


TextFrame();

Construct a TextFrame with default values used for the name, Location, and Shape.