Open main menu

CDOT Wiki β

Changes

Console UI Core Classes - OOP344 20113

538 bytes added, 14:56, 23 November 2011
Methods
void draw(int fn = C_FULL_FRAME);
</syntaxhighlight></big>
First it will draw the CField using the fn arguement.<br />
Then it will use console.display to display all the Lines of _T that are positioned inside the frame of the CText. (i.e. from _loffset to _loffset + Height() - 2).<br />
Two Important things to note:
# you should note that '''Lines''' are '''console.display()'''ed from _offset character. (i.e. &_T[theLineNumber][_offset]).
# Also you should '''console.display()''' the Lines only if the length of the line is more than the _offset(i.e. _T[theLineNumver].strlen() > _offset)
<big><syntaxhighlight lang="cpp">
void set(const void *Str);
</syntaxhighlight></big>
 
<big><syntaxhighlight lang="cpp">
void *data()const;
void displayOnly(bool val);
</syntaxhighlight></big>
 
===The Text Helper Class===
[svn://zenit.senecac.on.ca/oop344/trunk/textClass Text class]