Open main menu

CDOT Wiki β

Changes

Console UI Core Classes - OOP344 20113

673 bytes added, 10:40, 8 November 2011
CLineEdit
bool _dyn;
int _maxdatalen;
intbool* _insertmode;
int _curpos;
int _offset;
</syntaxhighlight></big>
===Attributes===
<big><syntaxhighlight lang="cpp">
bool _dyn;
</syntaxhighlight></big>
_dyn is set to true if the object dynamically allocated memory and is responsible to free it at destruction time.
<big><syntaxhighlight lang="cpp">
int _maxdatalen;
</syntaxhighlight></big>
no comment!
<big><syntaxhighlight lang="cpp">
bool* _insertmode;
</syntaxhighlight></big>
points to the location of input method (insert or overstrike)
<big><syntaxhighlight lang="cpp">
int _curpos;
</syntaxhighlight></big>
current position of cursor
<big><syntaxhighlight lang="cpp">
int _offset;
current offset
</syntaxhighlight></big>
===Constructors / Destructor===
<big><syntaxhighlight lang="cpp">
CLineEdit(char* Str, int Row, int Col, int Width,
</syntaxhighlight></big>
If '''_dyn''' is true, it will deallocate the character array pointed by Fields's '''_data'''
 
===Methods===
<big><syntaxhighlight lang="cpp">