Byggern
Menu Namespace Reference

This is a namespace containing everything needed to implement a menu. More...

Classes

class  Controller
 This class contains everything needed to create and manage a menu and display it on an OLED. More...
 
struct  Item
 Struct containing a sigle menu item. More...
 
struct  Menu
 Contains all necessary information about a menu (which could be a sub menu). More...
 

Detailed Description

This is a namespace containing everything needed to implement a menu.

This namespace contains data types for describing a menu, and a controller class to control it and display it on a OLED (library class). The menu allocates Menu and Item objects on the heap. Thus you should declare these objects ON THE STACK INSIDE A LOCAL SCOPE so the menus and menu items aren't stored both on the heap and in the main (or where the menu is created) stack!

The whole menu is implemented as a one way linked list.