Open main menu

CDOT Wiki β

Changes

Console UI Core Classes - OOP344 20111

1,032 bytes added, 13:06, 4 April 2011
CMenuItem
const char* Text();
};
</syntaxhighlight></big>
===Attributes===
<big><syntaxhighlight lang="cpp">
int _selected;
char _format[3];
char* _text;
</syntaxhighlight></big>
===Constructors / Destructor===
<big><syntaxhighlight lang="cpp">
CMenuItem(bool Selected,const char* Format, const char* Text, int Row, int Col, int Width);
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
CMenuItem(const CMenuItem &CM);
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
~CMenuItem(void);
</syntaxhighlight></big>
===Methods===
<big><syntaxhighlight lang="cpp">
void draw(int fn = C_NO_FRAME) ;
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
int edit();
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
bool editable()const;
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
void set(const void* Selected);
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
bool selected()const;
void selected(bool val);
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
const char* Text();
</syntaxhighlight></big>