Changes

Jump to: navigation, search

Console UI Core Classes - OOP344 20113

1,369 bytes added, 22:50, 22 November 2011
CText
==CText==
CText is a CField to edit a multiline text.<br />
To do this, it will use the [svn://zenit.senecac.on.ca/oop344/trunk/textClass text Text class] to convert a character string containing a text into a (simulated) two dimensional array.
<big><syntaxhighlight lang="cpp">
</syntaxhighlight></big>
===Attributes===
<big><syntaxhighlight lang="cpp">
Text _T;
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
bool _displayOnly;
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
int _curpos;
int _fieldlen;
bool* _insertmode;
int _offset;
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
int _lcurpos;
int _loffset;
</syntaxhighlight></big>
===Constructors/Destructor===
<big><syntaxhighlight lang="cpp">
CText(int Row, int Col, int Width, int Height, bool* Insertmode,
bool displayOnly = false, const char* Border=C_BORDER_CHARS);
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
CText(const char* Str, int Row, int Col, int Width, int Height,
bool* Insertmode, bool displayOnly = false,
const char* Border=C_BORDER_CHARS);
</syntaxhighlight></big>
===Methods===
<big><syntaxhighlight lang="cpp">
void draw(int fn = C_FULL_FRAME);
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
void set(const void *Str);
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
void *data()const;
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
int edit();
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
bool editable()const;
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
bool displayOnly();
void displayOnly(bool val);
</syntaxhighlight></big>
===The Text Helper Class===
[svn://zenit.senecac.on.ca/oop344/trunk/textClass text Text class]

Navigation menu