Lines Matching refs:Menu

24 Menu::Menu(std::string id, int width, int height, Menu::Style style)  in Menu()  function in MTFH::Menu
41 std::string Menu::id() const in id()
46 void Menu::addItem(MenuItemPtr menuItem) in addItem()
57 void Menu::reverseItems() in reverseItems()
69 void Menu::addMouseItem(Menu::MouseItemType type, MenuItemPtr menuItem) in addMouseItem()
77 MenuItemPtr Menu::currentItem() const in currentItem()
87 MenuItemPtr Menu::selectedItem() const in selectedItem()
97 MenuItemPtr Menu::item(unsigned int index) const in item()
107 unsigned int Menu::itemCount() const in itemCount()
112 void Menu::render() in render()
118 void Menu::renderItems() in renderItems()
125 if (m_style == Menu::Style::VerticalList) in renderItems()
143 else if (m_style == Menu::Style::HorizontalList) in renderItems()
161 else if (m_style == Menu::Style::ShowOne) in renderItems()
167 else if (m_style == Menu::Style::ShowMany) in renderItems()
179 bool Menu::isNextAllowed() const in isNextAllowed()
184 bool Menu::isPrevAllowed() const in isPrevAllowed()
189 void Menu::renderMouseItems() in renderMouseItems()
195 case Menu::MouseItemType::Quit: in renderMouseItems()
200 case Menu::MouseItemType::Prev: in renderMouseItems()
208 case Menu::MouseItemType::Next: in renderMouseItems()
219 void Menu::incrementIndex(int increment) in incrementIndex()
233 void Menu::up() in up()
238 void Menu::down() in down()
243 void Menu::left() in left()
248 void Menu::right() in right()
253 void Menu::selectCurrentItem() in selectCurrentItem()
267 bool Menu::checkIfHit(MenuItemPtr item, int x, int y) in checkIfHit()
282 bool Menu::handleMousePressOnMouseItem(int x, int y) in handleMousePressOnMouseItem()
318 bool Menu::handleMousePressOnItem(int x, int y) in handleMousePressOnItem()
330 if (m_style != Menu::Style::ShowOne) in handleMousePressOnItem()
346 bool Menu::handleMousePress(int x, int y, int screenWidth, int screenHeight) in handleMousePress()
359 bool Menu::handleMouseReleaseOnMouseItem(int x, int y) in handleMouseReleaseOnMouseItem()
373 case Menu::MouseItemType::Quit: in handleMouseReleaseOnMouseItem()
377 case Menu::MouseItemType::Prev: in handleMouseReleaseOnMouseItem()
384 case Menu::MouseItemType::Next: in handleMouseReleaseOnMouseItem()
398 bool Menu::handleMouseReleaseOnItem(int x, int y) in handleMouseReleaseOnItem()
400 if (m_style == Menu::Style::ShowOne) in handleMouseReleaseOnItem()
429 bool Menu::handleMouseRelease(int x, int y, int screenWidth, int screenHeight) in handleMouseRelease()
442 void Menu::updateFocus() in updateFocus()
455 int Menu::width() const in width()
460 int Menu::height() const in height()
465 void Menu::setPos(float x, float y) in setPos()
473 void Menu::setPos(float x, float y, float targetX, float targetY) in setPos()
481 float Menu::x() const in x()
486 float Menu::y() const in y()
491 float Menu::targetY() const in targetY()
496 float Menu::targetX() const in targetX()
501 int Menu::currentIndex() const in currentIndex()
506 void Menu::setCurrentIndex(int index) in setCurrentIndex()
524 void Menu::setCurrentIndexWrapAround(int index) in setCurrentIndexWrapAround()
542 void Menu::setItemsToShow(const std::vector<int> & itemsToShow) in setItemsToShow()
547 bool Menu::isDone() const in isDone()
552 void Menu::setIsDone(bool done) in setIsDone()
557 void Menu::enter() in enter()
566 void Menu::pushEnter() in pushEnter()
575 void Menu::pushExit() in pushExit()
580 void Menu::popEnter() in popEnter()
589 void Menu::popExit() in popExit()
594 void Menu::setWrapAround(bool wrapAround) in setWrapAround()
599 void Menu::exit() in exit()
604 void Menu::stepTime(int msecs) in stepTime()
614 void Menu::positionAnimation(int) in positionAnimation()
622 Menu::~Menu() in ~Menu()