MCPcopy Create free account
hub / github.com/XorTroll/uLaunch / MoveToNextPage

Method MoveToNextPage

projects/uMenu/source/ul/menu/ui/ui_EntryMenu.cpp:789–800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

787 }
788
789 bool EntryMenu::MoveToNextPage() {
790 if(this->IsNotInSwipe()) {
791 this->extra_entry_swipe_show_h_count = this->entry_width_count;
792 this->entries_base_swipe_neg_offset = 0;
793 this->entries_base_swipe_neg_offset_incr.StartFromZero(EntriesSwipePageIncrementSteps, (this->entry_size + this->entry_h_margin) * this->extra_entry_swipe_show_h_count);
794 this->swipe_mode = SwipeMode::RightPage;
795 return true;
796 }
797 else {
798 return false;
799 }
800 }
801
802 void EntryMenu::Rewind() {
803 if((this->cur_entry_idx > 0) && this->IsNotInSwipe()) {

Callers 1

Calls 1

IsNotInSwipeMethod · 0.95

Tested by

no test coverage detected