fn screen_end(&self, screen_size: Vec2) -> usize {
        let cancel = if self.cancel.is_some() { 4 } else { 0 };
        let mut available = screen_size.y - self.menu.title_y;
        available -= 2 * (self.menu.pad_after_title - 1) + cancel;
        let extra = available / (self.menu.pad_after_option + 1) - 2;
        self.first_row + coord::to_index(extra)
    }
/// Returns the index of the last visible option in the screen.
Returns the index of the last visible option in the screen.
Returns the index of the last visible option in the screen .
fn screen_end(&self, screen_size: Vec2) -> usize {
        let cancel = if self.cancel.is_some() { 4 } else { 0 };
        let mut available = screen_size.y - self.menu.title_y;
        available -= 2 * (self.menu.pad_after_title - 1) + cancel;
        let extra = available / (self.menu.pad_after_option + 1) - 2;
        self.first_row + coord::to_index(extra)
    }
fn screen_end ( & self , screen_size : Vec2 ) -> usize { let cancel = if self . cancel . is_some ( ) { 4 } else { 0 } ; let mut available = screen_size . y - self . menu . title_y ; available -= 2 * ( self . menu . pad_after_title - 1 ) + cancel ; let extra = available / ( self . menu . pad_after_option + 1 ) - 2 ; self . first_row + coord :: to_index ( extra ) }
Returns the index of the last visible option in the screen.
Returns the index of the last visible option in the screen .
&self
screen_size
Vec2
&self
screen_size
Vec2