const char * Command_TextObject_ToString(Command_TextObject *textObject)
Converts the Command_TextObject to a string (basically, returns the current text from the Command_Tex...
void Command_TextObject_Clear(Command_TextObject *textObject)
Clear the contents of the specified Command_TextObject, releasing any allocated resources associated ...
bool Command_TextObject_Initialize(Command_TextObject *textObject, const char *startingText)
Initialize a Command_TextObject with the specified text.
void Command_TextObject_Reset(Command_TextObject *textObject)
Resets the Command_TextObject to the starting string.
char * Command_TextObject_GetText(Command_TextObject *textObject)
Gets the text in the specified Command_TextObject.
void Command_TextObject_SetText(Command_TextObject *textObject, const char *newText)
Sets the text in the specified Command_TextObject.
Declaration of the Command_TextObject structure and associated functions as used in the Command Patte...
Container for a string. Need to use a structure to keep the starting text and the current text togeth...
char * text
The text that can change.
const char * startingText
Starting string text so we can reset the text to a known point.