Changes

Jump to: navigation, search

Console UI Core Classes - OOP344 20113

836 bytes added, 13:46, 29 November 2011
MNode
</syntaxhighlight></big>
===MNode===
MNode holds to main about an Item in the menut:# The CMenuItem object# The index of this ItemMNode is a fully private class and is only accessible by CMenu.
====Attributes====
<big><syntaxhighlight lang="cpp">
CMenuItem* _item;
<big><syntaxhighlight lang="cpp">
Holds the address of a dynamically allocated CMenuItem
</syntaxhighlight></big>
unsigned int _index;
<big><syntaxhighlight lang="cpp">
Holds the index (sequence -1) number of the '''CMenuItem''' in the '''CMenu'''.
</syntaxhighlight></big>
MNode* _next;
MNode* _prev;
unsigned int _index;</syntaxhighlight></big>Standard next and previous pointer for a linked list node.
====Constructor/Destructor====
<big><syntaxhighlight lang="cpp">
MNode(CMenuItem* item,unsigned int index, MNode* prev, MNode* next = ((MNode*)0));
</syntaxhighlight></big>
Sets the corresponding attributes to the values of the arguments.
<big><syntaxhighlight lang="cpp">
~MNode(void);
</syntaxhighlight></big>
deletes the '''_item'''
===CMenu===

Navigation menu