BlinkingMessage

A BlinkingMessage encapsulates the state and functionality to support a "blinking" text string. The state of a BlinkingMessage object records whether the text string is currently visible and, when asked to "blink" either draws itself (if it is currently not visible) or erases itself (if it is currently visible).

[ Index | Source | Summary | Member Functions ]

Quick Index


Class Summary

class BlinkingMessage
{

public:
BlinkingMessage(char *textString, Location whereAt);
BlinkingMessage(Location whereAt);
void DisplayIn(Frame& whichFrame);
void MoveTo(Location newLocation);
void SetText(char *newText);
char *GetText();
void Blink();
void Redraw();
~BlinkingMessage();
}; // BlinkingMessage

Back to the top of BlinkingMessage


BlinkingMessage(char *textString, Location whereAt);

Construct a BlinkingMessage with the given text string and a given location.

   BlinkingMessage(char *textString, Location whereAt);

Back to the top of BlinkingMessage


BlinkingMessage(Location whereAt);

Construct a BlinkingMessage with a default text string at a given location.

   BlinkingMessage(Location whereAt);

Back to the top of BlinkingMessage


void DisplayIn(Frame& whichFrame);

Indicate in which Frame the BlinkingMessage will appear.

   void DisplayIn(Frame& whichFrame);

Back to the top of BlinkingMessage


void MoveTo(Location newLocation);

Change the Location at which the text string appears.

   void MoveTo(Location newLocation);

Back to the top of BlinkingMessage


void SetText(char *newText);

Change or set the text string of the BlinkingMessage. If the current BlinkingMessage is visible, the current text string is erased and the current text string is drawn. If the BlinkingMessage is not currently visible, then the new text string will appear the next time the BlinkingMessage's text becomes visible.

   void SetText(char *newText);

Back to the top of BlinkingMessage


char *GetText();

Return the current text string.

   char *GetText();

Back to the top of BlinkingMessage


void Blink();

This is the principle method of the BlinkingMessage class. This method causes the text to be erased (if the text string is currently visible) or drawn (if the text string is currently not visible).

   void Blink();

Back to the top of BlinkingMessage


void Redraw();

This method repaints the text string without changing the state (the visibility) of the text. This method is used in repainting a Frame that contains a BlinkingMessage text string.

   void Redraw();

Back to the top of BlinkingMessage


~BlinkingMessage();

Reclaim all resources associated with the BlinkingMessage object.

   ~BlinkingMessage();

Back to the top of BlinkingMessage


Member Functions

public:
void DisplayIn(Frame& whichFrame);
void MoveTo(Location newLocation);
void SetText(char *newText);
char *GetText();
void Blink();
void Redraw();

Back to the top of BlinkingMessage


Generated from source by the Cocoon utilities on Thu Apr 02 12:39:38 1998 .

Report problems to jkotula@unimax.com