modm API documentation
modm::CommunicatingViewStack< Allocator > Class Template Reference
Inheritance diagram for modm::CommunicatingViewStack< Allocator >:
modm::ViewStack< Allocator >

Public Member Functions

 CommunicatingViewStack (modm::GraphicDisplay *display, xpcc::Communicator *communicator)
 
xpcc::CommunicatorgetCommunicator ()
 
modm::AbstractView< Allocator > * get ()
 get the top view from the stack More...
 
modm::GraphicDisplaygetDisplay ()
 getDisplay access underlying GraphicDisplay
 
void pop ()
 pop remove top view from the stack. The removed view is deleted
 
void push (modm::AbstractView< Allocator > *view)
 push new view on top of stack the new view will be displayed instead of the old one More...
 
void shortButtonPress (modm::MenuButtons::Button button)
 shortButtonPress pass the button press to the current top view More...
 
virtual void update ()
 

Protected Attributes

xpcc::Communicatorcommunicator
 
Allocator allocator
 
modm::GraphicDisplaydisplay
 
modm::Stack< modm::AbstractView< Allocator > *, modm::LinkedList< modm::AbstractView< Allocator > * > > stack
 

Member Function Documentation

template<typename Allocator = std::allocator<IAbstractView>>
modm::AbstractView<Allocator>* modm::ViewStack< Allocator >::get ( )
inheritedinline

get the top view from the stack

Returns
pointer to view from stack
template<typename Allocator = std::allocator<IAbstractView>>
void modm::ViewStack< Allocator >::push ( modm::AbstractView< Allocator > *  view)
inheritedinline

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

Parameters
viewnext displayed view
template<typename Allocator = std::allocator<IAbstractView>>
void modm::ViewStack< Allocator >::shortButtonPress ( modm::MenuButtons::Button  button)
inheritedinline

shortButtonPress pass the button press to the current top view

Parameters
buttonthe pressed button

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