| 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()) { |
no test coverage detected