12 namespace duds {
namespace ui {
15 pages.push_back(first);
28 pages.emplace_back(page);
54 int nspot =
spot + steps;
57 spot = std::min((PageStack::size_type)nspot,
pages.size() - 1);
59 spot = std::max(nspot, 0);
bool move(int steps)
Changes the current page by the given amount.
move_impl move(unsigned int c, unsigned int r)
Display stream manipulator that moves the display cursor to the given location.
void push(const PageSptr &page)
Pushes a new page after the current page.
void clear()
Clears out the stack of all pages.
void clearPastCurrent()
Clears all pages on the stack that are forward of the current page.
Path()
Constructs a new empty path.
std::shared_ptr< Page > PageSptr
A shared pointer to a Page.
PageStack pages
The pages in path order.
int spot
Index of the current page.