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

Method MoveToPreviousPage

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

Source from the content-addressed store, hash-verified

772 }
773
774 bool EntryMenu::MoveToPreviousPage() {
775 if((this->base_entry_idx_x > 0) && this->IsNotInSwipe()) {
776 const auto prev_base_entry_idx_x = this->base_entry_idx_x;
777 this->SwipeToPreviousPage();
778 this->extra_entry_swipe_show_h_count = std::min(this->entry_width_count, prev_base_entry_idx_x);
779 this->entries_base_swipe_neg_offset = (this->entry_size + this->entry_h_margin) * this->extra_entry_swipe_show_h_count;
780 this->entries_base_swipe_neg_offset_incr.StartToZero(EntriesSwipePageIncrementSteps, this->entries_base_swipe_neg_offset);
781 this->swipe_mode = SwipeMode::LeftPage;
782 return true;
783 }
784 else {
785 return false;
786 }
787 }
788
789 bool EntryMenu::MoveToNextPage() {
790 if(this->IsNotInSwipe()) {

Callers 1

Calls 2

IsNotInSwipeMethod · 0.95
SwipeToPreviousPageMethod · 0.95

Tested by

no test coverage detected