modm API documentation
modm::ViewStack Class Reference

Stack which handles the displaying of views on the graphic display. More...

#include <modm/ui/menu/view_stack.hpp>

Inheritance diagram for modm::ViewStack:
modm::CommunicatingViewStack modm::gui::GuiViewStack

Public Member Functions

 ViewStack (modm::ColorGraphicDisplay *display)
 
modm::AbstractViewget ()
 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::ColorGraphicDisplaygetDisplay ()
 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::ColorGraphicDisplaydisplay
 
modm::Stack< modm::AbstractView *, modm::LinkedList< modm::AbstractView * > > stack
 

Detailed Description

Stack which handles the displaying of views on the graphic display.

This class also deallocates the views passed to the stack.

Author
Thorsten Lajewski

Member Function Documentation

modm::AbstractView* modm::ViewStack::get ( )
inline

get the top view from the stack

Returns
pointer to view from stack
void modm::ViewStack::push ( modm::AbstractView view)
inline

push new view on top of stack the new view will be displayed instead of the old one

Parameters
viewnext displayed view
void modm::ViewStack::shortButtonPress ( modm::MenuButtons::Button  button)

shortButtonPress pass the button press to the current top view

Parameters
buttonthe pressed button

The documentation for this class was generated from the following files: