Changes

Jump to: navigation, search

Console UI Core Classes - OOP344 20113

372 bytes added, 12:45, 8 November 2011
Methods
int edit();
</syntaxhighlight></big>
#draw()s the MenuItem#gets a key#: the key must be either SPACE or any non-printable character (all printable character are ignored)#if the entered key is space##it will set the _selected to true##draw()s the MenuItem again#returns the key
<big><syntaxhighlight lang="cpp">
bool editable()const;
</syntaxhighlight></big>
Returns true.
<big><syntaxhighlight lang="cpp">
void set(const void* Selected);
</syntaxhighlight></big>
Sets _selected to where Selected is pointing to
<big><syntaxhighlight lang="cpp">
bool selected()const;
</syntaxhighlight></big>
Returns Selected
<big><syntaxhighlight lang="cpp">
void selected(bool val);
</syntaxhighlight></big>
Sets _selected to val
<big><syntaxhighlight lang="cpp">
const char* Text()const;
</syntaxhighlight></big>
Returns the text of Label

Navigation menu