![]() |
Viking Skull Lamp
V1.0.1
|
Menu Controller Class. More...
#include <menu.hpp>
Public Member Functions | |
| menu (ssd1306 *oled_p, menuItem *selectedItem_p) | |
| Constructor. More... | |
| void | draw () |
| Redraw the menu to the display. More... | |
| void | up () |
| Step te menu upwards if possible. More... | |
| void | down () |
| Step te menu downwards if possible. More... | |
| void | next () |
| Enter to the next menu if possible. More... | |
Private Attributes | |
| menuItem * | selectedItem = NULL |
| Pointer to the selected menu item. More... | |
| ssd1306 * | oled = NULL |
| Pointer to the display controller object. More... | |
| bool | changed = true |
| Flag that shows if the content of the display is changed. More... | |
Menu Controller Class.
This class handles the menu drawing, item scrolling, behaviour overrides and lot more.
| void menu::down | ( | ) |
| void menu::draw | ( | ) |
| void menu::next | ( | ) |
| void menu::up | ( | ) |
|
private |
|
private |