modm API documentation
|
Stack which handles the displaying of views on the graphic display. More...
#include <modm/ui/menu/view_stack.hpp>
Public Member Functions | |
ViewStack (modm::ColorGraphicDisplay *display) | |
modm::AbstractView * | get () |
get the top view from the stack More... | |
void | push (modm::AbstractView *view) |
push new view on top of stack the new view will be displayed instead of the old one More... | |
modm::ColorGraphicDisplay & | getDisplay () |
getDisplay access underlying GraphicDisplay | |
void | pop () |
pop remove top view from the stack. The removed view is deleted | |
virtual void | update () |
void | shortButtonPress (modm::MenuButtons::Button button) |
shortButtonPress pass the button press to the current top view More... | |
Protected Attributes | |
modm::ColorGraphicDisplay * | display |
modm::Stack< modm::AbstractView *, modm::LinkedList< modm::AbstractView * > > | stack |
Stack which handles the displaying of views on the graphic display.
This class also deallocates the views passed to the stack.
|
inline |
get the top view from the stack
|
inline |
push new view on top of stack the new view will be displayed instead of the old one
view | next displayed view |
void modm::ViewStack::shortButtonPress | ( | modm::MenuButtons::Button | button | ) |
shortButtonPress pass the button press to the current top view
button | the pressed button |